/* ==========================================================================
   White Butterfly Designs — theme.css
   Complete theme styles. All colors use CSS variables for Customizer control.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (set by PHP via <style id="wbd-customizer-css">
      and falling back to these values)
   -------------------------------------------------------------------------- */
:root {
	--wbd-background:   #f7f3ee;
	--wbd-foreground:   #2a2018;
	--wbd-primary:      #c9a55a;
	--wbd-primary-fg:   #ffffff;
	--wbd-secondary:    #ede8e0;
	--wbd-secondary-fg: #33291c;
	--wbd-muted:        #ccc5b8;
	--wbd-muted-fg:     #7a6e60;
	--wbd-border:       #c8bfb0;
	--wbd-accent:       #c47a8a;
	--wbd-gold:         #c9a55a;
	--wbd-gold-light:   #d9b97a;
	--wbd-rose:         #c47a8a;

	--wbd-font-display: 'Playfair Display', serif;
	--wbd-font-body:    'Poppins', sans-serif;
	--wbd-shadow-soft:     0 4px 20px -4px rgba(42, 32, 24, 0.08);
	--wbd-shadow-elevated: 0 8px 40px -8px rgba(42, 32, 24, 0.15);
	--wbd-ease:         cubic-bezier(0.25, 0.4, 0.25, 1);
	--wbd-radius:       0;
}

/* --------------------------------------------------------------------------
   2. BASE RESET & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background-color: var(--wbd-background);
	color: var(--wbd-foreground);
	font-family: var(--wbd-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wbd-font-display);
	line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container-wide {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.hidden-mobile { display: none; }
@media (min-width: 768px) {
	.hidden-mobile { display: flex; }
	.show-mobile   { display: none !important; }
}

.wbd-text-primary { color: var(--wbd-primary); }
.wbd-section--cream { background-color: var(--wbd-secondary); }

.link-underline {
	position: relative;
}
.link-underline::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s var(--wbd-ease);
}
.link-underline:hover::after { transform: scaleX(1); }

.gradient-gold {
	background: linear-gradient(135deg, var(--wbd-gold), var(--wbd-rose));
}

/* --------------------------------------------------------------------------
   4. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.wbd-reveal-up,
.wbd-reveal-left,
.wbd-reveal-right,
.wbd-section-header {
	opacity: 0;
	transition: opacity 0.7s var(--wbd-ease), transform 0.7s var(--wbd-ease);
}

.wbd-reveal-up     { transform: translateY(40px); }
.wbd-reveal-left   { transform: translateX(-60px); }
.wbd-reveal-right  { transform: translateX(60px); }
.wbd-section-header { transform: translateY(30px); }

.wbd-reveal-up.is-visible,
.wbd-reveal-left.is-visible,
.wbd-reveal-right.is-visible,
.wbd-section-header.is-visible {
	opacity: 1;
	transform: none;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.wbd-animate-fadein  { animation: fadeIn  0.6s var(--wbd-ease) forwards; }
.wbd-animate-slideup { animation: slideUp 0.6s var(--wbd-ease) forwards; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.wbd-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 2.5rem;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: transform 0.2s var(--wbd-ease), opacity 0.2s var(--wbd-ease), background 0.2s;
	border-radius: var(--wbd-radius);
	cursor: pointer;
	border: none;
}
.wbd-btn:hover    { transform: scale(1.04); }
.wbd-btn:active   { transform: scale(0.97); }

.wbd-btn-primary {
	background-color: var(--wbd-primary);
	color: var(--wbd-primary-fg);
}
.wbd-btn-primary:hover { opacity: 0.9; }

.wbd-btn-secondary {
	background-color: var(--wbd-secondary);
	color: var(--wbd-secondary-fg);
}

.wbd-btn-ghost {
	background-color: rgba(255,255,255,0.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.2);
}
.wbd-btn-ghost:hover { background-color: rgba(255,255,255,0.2); }

.wbd-btn-outline {
	background-color: transparent;
	color: var(--wbd-foreground);
	border: 1px solid var(--wbd-border);
}
.wbd-btn-outline:hover { background-color: var(--wbd-secondary); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.wbd-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
	border-bottom: 1px solid transparent;
}

.wbd-header[data-scrolled="false"] {
	background-color: transparent;
}

.wbd-header[data-scrolled="true"],
.wbd-header.is-scrolled {
	background-color: rgba(247, 243, 238, 0.95);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--wbd-border);
	box-shadow: var(--wbd-shadow-soft);
}

.wbd-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}
@media (min-width: 1024px) { .wbd-nav { height: 5rem; } }

.wbd-logo-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
}

.wbd-logo-img {
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(201, 165, 90, 0.3);
	width: 0;
	height: 0;
	opacity: 0;
	transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.wbd-header.is-scrolled .wbd-logo-img { width: 36px; height: 36px; opacity: 1; }

.wbd-site-name {
	font-family: var(--wbd-font-display);
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	transition: color 0.3s;
}
@media (min-width: 1024px) { .wbd-site-name { font-size: 1.5rem; } }

.wbd-header[data-scrolled="false"] .wbd-site-name { color: #fff; }

.wbd-nav-links { gap: 2rem; }

.wbd-nav-btn {
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
	transition: color 0.3s, opacity 0.3s;
}
.wbd-nav-btn:hover { opacity: 0.6; }

.wbd-header[data-scrolled="false"] .wbd-nav-btn { color: rgba(255,255,255,0.9); }
.wbd-header[data-scrolled="false"] .wbd-nav-btn:hover { color: #fff; opacity: 1; }

/* Scrolled / non-home: consistent hover color */
.wbd-header[data-scrolled="true"] .wbd-nav-btn:hover,
.wbd-header.is-scrolled .wbd-nav-btn:hover,
body.wbd-no-hero .wbd-header .wbd-nav-btn:hover {
	color: var(--wbd-primary);
	opacity: 1;
}

