/**
 * Wafaa Combo Builder — Front-end styles
 *
 * Self-contained: no dependency on any theme. Uses CSS custom properties
 * with sensible defaults that a theme can override.
 *
 * The design mirrors the reference UI from fragranciabd.com/gift-box:
 *   - Dark sticky top bar with gold accents
 *   - Slot cards with hover/fill animations
 *   - Clean product grid with search + sort
 *   - Premium review step with discount breakdown
 */

/* =========================================================================
 * Tokens — override these in your theme to re-skin the builder
 * ========================================================================= */

.wcb {
	--wcb-bg: #faf7f0;
	--wcb-bg-alt: #f4efe5;
	--wcb-surface: #ffffff;
	--wcb-text: #191712;
	--wcb-text-muted: rgba(25, 23, 18, 0.55);
	--wcb-gold: #c2954f;
	--wcb-gold-light: rgba(194, 149, 79, 0.15);
	--wcb-dark: #14261c;
	--wcb-dark-alt: #1b3327;
	--wcb-cream: #fbf8f2;
	--wcb-green: #22763f;
	--wcb-red: #c44;
	--wcb-radius: 16px;
	--wcb-radius-sm: 10px;
	--wcb-shadow: 0 4px 24px rgba(25, 23, 18, 0.08);
	--wcb-transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);

	font-family: 'Jost', 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--wcb-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* =========================================================================
 * Layout shell
 * ========================================================================= */

.wcb {
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px);
}

/* =========================================================================
 * Step indicator
 * ========================================================================= */

.wcb-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.wcb-step-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	background: var(--wcb-bg-alt);
	color: var(--wcb-text-muted);
	border: 2px solid transparent;
	transition: all var(--wcb-transition);
}

.wcb-step-dot.is-active {
	background: var(--wcb-gold);
	color: #fff;
	border-color: var(--wcb-gold);
	transform: scale(1.1);
}

.wcb-step-dot.is-done {
	background: var(--wcb-green);
	color: #fff;
}

.wcb-step-line {
	width: 40px;
	height: 2px;
	background: var(--wcb-bg-alt);
	border-radius: 1px;
	transition: background var(--wcb-transition);
}

.wcb-step-line.is-done {
	background: var(--wcb-green);
}

.wcb-step-label {
	font-size: 12px;
	color: var(--wcb-text-muted);
	text-align: center;
	margin-top: 4px;
}

/* =========================================================================
 * Step 1 — Choose your combo pack
 * ========================================================================= */

.wcb-choose {
	text-align: center;
}

.wcb-choose-title {
	font-family: 'Italiana', 'Cormorant Garamond', serif;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 8px;
	color: var(--wcb-text);
}

.wcb-choose-sub {
	font-size: 15px;
	color: var(--wcb-text-muted);
	margin: 0 0 clamp(28px, 4vw, 48px);
}

.wcb-choose-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(16px, 2vw, 24px);
	max-width: 960px;
	margin: 0 auto;
}

/* Box option card */
.wcb-box-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--wcb-radius);
	overflow: hidden;
	background: var(--wcb-dark);
	color: var(--wcb-cream);
	cursor: pointer;
	transition: transform var(--wcb-transition), box-shadow var(--wcb-transition);
	border: 2px solid transparent;
}

.wcb-box-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(25, 23, 18, 0.25);
}

.wcb-box-card.is-selected {
	border-color: var(--wcb-gold);
}

.wcb-box-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	z-index: 2;
}

.wcb-box-badge--popular {
	background: var(--wcb-gold);
	color: var(--wcb-dark);
}

.wcb-box-badge--value {
	background: var(--wcb-green);
	color: #fff;
}

.wcb-box-badge--premium {
	background: rgba(251, 248, 242, 0.15);
	color: var(--wcb-cream);
	border: 1px solid rgba(251, 248, 242, 0.2);
}

.wcb-box-visual {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(194, 149, 79, 0.2), rgba(20, 38, 28, 0.8));
}

.wcb-box-visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, var(--wcb-dark) 100%);
}

.wcb-box-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.wcb-box-eyebrow {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.5);
}

