/* =========================================================================
   Hawk & Petals Farm — theme.css
   Theme by The Free Website Guys.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS (Section 6.1 — editable via wp_add_inline_style in functions.php)
   ------------------------------------------------------------------------- */
:root {
	--background: #f9f3e8;
	--foreground: #3c2a1c;
	--primary: #c4654a;
	--primary-foreground: #f9f3e8;
	--secondary: #f3e6d2;
	--muted: #ede7de;
	--accent: #87a878;
	--border: #e2d5c1;
	--muted-foreground: #786358;
	--card: #ffffff;
	--destructive: #ba3d2e;
	--logo-height: 56px;

	/* Non-editable derived/named tokens (Section 6, 6.1) */
	--forest: #4a6741;
	--radius: 0.875rem;
	--font-display: 'Lora', Georgia, serif;
	--font-serif: 'Lora', Georgia, serif;
	--font-body: 'Nunito Sans', system-ui, sans-serif;
	--shadow-soft: 0 6px 24px -10px rgba(60, 42, 28, 0.18);
	--shadow-elevated: 0 18px 44px -18px rgba(60, 42, 28, 0.28);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 80px;

	--btn-radius: 999px;
	--btn-height: 3.25rem;
	--btn-padding: 1rem 2.25rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.14em;
	--btn-text-transform: uppercase;
}

@media (min-width: 1024px) {
	:root { --header-height: 96px; } /* lg:h-24 */
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
* {
	box-sizing: border-box;
	border-color: var(--border);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Typography utilities — mirror Lovable text-display / text-body / text-serif */
.font-display, .text-display {
	font-family: var(--font-display);
	letter-spacing: -0.01em;
}
.font-body, .text-body {
	font-family: var(--font-body);
	font-weight: 400;
}
.text-serif {
	font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
	font-size: inherit;
	font-family: var(--font-display);
	letter-spacing: -0.01em;
	margin: 0;
}

p, li, dd, label, input, select, textarea, button, address {
	font-family: var(--font-body);
}

p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card__image):not(.gallery-item-image):not(.team-card-image):not(.theme-product-main-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .theme-product-card__image, .gallery-item-image, .team-card-image, .theme-product-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-cart-item-image .cover-img,
.theme-cart-item-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem; /* max-w-7xl — matches source .container-wide */
	margin: 0 auto;
	padding: 0 1.25rem;
}
@media (min-width: 640px) { .container-wide { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: var(--primary);
}
@media (min-width: 640px) { .eyebrow { font-size: 0.875rem; } }

.section-heading {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--foreground);
}

.link-underline {
	position: relative;
	display: inline-block;
}
.link-underline::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -0.25rem;
	width: 100%;
	height: 1px;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------------------- */
.btn-hero-primary,
.btn-hero-outline,
.theme-btn-primary,
.theme-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	padding: var(--btn-padding);
	min-height: var(--btn-height);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: transform 0.3s var(--transition-smooth), opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
}
.btn-hero-primary, .theme-btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border: none;
}
.btn-hero-primary:hover, .theme-btn-primary:hover { transform: translateY(-2px); }
.theme-header-cta:hover { transform: translateY(-2px); }

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

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

/* -------------------------------------------------------------------------
   4. REVEAL ANIMATIONS (Section 2.1)
   ------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal-item {
	opacity: 0;
}
.reveal-item[data-reveal="fade"] { transition: opacity 0.6s var(--transition-smooth); }
.reveal-item[data-reveal="slide-up"] { transform: translateY(20px); transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Customizer preview fallback — reveal content must never be hidden in the editor. */
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-item[data-reveal="slide-up"] { transition: none !important; transform: none !important; opacity: 1 !important; }
}

.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