.wbd-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.wbd-cart-btn {
	position: relative;
	padding: 0.5rem;
	transition: opacity 0.3s;
	color: inherit;
}
.wbd-cart-btn:hover { opacity: 0.6; }
.wbd-header[data-scrolled="false"] .wbd-cart-btn { color: #fff; }

.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 18px; height: 18px;
	background-color: var(--wbd-primary);
	color: var(--wbd-primary-fg);
	font-size: 10px;
	font-weight: 600;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Mobile Menu */
.wbd-mobile-menu-btn { padding: 0.5rem; color: inherit; transition: opacity 0.3s; }
.wbd-mobile-menu-btn:hover { opacity: 0.6; }
.wbd-header[data-scrolled="false"] .wbd-mobile-menu-btn { color: #fff; }

.wbd-icon-x { display: none; }
.wbd-mobile-menu-btn[aria-expanded="true"] .wbd-icon-menu { display: none; }
.wbd-mobile-menu-btn[aria-expanded="true"] .wbd-icon-x   { display: block; }

.wbd-mobile-nav {
	border-top: 1px solid var(--wbd-border);
}
.wbd-mobile-nav:not([hidden]) { animation: fadeIn 0.3s var(--wbd-ease); }
.wbd-mobile-nav-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 1rem 0;
}
.wbd-mobile-nav-inner .wbd-nav-btn {
	text-align: left;
	padding: 0.6rem 0;
	font-size: 0.875rem;
}

/* Header on pages without hero (e.g. product, checkout) */
body.wbd-no-hero .wbd-header {
	background-color: rgba(247, 243, 238, 0.95);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--wbd-border);
	box-shadow: var(--wbd-shadow-soft);
}
body.wbd-no-hero .wbd-header .wbd-logo-img { width: 36px; height: 36px; opacity: 1; }
body.wbd-no-hero .wbd-header .wbd-site-name,
body.wbd-no-hero .wbd-header .wbd-nav-btn,
body.wbd-no-hero .wbd-header .wbd-cart-btn,
body.wbd-no-hero .wbd-header .wbd-mobile-menu-btn { color: var(--wbd-foreground); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.wbd-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--wbd-foreground);
}

.wbd-hero-video-wrap {
	position: absolute;
	inset: 0;
	will-change: transform;
}
.wbd-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wbd-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--wbd-foreground);
	opacity: 0.6;
	pointer-events: none;
}

.wbd-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding-top: 5rem;
	padding-bottom: 5rem;
	will-change: transform, opacity;
}

.wbd-hero-logo {
	margin-bottom: 2rem;
	animation: scaleIn 1.2s 0.2s both;
}
.wbd-hero-logo img,
.wbd-hero-logo-img {
	width: 80px; height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(201,165,90,0.3);
	margin: 0 auto;
}
@media (min-width: 768px) {
	.wbd-hero-logo img,
	.wbd-hero-logo-img {
		width: 100px; height: 100px;
	}
}

.wbd-hero-tagline-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	animation: fadeIn 0.8s 0.5s both;
}
.wbd-hero-tagline {
	font-family: var(--wbd-font-body);
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wbd-primary);
	font-weight: 500;
}
.wbd-hero-line {
	height: 1px;
	background-color: rgba(201,165,90,0.6);
	width: 0;
	transition: width 0.8s 0.8s var(--wbd-ease);
	display: block;
}

.wbd-hero-headings { overflow: hidden; }
.wbd-hero-h1 {
	font-family: var(--wbd-font-display);
	font-size: clamp(2.5rem, 8vw, 5rem);
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.1;
	margin-bottom: 0.25rem;
	animation: slideUpFade 1s var(--wbd-ease) both;
}
.wbd-hero-h1:nth-child(2) { animation-delay: 0.15s; }

.wbd-hero-subtext {
	color: rgba(255,255,255,0.7);
	max-width: 560px;
	margin: 1.5rem auto 2.5rem;
	font-family: var(--wbd-font-body);
	font-size: 1rem;
	animation: slideUpFade 0.8s 1s both;
}

.wbd-hero-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	animation: fadeIn 0.7s 1.2s both;
}
@media (min-width: 640px) { .wbd-hero-buttons { flex-direction: row; } }