.wcb-box-name {
	font-family: 'Italiana', 'Cormorant Garamond', serif;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 400;
	line-height: 1.1;
}

.wcb-box-desc {
	font-size: 13px;
	color: rgba(251, 248, 242, 0.6);
	line-height: 1.5;
}

.wcb-box-slots-preview {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.wcb-box-slot-dot {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1.5px dashed rgba(194, 149, 79, 0.5);
}

/* Category tabs in Step 1 */
.wcb-cat-tabs {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 auto clamp(20px, 3vw, 32px);
	flex-wrap: wrap;
}

.wcb-cat-tab {
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid rgba(25, 23, 18, 0.15);
	background: #fff;
	color: var(--wcb-text-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: all var(--wcb-transition);
}

.wcb-cat-tab:hover {
	border-color: var(--wcb-gold);
	color: var(--wcb-text);
}

.wcb-cat-tab.is-active {
	background: var(--wcb-dark);
	color: var(--wcb-cream);
	border-color: var(--wcb-dark);
	box-shadow: 0 4px 14px rgba(25, 23, 18, 0.15);
}

.wcb-box-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-top: 1px solid rgba(251, 248, 242, 0.08);
	margin-top: auto;
	gap: 12px;
}

.wcb-box-offer {
	display: flex;
	align-items: center;
	min-width: 0;
}

.wcb-box-perk {
	font-size: 13px;
	font-weight: 600;
	color: var(--wcb-gold);
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.wcb-box-select {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(194, 149, 79, 0.4);
	background: rgba(194, 149, 79, 0.1);
	color: var(--wcb-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all var(--wcb-transition);
}

.wcb-box-select:hover {
	background: var(--wcb-gold);
	color: var(--wcb-dark);
	border-color: var(--wcb-gold);
	box-shadow: 0 4px 12px rgba(194, 149, 79, 0.35);
}

.wcb-box-select svg {
	width: 14px;
	height: 14px;
}

/* =========================================================================
 * Step 2 — Fill your slots (sticky bar + product grid)
 * ========================================================================= */

/* Sticky top bar */
.wcb-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wcb-dark);
	color: var(--wcb-cream);
	border-radius: var(--wcb-radius);
	padding: 16px clamp(16px, 2vw, 24px);
	margin-bottom: clamp(20px, 3vw, 32px);
	box-shadow: 0 8px 32px rgba(20, 38, 28, 0.3);
}

.wcb-topbar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.wcb-topbar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wcb-topbar-label {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.5);
}

.wcb-topbar-variant {
	font-size: 15px;
	font-weight: 500;
}

.wcb-topbar-variant .wcb-topbar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--wcb-gold);
	color: var(--wcb-dark);
	margin-right: 8px;
	vertical-align: middle;
	font-size: 14px;
}

.wcb-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wcb-topbar-review-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 999px;
	border: none;
	background: var(--wcb-gold);
	color: var(--wcb-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(194, 149, 79, 0.4);
	transition: all var(--wcb-transition);
	animation: wcb-pulse 2s infinite;
}

.wcb-topbar-review-btn:hover {
	background: #d4a65c;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(194, 149, 79, 0.6);
}

@keyframes wcb-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(194, 149, 79, 0.5); }
	50% { box-shadow: 0 0 0 7px rgba(194, 149, 79, 0); }
}

.wcb-topbar-change {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	border: none;
	background: rgba(251, 248, 242, 0.1);
	color: var(--wcb-cream);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--wcb-transition);
}

.wcb-topbar-change:hover {
	background: rgba(251, 248, 242, 0.18);
}

.wcb-topbar-change svg {
	width: 14px;
	height: 14px;
}

.wcb-topbar-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 8px;
}

.wcb-topbar-step {
	font-size: 12px;
	color: rgba(251, 248, 242, 0.45);
}

.wcb-topbar-counter {
	font-size: 13px;
	font-weight: 600;
	color: var(--wcb-gold);
}