/* -------------------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid {
	background-color: rgba(249, 243, 232, 0.95);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--border);
}
.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}
@media (min-width: 1024px) { .site-nav { height: 96px; } }

.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	object-fit: contain;
	transition: filter 0.3s ease;
}
.site-header:not(.is-solid) .site-logo-img { filter: brightness(0) invert(1); }
.site-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.site-header:not(.is-solid) .site-logo-text { color: #fff; }

.site-nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .site-nav-links { display: flex; } }

.theme-nav-list, .theme-mobile-nav-list, .theme-footer-nav-list { display: flex; margin: 0; padding: 0; list-style: none; }
.theme-nav-list { align-items: center; gap: 2rem; flex-direction: row; }
.theme-mobile-nav-list {
	flex-direction: column !important;
	align-items: flex-start !important;
	width: 100%;
}
.theme-mobile-nav-link {
	display: block;
	padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--foreground);
}
.theme-mobile-nav-link:hover { color: var(--primary); }
.theme-nav-link {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	transition: color 0.3s ease;
	color: rgba(255, 255, 255, 0.9);
}
.site-header.is-solid .theme-nav-link { color: rgba(60, 42, 28, 0.8); }
.theme-nav-link:hover { color: var(--primary); }
.site-header:not(.is-solid) .theme-nav-link:hover { color: #fff; }

.theme-header-cta { min-height: 2.75rem; padding: 0.625rem 1.5rem; }

.site-nav-mobile-actions { display: flex; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .site-nav-mobile-actions { display: none; } }

.theme-cart-toggle-desktop { display: none; }
@media (min-width: 1024px) { .theme-cart-toggle-desktop { display: block; } }

.theme-cart-toggle {
	position: relative;
	padding: 0.625rem;
	color: #fff;
	transition: color 0.2s ease;
}
.site-header.is-solid .theme-cart-toggle { color: var(--foreground); }
.theme-cart-toggle:hover { color: var(--primary); }
.theme-cart-toggle .icon { display: block; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	font-size: 0.72rem; font-weight: 700;
	background: var(--primary); color: var(--primary-foreground);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-menu-toggle { padding: 0.625rem; color: #fff; }
.site-header.is-solid .theme-mobile-menu-toggle { color: var(--foreground); }
.theme-mobile-menu-toggle .icon-close { display: none; }
.theme-mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.theme-mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.theme-mobile-menu { display: none; border-top: 1px solid var(--border); padding: 1rem 0; }
.theme-mobile-menu.is-open { display: block; animation: fadeIn 0.3s var(--transition-smooth); }
.theme-mobile-nav-list a {
	display: block; padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
}
.theme-mobile-nav-list a:hover { color: var(--primary); }
.theme-mobile-cta { display: block; width: 100%; margin-top: 0.75rem; text-align: center; }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
body.theme-no-hero .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

.hero-section {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(60,42,28,0.75), rgba(60,42,28,0.55) 50%, rgba(60,42,28,0.85));
}
.hero-content {
	position: relative; z-index: 10; text-align: center;
	padding: 7rem 1.25rem;
}
@media (min-width: 640px) { .hero-content { padding: 7rem 1.5rem; } }
@media (min-width: 1024px) { .hero-content { padding: 7rem 2rem; } }
.hero-eyebrow {
	font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em;
	color: rgba(249,243,232,0.9);
}
@media (min-width: 640px) { .hero-eyebrow { font-size: 0.875rem; } }
.hero-title {
	margin: 1.5rem auto 0;
	max-width: 56rem;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.08;
	color: var(--background);
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-subtitle {
	margin: 1.5rem auto 0;
	max-width: 42rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(249,243,232,0.9);
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-actions {
	margin-top: 2.5rem;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-actions .btn-hero-primary, .hero-actions .btn-hero-outline { width: 100%; }
@media (min-width: 640px) { .hero-actions .btn-hero-primary, .hero-actions .btn-hero-outline { width: auto; } }

/* -------------------------------------------------------------------------
   7. MARQUEE
   ------------------------------------------------------------------------- */
.theme-marquee {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--card);
	padding: 1rem 0;
}
@media (min-width: 640px) { .theme-marquee { padding: 1.25rem 0; } }
.theme-marquee-fade {
	position: absolute; inset-block: 0; z-index: 10; width: 4rem;
	pointer-events: none;
}
@media (min-width: 640px) { .theme-marquee-fade { width: 6rem; } }
.theme-marquee-fade-left { left: 0; background: linear-gradient(to right, var(--card), transparent); }
.theme-marquee-fade-right { right: 0; background: linear-gradient(to left, var(--card), transparent); }
.theme-marquee-track {
	display: flex; width: max-content;
	animation: theme-marquee-scroll 32s linear infinite;
}
@keyframes theme-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.theme-marquee-item { display: flex; align-items: center; }
.theme-marquee-item span:first-child {
	padding: 0 1.5rem;
	font-family: var(--font-serif, var(--font-display));
	font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em;
	color: rgba(60,42,28,0.8);
}
@media (min-width: 640px) { .theme-marquee-item span:first-child { padding: 0 2rem; font-size: 1rem; } }
.theme-marquee-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .theme-marquee-track { animation: none; } }