.wbd-hero-scroll-cue {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}
.wbd-hero-scroll-arrow {
	color: rgba(255,255,255,0.5);
	padding: 0.5rem;
	animation: bounce 2s ease-in-out infinite;
}
.wbd-hero-scroll-arrow:hover { color: #fff; }

@keyframes scaleIn     { from { opacity: 0; transform: scale(0.8) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes bounce      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   8. SECTIONS — SHARED
   -------------------------------------------------------------------------- */
.wbd-section { padding: 4rem 0; }
@media (min-width: 768px) { .wbd-section { padding: 6rem 0; } }

.wbd-eyebrow {
	display: block;
	font-family: var(--wbd-font-body);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wbd-muted-fg);
	margin-bottom: 0.5rem;
}

.wbd-section-heading {
	font-family: var(--wbd-font-display);
	font-size: clamp(1.75rem, 4vw, 3rem);
	margin-top: 0.25rem;
	margin-bottom: 1.5rem;
	line-height: 1.15;
}

.wbd-section-subtext {
	color: var(--wbd-muted-fg);
	font-family: var(--wbd-font-body);
	max-width: 480px;
	margin: 0 auto 2rem;
}

.wbd-section-header { text-align: center; }

/* --------------------------------------------------------------------------
   9. ABOUT SECTION
   -------------------------------------------------------------------------- */
.wbd-about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}
@media (min-width: 768px) { .wbd-about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.wbd-about-image-wrap {
	overflow: hidden;
	aspect-ratio: 3/4;
}
.wbd-about-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--wbd-ease);
}
.wbd-about-image-wrap:hover .wbd-about-img { transform: scale(1.03); }

.wbd-about-content { display: flex; flex-direction: column; justify-content: center; }
.wbd-about-text p  { color: var(--wbd-muted-fg); line-height: 1.75; margin-bottom: 1rem; }
.wbd-signature     { font-weight: 600; color: var(--wbd-foreground); font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   10. MEET THE MAKER SECTION
   -------------------------------------------------------------------------- */
.wbd-maker-inner {
	max-width: 48rem;
	margin: 0 auto;
	text-align: center;
}
.wbd-maker-text p { color: var(--wbd-muted-fg); line-height: 1.75; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   11. SHOP SECTION
   -------------------------------------------------------------------------- */
.wbd-shop { }

.wbd-category-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.wbd-cat-btn {
	padding: 0.625rem 1.25rem;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	background-color: var(--wbd-secondary);
	color: var(--wbd-secondary-fg);
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}
.wbd-cat-btn:hover  { background-color: var(--wbd-muted); transform: scale(1.04); }
.wbd-cat-btn.active { background-color: var(--wbd-primary); color: var(--wbd-primary-fg); }

/* Price Filter */
.wbd-price-filter-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.wbd-price-filter-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	background-color: var(--wbd-secondary);
	color: var(--wbd-secondary-fg);
	cursor: pointer;
	transition: background 0.2s;
}
.wbd-price-filter-toggle:hover { background-color: var(--wbd-muted); }

.wbd-chevron { transition: transform 0.3s var(--wbd-ease); }
.wbd-chevron.is-rotated { transform: rotate(180deg); }

.wbd-price-filter-panel[hidden] { display: none !important; }
.wbd-price-filter-panel {
	width: 100%;
	max-width: 320px;
	padding: 0.75rem 0 0.5rem;
	overflow: visible;
}

/* Single track, two thumbs (min/max on one line) */
.wbd-price-range-single {
	position: relative;
	width: 100%;
	min-height: 56px;
	overflow: visible;
}
.wbd-range-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 8px;
	margin-top: -2px;
	height: 4px;
	background: var(--wbd-muted);
	border-radius: 2px;
	pointer-events: none;
	z-index: 0;
}
.wbd-range-fill {
	position: absolute;
	top: 8px;
	margin-top: -2px;
	height: 4px;
	background: var(--wbd-primary);
	border-radius: 2px;
	pointer-events: none;
	left: 0;
	width: 50%;
	z-index: 1;
	filter: brightness(0.92);
}
.wbd-price-range-single .wbd-range {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 20px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border-radius: 0;
	outline: none;
	pointer-events: none;
}
.wbd-price-range-single .wbd-range-min { z-index: 3; pointer-events: auto; }
.wbd-price-range-single .wbd-range-max { z-index: 2; pointer-events: auto; }
.wbd-price-range-single .wbd-range::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border-radius: 2px;
}
.wbd-price-range-single .wbd-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wbd-primary);
	cursor: pointer;
	margin-top: -6px;
	pointer-events: auto;
}
.wbd-price-range-single .wbd-range::-moz-range-track {
	height: 4px;
	background: transparent;
	border-radius: 2px;
}
.wbd-price-range-single .wbd-range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wbd-primary);
	cursor: pointer;
	border: none;
}
.wbd-range-display {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--wbd-muted-fg);
	min-width: 100%;
	line-height: 1.2;
}
.wbd-range-display span {
	white-space: nowrap;
	min-width: 3.5em;
}

/* Product Grid — match React: 1 col mobile, 3 cols at md (768px) */
.wbd-product-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.wbd-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.wbd-product-card {
	display: block;
}
.wbd-card-link { display: block; color: inherit; text-decoration: none; }

.wbd-card-img-wrap {
	position: relative;
	aspect-ratio: 1/1;
	overflow: hidden;
	background-color: var(--wbd-secondary);
	margin-bottom: 1rem;
	transition: box-shadow 0.3s var(--wbd-ease), transform 0.3s var(--wbd-ease);
}
.wbd-product-card:hover .wbd-card-img-wrap {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px -12px rgba(42,32,24,0.15);
}

.wbd-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--wbd-ease);
}
.wbd-product-card:hover .wbd-card-img { transform: scale(1.08); }
.wbd-card-hover-overlay {
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background 0.5s;
}
.wbd-product-card:hover .wbd-card-hover-overlay { background: rgba(42,32,24,0.05); }

.wbd-sold-out-badge {
	position: absolute;
	top: 0.5rem; left: 0.5rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background-color: var(--wbd-foreground);
	color: var(--wbd-background);
}