/* Slot cards row */
.wcb-slots {
	display: flex;
	gap: clamp(8px, 1.2vw, 14px);
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.wcb-slots::-webkit-scrollbar {
	display: none;
}

.wcb-slot {
	flex: 0 0 auto;
	min-width: 110px;
	max-width: 160px;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 12px 12px;
	border-radius: var(--wcb-radius-sm);
	background: rgba(251, 248, 242, 0.06);
	border: 2px dashed rgba(251, 248, 242, 0.15);
	cursor: pointer;
	transition: all var(--wcb-transition);
	position: relative;
}

.wcb-slot:hover {
	border-color: rgba(194, 149, 79, 0.3);
	background: rgba(251, 248, 242, 0.08);
}

.wcb-slot.is-filled {
	border-style: solid;
	border-color: var(--wcb-gold);
	background: rgba(194, 149, 79, 0.1);
}

.wcb-slot-num {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.4);
}

.wcb-slot-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(251, 248, 242, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: rgba(251, 248, 242, 0.3);
	transition: all var(--wcb-transition);
}

.wcb-slot.is-filled .wcb-slot-icon {
	background: var(--wcb-gold);
	color: var(--wcb-dark);
}

.wcb-slot-img {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(251, 248, 242, 0.06);
}

.wcb-slot-name {
	font-size: 10px;
	text-align: center;
	color: rgba(251, 248, 242, 0.6);
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcb-slot-hint {
	font-size: 10px;
	color: rgba(251, 248, 242, 0.3);
	text-align: center;
	line-height: 1.3;
}

.wcb-slot-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: var(--wcb-red);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.wcb-slot.is-filled .wcb-slot-remove {
	display: flex;
}

/* Product grid area */
.wcb-products-area {
	margin-top: 8px;
}

.wcb-products-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: clamp(16px, 2vw, 24px);
	flex-wrap: wrap;
}

.wcb-products-title {
	font-family: 'Italiana', 'Cormorant Garamond', serif;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 400;
	margin: 0;
}

.wcb-products-size-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wcb-bg-alt);
	font-size: 13px;
	color: var(--wcb-text-muted);
}

.wcb-products-size-badge strong {
	color: var(--wcb-gold);
	font-weight: 600;
}

/* Search + sort bar */
.wcb-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: clamp(16px, 2vw, 24px);
	flex-wrap: wrap;
}

.wcb-search {
	flex: 1;
	min-width: 200px;
	position: relative;
}

.wcb-search input {
	width: 100%;
	padding: 12px 16px 12px 42px;
	border: 1px solid rgba(25, 23, 18, 0.12);
	border-radius: var(--wcb-radius-sm);
	background: var(--wcb-surface);
	font-size: 14px;
	font-family: inherit;
	color: var(--wcb-text);
	outline: none;
	transition: border-color var(--wcb-transition), box-shadow var(--wcb-transition);
	box-sizing: border-box;
}

.wcb-search input:focus {
	border-color: var(--wcb-gold);
	box-shadow: 0 0 0 3px var(--wcb-gold-light);
}

.wcb-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wcb-text-muted);
	pointer-events: none;
}

.wcb-search-clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--wcb-text-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color var(--wcb-transition);
}

.wcb-search-clear:hover {
	color: var(--wcb-text);
}

.wcb-sort {
	position: relative;
}

.wcb-sort select {
	appearance: none;
	padding: 12px 36px 12px 14px;
	border: 1px solid rgba(25, 23, 18, 0.12);
	border-radius: var(--wcb-radius-sm);
	background: var(--wcb-surface);
	font-size: 13px;
	font-family: inherit;
	color: var(--wcb-text);
	cursor: pointer;
	outline: none;
	transition: border-color var(--wcb-transition);
}

.wcb-sort select:focus {
	border-color: var(--wcb-gold);
}

.wcb-sort::after {
	content: '▾';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--wcb-text-muted);
	font-size: 12px;
}

/* Product grid */
.wcb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: clamp(10px, 1.4vw, 16px);
}

@media (min-width: 768px) {
	.wcb-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.wcb-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Product card */
.wcb-product {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--wcb-radius-sm);
	overflow: hidden;
	background: var(--wcb-surface);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--wcb-transition);
	box-shadow: 0 1px 8px rgba(25, 23, 18, 0.04);
}