/* -------------------------------------------------------------------------
   8. ABOUT
   ------------------------------------------------------------------------- */
.about-section { padding: 5rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .about-section { padding: 7rem 0; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.about-section .section-heading { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .about-section .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 3rem; } }
.about-paragraph { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 640px) { .about-paragraph { font-size: 1.125rem; } }

.about-stats { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .about-stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.about-stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.about-stat-icon { flex-shrink: 0; color: var(--primary); }
.about-stat dt {
	margin: 0.75rem 0 0;
	font-weight: 600;
	font-family: var(--font-body);
	display: block;
}
.about-stat dd {
	margin: 0;
	font-size: 0.875rem;
	color: var(--muted-foreground);
	display: block;
}

.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.about-image {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	aspect-ratio: 3 / 4;
	min-height: 12rem;
}
.about-image-2 { margin-top: 2rem; }
.about-image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
@media (min-width: 1024px) {
	.about-image { min-height: 14rem; }
}

/* -------------------------------------------------------------------------
   9. EVENTS
   ------------------------------------------------------------------------- */
.events-section { background: var(--secondary); padding: 5rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .events-section { padding: 7rem 0; } }
.events-heading { max-width: 48rem; }
.events-heading .section-heading { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .events-heading .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .events-heading .section-heading { font-size: 3rem; } }
.events-intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 640px) { .events-intro { font-size: 1.125rem; } }

.events-list { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 5rem; }
@media (min-width: 1024px) { .events-list { gap: 7rem; } }

.event-row {
	display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; scroll-margin-top: 6rem;
}
@media (min-width: 1024px) { .event-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.event-row-reverse .event-image-wrap { order: 2; }
@media (max-width: 1023px) { .event-row-reverse .event-image-wrap { order: initial; } }

.event-image-wrap { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.event-name { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 600; }
@media (min-width: 640px) { .event-name { font-size: 1.875rem; } }
@media (min-width: 1024px) { .event-name { font-size: 2.25rem; } }
.event-tagline { margin-top: 0.5rem; font-size: 1.125rem; color: var(--primary); font-family: var(--font-display); font-style: italic; }
.event-description { margin-top: 1.25rem; color: var(--muted-foreground); line-height: 1.7; }
.event-highlights { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.event-highlights li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; min-width: 0; }
@media (min-width: 640px) { .event-highlights li { font-size: 1rem; } }
.event-highlight-icon { margin-top: 0.2rem; flex-shrink: 0; color: var(--accent); }
.theme-book-event-btn { margin-top: 2rem; }

.events-other-cta {
	margin-top: 5rem; border-radius: var(--radius); background: var(--background);
	padding: 2rem; text-align: center;
}
@media (min-width: 640px) { .events-other-cta { padding: 3rem; } }
.events-other-cta h3 { font-size: 1.5rem; font-weight: 600; }
@media (min-width: 640px) { .events-other-cta h3 { font-size: 1.875rem; } }
.events-other-cta p { margin: 1rem auto 0; max-width: 42rem; color: var(--muted-foreground); line-height: 1.7; }
.events-other-cta button { margin-top: 2rem; }

/* -------------------------------------------------------------------------
   10. SHOP / FARM STAND (theme's homepage product section)
   ------------------------------------------------------------------------- */
.shop-section { padding: 5rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .shop-section { padding: 7rem 0; } }
.shop-heading { max-width: 48rem; }
.shop-heading .section-heading { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .shop-heading .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .shop-heading .section-heading { font-size: 3rem; } }
.shop-intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 640px) { .shop-intro { font-size: 1.125rem; } }

.shop-category-tabs { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-cat-filter {
	border-radius: 999px; border: 1px solid var(--border);
	padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.12em;
	color: rgba(60,42,28,0.7);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.theme-cat-filter:hover { border-color: var(--primary); color: var(--primary); }
.theme-cat-filter.is-active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.25rem;
	align-items: stretch;
}
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.5rem; } }
.shop-product-grid { margin-top: 2.5rem; }

.theme-product-card-wrap { display: flex; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth); }
.theme-product-card-wrap:hover { transform: translateY(-8px); }
.theme-product-card { display: flex; flex-direction: column; width: 100%; }
.theme-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1/1;
	background: var(--secondary);
	margin-bottom: 1rem;
	transition: box-shadow 0.3s ease;
}
.theme-product-card-wrap:hover .theme-product-card__image-wrapper {
	box-shadow: 0 20px 40px -12px rgba(60, 42, 28, 0.15);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.08); }