.wbd-card-info { space-y: 4px; }
.wbd-card-name {
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.3s;
	margin-bottom: 0.25rem;
}
.wbd-product-card:hover .wbd-card-name { color: var(--wbd-primary); }

.wbd-card-price {
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
	font-weight: 600;
}
.wbd-card-price ins  { text-decoration: none; }
.wbd-card-price del  { opacity: 0.5; margin-right: 0.25rem; }

.wbd-card-stock-out { font-size: 0.75rem; color: var(--wbd-muted-fg); }

.wbd-card-atc-btn {
	display: none; /* hidden in grid; shown on hover */
	width: 100%;
	padding: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background-color: var(--wbd-foreground);
	color: var(--wbd-background);
	border: none;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-top: 0.5rem;
}
.wbd-card-atc-btn:hover { opacity: 0.8; }

.wbd-show-more-wrap { text-align: center; margin-top: 2.5rem; }
.wbd-no-products    { text-align: center; padding: 5rem 0; color: var(--wbd-muted-fg); }

/* --------------------------------------------------------------------------
   12. CTA SECTION
   -------------------------------------------------------------------------- */
.wbd-cta-block {
	background: linear-gradient(135deg, var(--wbd-gold), var(--wbd-rose));
	color: #fff;
	padding: 2rem;
	text-align: center;
	max-width: 42rem;
	margin: 0 auto;
	transition: transform 0.4s var(--wbd-ease);
}
@media (min-width: 768px) {
	.wbd-cta-block { padding: 3.5rem 2rem; }
}
.wbd-cta-block:hover { transform: scale(1.02); }

.wbd-cta-heading {
	font-family: var(--wbd-font-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-bottom: 1rem;
}
.wbd-cta-text {
	opacity: 0.9;
	margin-bottom: 2rem;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.wbd-contact-info-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 2rem;
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
}

.wbd-contact-info-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: transform 0.2s;
}
.wbd-contact-info-item:hover { transform: scale(1.04); }
.wbd-contact-info-item a:hover { color: var(--wbd-foreground); }

.wbd-contact-form { max-width: 40rem; margin: 0 auto; }

.wbd-form-row-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .wbd-form-row-2 { grid-template-columns: 1fr 1fr; } }

.wbd-form-group { display: flex; flex-direction: column; }
.wbd-form-group label {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--wbd-foreground);
}

.wbd-form-group input,
.wbd-form-group textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--wbd-background);
	border: 1px solid var(--wbd-border);
	font-size: 0.875rem;
	color: var(--wbd-foreground);
	outline: none;
	transition: box-shadow 0.3s, border-color 0.3s;
	border-radius: var(--wbd-radius);
}
.wbd-form-group input:focus,
.wbd-form-group textarea:focus {
	border-color: var(--wbd-primary);
	box-shadow: 0 0 0 3px rgba(201,165,90,0.15);
}
.wbd-form-group textarea { resize: none; }

.wbd-form-submit { text-align: center; margin-top: 1.5rem; }

/* Contact success state */
.wbd-contact-success { text-align: center; padding: 2.5rem 0; }
.wbd-success-icon {
	width: 4rem; height: 4rem;
	background-color: var(--wbd-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	color: #fff;
	animation: scaleIn 0.5s 0.2s both;
}
.wbd-contact-success-title { font-family: var(--wbd-font-display); font-size: 1.5rem; margin-bottom: 0.5rem; line-height: 1.2; }
.wbd-contact-success-text  { color: var(--wbd-muted-fg); }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.wbd-footer {
	border-top: 1px solid var(--wbd-border);
}
.wbd-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 3rem 0 2rem;
}
@media (min-width: 768px) {
	.wbd-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 4rem 0 3rem; }
}

.wbd-footer-logo {
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(201,165,90,0.3);
}
.wbd-footer-desc {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
	line-height: 1.6;
	max-width: 22rem;
}
.wbd-social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.wbd-social-link {
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
	transition: color 0.2s;
}
.wbd-social-link:hover { color: var(--wbd-foreground); }

.wbd-footer-col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.wbd-footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.wbd-footer-link { font-size: 0.875rem; color: var(--wbd-muted-fg); transition: color 0.2s; }
.wbd-footer-link:hover { color: var(--wbd-foreground); }

.wbd-footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.wbd-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
}
.wbd-footer-contact-item a:hover { color: var(--wbd-foreground); }

.wbd-footer-bottom {
	padding: 1.5rem 0;
	border-top: 1px solid var(--wbd-border);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	text-align: center;
}
@media (min-width: 640px) {
	.wbd-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.wbd-footer-copy, .wbd-footer-credit { font-size: 0.75rem; color: var(--wbd-muted-fg); }
.wbd-footer-credit:hover { color: var(--wbd-foreground); }

/* --------------------------------------------------------------------------
   15. CART DRAWER
   -------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: hsl(30 15% 15% / 0.2);
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: all;
}

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	width: min(100%, 28rem);
	height: 100%;
	background-color: var(--wbd-background);
	z-index: 201;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 40px -8px hsl(30 15% 15% / 0.15);
	transform: translateX(100%);
	transition: transform 0.4s var(--wbd-ease);
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

.wbd-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--wbd-border);
}
.wbd-cart-title {
	font-family: var(--wbd-font-display);
	font-size: 1.125rem;
	font-weight: 700;
}
.wbd-cart-close {
	padding: 0.25rem;
	transition: opacity 0.2s;
}
.wbd-cart-close:hover { opacity: 0.6; }

/* Empty state */
.wbd-cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
	gap: 1rem;
}
.wbd-cart-empty svg { color: var(--wbd-muted-fg); }
.wbd-cart-empty-text { color: var(--wbd-muted-fg); }