.wcb-product:hover {
	transform: translateY(-3px);
	box-shadow: var(--wcb-shadow);
	border-color: rgba(194, 149, 79, 0.3);
}

.wcb-product.is-added {
	border-color: var(--wcb-gold);
}

.wcb-product.is-added::after {
	content: '✓';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wcb-gold);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.wcb-product-img-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--wcb-bg-alt);
}

.wcb-product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wcb-product:hover .wcb-product-img {
	transform: scale(1.06);
}

.wcb-product-size-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--wcb-gold);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wcb-product-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.wcb-product-house {
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wcb-gold);
}

.wcb-product-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--wcb-text);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wcb-product-price {
	font-size: 14px;
	font-weight: 600;
	color: var(--wcb-text);
	margin-top: auto;
	padding-top: 4px;
}

.wcb-product-btn {
	display: block;
	width: 100%;
	padding: 10px;
	border: none;
	border-top: 1px solid rgba(25, 23, 18, 0.06);
	background: none;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wcb-gold);
	cursor: pointer;
	transition: background var(--wcb-transition), color var(--wcb-transition);
}

.wcb-product-btn:hover {
	background: var(--wcb-gold-light);
}

.wcb-product.is-added .wcb-product-btn {
	color: var(--wcb-red);
}

/* Loading + empty states */
.wcb-loading,
.wcb-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	color: var(--wcb-text-muted);
	font-size: 15px;
}

.wcb-loading::before {
	content: '';
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto 12px;
	border: 2.5px solid var(--wcb-bg-alt);
	border-top-color: var(--wcb-gold);
	border-radius: 50%;
	animation: wcb-spin 0.7s linear infinite;
}

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

/* Load more */
.wcb-load-more {
	display: flex;
	justify-content: center;
	margin-top: clamp(20px, 3vw, 32px);
}

.wcb-load-more-btn {
	padding: 12px 32px;
	border-radius: 999px;
	border: 1px solid rgba(25, 23, 18, 0.15);
	background: var(--wcb-surface);
	color: var(--wcb-text);
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: all var(--wcb-transition);
}

.wcb-load-more-btn:hover {
	background: var(--wcb-gold-light);
	border-color: var(--wcb-gold);
}

/* =========================================================================
 * Step 3 — Direct Checkout & Order Summary
 * ========================================================================= */

.wcb-checkout-container {
	max-width: 1240px;
	margin: 0 auto;
}

.wcb-checkout-nav {
	margin-bottom: 20px;
}

.wcb-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(25, 23, 18, 0.15);
	background: var(--wcb-surface);
	color: var(--wcb-text);
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: all var(--wcb-transition);
}

.wcb-btn-back:hover {
	background: var(--wcb-bg-alt);
	border-color: var(--wcb-gold);
}

.wcb-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(350px, 1fr);
	gap: clamp(20px, 3vw, 36px);
	align-items: flex-start;
}

/* Left side cards */
.wcb-checkout-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wcb-checkout-card {
	background: var(--wcb-surface);
	border: 1px solid rgba(25, 23, 18, 0.08);
	border-radius: var(--wcb-radius);
	padding: clamp(20px, 2.5vw, 32px);
	box-shadow: 0 2px 14px rgba(25, 23, 18, 0.04);
}

.wcb-delivery-box {
	background: #fbf9f4;
	border: 1.5px solid rgba(194, 149, 79, 0.3);
}

.wcb-card-title {
	font-family: 'Italiana', 'Cormorant Garamond', serif;
	font-size: clamp(20px, 2.2vw, 25px);
	font-weight: 500;
	margin: 0 0 18px;
	color: var(--wcb-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcb-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wcb-span-2 {
	grid-column: span 2;
}

.wcb-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcb-form-group label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wcb-text-muted);
}

.wcb-req {
	color: var(--wcb-gold);
	font-weight: 700;
}

.wcb-opt {
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(25, 23, 18, 0.06);
	color: var(--wcb-text-muted);
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-left: 4px;
}