.theme-product-card__image { transition: transform 0.6s cubic-bezier(0.25,0.4,0.25,1); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }
.theme-product-card__badge {
	position: absolute; top: 0.5rem; left: 0.5rem;
	padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.05em;
	background: var(--foreground); color: var(--background);
}
@media (min-width: 768px) { .theme-product-card__badge { top: 0.75rem; left: 0.75rem; } }
.theme-product-card__image-tint {
	position: absolute; inset: 0; background: rgba(60,42,28,0);
	transition: background-color 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-tint { background: rgba(60,42,28,0.05); }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-product-card__title {
	font-size: 0.875rem; font-weight: 500; font-family: var(--font-body);
	transition: color 0.3s ease;
	color: var(--foreground);
}
.theme-product-card:hover .theme-product-card__title { color: var(--primary); }
.theme-product-card__price {
	font-size: 0.875rem; font-weight: 600; font-family: var(--font-body);
	color: var(--muted-foreground);
}
.theme-product-card__price .woocommerce-Price-amount { color: inherit; }

.theme-no-products { color: var(--muted-foreground); padding: 2rem 0; }

.shop-footer-note {
	margin-top: 3.5rem; border-radius: var(--radius); background: var(--secondary);
	padding: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6;
}
@media (min-width: 640px) { .shop-footer-note { font-size: 1rem; } }

/* -------------------------------------------------------------------------
   11. GALLERY
   ------------------------------------------------------------------------- */
.gallery-section { background: var(--secondary); padding: 5rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .gallery-section { padding: 7rem 0; } }
.gallery-heading { max-width: 48rem; margin-bottom: 0; }
.gallery-heading .eyebrow { color: var(--primary); }
.gallery-heading .section-heading {
	margin-top: 0.75rem;
	font-size: 1.875rem;
	font-weight: 600;
	color: var(--foreground);
}
@media (min-width: 640px) { .gallery-heading .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .gallery-heading .section-heading { font-size: 3rem; } }
.gallery-intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
@media (min-width: 640px) { .gallery-intro { font-size: 1.125rem; } }

.gallery-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
	position: relative; display: block; width: 100%; overflow: hidden;
	border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; text-align: left;
}
.gallery-item-image { transition: transform 0.7s ease; }
.gallery-item:hover .gallery-item-image { transform: scale(1.1); }
.gallery-item-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background-color 0.5s ease; pointer-events: none; }
.gallery-item:hover .gallery-item-scrim { background: rgba(0,0,0,0.2); }
.gallery-item-view-badge {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.gallery-item:hover .gallery-item-view-badge { opacity: 1; }
.gallery-item-view-badge span {
	border-radius: 999px; background: rgba(255,255,255,0.9); padding: 0.5rem 1rem;
	font-size: 0.875rem; font-weight: 500; color: var(--foreground); box-shadow: var(--shadow-soft);
}

.theme-gallery-lightbox {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.9); padding: 1rem;
	animation: fadeIn 0.3s var(--transition-smooth);
}
.theme-gallery-lightbox[hidden] { display: none; }
.theme-gallery-lightbox-close {
	position: absolute; top: 1rem; right: 1rem; z-index: 10;
	border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff; padding: 0.5rem;
	backdrop-filter: blur(4px);
}
.theme-gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.theme-gallery-lightbox-frame {
	position: relative; max-height: 85vh; width: 100%; max-width: 72rem;
	overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft);
	animation: theme-lightbox-in 0.3s ease-out;
}
@keyframes theme-lightbox-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.theme-gallery-lightbox-frame img { display: block; max-height: 85vh; width: 100%; object-fit: contain; }