/* Cart items */
.wbd-cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.wbd-cart-item { display: flex; gap: 1rem; }
.wbd-cart-item-img-link { flex-shrink: 0; }
.wbd-cart-item-img-wrap { width: 80px; height: 96px; overflow: hidden; background-color: var(--wbd-secondary); }
.wbd-cart-item-img      { width: 100%; height: 100%; object-fit: cover; }

.wbd-cart-item-body { flex: 1; min-width: 0; }
.wbd-cart-item-name {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
	transition: opacity 0.2s;
}
.wbd-cart-item-name:hover { opacity: 0.7; }

.wbd-cart-item-variation { display: block; font-size: 0.75rem; color: var(--wbd-muted-fg); margin-top: 0.125rem; }
.wbd-cart-item-price { font-size: 0.875rem; color: var(--wbd-muted-fg); margin-top: 0.125rem; }

.wbd-cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.wbd-cart-qty-btn {
	padding: 0.25rem;
	background-color: transparent;
	color: inherit;
	border-radius: 4px;
	transition: background 0.15s;
}
.wbd-cart-qty-btn:hover { background-color: var(--wbd-secondary); }
.wbd-cart-item-qty { font-size: 0.875rem; min-width: 1.25rem; text-align: center; }
.wbd-cart-remove-btn {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--wbd-muted-fg);
	transition: color 0.2s;
}
.wbd-cart-remove-btn:hover { color: var(--wbd-foreground); }

/* Cart footer */
.wbd-cart-footer { padding: 1.5rem; border-top: 1px solid var(--wbd-border); display: flex; flex-direction: column; gap: 1rem; }
.wbd-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
}
.wbd-cart-subtotal-label { color: var(--wbd-muted-fg); }
.wbd-cart-subtotal-value { font-weight: 600; }
.wbd-cart-shipping-note  { font-size: 0.75rem; color: var(--wbd-muted-fg); }
.wbd-cart-checkout-btn   { width: 100%; justify-content: center; text-align: center; text-decoration: none; }

/* --------------------------------------------------------------------------
   16. SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */
.wbd-single-product-main { padding-top: 5rem; }
@media (min-width: 1024px) { .wbd-single-product-main { padding-top: 6rem; } }

.wbd-single-product-breadcrumb { padding: 1.5rem 0; }
.wbd-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--wbd-muted-fg);
	transition: color 0.2s;
	text-decoration: none;
}
.wbd-back-link:hover { color: var(--wbd-foreground); }

.wbd-single-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
}
@media (min-width: 1024px) { .wbd-single-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Gallery */
.wbd-product-main-img-wrap {
	aspect-ratio: 3/4;
	overflow: hidden;
	background-color: var(--wbd-secondary);
	margin-bottom: 1rem;
}
.wbd-product-main-img { width: 100%; height: 100%; object-fit: cover; }

.wbd-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.wbd-thumb-btn {
	aspect-ratio: 1/1;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s, opacity 0.2s;
	opacity: 0.6;
}
.wbd-thumb-btn:hover  { opacity: 1; }
.wbd-thumb-btn.is-active { border-color: var(--wbd-primary); opacity: 1; }
.wbd-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.wbd-product-info { padding-top: 1rem; }
@media (min-width: 1024px) { .wbd-product-info { padding-top: 2.5rem; } }

.wbd-product-category {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wbd-muted-fg);
}
.wbd-product-title {
	font-family: var(--wbd-font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0.5rem 0 1rem;
}
.wbd-product-price { font-size: 1.5rem; font-weight: 600; color: var(--wbd-primary); margin-bottom: 1.5rem; }
.wbd-product-price ins { text-decoration: none; }

.wbd-stock-badge {
	display: inline-block;
	padding: 0.25rem 0.875rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1.5rem;
}
.wbd-stock-in  { background-color: rgba(201,165,90,0.15); color: var(--wbd-primary); }
.wbd-stock-out { background-color: var(--wbd-foreground); color: var(--wbd-background); }

.wbd-product-description {
	color: var(--wbd-muted-fg);
	line-height: 1.75;
	margin-bottom: 2rem;
}
.wbd-product-description ul { list-style: disc; padding-left: 1.5rem; }
.wbd-product-description li { margin-bottom: 0.25rem; }

/* Variation Fields */
.wbd-variation-field { margin-bottom: 1.5rem; }
.wbd-variation-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.wbd-variation-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wbd-variation-btn {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border: 1px solid var(--wbd-border);
	background: transparent;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.wbd-variation-btn:hover { border-color: rgba(201,165,90,0.5); }
.wbd-variation-btn.is-selected { border-color: var(--wbd-primary); background-color: rgba(201,165,90,0.05); }

/* Quantity + ATC */
.wbd-qty-wrap { display: flex; gap: 1rem; margin-bottom: 2rem; }

.wbd-qty-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--wbd-border);
}
.wbd-qty-btn {
	padding: 0.75rem 1rem;
	background: transparent;
	transition: background 0.15s;
}
.wbd-qty-btn:hover { background-color: var(--wbd-secondary); }
.wbd-qty-display   { padding: 0.75rem 1rem; min-width: 3rem; text-align: center; }

