/* =========================================================
   Ghostly Goods Company — theme.css
   Theme by The Free Website Guys.
   ========================================================= */

:root {
	--background: #fbf2fd;
	--foreground: #3c1f51;
	--card: #ffffff;
	--primary: #e4258e;
	--primary-foreground: #fefbfe;
	--secondary: #f5e5fa;
	--secondary-foreground: #45235c;
	--muted: #f0e7f8;
	--muted-foreground: #775a8c;
	--accent: #a496e9;
	--border: #e3cbeb;
	--ghost: #fefbfe;
	--lavender: #c79df1;
	--sparkle: #e7409c;
	--midnight: #3c1f51;

	--font-display: 'Cormorant Garamond', serif;
	--font-body: 'Quicksand', sans-serif;

	--radius: 0.75rem;
	--card-radius: 1rem;
	--shadow-soft: 0 4px 24px -6px rgba(140, 90, 160, 0.22);
	--shadow-elevated: 0 12px 48px -10px rgba(140, 90, 160, 0.28);
	--shadow-glow: 0 0 40px rgba(231, 64, 156, 0.4);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--logo-height: 70px;
	--logo-height-lg: 90px;
	--header-height: 96px;

	--btn-radius: calc(var(--radius) - 2px);
	--btn-height: 44px;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;
	--color-primary: var(--primary);
	--color-button-text: var(--primary-foreground);
	--color-surface: var(--secondary);
	--section-padding: 5rem 0;
	--checkout-gap: 2rem;
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	background: var(--background);
	color: var(--foreground);
	background-image:
		radial-gradient(ellipse at top, rgba(230, 190, 240, 0.55), transparent 60%),
		radial-gradient(ellipse at bottom, rgba(200, 180, 235, 0.5), transparent 60%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.about-img):not(.theme-media-preview):not(.theme-product-main-image img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .about-img,
.theme-product-main-image img {
	position: absolute; inset: 0;
	width: 100%; height: 100% !important;
	object-fit: cover;
}
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .attachment-theme-product {
	height: 100% !important;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; font-size: inherit; margin: 0; }
.font-display { font-family: var(--font-display); font-weight: 500; }
.font-body { font-family: var(--font-body); font-weight: 400; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; left: -9999px; }

.container-wide { width: 100%; max-width: 80rem; 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; } }
.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
.scroll-mt { scroll-margin-top: 6rem; }

/* ---------------- Reveal animations (Section 2.1) ---------------- */
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item.fade-in-item { transform: none; }
.reveal-item.fade-in-item.is-visible { transform: none; }
.reveal-item.scale-in-item { transform: scale(0.92) translateY(12px); }
.reveal-item.scale-in-item.is-visible { transform: scale(1) translateY(0); }

body.is-customizer .reveal-item,
body.is-customizer .reveal-item.scale-in-item,
body.is-customizer .reveal-item.fade-in-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item { opacity: 1; transform: none; transition: none; }
	.hero-twinkle, .animate-twinkle { animation: none !important; }
}

@keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

/* ---------------- Buttons ---------------- */
.btn-hero-primary, .btn-hero-outline, .btn-primary, .btn-outline, .btn-outline-lg, .btn-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	height: var(--btn-height); padding: var(--btn-padding);
	border-radius: var(--btn-radius); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
	text-transform: none; border: none; transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}
.btn-hero-primary, .btn-hero-outline { height: 48px; padding: 0 2rem; }
.btn-hero-primary, .btn-primary, .btn-cta { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-hero-primary:hover, .btn-primary:hover, .btn-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-hero-outline, .btn-outline, .btn-outline-lg {
	background: rgba(255, 255, 255, 0.1); color: var(--ghost); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px);
}
.btn-outline, .btn-outline-lg { background: transparent; color: var(--foreground); border-color: var(--border); backdrop-filter: none; }
.btn-outline-lg { height: 48px; padding: 0 2.5rem; }
.btn-hero-outline:hover { background: rgba(254, 251, 254, 0.25); color: var(--ghost); }
.btn-outline:hover, .btn-outline-lg:hover { background: var(--secondary); }
.btn-cta { background: var(--sparkle); color: var(--ghost); height: 48px; padding: 0 2rem; }

