/* BB Cart Addons — frontend slider (v1.1.0)
   Visual spec sourced from Figma node 48:9087. Card 324x186; dark teal top bar
   + white horizontal body. Hard-coded Figma values; admin display settings
   intentionally bypassed for visual consistency. */

.bbca-slider-wrap {
	margin: 24px 0;
	position: relative;
	box-sizing: border-box;
	width: 100%;
}

.bbca-slider-wrap *,
.bbca-slider-wrap *::before,
.bbca-slider-wrap *::after { box-sizing: border-box; }

.bbca-slider-subtitle {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	margin: 0 0 12px;
	padding: 0;
	color: #003333;
}

.bbca-slider { position: relative; }

.bbca-slider-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0;
}
.bbca-slider-track::-webkit-scrollbar { display: none; }

/* ============================================================
   CARD — 324 × 186, 16px outer radius, top bar + body
   ============================================================ */
.bbca-card {
	flex: 0 0 324px;
	width: 324px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	background: #FFFFFF;
	border: 0;
	box-shadow: none;
	position: relative;
}

/* Top label bar — dark teal, white Inter 700 12/18 */
.bbca-card__top {
	background: #003333;
	height: 34px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.bbca-card__top-text {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	color: #FFFFFF;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Body — white, padding 16, horizontal flex: image (120x120) + content */
.bbca-card__body {
	background: #FFFFFF;
	padding: 16px;
	display: flex;
	gap: 16px;
	align-items: stretch;
	flex: 1 1 auto;
}

.bbca-card__image {
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
	border-radius: 8px;
	background-color: #f5f5f5;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bbca-card__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 25px;
}

.bbca-card__info { display: flex; flex-direction: column; gap: 0; }

/* Product name — Inter 700 16/24 #003333 */
.bbca-card__name {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #003333;
	margin: 0;
}

/* Description — Inter 400 12/18 #003333 */
.bbca-card__desc {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	color: #003333;
	margin: 0;
}

/* Bottom — price row + button stacked, gap 8 */
.bbca-card__bottom { display: flex; flex-direction: column; gap: 8px; }

/* Price row — current (Inter 700 20/30 #003333) + old strike (Inter 400 16/24 #D35E5E) */
.bbca-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bbca-card__price-current {
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
	color: #003333;
}
.bbca-card__price-current bdi { font-weight: inherit; }
.bbca-card__price-old,
.bbca-card__price del {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #D35E5E;
	text-decoration: line-through;
}

/* Button — 120x30, green pill, white Inter 700 12/18 "Add" */
.bbca-card__button {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: #00CC66;
	color: #FFFFFF;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	padding: 6px 16px;
	border-radius: 27px;
	width: 120px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	transition: opacity 120ms ease, transform 120ms ease;
}
.bbca-card__button:hover { opacity: 0.92; }
.bbca-card__button:active { transform: translateY(1px); }
.bbca-card__button:disabled { cursor: wait; opacity: 0.7; }
.bbca-card__button.is-loading { opacity: 0.6; }
.bbca-card__button.is-success { background: #2e7d32 !important; }
.bbca-card__button.is-error   { background: #c62828 !important; }

/* Arrows — left/right circular buttons */
.bbca-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #FFFFFF;
	color: #003333;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.bbca-arrow-prev { left: -18px; }
.bbca-arrow-next { right: -18px; }
.bbca-arrow[hidden] { display: none; }

/* Mobile — slightly narrower card. */
@media (max-width: 767px) {
	.bbca-slider-subtitle { font-size: 16px; }
	.bbca-slider-track { gap: 16px; }
	.bbca-card { flex-basis: 280px; width: 280px; }
	.bbca-card__image { flex-basis: 96px; width: 96px; height: 96px; }
	.bbca-card__button { width: 100%; }
	.bbca-arrow { display: none !important; }
}