.wbd-atc-btn { flex: 1; justify-content: center; }
.wbd-atc-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Details */
.wbd-product-details { border-top: 1px solid var(--wbd-border); padding-top: 2rem; }
.wbd-product-details h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.wbd-product-short-desc { color: var(--wbd-muted-fg); font-size: 0.875rem; line-height: 1.75; }
.wbd-product-short-desc ul { list-style: none; padding: 0; }
.wbd-product-short-desc li { display: flex; align-items: start; gap: 0.5rem; margin-bottom: 0.5rem; }
.wbd-product-short-desc li::before {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	border-radius: 50%;
	background-color: var(--wbd-primary);
	margin-top: 0.5rem;
	flex-shrink: 0;
}

/* Related Products */
.wbd-related-products { padding: 5rem 0; border-top: 1px solid var(--wbd-border); }
.wbd-related-title { font-family: var(--wbd-font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 2.5rem; }
.wbd-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (min-width: 1024px) { .wbd-related-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* --------------------------------------------------------------------------
   17. ARCHIVE / SHOP PAGE
   -------------------------------------------------------------------------- */
.wbd-archive-main { padding-top: 6rem; }
.wbd-archive-header { text-align: center; padding: 2rem 0; }
.wbd-archive-title { font-family: var(--wbd-font-display); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.wbd-archive-desc  { color: var(--wbd-muted-fg); margin: 0 auto; max-width: 40rem; }

.wbd-product-archive-section { padding-bottom: 4rem; }

/* Pagination */
.woocommerce-pagination {
	text-align: center;
	margin-top: 3rem;
}
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 0.5rem; }
.woocommerce-pagination li a,
.woocommerce-pagination li span {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
	border: 1px solid var(--wbd-border);
	transition: background 0.2s;
}
.woocommerce-pagination li.active span,
.woocommerce-pagination li a:hover { background-color: var(--wbd-primary); color: #fff; border-color: var(--wbd-primary); }

/* --------------------------------------------------------------------------
   18. CHECKOUT PAGE
   -------------------------------------------------------------------------- */
.wbd-checkout-main { padding-top: 6rem; min-height: 100vh; }
.wbd-checkout-empty {
	text-align: center;
	max-width: 32rem;
	margin: 0 auto;
	padding: 5rem 0;
}
.wbd-checkout-empty svg { color: var(--wbd-muted-fg); margin: 0 auto 1.5rem; }
.wbd-checkout-empty h1 { font-family: var(--wbd-font-display); font-size: 1.75rem; margin-bottom: 0.75rem; }
.wbd-checkout-empty p  { color: var(--wbd-muted-fg); margin-bottom: 2rem; }

.wbd-checkout-title { font-family: var(--wbd-font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; padding-top: 2.5rem; }
@media (min-width: 1024px) { .wbd-checkout-title { padding-top: 1.5rem; } }

.wbd-checkout-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding-bottom: 5rem;
}
/* Mobile: form first, order second. Desktop: order first, form second. */
.checkout-col-form { order: 1; }
.checkout-col-order { order: 2; }
@media (min-width: 1024px) {
	.wbd-checkout-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.checkout-col-form { order: 2; }
	.checkout-col-order { order: 1; }
}

.wbd-checkout-section-title { font-family: var(--wbd-font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Order Summary */
.wbd-checkout-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }

.wbd-co-item { display: flex; align-items: center; gap: 1rem; }
.wbd-co-item-img-wrap { width: 72px; height: 88px; overflow: hidden; background-color: var(--wbd-secondary); flex-shrink: 0; }
.wbd-co-item-img      { width: 100%; height: 100%; object-fit: cover; }
.wbd-co-item-info     { flex: 1; min-width: 0; }
.wbd-co-item-name     { display: block; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbd-co-item-qty      { display: block; font-size: 0.75rem; color: var(--wbd-muted-fg); margin-top: 0.125rem; }
.wbd-co-item-price    { font-size: 0.875rem; font-weight: 600; flex-shrink: 0; }

.wbd-co-subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	padding: 1rem 0;
	border-top: 1px solid var(--wbd-border);
	margin-bottom: 0.5rem;
}

/* WC review table */
.wbd-review-table { width: 100%; border-collapse: collapse; }
.wbd-review-table tfoot tr th,
.wbd-review-table tfoot tr td { padding: 0.5rem 0; font-size: 0.875rem; border-top: 1px solid var(--wbd-border); }
.wbd-review-table tfoot tr th { color: var(--wbd-muted-fg); font-weight: 400; text-align: left; }
.wbd-review-table tfoot tr td { text-align: right; }
.wbd-order-total th, .wbd-order-total td { font-weight: 700; font-size: 1rem; }
.checkout-review-table tfoot tr:empty { display: none; }

/* Payment */
.woocommerce-checkout-payment {
	margin-top: 1.5rem;
}
.wc_payment_methods { list-style: none; }
.wc_payment_methods .wc_payment_method {
	padding: 0.75rem 0;
	border-top: 1px solid var(--wbd-border);
}
.wc_payment_methods .wc_payment_method label { font-weight: 500; cursor: pointer; }
.payment_box { padding: 0.75rem; background-color: var(--wbd-secondary); margin-top: 0.5rem; font-size: 0.875rem; overflow-x: hidden; }

.form-row.place-order { margin-top: 1.5rem; }
.wbd-place-order-btn  { width: 100%; justify-content: center; }

/* Place order button - alta especificidad para sobrevivir a Stripe/updated_checkout */
#payment .form-row.place-order #place_order,
.woocommerce-checkout-payment .form-row.place-order button[type="submit"][name="woocommerce_checkout_place_order"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 2.5rem;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	background-color: var(--wbd-primary) !important;
	color: var(--wbd-primary-fg) !important;
	border: none;
	border-radius: var(--wbd-radius);
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s var(--wbd-ease);
	-webkit-appearance: none;
	appearance: none;
}
#payment .form-row.place-order #place_order:hover,
.woocommerce-checkout-payment .form-row.place-order button[type="submit"][name="woocommerce_checkout_place_order"]:hover {
	opacity: 0.9;
}

/* Checkout Fields */
.wbd-checkout-field-section { margin-bottom: 2rem; }
.wbd-checkout-fields { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.wbd-field-full  { grid-column: 1 / -1; }
.wbd-field-half  { }
.wbd-field-third { }

/* First/last name: full width in same row (50% each at 640px+) */
@media (min-width: 640px) {
	.wbd-checkout-fields { grid-template-columns: 1fr 1fr; }
	.wbd-checkout-fields .form-row.wbd-field-half { grid-column: span 1; }
	.wbd-field-third { grid-column: span 1; }
}
@media (min-width: 768px) {
	.wbd-checkout-fields { grid-template-columns: 1fr 1fr 1fr; }
}

/* Contact section: first+last name siempre en 2 columnas */
@media (min-width: 480px) {
	.wbd-checkout-fields--two-cols {
		grid-template-columns: 1fr 1fr !important;
	}
	.wbd-checkout-fields--two-cols .form-row.wbd-field-half {
		grid-column: span 1;
	}
	.wbd-checkout-fields--two-cols .form-row.wbd-field-full {
		grid-column: 1 / -1;
	}
}

/* WooCommerce form fields inside checkout */
.woocommerce-checkout .form-row { margin: 0; padding: 0; }
.woocommerce-checkout .form-row label { display: none; }
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--wbd-background);
	border: 1px solid var(--wbd-border);
	font-size: 0.875rem;
	color: var(--wbd-foreground);
	font-family: var(--wbd-font-body);
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s;
	border-radius: var(--wbd-radius);
	-webkit-appearance: none;
	appearance: none;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
	border-color: var(--wbd-primary);
	box-shadow: 0 0 0 3px rgba(201,165,90,0.15);
}

/* Hidden billing fields */
.wbd-hidden-billing { display: none !important; visibility: hidden !important; }

/* Select2 override */
.select2-container        { width: 100% !important; }
.select2-dropdown         { max-width: min(100%, calc(100vw - 2rem)) !important; border: 1px solid var(--wbd-border); background: var(--wbd-background); }
.select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wbd-foreground) !important; }
.select2-results__option  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.select2-container--default .select2-selection--single { background: var(--wbd-background); border: 1px solid var(--wbd-border); height: auto; padding: 0.75rem 1rem; border-radius: var(--wbd-radius); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; right: 0.75rem; }

/* Prevent horizontal scroll when Select2 dropdown is open */
body.woocommerce-checkout:has(.select2-container--open) { overflow-x: hidden; }

/* Checkout columns overflow prevention */
.checkout-col-order,
.checkout-col-form { min-width: 0; }

/* Checkout notices wrapper (login, coupon forms) */
.wbd-checkout-notices {
	margin-bottom: 1.5rem;
}
.wbd-checkout-notices .woocommerce-info,
.wbd-checkout-notices .woocommerce-message,
.wbd-checkout-notices .woocommerce-error,
.wbd-checkout-notices form {
	max-width: 100%;
}

/* Hide WooCommerce "added to cart" notices (theme uses drawer) */
.woocommerce-notices-wrapper { display: none !important; }

/* WooCommerce notices */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	border-left: 4px solid var(--wbd-primary);
	background-color: var(--wbd-secondary);
}
.woocommerce-error { border-left-color: #e53e3e; }

/* --------------------------------------------------------------------------
   17c. THANK YOU PAGE (order-received)
   -------------------------------------------------------------------------- */
.wbd-thankyou-main {
	padding-top: 6rem;
	padding-bottom: 5rem;
	min-height: 60vh;
}
.wbd-thankyou-wrap {
	max-width: 720px;
	margin: 0 auto;
}

/* Success header */
.wbd-thankyou-success {
	text-align: center;
	margin-bottom: 2.5rem;
}
.wbd-thankyou-icon {
	width: 4rem;
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wbd-primary);
	color: var(--wbd-primary-fg);
	margin: 0 auto 1.5rem;
}
.wbd-thankyou-icon svg {
	width: 2rem;
	height: 2rem;
}
.wbd-thankyou-title {
	font-family: var(--wbd-font-display);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--wbd-foreground);
}
.wbd-thankyou-message {
	font-family: var(--wbd-font-body);
	font-size: 1rem;
	color: var(--wbd-muted-fg);
}