/* ---------------- Header ---------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
	background: transparent; border-bottom: 1px solid transparent; color: var(--ghost);
	text-shadow: 0 1px 8px rgba(40, 10, 55, 0.6);
}
.site-header.is-solid {
	background: rgba(251, 242, 253, 0.85); backdrop-filter: blur(12px);
	border-bottom-color: var(--border); color: var(--foreground); text-shadow: none;
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
@media (min-width: 1024px) { .site-nav { height: 96px; } }
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-branding--image .site-logo-text { display: none !important; }
.site-branding--text .site-logo-img { display: none !important; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; filter: none; transition: filter 0.3s ease; }
@media (min-width: 1024px) { .site-logo-img { height: var(--logo-height-lg) !important; } }
.site-header:not(.is-solid) .site-logo-img { filter: brightness(0) invert(1); }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: inherit; }
.site-brand-italic { font-style: italic; color: var(--sparkle); }
.site-header:not(.is-solid) .site-brand-italic { color: rgba(255, 255, 255, 0.95); }
.site-footer .site-logo-text { font-size: 1.125rem; }

.site-nav-links { display: none; }
@media (min-width: 768px) { .site-nav-links { display: flex; align-items: center; gap: 2rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list a { font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; letter-spacing: 0.025em; position: relative; }
.theme-nav-list a::after {
	content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-btn, .theme-mobile-toggle { transition: opacity 0.2s ease; }
.theme-cart-btn:hover, .theme-mobile-toggle:hover { opacity: 0.6; }
.theme-cart-btn { position: relative; padding: 0.5rem; background: none; border: none; color: inherit; display: flex; }
.theme-cart-btn svg { width: 20px; height: 20px; }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 3px;
	display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500;
	background: var(--primary); color: var(--primary-foreground); border-radius: 50%;
}
.theme-cart-count:empty { display: none; }
.theme-mobile-toggle { display: flex; padding: 0.5rem; background: none; border: none; color: inherit; position: relative; }
.theme-mobile-toggle svg { width: 20px; height: 20px; }
.theme-mobile-toggle .theme-icon-x { display: none; }
.theme-mobile-toggle.is-open .theme-icon-menu { display: none; }
.theme-mobile-toggle.is-open .theme-icon-x { display: block; }
@media (min-width: 768px) { .theme-mobile-toggle { display: none; } }

/* ---------------- Scroll progress ---------------- */
.theme-scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 2px;
	background: var(--primary); transform-origin: left; transform: scaleX(0);
	z-index: 60; pointer-events: none;
}

.theme-mobile-menu { display: none; border-top: 1px solid var(--border); padding: 1rem 0; }
.theme-mobile-menu.is-open { display: block; }
.theme-mobile-menu .theme-nav-list { flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 768px) { .theme-mobile-menu { display: none !important; } }

/* ---------------- Hero ---------------- */
.hero-section {
	position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; justify-content: center;
	background: #e2c4ef;
}
body.theme-no-hero .site-main, body:not(.theme-no-hero) .hero-section + section { padding-top: 0; }
.hero-bg-wrap { position: absolute; inset: 0; }
.hero-bg-media { will-change: transform; }
.hero-bg-img--fallback { display: none; }
.hero-bg-video:not([hidden]) + .hero-bg-img--fallback { display: none; }
.hero-bg-video[hidden] + .hero-bg-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-video:not([hidden]) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
	.hero-bg-video { display: none !important; }
	.hero-bg-img { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.hero-wash { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: rgba(230, 190, 240, 0.4); }
.hero-wash::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(235, 210, 245, 0.35), transparent, rgba(190, 165, 225, 0.45));
}
.hero-scrim {
	position: absolute; inset: 0; z-index: 4; pointer-events: none;
	background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(45, 20, 65, 0.55), rgba(50, 25, 70, 0.25) 55%, transparent 75%);
}
.hero-twinkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-twinkle { position: absolute; color: rgba(231, 64, 156, 0.7); animation: twinkle 2.4s ease-in-out infinite; }
.hero-twinkle svg { width: 100%; height: 100%; }