/* -------------------------------------------------------------------------
   12. TEAM
   ------------------------------------------------------------------------- */
.team-section { padding: 5rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .team-section { padding: 7rem 0; } }
.team-heading { max-width: 42rem; }
.team-heading .section-heading { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 600; }
@media (min-width: 640px) { .team-heading .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .team-heading .section-heading { font-size: 3rem; } }

.team-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
	overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
	background: var(--card); transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.team-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.team-card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; }
@media (min-width: 640px) { .team-card-image-wrap { aspect-ratio: 4/3; } }
.team-card-image { transition: transform 0.7s ease; }
.team-card:hover .team-card-image { transform: scale(1.05); }
.team-card-scrim {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(60,42,28,0.7), rgba(60,42,28,0.1) 60%, transparent);
}
.team-card-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem; }
.team-card-caption h3 { font-size: 1.5rem; font-weight: 600; color: var(--background); }
.team-card-caption p { margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(249,243,232,0.8); }
.team-card-bio { padding: 1.5rem; color: var(--muted-foreground); line-height: 1.7; }
@media (min-width: 640px) { .team-card-bio { padding: 2rem; } }

/* -------------------------------------------------------------------------
   13. CONNECT / BOOK A VISIT
   ------------------------------------------------------------------------- */
.connect-section { position: relative; isolation: isolate; overflow: hidden; padding: 6rem 0; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .connect-section { padding: 9rem 0; } }
.theme-book-anchor { position: absolute; top: -5rem; }
.connect-media { position: absolute; inset: 0; z-index: -10; }
.connect-video { width: 100%; height: 100%; object-fit: cover; }
.connect-overlay-1 { position: absolute; inset: 0; background: rgba(60,42,28,0.55); }
.connect-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(60,42,28,0.6), transparent, rgba(60,42,28,0.7)); }

.connect-heading { max-width: 48rem; margin: 0 auto; text-align: center; }
.connect-eyebrow { color: rgba(249,243,232,0.7); }
.connect-title { margin-top: 1rem; font-size: 1.875rem; font-weight: 600; color: var(--background); }
@media (min-width: 640px) { .connect-title { font-size: 3rem; } }
@media (min-width: 1024px) { .connect-title { font-size: 3.75rem; } }
.connect-paragraph { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: rgba(249,243,232,0.85); }
@media (min-width: 640px) { .connect-paragraph { font-size: 1.125rem; } }