/* Order overview list */
.wbd-order-overview,
.woocommerce-order-received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	background-color: var(--wbd-secondary);
	border: 1px solid var(--wbd-border);
}
.wbd-order-overview li,
.wbd-thankyou-main .woocommerce-order-overview li {
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	color: var(--wbd-foreground);
}
.wbd-order-overview li strong,
.wbd-thankyou-main .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
}

/* Order details table */
.wbd-order-details,
.wbd-thankyou-main .woocommerce-order-details {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wbd-border);
}
.wbd-order-details-title,
.wbd-thankyou-main .woocommerce-order-details__title {
	font-family: var(--wbd-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--wbd-foreground);
}
.wbd-order-details-table,
.wbd-thankyou-main .woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
}
.wbd-thankyou-main .woocommerce-table--order-details th,
.wbd-thankyou-main .woocommerce-table--order-details td {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--wbd-border);
	color: var(--wbd-foreground);
}
.wbd-thankyou-main .woocommerce-table--order-details th {
	text-align: left;
	font-weight: 500;
	color: var(--wbd-muted-fg);
}
.wbd-thankyou-main .woocommerce-table--order-details tfoot th,
.wbd-thankyou-main .woocommerce-table--order-details tfoot td {
	border-top: 1px solid var(--wbd-border);
}
.wbd-thankyou-main .woocommerce-table--order-details .order-total th,
.wbd-thankyou-main .woocommerce-table--order-details .order-total td {
	font-weight: 700;
	font-size: 1rem;
}