.hero-content {
	position: relative; z-index: 10; text-align: center;
	padding-top: 5rem; padding-bottom: 5rem;
	padding-left: 1.5rem; padding-right: 1.5rem;
	will-change: transform;
}
@media (min-width: 1024px) {
	.hero-content { padding-left: 2rem; padding-right: 2rem; }
}
.hero-title { font-family: var(--font-display); font-size: 3rem; line-height: 1.1; font-weight: 500; color: var(--ghost); margin-bottom: 1.5rem; letter-spacing: -0.01em; filter: drop-shadow(0 2px 24px rgba(40,10,55,0.85)); }
.hero-title-italic { font-style: italic; color: var(--sparkle); }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-subtitle { max-width: 36rem; margin: 0 auto 2.5rem; font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--ghost); opacity: 0.95; filter: drop-shadow(0 1px 12px rgba(40,10,55,0.75)); }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-scroll-cue { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 10; animation: heroBounce 2.4s ease-in-out infinite; }
.hero-scroll-cue a { display: block; padding: 0.5rem; color: rgba(60, 31, 81, 0.7); }
@keyframes heroBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------------- Section headings ---------------- */
.eyebrow, .hero-eyebrow {
	display: inline-block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 400;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground);
}
.hero-eyebrow { letter-spacing: 0.3em; color: var(--ghost); opacity: 0.9; margin-bottom: 1rem; filter: drop-shadow(0 1px 8px rgba(40,10,55,0.7)); }
.section-header { text-align: center; margin-bottom: 3rem; }
.about-section .section-heading { font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; margin-top: 0.5rem; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 2.25rem; } }
.findme-section .section-heading, .shop-heading, .faq-section .section-heading {
	font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; margin-top: 0.5rem;
}
@media (min-width: 768px) { .findme-section .section-heading, .shop-heading, .faq-section .section-heading { font-size: 3rem; } }

/* ---------------- About ---------------- */
.about-section { background: rgba(245, 229, 250, 0.4); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-image-wrap { position: relative; aspect-ratio: 1 / 1; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.about-paragraphs { display: flex; flex-direction: column; gap: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.about-instagram-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--sparkle); }
.about-instagram-link:hover { color: var(--primary); }

/* ---------------- Find Me IRL ---------------- */
.findme-inner { max-width: 64rem; margin: 0 auto; }
.findme-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .findme-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.findme-card { position: relative; overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--border); background: rgba(251, 242, 253, 0.6); backdrop-filter: blur(4px); padding: 2rem; box-shadow: var(--shadow-soft); min-width: 0; }
@media (min-width: 768px) { .findme-card { padding: 2.5rem; } }
.findme-card-icon { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.findme-card-icon > svg:first-child { width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: 50%; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.findme-card-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); }
.findme-card h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .findme-card h3 { font-size: 1.75rem; } }
.findme-card p { color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1rem; }
.findme-meta { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; }
.findme-meta span { display: flex; align-items: center; gap: 0.5rem; }
.findme-meta svg { color: var(--sparkle); width: 1rem; height: 1rem; flex-shrink: 0; }
.findme-card address { font-style: normal; font-size: 0.875rem; line-height: 1.6; overflow-wrap: break-word; }

/* ---------------- Shop ---------------- */
.shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.625rem 1.25rem; font-size: 0.875rem; border-radius: 9999px; border: none;
	background: var(--secondary); color: var(--secondary-foreground); transition: background-color 0.3s ease, transform 0.15s ease;
}
.theme-cat-filter:hover { background: var(--muted); transform: scale(1.05); }
.theme-cat-filter.is-active { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.shop-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-price-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 9999px; border: none; background: var(--secondary); color: var(--secondary-foreground); }
.shop-price-toggle:hover { background: var(--muted); }
.shop-price-range-preview { font-size: 0.75rem; opacity: 0.7; }
.shop-price-range-preview[hidden] { display: none; }
.shop-price-toggle svg { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.shop-price-toggle.is-open svg { transform: rotate(180deg); }
.shop-price-panel { width: 100%; max-width: 22rem; padding: 0.5rem 0; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted-foreground); }