.connect-cta-button {
	margin-top: 2.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
	border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
	padding: 1.25rem 2.5rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
	box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.connect-cta-button:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.connect-cta-note { margin-top: 1rem; font-size: 0.875rem; color: rgba(249,243,232,0.7); }

.connect-details-grid { margin: 4rem auto 0; max-width: 64rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .connect-details-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .connect-details-grid { grid-template-columns: repeat(4, 1fr); } }

.connect-detail-card {
	display: block; border-radius: var(--radius); border: 1px solid rgba(249,243,232,0.15);
	background: rgba(249,243,232,0.1); padding: 1.5rem; backdrop-filter: blur(6px);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.connect-detail-card:hover { background: rgba(249,243,232,0.15); transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.connect-detail-icon {
	display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
	border-radius: 50%; background: rgba(249,243,232,0.15); color: var(--background);
}
.connect-detail-title { margin-top: 1rem; font-weight: 600; color: var(--background); }
.connect-detail-body { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: rgba(249,243,232,0.8); overflow-wrap: break-word; min-width: 0; }

/* -------------------------------------------------------------------------
   14. BOOKING MODAL
   ------------------------------------------------------------------------- */
.theme-booking-modal-overlay {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: center; justify-content: center;
	overflow-y: auto; padding: 1rem;
}
.theme-booking-modal-overlay[hidden] { display: none; }
.theme-booking-modal-overlay::before {
	content: ''; position: fixed; inset: 0; background: rgba(60,42,28,0.7); backdrop-filter: blur(4px); z-index: -1;
}
.theme-booking-modal {
	position: relative; margin: 0; width: 100%; max-width: 42rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	border-radius: var(--radius); border: 1px solid var(--border); background: var(--card);
	padding: 1.5rem; box-shadow: var(--shadow-soft);
	animation: theme-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) { .theme-booking-modal { padding: 2.5rem; } }
@keyframes theme-modal-in { from { opacity: 0; transform: translateY(32px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.theme-booking-modal-close {
	position: absolute; top: 1rem; right: 1rem; display: flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--muted-foreground); transition: background-color 0.2s, color 0.2s;
}
.theme-booking-modal-close:hover { background: var(--secondary); color: var(--foreground); }

.theme-booking-modal-form-state h3 { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 600; }
@media (min-width: 640px) { .theme-booking-modal-form-state h3 { font-size: 1.875rem; } }
.theme-booking-modal-subtitle { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.theme-booking-form-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-booking-form-grid { grid-template-columns: 1fr 1fr; } }
.theme-booking-field-full { grid-column: 1 / -1; }
.theme-booking-field label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.theme-booking-field input,
.theme-booking-field select,
.theme-booking-field textarea {
	width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background);
	padding: 0.75rem 1rem; font-size: 1rem; outline: none; transition: border-color 0.2s ease;
}
.theme-booking-field input:focus, .theme-booking-field select:focus, .theme-booking-field textarea:focus { border-color: var(--primary); }
.theme-booking-field textarea { resize: vertical; }
.theme-select-wrap { position: relative; }
.theme-select-wrap select { appearance: none; padding-right: 3rem; }
.theme-select-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted-foreground); }
.theme-booking-error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--destructive); min-height: 0; }
.theme-booking-form-error { margin-top: 1rem; font-size: 0.875rem; color: var(--destructive); }
.theme-booking-form-error[hidden] { display: none; }

.theme-booking-submit-btn, .theme-booking-secondary-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: 999px; padding: 1rem 2rem; font-size: 0.875rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.14em; transition: transform 0.3s ease, opacity 0.2s ease;
}
.theme-booking-submit-btn { width: 100%; margin-top: 2rem; background: var(--primary); color: var(--primary-foreground); border: none; }
.theme-booking-submit-btn:hover { transform: translateY(-2px); }
.theme-booking-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.theme-booking-secondary-btn { border: 1px solid var(--border); background: transparent; }
.theme-booking-secondary-btn:hover { border-color: var(--primary); color: var(--primary); }