/* Order actions buttons */
.wbd-thankyou-main .order-actions-button,
.wbd-thankyou-main .woocommerce-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	margin-right: 0.5rem;
	margin-top: 0.5rem;
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	background-color: transparent;
	color: var(--wbd-foreground);
	border: 1px solid var(--wbd-border);
	border-radius: var(--wbd-radius);
	text-decoration: none;
	transition: opacity 0.2s, background 0.2s;
}
.wbd-thankyou-main .order-actions-button:hover,
.wbd-thankyou-main .woocommerce-button:hover {
	background-color: var(--wbd-secondary);
}
.wbd-thankyou-main .order-actions-button.wbd-btn-primary,
.wbd-thankyou-main a.wbd-btn.wbd-btn-primary {
	background-color: var(--wbd-primary);
	color: var(--wbd-primary-fg);
	border-color: var(--wbd-primary);
}
.wbd-thankyou-main .order-actions-button.wbd-btn-primary:hover,
.wbd-thankyou-main a.wbd-btn.wbd-btn-primary:hover {
	opacity: 0.9;
}

/* Customer details */
.wbd-thankyou-main .woocommerce-customer-details {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wbd-border);
}
.wbd-thankyou-main .woocommerce-column__title {
	font-family: var(--wbd-font-display);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--wbd-foreground);
}
.wbd-thankyou-main .woocommerce-customer-details address {
	font-family: var(--wbd-font-body);
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.6;
	color: var(--wbd-muted-fg);
}

/* Failed order state */
.wbd-thankyou-failed {
	text-align: center;
	padding: 2rem;
}
.wbd-thankyou-failed .woocommerce-notice--error {
	margin-bottom: 1rem;
}
.wbd-thankyou-failed .woocommerce-thankyou-order-failed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}
.wbd-thankyou-failed .wbd-btn { margin: 0.25rem; }

/* --------------------------------------------------------------------------
   18b. 404 PAGE
   -------------------------------------------------------------------------- */
.wbd-404-main {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wbd-muted);
	padding-top: 5rem;
}
.wbd-404-wrap {
	width: 100%;
	padding: 2rem;
}
.wbd-404-content {
	text-align: center;
}
.wbd-404-title {
	font-family: var(--wbd-font-display);
	font-size: 2.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.wbd-404-text {
	font-family: var(--wbd-font-body);
	font-size: 1.25rem;
	color: var(--wbd-muted-fg);
	margin-bottom: 1rem;
}
.wbd-404-link {
	color: var(--wbd-primary);
	text-decoration: underline;
	transition: opacity 0.2s;
}
.wbd-404-link:hover { opacity: 0.9; }

/* --------------------------------------------------------------------------
   19. PAGE TEMPLATE (page.php)
   -------------------------------------------------------------------------- */
.wbd-page-main      { padding-top: 6rem; min-height: 60vh; }
.wbd-page-container { padding-top: 2rem; padding-bottom: 4rem; }
.wbd-page-content   { font-family: var(--wbd-font-body); }
.wbd-page-content p { margin-bottom: 1rem; }
.wbd-page-content h1, .wbd-page-content h2, .wbd-page-content h3 { margin: 1.5rem 0 0.75rem; }

/* --------------------------------------------------------------------------
   20. WOOCOMMERCE GENERAL OVERRIDES
   -------------------------------------------------------------------------- */
.woocommerce-breadcrumb { font-size: 0.875rem; color: var(--wbd-muted-fg); margin-bottom: 1rem; }
.woocommerce-loop-product__link { text-decoration: none; }
.product_type_simple.add_to_cart_button,
.add_to_cart_button {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	background-color: var(--wbd-primary);
	color: var(--wbd-primary-fg);
	transition: opacity 0.2s;
}
.add_to_cart_button:hover { opacity: 0.85; }
.added_to_cart { display: none; }

/* Loading state */
.wbd-cart-btn.loading,
.single_add_to_cart_button.loading { opacity: 0.7; }

/* WooCommerce shipping methods */
.woocommerce-shipping-methods { list-style: none; }
.woocommerce-shipping-methods li { padding: 0.4rem 0; }
.woocommerce-shipping-methods input[type="radio"] { margin-right: 0.5rem; }

/* --------------------------------------------------------------------------
   21. STRIPE OVERFLOW FIX
   -------------------------------------------------------------------------- */
.payment_method_stripe .payment_box,
.wc-upe-form { overflow-x: hidden; }

/* --------------------------------------------------------------------------
   22. ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--wbd-primary); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