.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.75rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 9999px; }
.range-track-bg { left: 0; right: 0; background: var(--border); }
.range-track-fill { background: var(--primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--background); border: 2px solid var(--primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--background); border: 2px solid var(--primary); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-product-grid {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.theme-product-grid.is-compact-1 { grid-template-columns: 1fr; max-width: 24rem; margin-left: auto; margin-right: auto; }
.theme-product-grid.is-compact-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; margin-left: auto; margin-right: auto; }
.related-products-section .theme-product-grid,
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
	.related-products-section .theme-product-grid,
	.theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.theme-product-card-wrap { display: flex; }
.theme-product-card {
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
	border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1rem; background: var(--card);
	transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.theme-product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(60, 31, 81, 0.18); }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link):not(.theme-card-add-btn) { pointer-events: none; }
.theme-product-card.is-sold-out .product-card-img { opacity: 0.6; }
.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 1 / 1; background: var(--secondary); border-radius: calc(var(--card-radius) - 0.25rem);
	overflow: hidden; margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .attachment-theme-product,
.theme-product-card__image-wrapper .woocommerce-placeholder.wp-post-image {
	width: 100%; height: 100% !important; object-fit: cover;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.08); }
.theme-product-card__image-wrapper img { transition: transform 0.9s var(--transition-smooth); }
.theme-card-add-btn {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 4; width: 2.5rem; height: 2.5rem;
	border-radius: 50%; background: var(--primary); color: var(--primary-foreground);
	display: flex !important; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
	opacity: 1; pointer-events: auto; transition: opacity 0.3s ease, transform 0.2s ease;
}
@media (min-width: 768px) {
	.theme-card-add-btn { opacity: 0; transform: translateY(4px); }
	.theme-product-card:hover .theme-card-add-btn { opacity: 1; transform: translateY(0); }
}
.theme-card-add-btn:hover { transform: scale(1.12); opacity: 1; }
.theme-card-view-btn:hover { transform: scale(1.12); opacity: 1; }
.theme-card-add-btn svg { width: 1rem; height: 1rem; }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.25rem 0.25rem; min-width: 0; }
.theme-product-card__title { font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: opacity 0.2s ease; }
.theme-product-card:hover .theme-product-card__title { opacity: 0.7; }
.theme-product-card__price { font-size: 0.875rem; color: var(--muted-foreground); }

.sold-out-badge, .new-badge, .one-of-a-kind-badge, .multiple-colors-badge {
	position: absolute; padding: 0.25rem 0.5rem; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 9999px; z-index: 3;
}
@media (min-width: 768px) { .sold-out-badge, .new-badge, .one-of-a-kind-badge, .multiple-colors-badge { padding: 0.375rem 0.75rem; font-size: 12px; } }
.sold-out-badge { top: 0.5rem; left: 0.5rem; background: var(--midnight); color: var(--ghost); }
.new-badge { top: 0.5rem; right: 0.5rem; background: var(--sparkle); color: var(--midnight); }
.multiple-colors-badge { top: 0.5rem; right: 0.5rem; background: var(--lavender); color: var(--midnight); }
.multiple-colors-badge.has-new { top: 2.25rem; }
@media (min-width: 768px) { .multiple-colors-badge.has-new { top: 3rem; } }
.one-of-a-kind-badge { bottom: 0.5rem; left: 0.5rem; padding: 0.125rem 0.375rem; font-size: 8px; background: var(--lavender); color: var(--midnight); }
@media (min-width: 768px) { .one-of-a-kind-badge { padding: 0.25rem 0.5rem; font-size: 10px; } }

.shop-load-more-wrap { text-align: center; margin-top: 2.5rem; }
.shop-empty-state { text-align: center; padding: 5rem 0; color: var(--muted-foreground); }