.theme-booking-modal-success-state { padding: 1.5rem 0; text-align: center; }
.theme-booking-modal-success-state[hidden] { display: none; }
.theme-booking-success-icon { margin: 0 auto; color: var(--accent); display: block; }
.theme-booking-modal-success-state h3 { margin-top: 1.5rem; font-size: 1.875rem; font-weight: 600; }
.theme-booking-modal-success-state p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.theme-booking-success-actions {
	margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
@media (min-width: 640px) { .theme-booking-success-actions { flex-direction: row; justify-content: center; } }
.theme-booking-success-actions .theme-booking-submit-btn,
.theme-booking-success-actions .theme-booking-secondary-btn { width: auto; margin-top: 0; padding: 0.875rem 2rem; }

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.theme-footer-inner { padding: 3.5rem 1.25rem; }
@media (min-width: 640px) { .theme-footer-inner { padding: 3.5rem 1.5rem; } }
@media (min-width: 1024px) { .theme-footer-inner { padding: 4rem 2rem; } }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .theme-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.footer-logo-img {
	height: 6rem;
	max-height: 6rem;
	width: auto;
	max-width: 17.5rem;
	object-fit: contain;
	display: block;
}
.theme-footer-tagline { margin-top: 1.25rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.theme-footer-social {
	margin-top: 1.25rem; display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border); color: var(--muted-foreground);
	transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-footer-social:hover { border-color: var(--primary); color: var(--primary); }

.theme-footer-col h3 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.theme-footer-nav-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-footer-nav-list a:hover { color: var(--primary); }
.theme-footer-visit-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-footer-visit-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.theme-footer-visit-item svg { margin-top: 0.15rem; flex-shrink: 0; color: var(--primary); }
.theme-footer-email { overflow-wrap: break-word; word-break: break-word; }

.theme-footer-bottom {
	margin-top: 3rem; display: flex; flex-direction: column; gap: 0.5rem;
	border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.theme-footer-bottom-tagline { text-transform: uppercase; letter-spacing: 0.24em; color: var(--primary); }
.theme-footer-credit { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* -------------------------------------------------------------------------
   16. 404
   ------------------------------------------------------------------------- */
.theme-404 { min-height: 60vh; display: flex; align-items: center; background: var(--muted); }
.theme-404-inner { padding: 5rem 0; text-align: center; }
.theme-404 h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 640px) { .theme-404 h1 { font-size: 2.5rem; } }
.theme-404 p { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--primary); font-weight: 500; }
.theme-404-link:hover { color: color-mix(in srgb, var(--primary) 90%, transparent); }

.theme-fallback-content, .theme-page-content { padding: 6rem 0; }
.page-title { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; }

/* =========================================================================
   17. WOOCOMMERCE — GLOBAL OVERRIDES (Section 14)
   ========================================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--secondary);
	color: var(--foreground);
	padding: 1rem 1.5rem;
	font-size: 0.9375rem;
	margin: 0 0 1.5rem;
}
.woocommerce-error { border-color: var(--destructive); color: var(--destructive); background: color-mix(in srgb, var(--destructive) 8%, var(--background)); }

/* Feedback already handled by the theme's own cart drawer in these contexts. */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message,
.theme-shop-archive .woocommerce-message,
.theme-shop-archive .woocommerce-info {
	display: none;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (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;
}

/* -------------------------------------------------------------------------
   18. ADD TO CART BUTTON — STYLE OVERRIDE (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(--primary) !important;
	color: var(--primary-foreground) !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(--primary) !important;
	color: var(--primary-foreground) !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(--primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* -------------------------------------------------------------------------
   19. SINGLE PRODUCT PAGE (Section 11)
   ------------------------------------------------------------------------- */
.single-product .site-main { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .single-product .site-main { padding-top: 7rem; } }
.theme-back-to-shop-row { padding: 1.5rem 0; }
.theme-back-to-shop { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s ease; }
.theme-back-to-shop:hover { color: var(--foreground); }

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

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding: 2.5rem 0; } }

.theme-product-main-image-wrap { position: relative; aspect-ratio: 3/4; background: var(--secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 100%; }
.theme-product-thumb {
	position: relative; width: calc(20% - 0.4rem); aspect-ratio: 1/1; overflow: hidden;
	border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--primary); }

.theme-product-category {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.product-title {
	margin-top: 0.5rem; margin-bottom: 1rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	color: var(--foreground);
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-price {
	margin-bottom: 1.5rem;
	font-family: var(--font-body);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary);
}

.theme-stock-status { margin-bottom: 1rem; font-weight: 600; }
.theme-stock-out { color: var(--destructive); }

.theme-product-description {
	margin-bottom: 2rem; color: var(--muted-foreground); line-height: 1.7;
	overflow-wrap: break-word; word-break: break-word;
}
.theme-product-description p { margin-bottom: 1rem; }

.theme-quantity-wrapper {
	display: flex; align-items: center; border: 1px solid var(--border);
}
.theme-qty-minus, .theme-qty-plus { padding: 0.875rem 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--secondary); }
.theme-qty-input {
	width: 3.5rem; text-align: center; border: none; background: transparent; padding: 0.875rem 0.25rem;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}
.theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}
.theme-variable-product-note { color: var(--muted-foreground); font-size: 0.9375rem; }

.theme-product-details { border-top: 1px solid var(--border); padding-top: 2rem; }
.theme-product-details h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.theme-product-details ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details li { display: flex; align-items: flex-start; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-detail-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--primary); margin-top: 0.45rem; margin-right: 0.75rem; flex-shrink: 0; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.related-products-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-title { font-size: 1.5rem; } }