.wcb-form-group input,
.wcb-form-group select,
.wcb-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--wcb-radius-sm);
	border: 1.5px solid rgba(25, 23, 18, 0.14);
	background: #fff;
	color: var(--wcb-text);
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	outline: none;
	transition: all var(--wcb-transition);
}

.wcb-form-group input:focus,
.wcb-form-group select:focus,
.wcb-form-group textarea:focus {
	border-color: var(--wcb-gold);
	box-shadow: 0 0 0 3px var(--wcb-gold-light);
}

.wcb-form-group.has-error input,
.wcb-form-group.has-error select,
.wcb-form-group.has-error textarea {
	border-color: var(--wcb-red);
	background: #fff8f8;
}

.wcb-field-error {
	font-size: 12px;
	color: var(--wcb-red);
}

.wcb-error-banner {
	padding: 12px 16px;
	border-radius: 8px;
	background: #fee;
	border: 1px solid #fcc;
	color: var(--wcb-red);
	font-size: 13px;
	margin-bottom: 16px;
}

.wcb-delivery-charge-row {
	display: flex;
	align-items: center;
	margin: 2px 0;
}

.wcb-delivery-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #e8f5e9;
	color: var(--wcb-green);
	font-size: 13px;
	font-weight: 600;
}

.wcb-delivery-pill strong {
	color: var(--wcb-green);
}

/* Right side dark summary card */
.wcb-order-summary-card {
	background: var(--wcb-dark);
	color: var(--wcb-cream);
	border-radius: var(--wcb-radius);
	padding: clamp(20px, 2.5vw, 30px);
	box-shadow: 0 16px 48px rgba(20, 38, 28, 0.35);
	position: sticky;
	top: 20px;
}

.wcb-summary-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(251, 248, 242, 0.12);
	margin-bottom: 16px;
}

.wcb-summary-badge {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wcb-gold);
}

.wcb-summary-slots-info {
	font-size: 11px;
	letter-spacing: 0.1em;
	color: rgba(251, 248, 242, 0.5);
}

/* Fragrance items list */
.wcb-summary-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
	margin-bottom: 20px;
	scrollbar-width: thin;
}

.wcb-summary-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(251, 248, 242, 0.05);
}

.wcb-summary-item-img {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	background: rgba(251, 248, 242, 0.08);
	flex-shrink: 0;
}

.wcb-summary-item-info {
	flex: 1;
	min-width: 0;
}

.wcb-summary-item-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wcb-cream);
}

.wcb-summary-item-house {
	display: block;
	font-size: 10px;
	color: var(--wcb-gold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wcb-summary-item-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--wcb-cream);
	flex-shrink: 0;
}

/* Breakdown */
.wcb-summary-breakdown {
	border-top: 1px solid rgba(251, 248, 242, 0.1);
	padding-top: 16px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wcb-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: rgba(251, 248, 242, 0.75);
}

.wcb-summary-row--discount {
	color: #66bb6a;
	font-weight: 500;
}

.wcb-summary-row--total {
	border-top: 1px dashed rgba(251, 248, 242, 0.2);
	padding-top: 14px;
	margin-top: 6px;
	font-size: 16px;
	color: var(--wcb-cream);
	font-weight: 600;
}

.wcb-total-amount {
	font-size: 24px;
	font-weight: 700;
	color: var(--wcb-gold);
}

.wcb-text-green {
	color: #66bb6a;
	font-weight: 600;
}

/* Payment section */
.wcb-payment-section {
	margin-bottom: 18px;
}

.wcb-payment-label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(251, 248, 242, 0.5);
	margin-bottom: 8px;
}

.wcb-payment-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-radius: var(--wcb-radius-sm);
	background: rgba(251, 248, 242, 0.08);
	border: 1.5px solid var(--wcb-gold);
}

.wcb-payment-card-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wcb-payment-icon {
	font-size: 20px;
}

.wcb-payment-name {
	display: block;
	font-size: 14px;
	color: var(--wcb-cream);
}

.wcb-payment-desc {
	display: block;
	font-size: 11px;
	color: rgba(251, 248, 242, 0.5);
}