/* ---------------- FAQ ---------------- */
.faq-section { background: rgba(245, 229, 250, 0.4); }
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: rgba(251, 242, 253, 0.6); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; backdrop-filter: blur(4px); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; text-align: left; background: none; border: none; }
.faq-question:hover { background: rgba(245, 229, 250, 0.4); }
.faq-question span:first-child { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.faq-icon { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; position: relative; }
.faq-icon-plus, .faq-icon-minus { position: absolute; display: flex; }
.faq-icon-minus { display: none; }
[aria-expanded="true"] .faq-icon-plus { display: none; }
[aria-expanded="true"] .faq-icon-minus { display: flex; }
.faq-answer { overflow: hidden; transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-answer.is-collapsed { height: 0 !important; opacity: 0; }
.faq-answer p { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--border); box-shadow: var(--shadow-elevated); background: #f6dce8; color: var(--midnight); }
.cta-band { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr 1fr; } }
.cta-band__copy { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
@media (min-width: 768px) { .cta-band__copy { padding: 4rem; } }
.cta-band__title { font-size: 1.875rem; font-weight: 500; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-band__title { font-size: 2.25rem; } }
.cta-band__copy p { color: color-mix(in srgb, var(--midnight) 75%, transparent); margin-bottom: 2rem; max-width: 28rem; line-height: 1.6; }
.cta-band__media { position: relative; min-height: 280px; }
.cta-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .cta-band__media { min-height: 0; } }
.cta-band__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--midnight) 40%, transparent); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(245, 229, 250, 0.4); }
.site-footer__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.site-footer__brand { grid-column: span 1; }
@media (min-width: 768px) { .site-footer__brand { grid-column: span 2; } }
.site-footer__brand .site-branding { align-items: center; }
.footer-brand-text { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.02em; }
.footer-brand-italic { font-style: italic; color: var(--sparkle); }
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.footer-social-btn { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); transition: background-color 0.2s ease, color 0.2s ease; }
.footer-social-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.site-footer__col h4 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__col li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); min-width: 0; }
.site-footer__col li svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.site-footer__col a:hover { color: var(--foreground); }
.site-footer__bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy, .footer-credit { font-size: 0.75rem; color: var(--muted-foreground); }
.footer-credit a:hover { color: var(--sparkle); text-decoration: underline; }

