/* Product landing page, express order form, order tracking, sticky bar. */

@keyframes sb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.025); }
}

@keyframes sb-spin {
	to { transform: rotate(360deg); }
}

@keyframes sb-slide-up {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Above the fold
   ========================================================================== */

.sb-landing-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
	margin-top: 1.5rem;
}

.sb-landing-media {
	position: sticky;
	top: 1rem;
}

.sb-landing-media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 16px;
	background: #eef4f7;
	display: block;
}

.sb-landing-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6rem;
	margin-top: 0.6rem;
}

.sb-landing-thumbs img {
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.2s ease;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.sb-landing-thumbs img:hover,
.sb-landing-thumbs img.is-active {
	outline-color: var(--secondary-color, #219ebc);
	transform: translateY(-3px);
}

.sb-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	background: #000;
	display: block;
}

.sb-video iframe,
.sb-video video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.sb-landing-info h1 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0 0 0.5rem;
}

.sb-rating-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	flex-wrap: wrap;
}

.sb-stars {
	color: var(--highlight-color, #ffb703);
	letter-spacing: 2px;
}

.sb-rating-count {
	color: var(--muted-color, #5b7b8c);
}

.sb-instock {
	background: rgba(37, 211, 102, 0.14);
	color: #1b8b4b;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.18rem 0.7rem;
	margin-left: 0.35rem;
}

.sb-landing-price {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	color: var(--text-color, #023047);
}

.sb-landing-price del {
	color: var(--muted-color, #5b7b8c);
	font-weight: 400;
	font-size: 1.1rem;
}

.sb-landing-price ins {
	text-decoration: none;
}

.sb-save-chip {
	display: inline-block;
	background: var(--accent-color, #fb8500);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	border-radius: 999px;
	padding: 0.22rem 0.8rem;
	vertical-align: middle;
	box-shadow: 0 4px 12px rgba(251, 133, 0, 0.32);
}

.sb-landing-short {
	color: var(--muted-color, #5b7b8c);
	margin-bottom: 1rem;
}

.sb-offer {
	background: rgba(255, 183, 3, 0.16);
	border-left: 4px solid var(--highlight-color, #ffb703);
	color: #8a5b00;
	font-weight: 700;
	border-radius: 10px;
	padding: 0.65rem 0.95rem;
	margin: 0 0 0.75rem;
}

.sb-countdown {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--surface-color, #fff);
	border: 1px dashed var(--accent-color, #fb8500);
	border-radius: 12px;
	padding: 0.7rem 1rem;
	margin-bottom: 0.85rem;
}

.sb-countdown-label {
	font-size: 0.9rem;
	color: var(--muted-color, #5b7b8c);
	font-weight: 600;
}

.sb-countdown-time {
	font-size: 1.4rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--accent-color, #fb8500);
}

.sb-stock-alert {
	color: #c62828;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.sb-cta-row {
	display: flex;
	gap: 0.6rem;
	margin: 0.5rem 0 1rem;
}

.sb-order-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--accent-color, #fb8500);
	color: #fff;
	font-size: 1.02rem;
	font-weight: 800;
	border-radius: 12px;
	padding: 0.95rem 1.4rem;
	flex: 1 1 60%;
	animation: sb-pulse 2.4s ease-in-out infinite;
	box-shadow: 0 8px 22px rgba(251, 133, 0, 0.32);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sb-order-btn:hover {
	background: var(--primary-color, #023047);
	color: #fff;
	box-shadow: 0 10px 26px rgba(2, 48, 71, 0.3);
}

.sb-wa-btn {
	flex: 1 1 40%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	background: var(--whatsapp-color, #25d366);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 12px;
	padding: 0.95rem 0.75rem;
	text-align: center;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.sb-wa-btn:hover {
	color: #fff;
	filter: brightness(0.94);
	transform: translateY(-2px);
}

.sb-trust {
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--muted-color, #5b7b8c);
	font-size: 0.9rem;
	display: grid;
	gap: 0.2rem;
}

.sb-trust li::before {
	content: "✓ ";
	color: var(--whatsapp-color, #25d366);
	font-weight: 800;
}

/* ==========================================================================
   Content sections
   ========================================================================== */

.sb-landing-section {
	margin-top: 3rem;
}

.sb-landing-section h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.95rem);
	margin-bottom: 1rem;
}

.sb-problem {
	font-size: 1.06rem;
	font-weight: 600;
	margin: 0 0 1rem;
	padding-left: 0.9rem;
	border-left: 4px solid var(--secondary-color, #219ebc);
	color: var(--text-color, #023047);
}

.sb-benefits ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sb-benefits li {
	background: var(--surface-color, #fff);
	border: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 12px;
	padding: 0.8rem 1rem;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.sb-benefits li:hover {
	transform: translateX(4px);
	border-color: rgba(33, 158, 188, 0.4);
}

.sb-benefits li::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: var(--secondary-color, #219ebc);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	vertical-align: middle;
}

.sb-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.sb-review-card {
	background: var(--surface-color, #fff);
	border: 1px solid rgba(2, 48, 71, 0.07);
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sb-review-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(2, 48, 71, 0.12);
}

.sb-review-stars {
	color: var(--highlight-color, #ffb703);
	letter-spacing: 2px;
	margin-bottom: 0.4rem;
}

.sb-review-card p {
	margin: 0 0 0.5rem;
	color: var(--text-color, #023047);
}

.sb-review-card strong {
	color: var(--muted-color, #5b7b8c);
	font-size: 0.85rem;
	font-weight: 700;
}

.sb-bundle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.sb-bundle-card {
	background: var(--surface-color, #fff);
	border: 2px dashed var(--secondary-color, #219ebc);
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.sb-bundle-card:hover {
	border-color: var(--accent-color, #fb8500);
	transform: translateY(-4px);
}

.sb-bundle-card strong {
	font-size: 1.1rem;
	color: var(--accent-color, #fb8500);
}

.sb-bundle-card span {
	color: var(--muted-color, #5b7b8c);
	font-size: 0.9rem;
}

.sb-guarantee {
	margin-top: 3rem;
	background: rgba(37, 211, 102, 0.1);
	border: 1px solid rgba(37, 211, 102, 0.35);
	color: #16713f;
	font-weight: 700;
	text-align: center;
	border-radius: 12px;
	padding: 0.95rem 1.2rem;
}

.sb-flash {
	margin-top: 4rem;
}

.sb-countdown-center {
	justify-content: center;
	max-width: 330px;
	margin: 0.75rem auto 1.5rem;
}

/* ==========================================================================
   Express order form
   ========================================================================== */

.sb-order {
	margin-top: 2rem;
	background: var(--primary-color, #023047);
	border-radius: 20px;
	padding: 1.75rem;
	scroll-margin-top: 90px;
	color: #fff;
}

.sb-order-head {
	text-align: center;
	margin-bottom: 1.5rem;
}

.sb-order-head h2 {
	color: #fff;
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.sb-order-head p {
	color: var(--sky-color, #8ecae6);
	margin: 0;
	font-size: 0.95rem;
}

.sb-order-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

.sb-order-fields {
	display: grid;
	gap: 0.9rem;
}

/* Flex, not block: the indentation whitespace between <label>, <span> and
   <input> would otherwise create anonymous line boxes ~21px tall each, which
   is what pushed the fields far apart. Flex containers ignore that whitespace. */
.sb-field {
	display: flex;
	flex-direction: column;
	margin: 0;
	line-height: 1.35;
}

.sb-field > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.sb-field > span {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--sky-color, #8ecae6);
	margin: 0 0 0.35rem;
	letter-spacing: 0.02em;
}

.sb-field > span b {
	color: var(--highlight-color, #ffb703);
}

.sb-field input,
.sb-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	font-size: 1rem;
	color: #fff;
	font-family: inherit;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sb-field input::placeholder,
.sb-field textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.sb-field input:focus,
.sb-field textarea:focus {
	outline: none;
	border-color: var(--highlight-color, #ffb703);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.18);
}

.sb-field input:invalid:not(:placeholder-shown) {
	border-color: #ff8a80;
}

.sb-order-assure {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	color: var(--sky-color, #8ecae6);
	font-size: 0.86rem;
}

.sb-order-assure li::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 183, 3, 0.9);
	color: #023047;
	font-size: 0.66rem;
	font-weight: 800;
	vertical-align: middle;
}

/* Delivery zone picker — lives in the summary panel because it changes the total. */
.sb-zones {
	border: 0;
	padding: 0.9rem 0 0;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}

.sb-zones legend {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--muted-color, #5b7b8c);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0;
	margin-bottom: 0.4rem;
}

.sb-zone {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1.5px solid rgba(2, 48, 71, 0.15);
	border-radius: 10px;
	padding: 0.55rem 0.7rem;
	margin: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sb-zone:hover {
	border-color: rgba(33, 158, 188, 0.6);
}

.sb-zone:has(input:checked) {
	border-color: var(--accent-color, #fb8500);
	background: rgba(255, 183, 3, 0.12);
}

.sb-zone input {
	accent-color: var(--accent-color, #fb8500);
	width: 17px;
	height: 17px;
	flex: none;
}

.sb-zone-body {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.sb-zone-body b {
	font-size: 0.88rem;
}

.sb-zone-body small {
	color: var(--muted-color, #5b7b8c);
	font-size: 0.74rem;
}

.sb-zone-cost {
	margin-left: auto;
	font-weight: 800;
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--text-color, #023047);
}

/* Summary panel */

.sb-order-summary {
	background: #fff;
	color: var(--text-color, #023047);
	border-radius: 16px;
	padding: 1.25rem;
	position: sticky;
	top: 90px;
}

.sb-order-summary,
.sb-order-fields {
	line-height: 1.35;
}

.sb-summary-item {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(2, 48, 71, 0.1);
}

.sb-summary-item > div {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.sb-summary-item img {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	flex: none;
}

.sb-summary-item strong {
	display: block;
	font-size: 0.95rem;
	line-height: 1.3;
}

.sb-summary-unit {
	font-size: 0.85rem;
	color: var(--muted-color, #5b7b8c);
}

.sb-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(2, 48, 71, 0.1);
	font-weight: 700;
	font-size: 0.9rem;
}

.sb-qty-control {
	display: flex;
	align-items: center;
	border: 1.5px solid rgba(2, 48, 71, 0.15);
	border-radius: 10px;
	overflow: hidden;
}

.sb-qty-btn {
	border: 0;
	background: var(--bg-color, #f1f6f9);
	color: var(--primary-color, #023047);
	width: 36px;
	height: 38px;
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.sb-qty-btn:hover {
	background: var(--primary-color, #023047);
	color: #fff;
}

.sb-qty-control input {
	width: 46px;
	height: 38px;
	border: 0;
	text-align: center;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-color, #023047);
	background: #fff;
	-moz-appearance: textfield;
}

.sb-qty-control input::-webkit-outer-spin-button,
.sb-qty-control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sb-totals {
	margin: 0;
	padding: 0.9rem 0 0;
	border-top: 1px solid rgba(2, 48, 71, 0.1);
	margin-top: 0.9rem;
	display: grid;
	gap: 0.45rem;
	font-size: 0.92rem;
}

.sb-totals > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.sb-totals dt,
.sb-totals dd {
	margin: 0;
}

.sb-totals dt {
	color: var(--muted-color, #5b7b8c);
}

.sb-totals dd {
	font-weight: 700;
}

.sb-totals dd.is-free {
	color: #1b8b4b;
}

.sb-total-row {
	border-top: 1px dashed rgba(2, 48, 71, 0.2);
	padding-top: 0.6rem;
	margin-top: 0.3rem;
}

.sb-total-row dt {
	color: var(--text-color, #023047) !important;
	font-weight: 800;
	font-size: 1rem;
}

.sb-total-row dd {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--accent-color, #fb8500);
}

.sb-cod-badge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(37, 211, 102, 0.1);
	color: #16713f;
	border-radius: 10px;
	padding: 0.6rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0.9rem 0;
	line-height: 1.35;
}

.sb-cod-badge svg {
	flex: none;
}

.sb-order-submit {
	width: 100%;
	border: 0;
	background: var(--accent-color, #fb8500);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	border-radius: 12px;
	padding: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 8px 22px rgba(251, 133, 0, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
	animation: sb-pulse 2.6s ease-in-out infinite;
}

.sb-order-submit:hover:not(:disabled) {
	background: var(--primary-color, #023047);
	transform: translateY(-2px);
}

.sb-order-submit:disabled {
	opacity: 0.75;
	cursor: progress;
	animation: none;
}

.sb-submit-total {
	font-weight: 800;
	opacity: 0.9;
}

.sb-order-submit.is-loading .sb-submit-label::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 0.5rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sb-spin 0.7s linear infinite;
	vertical-align: -2px;
}

.sb-order-error {
	background: #ffebee;
	color: #c62828;
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	font-size: 0.88rem;
	font-weight: 600;
	margin: 0.75rem 0 0;
	animation: sb-slide-up 0.25s ease;
}

.sb-order-safe {
	color: var(--muted-color, #5b7b8c);
	font-size: 0.78rem;
	text-align: center;
	margin: 0.7rem 0 0;
}

/* ==========================================================================
   Order tracking
   ========================================================================== */

.sb-track-form {
	display: flex;
	gap: 0.75rem;
	max-width: 560px;
	margin: 1rem 0 1.5rem;
}

.sb-track-form input {
	flex: 1;
	border: 1.5px solid rgba(2, 48, 71, 0.18);
	border-radius: 12px;
	padding: 0.8rem 1rem;
	font-size: 1rem;
}

.sb-track-form input:focus {
	outline: none;
	border-color: var(--secondary-color, #219ebc);
	box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.18);
}

.sb-track-form .sb-order-btn {
	margin: 0;
	white-space: nowrap;
	flex: none;
	animation: none;
}

.sb-track-card {
	background: var(--surface-color, #fff);
	border: 1px solid rgba(2, 48, 71, 0.08);
	border-radius: 12px;
	padding: 1rem 1.2rem;
	margin-bottom: 0.75rem;
	max-width: 560px;
}

.sb-track-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.4rem;
}

.sb-track-status {
	font-size: 0.8rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.2rem 0.75rem;
	background: #eef4f7;
}

.sb-status-processing { background: rgba(255, 183, 3, 0.2); color: #8a5b00; }
.sb-status-completed { background: rgba(37, 211, 102, 0.16); color: #16713f; }
.sb-status-cancelled, .sb-status-failed { background: #ffebee; color: #c62828; }

.sb-track-meta {
	color: var(--muted-color, #5b7b8c);
	font-size: 0.85rem;
	margin: 0;
}

/* ==========================================================================
   Mobile sticky action bar
   ========================================================================== */

.sb-sticky-bar {
	display: none;
}

@media (max-width: 900px) {
	.sb-order-grid {
		grid-template-columns: 1fr;
	}

	.sb-order-summary {
		position: static;
	}
}

@media (max-width: 767px) {
	.sb-landing-top {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.sb-landing-media {
		position: static;
	}

	/* Keep title, price and rating inside the first screen (3-second hook). */
	.sb-landing-media > img {
		aspect-ratio: auto;
		height: 33vh;
		object-fit: cover;
	}

	.sb-landing-thumbs img {
		height: 62px;
		aspect-ratio: 1 / 1;
		object-fit: cover;
	}

	.sb-cta-row {
		flex-direction: column;
	}

	.sb-order {
		padding: 1.1rem;
		border-radius: 16px;
	}

	.sb-order-summary {
		padding: 1rem;
	}

	.sb-order-submit {
		font-size: 1rem;
		flex-direction: column;
		gap: 0.15rem;
		padding: 0.85rem;
	}

	body.single-product {
		padding-bottom: 68px;
	}

	.sb-sticky-bar {
		display: flex;
		gap: 8px;
		position: fixed;
		inset: auto 10px 10px 10px;
		z-index: 999;
		height: 48px;
		animation: sb-slide-up 0.4s ease both;
	}

	.sb-sticky-bar a {
		flex: 1 1 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		font-size: 0.9rem;
		font-weight: 800;
		color: #fff;
		text-decoration: none;
		border-radius: 12px;
		box-shadow: 0 6px 18px rgba(2, 48, 71, 0.28);
	}

	.sb-sticky-bar svg {
		width: 18px;
		height: 18px;
	}

	.sb-sticky-wa {
		background: var(--whatsapp-color, #25d366);
	}

	.sb-sticky-order {
		background: var(--accent-color, #fb8500);
		animation: sb-pulse 2.4s ease-in-out infinite;
	}

	.sb-sticky-full {
		flex-basis: 100%;
	}
}