.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.theme-attr-select-hidden,
.single-product .variations select.theme-attr-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.theme-variations-table { width: 100%; border: none; margin-bottom: 1.5rem; }
.theme-variations-table td { padding: 0; border: none; vertical-align: top; }
.theme-variations-table tr + tr td { padding-top: 1.5rem; }
.theme-variation-label {
	display: block;
	margin-bottom: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--foreground);
}
.theme-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}
.theme-variation-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-variation-pill:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.theme-variation-pill.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}
.theme-variation-pill--color.is-active { background: color-mix(in srgb, var(--primary) 5%, var(--background)); color: var(--foreground); border-color: var(--primary); }
.theme-variation-swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	border: 1px solid var(--border);
	flex-shrink: 0;
}
.single-product .single_add_to_cart_button:disabled,
.single-product .single_add_to_cart_button.disabled {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   20. WOOCOMMERCE SHOP ARCHIVE
   ------------------------------------------------------------------------- */
.theme-shop-archive .site-main, .theme-shop-archive-inner { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 5rem; }
.theme-archive-header { margin-bottom: 2.5rem; }

/* -------------------------------------------------------------------------
   21. SIDE CART DRAWER (Section 12)
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; background: rgba(60,42,28,0.2); z-index: 90;
	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: 95; 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: 700; }
.theme-cart-drawer-close { padding: 0.25rem; transition: opacity 0.2s ease; }
.theme-cart-drawer-close:hover { opacity: 0.6; }

.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer-empty svg { color: var(--muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer-empty p { color: var(--muted-foreground); margin-bottom: 1.5rem; }

.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-image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; background: var(--secondary); overflow: hidden; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { display: block; font-size: 0.875rem; font-weight: 500; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { margin-top: 0.15rem; font-size: 0.875rem; color: var(--muted-foreground); }
.theme-cart-item-variation { margin-top: 0.15rem; font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background: var(--secondary); }
.theme-cart-qty-value { width: 1.5rem; text-align: center; font-size: 0.875rem; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--muted-foreground); transition: color 0.2s ease; }
.theme-cart-remove-btn: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-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-row span:first-child { color: var(--muted-foreground); }
.theme-cart-subtotal-row span:last-child { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-checkout-btn { width: 100%; text-align: center; }

/* -------------------------------------------------------------------------
   22. CHECKOUT BLOCK (Section 13)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-top: calc(var(--header-height) + 0.25rem);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	max-width: 80rem;
	margin: 0 auto 1rem;
	padding: 0 1.25rem;
}
@media (min-width: 640px) { body.woocommerce-checkout .page-title, body.woocommerce-cart .page-title, body.woocommerce-account .page-title { padding: 0 1.5rem; } }
@media (min-width: 1024px) { body.woocommerce-checkout .page-title, body.woocommerce-cart .page-title, body.woocommerce-account .page-title { padding: 0 2rem; } }

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}
@media (min-width: 640px) { body.woocommerce-checkout .entry-content, body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { padding: 0 1.5rem; } }
@media (min-width: 1024px) { body.woocommerce-checkout .entry-content, body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { padding: 0 2rem; } }

body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	color: var(--foreground) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	background: var(--background) !important;
}
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout select.wc-block-components-select,
body.woocommerce-checkout .wc-block-components-country-select select,
body.woocommerce-checkout .wc-block-components-state-select select,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button.components-button {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	color: var(--foreground) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	background-color: var(--background) !important;
	background-image: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	height: auto !important;
}
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__expand,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button.components-button {
	border-left: none !important;
	background-color: var(--background) !important;
	color: var(--muted-foreground) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
body.woocommerce-checkout select.wc-block-components-select:focus,
body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: var(--primary) !important;
	outline: none !important;
	box-shadow: 0 0 0 1px var(--primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--muted-foreground); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-cart-items { font-family: var(--font-body); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--secondary);
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout h2, body.woocommerce-checkout h3 {
	font-family: var(--font-display);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   23. THANK YOU PAGE (Section 22.8)
   ------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .theme-thankyou-content {
	max-width: 1400px; margin: 0 auto; padding: 0 1.25rem 5rem;
}
@media (min-width: 640px) { body.theme-thankyou-page .theme-thankyou-content { padding: 0 1.5rem 5rem; } }
@media (min-width: 1024px) { body.theme-thankyou-page .theme-thankyou-content { padding: 0 2rem 5rem; } }

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
	display: block;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 1.5rem; margin: 1.5rem 0;
	border-radius: var(--radius); background: var(--secondary);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-table {
	width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left;
}
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; margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 30rem; overflow-wrap: break-word; font-style: normal; line-height: 1.7;
}