/* ---------------- Not found / generic pages ---------------- */
body.theme-no-hero main { padding-top: var(--header-height); }
body.error404 .not-found-section {
	min-height: calc(100vh - var(--header-height));
	background: var(--muted);
	padding: 3rem 0;
}
.not-found-section { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.not-found-section h1 { font-size: 2.25rem; font-weight: 700; font-family: var(--font-body); }
.not-found-section p { font-size: 1.25rem; color: var(--muted-foreground); }
.not-found-link { color: var(--primary); text-decoration: underline; }
.not-found-link:hover { color: color-mix(in srgb, var(--primary) 90%, transparent); }
.site-page-container {
	padding-top: 3rem; padding-bottom: 5rem;
	padding-left: 1.5rem; padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.site-page-container { padding-left: 2rem; padding-right: 2rem; }
}
.page-title { font-size: 2.25rem; font-weight: 500; margin-bottom: 1.5rem; }

/* ---------------- Contact page ---------------- */
.contact-page { padding-top: 2.5rem; padding-bottom: 5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.back-link:hover { color: var(--foreground); }
.back-link svg { width: 1rem; height: 1rem; }
.contact-page__inner { max-width: 64rem; margin: 0 auto; }
.contact-page__header { text-align: center; margin-bottom: 3rem; }
.contact-title { font-size: 1.875rem; font-weight: 500; margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-title { font-size: 2.25rem; } }
.contact-page__header p { color: var(--muted-foreground); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.contact-info-card { background: rgba(245, 229, 250, 0.6); border-radius: var(--card-radius); padding: 1.5rem; border: 1px solid var(--border); align-self: start; }
.contact-info-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info-card li a:hover { color: var(--primary); transition: color 0.2s ease; }
.contact-info-card li:last-child span { color: var(--muted-foreground); }
.contact-info-card ul { list-style: none; margin: 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; min-width: 0; }
.contact-info-card li svg { width: 1.25rem; height: 1.25rem; color: var(--sparkle); flex-shrink: 0; margin-top: 0.125rem; }
.contact-info-card li a { overflow-wrap: break-word; word-break: break-word; }
.contact-social { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.contact-social p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); margin-bottom: 0.75rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.form-field label { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; padding: 0.75rem 1rem; background: var(--background); border: 1px solid var(--border);
	border-radius: 0.5rem; font-size: 0.875rem; font-family: var(--font-body); font-weight: 400; color: var(--foreground);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-foreground); }
.form-field textarea { resize: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
.contact-submit { align-self: stretch; width: 100%; box-shadow: var(--shadow-glow); }
@media (min-width: 768px) { .contact-submit { align-self: flex-start; width: auto; } }
.contact-form-error { color: #c0392b; font-size: 0.875rem; }
.contact-success { text-align: center; padding: 3rem 0; }
.contact-success-icon { width: 4rem; height: 4rem; background: var(--primary); color: var(--primary-foreground); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; box-shadow: var(--shadow-glow); }
.contact-success h1 { font-size: 1.875rem; font-weight: 500; margin-bottom: 1rem; }
.contact-success p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* =========================================================
   WooCommerce
   ========================================================= */
.single-product-wrap { padding-top: 5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .single-product-wrap { padding-top: 5.5rem; } }
.back-to-shop-row { padding: 0.75rem 0 1rem; }
.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image { position: relative; aspect-ratio: 3 / 4; background: var(--secondary); border-radius: var(--radius); overflow: hidden; }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; max-width: 100%; }
.theme-product-thumb { width: 4.5rem; height: 4.5rem; border-radius: 0.5rem; overflow: hidden; border: 2px solid transparent; position: relative; flex-shrink: 0; }
.theme-product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb.is-active { border-color: var(--primary); }
.theme-product-info { padding: 0 0 1.5rem; }
@media (min-width: 1024px) { .theme-product-info { padding: 1rem 0; } }
.product-title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0.5rem 0 1rem; }
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.stock-indicator--out { display: inline-block; padding: 0.5rem 1rem; background: var(--muted); color: var(--muted-foreground); font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; margin-bottom: 1rem; }
.product-description { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.theme-swatches { margin-bottom: 1.5rem; }
.theme-swatches label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.theme-swatch-row { display: flex; gap: 0.5rem; }
.theme-swatch-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--border); transition: transform 0.2s ease, border-color 0.2s ease; }
.theme-swatch-btn:hover { transform: scale(1.05); }
.theme-swatch-btn.is-active { border-color: var(--foreground); transform: scale(1.1); }

/* Variable product attribute pills */
.theme-variations { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.theme-variation-field { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-variation-label { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
	min-width: 3rem; padding: 0.5rem 1rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 400;
	border: 1px solid var(--border); border-radius: var(--btn-radius); background: transparent; color: var(--foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-variation-pill:hover:not(.is-active) { border-color: var(--foreground); }
.theme-variation-pill.is-active {
	border-color: var(--foreground); background: var(--foreground); color: var(--background);
}
.theme-variation-select-wrap {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.theme-variation-field { position: relative; }
.variations_form .reset_variations { display: none !important; }
.single_variation_wrap .woocommerce-variation-price { margin-bottom: 1rem; }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 0.375rem; height: var(--btn-height); flex-shrink: 0; }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; height: 100%; background: none; border: none; display: flex; align-items: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--secondary); }
.theme-qty-minus svg, .theme-qty-plus svg { width: 1rem; height: 1rem; }
.theme-qty-input { width: 3rem; border: none; background: none; text-align: center; font-size: 0.875rem; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area, .theme-add-to-cart-area {
	display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem;
}
.single-product .single_add_to_cart_button, .theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.product-details-block { border-top: 1px solid var(--border); padding-top: 2rem; }
.product-details-block h3 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-details-content { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.7; }
.product-details-content ul { padding-left: 1.25rem; }

.related-products-section, .related-products-section.scroll-reveal-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.related-products-heading { font-size: 1.25rem; font-weight: 500; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }

/* Variation selects are visually hidden — pills drive selection */
.single-product .variations select,
.variations_form select[name^="attribute_"] {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.posted_in { overflow-wrap: break-word; word-break: break-word; }
.woocommerce-variation-description { overflow-wrap: break-word; word-break: break-word; }

/* Add to cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact button — overrides globals (Section 11.4.1) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-card-add-btn.button {
	min-height: unset !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
}

/* Hide WooCommerce "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Shop archive */
.shop-archive-wrap { padding-top: 7rem; padding-bottom: 5rem; }
.shop-pagination { margin-top: 3rem; text-align: center; }
.shop-pagination .page-numbers { display: inline-flex; gap: 0.5rem; list-style: none; padding: 0; }
.shop-pagination .page-numbers li a, .shop-pagination .page-numbers li span { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border); }
.shop-pagination .page-numbers li .current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ---------------- Side cart ---------------- */
#theme-cart-overlay { position: fixed; inset: 0; background: rgba(60, 31, 81, 0.2); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--background);
	z-index: 60; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.theme-cart-drawer__header h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.theme-cart-close { background: none; border: none; padding: 0.25rem; }
.theme-cart-close svg { width: 1.25rem; height: 1.25rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { width: 3rem; height: 3rem; color: var(--muted-foreground); }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__thumb {
	position: relative;
	width: 5rem; height: 6rem;
	background: var(--secondary); border-radius: 0.25rem;
	overflow: hidden; flex-shrink: 0; display: block;
}
.theme-cart-item__thumb img {
	position: absolute; inset: 0;
	width: 100% !important; height: 100% !important;
	max-width: none; object-fit: cover; display: block;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__title { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.125rem; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-item__controls button { background: none; border: none; padding: 0.25rem; border-radius: 0.25rem; }
.theme-cart-item__controls button:hover { background: var(--secondary); }
.theme-cart-item__controls svg { width: 0.75rem; height: 0.75rem; }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-item__remove:hover { color: var(--foreground); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-checkout-btn { width: 100%; }

/* Notices — scoped visibility (Section 14.1) */
#theme-cart-drawer .woocommerce-message { display: none; }

/* =========================================================
   WooCommerce Checkout Block (Section 13)
   ========================================================= */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 2.5rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
body.woocommerce-checkout .wc-block-checkout {
	display: block !important;
	min-width: 0;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-medium,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: var(--checkout-gap) !important;
		align-items: start !important;
	}
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-components-main.wc-block-checkout__main {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-sidebar {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		float: none !important;
		margin: 0 !important;
	}
	body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-form,
	body.woocommerce-checkout .wc-block-checkout__main .wc-block-checkout__form,
	body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout {
		display: block !important;
		width: 100% !important;
		grid-template-columns: none !important;
	}
	body.woocommerce-checkout .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper,
	body.woocommerce-checkout .wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block {
		display: none !important;
	}
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout select.wc-block-components-select-control__select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.5 !important;
	color: var(--foreground) !important;
	background-color: var(--background) !important;
	border: 1px solid var(--border) !important;
	border-radius: 0.5rem !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout select.wc-block-components-select-control__select:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px var(--primary) !important;
	border-color: var(--border) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-combobox-control input::placeholder {
	color: var(--muted-foreground) !important;
	opacity: 1 !important;
}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	color: var(--foreground) !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-surface) !important;
	border-radius: var(--card-radius) !important;
	padding: 1.5rem !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--primary) !important; color: var(--primary-foreground) !important;
	border-radius: var(--btn-radius) !important; text-transform: none !important;
	font-family: var(--font-body) !important; font-weight: 500 !important;
}

/* Cart / Account / Thank-you width parity (Section 13.7) */
body.woocommerce-cart .site-main, body.woocommerce-account .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { max-width: 100%; }

/* ---------------- Thank you page (Section 22.8) ---------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
.thankyou-wrap { max-width: 40rem; margin: 0 auto; text-align: center; padding: 2rem 0; }
.thankyou-icon { width: 4rem; height: 4rem; background: var(--primary); color: var(--primary-foreground); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.thankyou-wrap h1 { font-size: 2.25rem; font-weight: 500; margin-bottom: 1rem; }
.thankyou-wrap > p { color: var(--muted-foreground); margin-bottom: 0.5rem; }
body.theme-thankyou-page .woocommerce-order { text-align: left; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; font-weight: 500; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; overflow-wrap: break-word; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; font-style: normal; }

/* =========================================================
   Skip link
   ========================================================= */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--background); padding: 0.5rem 1rem; z-index: 100; }