.wcb-payment-amount {
	font-size: 15px;
	font-weight: 700;
	color: var(--wcb-gold);
}

/* Terms label */
.wcb-terms-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: rgba(251, 248, 242, 0.65);
	line-height: 1.4;
	margin-bottom: 18px;
	cursor: pointer;
}

.wcb-terms-label input {
	margin-top: 2px;
	accent-color: var(--wcb-gold);
}

.wcb-terms-label a {
	color: var(--wcb-gold);
	text-decoration: underline;
}

.wcb-terms-label.has-error {
	color: #ff8a80;
}

/* Place Order Button */
.wcb-btn-place-order {
	width: 100%;
	padding: 16px 24px;
	border-radius: 999px;
	border: none;
	background: var(--wcb-gold);
	color: var(--wcb-dark);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 6px 20px rgba(194, 149, 79, 0.4);
	transition: all var(--wcb-transition);
}

.wcb-btn-place-order:hover {
	background: #d4a65c;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(194, 149, 79, 0.6);
}

.wcb-btn-place-order:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.wcb-summary-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.wcb-link-btn {
	background: none;
	border: none;
	padding: 4px 8px;
	font-size: 12px;
	color: rgba(251, 248, 242, 0.5);
	cursor: pointer;
	font-family: inherit;
	text-decoration: underline;
	transition: color var(--wcb-transition);
}

.wcb-link-btn:hover {
	color: var(--wcb-cream);
}

/* Success state */
.wcb-success {
	text-align: center;
	padding: 40px 20px;
}

.wcb-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--wcb-green);
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.wcb-success h3 {
	font-family: 'Italiana', 'Cormorant Garamond', serif;
	font-size: 28px;
	font-weight: 400;
	margin: 0 0 8px;
}

.wcb-success p {
	color: var(--wcb-text-muted);
	margin: 0 0 24px;
}

.wcb-success-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.wcb-btn-view-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	border: none;
	background: var(--wcb-dark);
	color: var(--wcb-cream);
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--wcb-transition);
}

.wcb-btn-view-cart:hover {
	background: var(--wcb-dark-alt);
	color: var(--wcb-cream);
}

/* =========================================================================
 * Responsive
 * ========================================================================= */

@media (max-width: 768px) {
	.wcb-topbar {
		border-radius: var(--wcb-radius-sm);
	}

	.wcb-slot {
		min-width: 80px;
		padding: 10px 8px;
	}

	.wcb-slot-img {
		width: 36px;
		height: 36px;
	}

	.wcb-toolbar {
		flex-direction: column;
	}

	.wcb-sort {
		width: 100%;
	}

	.wcb-sort select {
		width: 100%;
	}

	.wcb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.wcb-review-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcb-choose-grid {
		grid-template-columns: 1fr;
	}

	.wcb-checkout-layout {
		grid-template-columns: 1fr;
	}

	.wcb-form-grid {
		grid-template-columns: 1fr;
	}

	.wcb-span-2 {
		grid-column: span 1;
	}

	.wcb-order-summary-card {
		position: static;
	}
}

@media (max-width: 480px) {
	.wcb-topbar-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.wcb-topbar-change {
		align-self: flex-end;
		margin-top: -24px;
	}

	.wcb-products-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =========================================================================
 * Animations
 * ========================================================================= */

@keyframes wcb-pop {
	0% { transform: scale(0.85); opacity: 0; }
	60% { transform: scale(1.05); }
	100% { transform: scale(1); opacity: 1; }
}

.wcb-slot.is-filling {
	animation: wcb-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wcb-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.wcb-product {
	animation: wcb-fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wcb-product:nth-child(2) { animation-delay: 0.04s; }
.wcb-product:nth-child(3) { animation-delay: 0.08s; }
.wcb-product:nth-child(4) { animation-delay: 0.12s; }
.wcb-product:nth-child(5) { animation-delay: 0.16s; }
.wcb-product:nth-child(6) { animation-delay: 0.20s; }
.wcb-product:nth-child(7) { animation-delay: 0.24s; }
.wcb-product:nth-child(8) { animation-delay: 0.28s; }
