/*
 * Bugga's Bakery — theme stylesheet.
 * Author: The Free Website Guys
 */

@import url('https://fonts.googleapis.com/css2?family=Euphoria+Script&family=Petrona:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Caveat:wght@500;700&display=swap');

/* -------------------------------------------------------------------------
 * 1. ROOT VARIABLES (Section 6 / 6.1 — hex values overridden inline by
 *    Customizer via wp_add_inline_style; these are load-time fallbacks.)
 * ---------------------------------------------------------------------- */
:root {
	--background: #f5f2eb;
	--foreground: #3e2314;
	--card: #ede9de;
	--primary: #3e2314;
	--primary-foreground: #f5f2eb;
	--secondary: #6b705c;
	--secondary-foreground: #f5f2eb;
	--muted-foreground: #6b5447;
	--accent: #974020;
	--accent-foreground: #f5f2eb;
	--border: #dcd7cb;

	--font-display: 'Petrona', serif;
	--font-body: 'Karla', sans-serif;
	--font-cute: 'Caveat', cursive;
	--font-script: 'Euphoria Script', cursive;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgba(62, 35, 20, 0.10);
	--shadow-elevated: 0 12px 40px -10px rgba(62, 35, 20, 0.20);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--logo-height: 60px;
	--header-height: 80px;

	--btn-radius: 999px;
	--btn-height: 3rem;
	--btn-padding: 0.85rem 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;
	--color-button-text: var(--primary-foreground);
	--color-primary: var(--primary);
	--color-surface: var(--card);
	--card-radius: 1.5rem;
	--section-padding: 2rem;
	--checkout-gap: 2rem;
}

/* -------------------------------------------------------------------------
 * 2. RESET / BASE
 * ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.55;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero__bg):not(.theme-product-card__img):not(.about-gallery__item img):not(.pickup-section__bg):not(.site-nav__wordmark-img):not(.site-nav__ladybug) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.theme-product-gallery__main img,
.theme-product-gallery__stack-item img,
.theme-cart-drawer__item-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.theme-hidden { display: none !important; }
.scroll-mt { scroll-margin-top: 6rem; }

.link-underline { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; }
.link-underline::after {
	content: '';
	position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 0.75rem;
}
.eyebrow--muted { color: rgba(62,35,20,0.7); }
.eyebrow--light { color: #fff; }

.heading-xl {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(3rem, 6vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--primary);
	margin: 0;
}
.heading-lg {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 900;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--primary);
	margin: 0;
}
.heading-script {
	font-family: var(--font-script);
	font-weight: 400;
	font-size: clamp(3rem, 6vw, 5rem);
	line-height: 1;
	color: var(--primary);
	margin: 0;
}
.heading-script-sm {
	font-family: var(--font-script);
	font-weight: 400;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	line-height: 1;
	color: var(--primary);
	margin: 0 0 0.25rem 0;
}

/* -------------------------------------------------------------------------
 * 3. BUTTONS
 * ---------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.2s ease;
	white-space: nowrap;
}
.theme-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.theme-btn--primary:hover { background: var(--accent); color: var(--accent-foreground); }
.theme-btn--accent { background: var(--accent); color: var(--accent-foreground); }
.theme-btn--accent:hover { background: var(--primary); color: var(--primary-foreground); }
.theme-btn--outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.theme-btn--outline:hover { background: var(--primary); color: var(--primary-foreground); }
.theme-btn--light { background: var(--background); color: var(--primary); }
.theme-btn--light:hover { background: var(--accent); color: var(--accent-foreground); }
.theme-btn--outline-light { background: transparent; color: var(--background); border: 1px solid rgba(245,242,235,0.8); }
.theme-btn--outline-light:hover { background: var(--background); color: var(--primary); }
.theme-btn--full { width: 100%; }
.theme-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* -------------------------------------------------------------------------
 * 4. HEADER / NAV
 * ---------------------------------------------------------------------- */
.site-header {
	position: sticky; 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,
.site-header.is-scrolled {
	background: rgba(245,242,235,0.95);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--border);
}
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .site-nav { height: 5rem; } }
.site-nav__left, .site-nav__right { display: flex; align-items: center; flex: 1; gap: 0.75rem; }
.site-nav__right { justify-content: flex-end; }
.site-nav__menu-toggle {
	display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem; margin-left: -0.25rem;
	color: var(--background);
	transition: color 0.3s ease;
}
.site-header.is-solid .site-nav__menu-toggle,
.site-header.is-scrolled .site-nav__menu-toggle { color: var(--primary); }
.site-nav__menu-icon svg { width: 20px; height: 20px; display: block; }
.site-nav__menu-icon--close { display: none; }
body.menu-open .site-nav__menu-icon--open { display: none; }
body.menu-open .site-nav__menu-icon--close { display: block; }
.site-nav__menu-label { display: none; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
@media (min-width: 768px) { .site-nav__menu-label { display: inline; font-size: 13px; } }
.site-nav__menu-toggle .site-nav__menu-label { text-shadow: 0 1px 6px rgba(30,15,5,0.5); }
.site-header.is-scrolled .site-nav__menu-toggle .site-nav__menu-label,
.site-header.is-solid .site-nav__menu-toggle .site-nav__menu-label { text-shadow: none; }

.site-nav__wordmark {
	position: absolute; left: 50%; transform: translateX(-50%);
	display: flex; align-items: center; gap: 0.5rem; line-height: 1;
	height: var(--logo-height);
}
.site-nav__ladybug { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
@media (min-width: 768px) { .site-nav__ladybug { width: 28px; height: 28px; } }
.site-nav__wordmark-text {
	display: none;
	font-family: var(--font-script);
	font-size: 1.5rem;
	font-weight: 400;
	white-space: nowrap;
	color: var(--background);
	transition: color 0.3s ease;
	text-shadow: 0 2px 8px rgba(62,35,20,0.5);
}
@media (min-width: 480px) { .site-nav__wordmark-text { display: inline; } }
@media (min-width: 768px) { .site-nav__wordmark-text { font-size: 2.25rem; } }
.site-header.is-solid .site-nav__wordmark-text,
.site-header.is-scrolled .site-nav__wordmark-text { color: var(--primary); text-shadow: none; }
.site-nav__wordmark-img { height: 100%; width: auto; max-height: var(--logo-height); object-fit: contain; display: block; }

.site-nav__order-btn {
	display: none;
	background: var(--primary); color: var(--primary-foreground);
	border-radius: 999px; padding: 0.5rem 1.25rem;
	font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	transition: background-color 0.2s ease;
}
.site-nav__order-btn:hover { background: var(--accent); }
@media (min-width: 640px) { .site-nav__order-btn { display: inline-flex; } }

.site-nav__cart-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.25rem; height: 2.25rem; border-radius: 999px;
	border: 1.5px solid rgba(245,242,235,0.95);
	color: var(--background);
	background: rgba(62,35,20,0.1);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-solid .site-nav__cart-btn,
.site-header.is-scrolled .site-nav__cart-btn {
	border-color: rgba(62,35,20,0.4);
	color: var(--primary);
	background: transparent;
}
.site-nav__cart-btn:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.site-header:not(.is-scrolled):not(.is-solid) .site-nav__cart-btn:hover {
	background: var(--background);
	color: var(--primary);
	border-color: var(--background);
}
.site-header.is-solid .site-nav__cart-btn:hover,
.site-header.is-scrolled .site-nav__cart-btn:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.site-nav__cart-btn .theme-cart-count {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--accent); color: var(--accent-foreground);
	font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
	line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Nav menu panel (mobile drawer) */
.nav-menu-panel {
	position: fixed; inset: 0; z-index: 60; height: 100vh; height: 100dvh;
	pointer-events: none;
}
.nav-menu-panel.is-open { pointer-events: auto; }
.nav-menu-panel__overlay {
	position: absolute; inset: 0; background: rgba(62,35,20,0.4);
	opacity: 0; transition: opacity 0.2s ease;
}
.nav-menu-panel.is-open .nav-menu-panel__overlay { opacity: 1; }
.nav-menu-panel__panel {
	position: absolute; top: 0; left: 0; height: 100%; width: 88vw; max-width: 420px;
	background: var(--background); border-radius: 0 1.5rem 1.5rem 0;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s ease-out;
}
.nav-menu-panel.is-open .nav-menu-panel__panel { transform: translateX(0); }
.nav-menu-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 1.75rem 1.25rem; }
.nav-menu-panel__brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-menu-panel__brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-menu-panel__brand span { font-family: var(--font-script); font-size: 1.75rem; color: var(--primary); }
.nav-menu-panel__close {
	width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground);
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-menu-panel__close svg { width: 20px; height: 20px; }
.nav-menu-panel__divider { height: 1px; background: rgba(62,35,20,0.15); margin: 0 1.75rem; }
.nav-menu-panel__nav { flex: 1; overflow-y: auto; padding: 2rem 1.75rem; }
.theme-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.theme-nav-list a {
	display: block; font-family: var(--font-display); font-style: italic; font-weight: 900;
	color: var(--primary); font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em;
	transition: color 0.2s ease, transform 0.2s ease;
}
.theme-nav-list a:hover { color: var(--accent); transform: translateX(4px); }
.nav-menu-panel__foot { padding: 1rem 1.75rem 2rem; font-size: 12px; color: rgba(62,35,20,0.6); }
.nav-menu-panel__foot a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.nav-menu-panel__foot a:hover { color: var(--primary); }
body.menu-open .site-header { z-index: 40; }

/* -------------------------------------------------------------------------
 * 5. HERO
 * ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--background); min-height: 100svh; margin-top: -4rem; }
@media (min-width: 768px) { .hero { margin-top: -5rem; } }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(45,20,10,0.86) 0%, rgba(45,20,10,0.68) 35%, rgba(45,20,10,0.28) 65%, rgba(45,20,10,0.1) 100%);
}
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 100svh; padding-top: 6rem; padding-bottom: 4rem; }
.hero__content { max-width: 42rem; text-align: left; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	color: rgba(245,242,235,0.9); margin-bottom: 1.5rem;
	opacity: 0; transform: translateY(16px); animation: heroFadeUp 0.7s var(--transition-smooth) 0.1s forwards;
}
.hero__badge img { width: 20px; height: 20px; object-fit: contain; }
.hero__title {
	font-family: var(--font-script); color: var(--background); line-height: 0.95; letter-spacing: -0.01em;
	font-size: clamp(3.25rem, 10vw, 8rem);
	text-shadow: 0 2px 30px rgba(30,15,5,0.6);
	opacity: 0; transform: translateY(22px); animation: heroFadeUp 1s var(--transition-smooth) 0.2s forwards;
}
.hero__subtitle {
	margin-top: 1.5rem; max-width: 38rem; color: rgba(245,242,235,0.9); font-size: 1rem; line-height: 1.6;
	text-shadow: 0 1px 12px rgba(30,15,5,0.6);
	opacity: 0; transform: translateY(18px); animation: heroFadeUp 0.8s var(--transition-smooth) 0.4s forwards;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.125rem; } }
.hero__actions {
	margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
	opacity: 0; transform: translateY(14px); animation: heroFadeUp 0.7s var(--transition-smooth) 0.55s forwards;
}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	.hero__badge, .hero__title, .hero__subtitle, .hero__actions { animation: none; opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
 * 6. GENERIC SECTIONS
 * ---------------------------------------------------------------------- */
.section { background: var(--background); }
.favorites-section, .tiles-section, .about-section, .shop-section { background: var(--card); }
.favorites-section { background: var(--background); }
.section__inner { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section__inner { padding-top: 7rem; padding-bottom: 7rem; } }

/* Reveal animation (Section 2.1) */
.reveal-item { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal-item { opacity: 1; transform: none; transition: none; } }

/* -------------------------------------------------------------------------
 * 7. PRODUCT GRID / CARDS
 * ---------------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-product-card-wrap > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card-wrap *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card-wrap .theme-product-card__cta { position: relative; z-index: 3; pointer-events: auto; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-product-card-wrap:hover .theme-product-card__image-wrapper { transform: translateY(-3px); }
.theme-product-card__img--hover { opacity: 0; transition: opacity 0.5s ease; }
.theme-product-card-wrap.has-hover-image:hover .theme-product-card__img--primary { opacity: 0; }
.theme-product-card-wrap.has-hover-image:hover .theme-product-card__img--hover { opacity: 1; }
.theme-product-card__img--primary { transition: opacity 0.5s ease; }

.theme-product-card__badge {
	position: absolute; top: 1rem; z-index: 4;
	padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.theme-product-card__badge--soldout { right: 1rem; background: var(--primary); color: var(--primary-foreground); }

.theme-product-card__info { padding: 0 0.25rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.theme-product-card__title {
	font-family: var(--font-display); font-style: italic; font-weight: 700;
	font-size: 1.375rem; line-height: 1.15; color: var(--primary);
	transition: color 0.3s ease;
	overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.75rem; } }
.theme-product-card-wrap:hover .theme-product-card__title { color: var(--accent); }
.theme-product-card__subtitle {
	margin: 0.5rem 0 1rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground);
}
.theme-product-card__cta {
	margin-top: auto; width: 100%; padding: 0.75rem 1rem; border-radius: 999px;
	background: var(--primary); color: var(--primary-foreground);
	font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease;
	text-align: center;
	border: none;
}
.theme-product-card__cta:hover { background: var(--accent); color: var(--accent-foreground); }
.theme-product-card__cta--disabled { opacity: 0.5; cursor: not-allowed; }
.theme-product-card__cta .woocommerce-Price-amount { color: inherit; }

/* -------------------------------------------------------------------------
 * 8. FAVORITES
 * ---------------------------------------------------------------------- */
.favorites__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .favorites__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.favorites__link { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--primary); }

/* -------------------------------------------------------------------------
 * 9. CATEGORY TILES
 * ---------------------------------------------------------------------- */
.tiles__head { text-align: center; margin-bottom: 4rem; }
.tiles-list { display: flex; flex-direction: column; gap: 8rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .tiles-list { gap: 6rem; } }
.tile {
	position: relative;
	border-radius: 1.5rem;
	background: transparent;
	overflow: visible;
	padding-top: 4rem;
	margin-top: 4rem;
}
.tile::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 1.5rem;
	background: transparent;
	transition: background-color 0.3s ease;
	z-index: 0;
	pointer-events: none;
}
@media (min-width: 768px) {
	.tile { padding-top: 0; min-height: 20rem; display: flex; align-items: center; margin-top: 0; }
	.tile--primary:hover::before { background: var(--primary); }
	.tile--primary:hover .tile__content { color: var(--primary-foreground); }
	.tile--secondary:hover::before { background: var(--secondary); }
	.tile--secondary:hover .tile__content { color: var(--secondary-foreground); }
}
.tile__image {
	position: absolute; z-index: 10; left: 50%; top: -4rem; transform: translateX(-50%);
	width: 11rem; max-width: none;
	filter: drop-shadow(0 20px 25px rgba(62,35,20,0.35));
	transition: transform 0.5s ease-out;
	pointer-events: none;
}
@media (min-width: 640px) {
	.tile__image { width: 13rem; }
}
@media (min-width: 768px) {
	.tile__image { width: 34%; max-width: 260px; top: 50%; transform: translateY(-50%); }
	.tile--cookies .tile__image { width: 32%; max-width: none; }
	.tile--special .tile__image { width: 38%; max-width: none; }
}
@media (min-width: 1024px) {
	.tile--cookies .tile__image { width: 28%; }
	.tile--special .tile__image { width: 36%; }
}
@media (min-width: 768px) { .tile--image-left .tile__image { left: 2rem; transform: translateY(-50%); } }
@media (min-width: 768px) { .tile--image-right .tile__image { left: auto; right: 2rem; transform: translateY(-50%); } }
@media (min-width: 768px) {
	.tile--image-left:hover .tile__image { transform: translateY(calc(-50% - 4%)) translateX(-8px); }
	.tile--image-right:hover .tile__image { transform: translateY(calc(-50% - 4%)) translateX(8px); }
}
.tile__content {
	position: relative; z-index: 2;
	padding: 8rem 1.75rem 2.25rem;
	display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--primary);
	width: 100%;
}
@media (min-width: 640px) {
	.tile__content { padding-top: 9rem; }
}
@media (min-width: 768px) { .tile__content { width: 56%; padding: 2.5rem 3.5rem; } }
.tile--image-left .tile__content { margin-left: auto; }
.tile__badge {
	display: inline-block; background: var(--background); color: var(--primary);
	font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	border-radius: 999px; padding: 0.4rem 0.75rem; margin-bottom: 1.25rem;
}
.tile__title { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(3rem, 5vw, 3.75rem); line-height: 0.95; margin-bottom: 1rem; }
@media (min-width: 768px) { .tile__title { font-size: clamp(3rem, 4vw, 3.75rem); } }
.tile__desc { font-size: 0.875rem; opacity: 0.9; max-width: 28rem; margin-bottom: 1.75rem; line-height: 1.6; }
@media (min-width: 768px) { .tile__desc { font-size: 1rem; } }
.tile__cta { align-self: flex-start; }
.tile__cta--accent { background: var(--accent); color: var(--accent-foreground); }
.tile__cta--accent:hover { background: color-mix(in srgb, var(--accent) 90%, transparent); color: var(--accent-foreground); }
.tile__cta--primary { background: var(--primary); color: var(--primary-foreground); }
.tile__cta--primary:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); color: var(--primary-foreground); }

/* -------------------------------------------------------------------------
 * 10. ABOUT
 * ---------------------------------------------------------------------- */
.about-section { background: var(--card); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.75rem; grid-auto-rows: 120px; }
@media (min-width: 640px) { .about-gallery { grid-auto-rows: 150px; } }
@media (min-width: 768px) { .about-gallery { grid-auto-rows: 170px; gap: 1rem; } }
.about-gallery__item { position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-elevated); }
.about-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s ease; }
.about-gallery__item:hover img { transform: scale(1.05); }
.about-gallery__item--big { grid-column: span 7; grid-row: span 3; }
.about-gallery__item--tall { grid-column: span 5; grid-row: span 2; }
.about-gallery__item--small { grid-column: span 3; grid-row: span 1; }
.about-gallery__item--badge {
	grid-column: span 2; grid-row: span 1;
	background: var(--accent); color: var(--accent-foreground);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 0.25rem; gap: 0.15rem;
}
.about-gallery__item--badge img { position: static; width: 24px; height: 24px; object-fit: contain; margin-bottom: 0.15rem; }
.about-gallery__item--badge span { font-family: var(--font-cute); font-size: 0.85rem; line-height: 1.1; }
.about-gallery__caption {
	position: absolute; bottom: 0.75rem; left: 1.25rem; z-index: 2;
	font-family: var(--font-script); color: var(--primary-foreground); font-size: 1.75rem;
	text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.about-gallery__item--big::after {
	content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 5rem;
	background: linear-gradient(to top, rgba(62,35,20,0.5), transparent); pointer-events: none;
}
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-content .heading-script {
	font-size: clamp(3rem, 5vw, 4.5rem);
	line-height: 1;
}
.about-content__p { color: rgba(62,35,20,0.8); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.25rem 0; }

/* -------------------------------------------------------------------------
 * 11. SHOP / MENU SECTION
 * ---------------------------------------------------------------------- */
.shop__head { text-align: center; margin-bottom: 3rem; }
.shop__ordering-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.5rem 1rem; margin-bottom: 2rem;
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.shop__ordering-badge.is-open { background: var(--secondary); color: var(--secondary-foreground); }
.shop__ordering-badge.is-closed { background: var(--accent); color: var(--accent-foreground); }
.shop__ordering-message { font-size: 0.95rem; color: var(--muted-foreground); max-width: 36rem; margin: 0 auto 2.5rem; }

.shop__controls { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; max-width: 42rem; margin: 0 auto 2rem; }
@media (min-width: 768px) { .shop__controls { flex-direction: row; align-items: center; } }
.shop__search { position: relative; flex: 1; min-width: 0; }
.shop__search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-foreground); }
.shop__search input {
	width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: none; border-bottom: 1px solid var(--border);
	font-family: var(--font-body); font-size: 1rem; color: var(--foreground);
}
.shop__search input:focus { outline: none; border-color: var(--primary); }
.shop__price-filter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .shop__price-filter { align-items: flex-end; } }
.shop__price-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); font-family: var(--font-body); white-space: nowrap; transition: color 0.3s ease; }
.shop__price-toggle:hover { color: var(--primary); }
.shop__price-toggle svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.shop__price-toggle.is-open svg { transform: rotate(180deg); }
.shop__price-toggle-value { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.shop__price-panel { width: 100%; overflow: hidden; height: 0; opacity: 0; transition: height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
@media (min-width: 768px) { .shop__price-panel { width: 16rem; } }
.shop__price-panel.is-open { height: auto; opacity: 1; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted-foreground); font-family: var(--font-body); margin-top: 0.5rem; }

.price-range-wrapper { position: relative; height: 1.5rem; padding: 0.5rem 0; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 999px; }
.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: 18px; height: 18px; border-radius: 999px; background: var(--background); border: 2px solid var(--primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 999px; background: var(--background); border: 2px solid var(--primary); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.shop__categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.shop__category-btn {
	padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
	border-radius: 999px; border: 1px solid rgba(62,35,20,0.4); color: var(--primary); background: transparent;
	transition: all 0.3s ease;
}
.shop__category-btn:hover { border-color: var(--primary); }
.shop__category-btn.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.shop__grid-item.is-extra.is-hidden-extra { display: none; }
.shop__grid-item.is-filtered-out { display: none; }
.shop__show-more { text-align: center; margin-top: 3rem; }
.shop__show-more.theme-hidden { display: none; }
.shop__empty { text-align: center; padding: 5rem 0; }
.shop__empty p { color: var(--muted-foreground); font-family: var(--font-body); }
.shop__note { text-align: center; font-family: var(--font-cute); font-size: 1.5rem; color: var(--accent); margin-top: 3.5rem; }
@media (min-width: 768px) { .shop__note { font-size: 1.75rem; } }

/* -------------------------------------------------------------------------
 * 12. FORMS (Inquiry / Feedback / Contact / Modal)
 * ---------------------------------------------------------------------- */
.theme-form-row { margin-bottom: 1.25rem; }
.theme-form-row--split { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row--split { grid-template-columns: 1fr 1fr; } }
.theme-form-row--end { display: flex; justify-content: flex-end; margin-bottom: 0; }
.theme-form label {
	display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	color: var(--muted-foreground); margin-bottom: 0.5rem; font-family: var(--font-body);
}
.theme-form input, .theme-form textarea, .theme-form select {
	width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--background);
	border: 1px solid var(--border); font-family: var(--font-body); font-size: 1rem; color: var(--foreground);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-form input::placeholder, .theme-form textarea::placeholder { color: rgba(62,35,20,0.4); }
.theme-form input:focus, .theme-form textarea:focus, .theme-form select:focus {
	outline: none; border-color: rgba(62,35,20,0.4); box-shadow: 0 0 0 2px rgba(62,35,20,0.15);
}
.theme-form textarea { resize: none; }
.theme-form__heading { font-family: var(--font-script); font-size: 1.75rem; color: var(--primary); margin-bottom: 0.25rem; }
.theme-form__heading-script { font-family: var(--font-script); font-size: 1.75rem; color: var(--primary); margin-bottom: 0.25rem; }
.theme-form__subheading { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }

.theme-form-success { text-align: center; padding: 3rem 0; }
.theme-form-success__icon {
	width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 999px;
	background: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center;
}
.theme-form-success__icon svg { width: 28px; height: 28px; }
.theme-form-success h3 { font-family: var(--font-script); font-size: 1.75rem; color: var(--primary); margin-bottom: 0.5rem; }
.theme-form-success p { font-size: 0.875rem; color: var(--muted-foreground); max-width: 20rem; margin: 0 auto; }

/* -------------------------------------------------------------------------
 * 13. SPECIAL ORDERS / INQUIRY
 * ---------------------------------------------------------------------- */
.inquiry-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .inquiry-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.inquiry-info { position: relative; top: auto; }
@media (min-width: 1024px) { .inquiry-info { position: sticky; top: 7rem; } }
.inquiry-info__desc { font-size: 1rem; color: rgba(62,35,20,0.8); line-height: 1.7; margin: 1.5rem 0; max-width: 30rem; }
@media (min-width: 768px) { .inquiry-info__desc { font-size: 1.125rem; } }
.inquiry-info__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 30rem; color: rgba(62,35,20,0.75); font-size: 0.95rem; }
.inquiry-info__list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.inquiry-info__list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.inquiry-form-card {
	background: var(--card); color: var(--foreground); border-radius: 1.5rem; padding: 1.75rem 2rem;
	box-shadow: var(--shadow-elevated); border: 1px solid var(--border);
}
@media (min-width: 768px) { .inquiry-form-card { padding: 2.25rem 2.5rem; } }

/* -------------------------------------------------------------------------
 * 14. PICKUP & DELIVERY
 * ---------------------------------------------------------------------- */
.pickup-section { position: relative; background-size: cover; background-position: center right; }
.pickup-section__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(245,242,235,0.95), rgba(245,242,235,0.85) 40%, rgba(245,242,235,0.4)); }
.pickup-section__content { position: relative; }
.pickup-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .pickup-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.pickup-info__desc { font-size: 1rem; color: rgba(62,35,20,0.85); line-height: 1.7; margin: 1.5rem 0; max-width: 30rem; }
@media (min-width: 768px) { .pickup-info__desc { font-size: 1.125rem; } }
.pickup-info__note { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(62,35,20,0.8); }
.pickup-times-card {
	position: relative; z-index: 1;
	background: rgba(245,242,235,0.95); backdrop-filter: blur(4px); color: var(--foreground);
	border-radius: 1.5rem; padding: 1.75rem 2rem; box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .pickup-times-card { padding: 2.25rem 2.5rem; } }
.pickup-times-card__sub { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.pickup-times-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.pickup-times-list li { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.25rem; }
.pickup-times-list__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--card); color: var(--primary); flex-shrink: 0; }
.pickup-times-list__icon svg { width: 16px; height: 16px; display: block; }
.pickup-times-list__type { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--muted-foreground); }
.pickup-times-list__label { font-size: 0.95rem; color: var(--foreground); }

/* -------------------------------------------------------------------------
 * 15. FEEDBACK
 * ---------------------------------------------------------------------- */
.feedback-wrap { position: relative; max-width: 42rem; margin: 0 auto; }
.feedback-prop { position: absolute; z-index: 0; pointer-events: none; user-select: none; display: none; }
.feedback-prop--marshmallow { bottom: -1.5rem; right: -1rem; width: 4rem; opacity: 0.7; }
.feedback-prop--scone { left: -7rem; top: 4rem; width: 7rem; opacity: 0.6; }
@media (min-width: 640px) { .feedback-prop--marshmallow { display: block; } }
@media (min-width: 1024px) { .feedback-prop--scone { display: block; } }
.feedback-head { position: relative; z-index: 1; text-align: center; margin-bottom: 2.5rem; }
.feedback-badge {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.4rem 1rem;
	background: rgba(151,64,32,0.1); color: var(--accent); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	margin-bottom: 1rem;
}
.feedback-badge svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.feedback-head__handwritten { font-family: var(--font-cute); font-size: 1.5rem; color: var(--secondary); margin: 0.5rem 0; }
@media (min-width: 768px) { .feedback-head__handwritten { font-size: 1.75rem; } }
.feedback-head__desc { font-size: 1rem; color: rgba(62,35,20,0.75); max-width: 34rem; margin: 0 auto; }
@media (min-width: 768px) { .feedback-head__desc { font-size: 1.125rem; } }
.feedback-card {
	position: relative; z-index: 1; background: var(--card); border-radius: 1.5rem; border: 1px solid var(--border);
	box-shadow: var(--shadow-soft); padding: 1.75rem 2rem; transition: box-shadow 0.5s ease;
}
@media (min-width: 768px) { .feedback-card { padding: 2.25rem 2.5rem; } }

/* -------------------------------------------------------------------------
 * 16. CONTACT
 * ---------------------------------------------------------------------- */
.contact-section { position: relative; color: var(--primary-foreground); background-size: cover; background-position: center; background-repeat: no-repeat; }
.contact-section__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(62,35,20,0.95), rgba(62,35,20,0.92) 60%, rgba(62,35,20,0.8)); }
.contact-section__content { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.contact-info { display: flex; flex-direction: column; height: 100%; }
.contact-info .heading-script {
	font-size: clamp(3.75rem, 8vw, 6rem);
	line-height: 1;
	color: var(--primary-foreground);
}
.contact-info__desc { color: rgba(245,242,235,0.85); font-size: 1rem; margin: 1.5rem 0 2.5rem; max-width: 30rem; }
@media (min-width: 768px) { .contact-info__desc { font-size: 1.125rem; } }
.contact-info__list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(245,242,235,0.1); border: 1px solid rgba(245,242,235,0.2); }
.contact-info__label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: rgba(245,242,235,0.6); margin-bottom: 0.15rem; }
.contact-info__list a:hover { color: var(--accent); }
.contact-info__social { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact-info__social a {
	display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
	border-radius: 999px; border: 1px solid rgba(245,242,235,0.4); transition: all 0.2s ease;
}
.contact-info__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-foreground); }
.contact-info__social span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: rgba(245,242,235,0.7); }
.contact-form-card {
	background: var(--card); color: var(--foreground); border-radius: 1.5rem; padding: 1.75rem 2rem;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); border: 1px solid rgba(245,242,235,0.1);
	height: 100%; display: flex; flex-direction: column;
}
@media (min-width: 768px) { .contact-form-card { padding: 2.25rem 2.5rem; } }

/* -------------------------------------------------------------------------
 * 17. FOOTER
 * ---------------------------------------------------------------------- */
.site-footer { background: var(--primary); color: var(--primary-foreground); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 5rem; padding-bottom: 2.5rem; } }
.site-footer__top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(245,242,235,0.2); }
@media (min-width: 640px) { .site-footer__top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-footer__brand img { width: 36px; height: 36px; object-fit: contain; }
.site-footer__brand span { font-family: var(--font-script); font-size: 2.5rem; line-height: 1; }
.site-footer__tagline { font-family: var(--font-cute); font-size: 1.5rem; max-width: 26rem; line-height: 1.3; margin: 0; }
@media (min-width: 640px) { .site-footer__tagline { text-align: right; } }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.site-footer__col--wide { grid-column: span 2; }
@media (min-width: 768px) { .site-footer__col--wide { grid-column: span 1; } }
.site-footer__col h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.25rem; margin-bottom: 1.25rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 14px; }
.site-footer__col a, .site-footer__col button {
	color: rgba(245,242,235,0.75); background: none; border: none; padding: 0; text-align: left;
	font: inherit; transition: color 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem;
}
.site-footer__col a:hover, .site-footer__col button:hover { color: var(--accent); }
.site-footer__town { display: flex; align-items: flex-start; gap: 0.5rem; color: rgba(245,242,235,0.8); }
.site-footer__social { display: flex; gap: 0.75rem; padding-top: 0.5rem; }
.site-footer__bottom {
	margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(245,242,235,0.2);
	display: flex; flex-direction: column; gap: 0.5rem; font-size: 12px; color: rgba(245,242,235,0.6);
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer__bottom a { text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
 * 18. CART DRAWER
 * ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 60; background: rgba(62,35,20,0.4);
	opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; top: 0; right: 0; z-index: 61; height: 100vh; height: 100dvh;
	width: 88vw; max-width: 26.25rem; background: var(--background);
	border-radius: 1.5rem 0 0 1.5rem; box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.3s ease-out;
	pointer-events: none;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); pointer-events: auto; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 1.75rem 1.25rem; }
.theme-cart-drawer__title { font-family: var(--font-cute); font-size: 1.875rem; color: var(--accent); line-height: 1; }
.theme-cart-drawer__close {
	width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground);
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-cart-drawer__close svg { width: 20px; height: 20px; }
.theme-cart-drawer__divider { height: 1px; background: rgba(62,35,20,0.15); margin: 0 1.75rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.75rem; text-align: center; }
.theme-cart-drawer__empty svg { width: 48px; height: 48px; color: rgba(62,35,20,0.6); margin-bottom: 1.5rem; flex-shrink: 0; }
.theme-cart-drawer__empty p { font-family: var(--font-display); font-style: italic; font-weight: 900; color: var(--primary); font-size: 2.25rem; line-height: 1.05; margin-bottom: 2rem; }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-img { width: 5rem; height: 6rem; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; background: var(--card); }
.theme-cart-drawer__item-img img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-title {
	font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--primary); font-size: 1.125rem;
	line-height: 1.2; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease;
}
.theme-cart-drawer__item-title:hover { color: var(--accent); }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: rgba(62,35,20,0.6); margin: 0.25rem 0 0; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-drawer__qty-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
	border-radius: 999px; border: 1px solid rgba(62,35,20,0.3); color: var(--primary); transition: all 0.2s ease;
}
.theme-cart-drawer__qty-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.theme-cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; font-weight: 600; color: var(--primary); }
.theme-cart-drawer__remove { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(62,35,20,0.6); font-weight: 600; transition: color 0.2s ease; }
.theme-cart-drawer__remove:hover { color: var(--accent); }
.theme-cart-drawer__footer { padding: 1.25rem 1.75rem 2rem; border-top: 1px solid rgba(62,35,20,0.15); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.theme-cart-drawer__subtotal span:first-child { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(62,35,20,0.6); }
.theme-cart-drawer__subtotal span:last-child { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--primary); font-size: 1.25rem; }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: rgba(62,35,20,0.6); margin: 0; }
.theme-cart-drawer__empty-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; color: rgba(62,35,20,0.6);
	transition: color 0.2s ease;
}
.theme-cart-drawer__empty-btn:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
 * 19. CONTACT MODAL
 * ---------------------------------------------------------------------- */
.theme-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1.5rem; pointer-events: none; }
.theme-modal.is-open { pointer-events: auto; }
.theme-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); opacity: 0; transition: opacity 0.2s ease; }
.theme-modal.is-open .theme-modal__overlay { opacity: 1; }
.theme-modal__panel {
	position: relative; z-index: 1; width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--background); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1.5rem;
	box-shadow: var(--shadow-elevated);
	transform: scale(0.95) translateY(10px); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 640px) { .theme-modal__panel { padding: 1.5rem 1.75rem; } }
.theme-modal.is-open .theme-modal__panel { transform: scale(1) translateY(0); opacity: 1; }
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); border-radius: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease, background 0.2s ease; }
.theme-modal__close:hover { opacity: 1; background: var(--accent); color: var(--accent-foreground); }
.theme-modal__close svg { width: 16px; height: 16px; }
.theme-modal__title { font-family: var(--font-script); font-size: 2.25rem; font-weight: 400; color: var(--primary); margin-bottom: 0.5rem; line-height: 1.1; }
.theme-modal__description { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 1.25rem; font-family: var(--font-body); line-height: 1.55; }
.theme-modal__contact-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-modal__contact-list a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-modal__contact-list a:hover { color: var(--foreground); }
.theme-modal__form label { font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); margin-bottom: 0.375rem; display: block; }
.theme-modal__form input,
.theme-modal__form textarea {
	width: 100%; padding: 0.625rem 0.75rem; border-radius: 0.375rem; border: 1px solid var(--border);
	background: var(--background); font-size: 1rem; font-family: var(--font-body); color: var(--foreground);
	transition: box-shadow 0.3s ease, border-color 0.2s ease;
}
.theme-modal__form input:focus,
.theme-modal__form textarea:focus {
	outline: none; border-color: var(--border); box-shadow: 0 0 0 2px rgba(62,35,20,0.12);
}
.theme-form-row--end { display: flex; justify-content: flex-end; margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
 * 20. SINGLE PRODUCT
 * ---------------------------------------------------------------------- */
.single-product .site-main { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product .site-main { padding-top: 7rem; } }
.breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb__current { color: var(--foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 6rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery--mobile { display: block; }
.theme-product-gallery--desktop { display: none; }
@media (min-width: 1024px) {
	.theme-product-gallery--mobile { display: none; }
	.theme-product-gallery--desktop { display: flex; flex-direction: column; gap: 1rem; }
}
.theme-product-gallery__stack-item { position: relative; aspect-ratio: 1 / 1; background: var(--secondary); overflow: hidden; max-width: 100%; }
.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--secondary); overflow: hidden; max-width: 100%; }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; overflow-x: auto; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border-radius: 0.5rem; background: var(--card); border: 2px solid transparent; }
.theme-product-thumb.is-active { border-color: var(--foreground); }
.theme-product-info__category { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(62,35,20,0.8); margin-bottom: 0.75rem; }
.theme-product-info__title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .theme-product-info__title { font-size: 3rem; } }
.theme-product-info__price { margin-top: 0.75rem; font-size: 1.25rem; }
.theme-product-info__stock.is-out { color: var(--accent); font-weight: 600; margin-top: 0.5rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(62,35,20,0.7); overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 1rem; transition: background 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: rgba(62,35,20,0.05); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; padding: 0.5rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-tabs { margin-top: 2.5rem; }
.theme-product-tabs__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem 1rem; align-items: end; border-bottom: 1px solid rgba(62,35,20,0.3); padding-bottom: 0.5rem; }
.theme-product-tabs__btn {
	position: relative; min-width: 0; font-family: var(--font-display); font-size: 0.8rem; line-height: 1.2; padding-bottom: 0.5rem;
	color: rgba(62,35,20,0.6); transition: color 0.2s ease;
}
@media (min-width: 768px) { .theme-product-tabs__btn { font-size: 1rem; } }
.theme-product-tabs__btn.is-active { font-style: italic; color: var(--foreground); }
.theme-product-tabs__btn.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--foreground); }
.theme-product-tabs__panel { display: none; padding-top: 1.5rem; font-size: 0.95rem; color: rgba(62,35,20,0.8); line-height: 1.7; }
.theme-product-tabs__panel.is-active { display: block; }
.theme-product-tabs__bullets { list-style: none; margin: 0; padding: 0; }
.theme-product-tabs__bullets li { display: flex; align-items: flex-start; margin-bottom: 0.5rem; }
.theme-product-tabs__bullets li::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: var(--foreground); margin: 0.55rem 0.75rem 0 0; flex-shrink: 0; }

.related-products-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.related-products-section__head { text-align: center; margin-bottom: 2.5rem; }
.related-products-section__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--muted-foreground); margin-bottom: 0.25rem; }
.related-products-section__heading { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 2.25rem; } }

.woocommerce-product-details__short-description, .woocommerce-variation-description, .posted_in { overflow-wrap: break-word; word-break: break-word; }
.single-product .theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* Variations table layout */
.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.5rem; }
.single-product .variations tbody td.label label {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 700;
	color: var(--foreground);
}
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.55 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill { padding: 0.5rem 1.25rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.2s ease; }
.theme-attr-pill:hover { border-color: var(--foreground); }
.theme-attr-pill.is-selected { border-color: var(--foreground); background: rgba(62,35,20,0.05); }

/* -------------------------------------------------------------------------
 * 21. WOOCOMMERCE OVERRIDES
 * ---------------------------------------------------------------------- */
.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;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
}

.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;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { background: #fdecea; color: #611a15; border-radius: 0.75rem; padding: 1rem 1.5rem; margin: 1rem 0; list-style: none; font-family: var(--font-body); }
.woocommerce-message, .woocommerce-info {
	background: var(--card); color: var(--foreground); border-radius: 0.75rem; padding: 1rem 1.5rem; margin: 1rem 0; font-family: var(--font-body); list-style: none;
}

.woocommerce-breadcrumb { display: none; }

/* -------------------------------------------------------------------------
 * 22. CHECKOUT BLOCK OVERRIDE
 * ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }
.theme-page-shell .page-title { font-family: var(--font-display); font-style: italic; font-size: 2.5rem; margin-bottom: 2rem; color: var(--primary); }

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
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);
		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-text-input textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout select,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout 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: 0.375rem !important;
	background: var(--background) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 1px var(--primary) !important;
	outline: none !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-weight: 500 !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-surface);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	font-size: var(--btn-font-size) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.75rem; }

/* -------------------------------------------------------------------------
 * 23. THANK YOU PAGE
 * ---------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-style: italic; padding: 0 0 1rem 0; font-size: 1.5rem; }
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; }

/* -------------------------------------------------------------------------
 * 24. RESPONSIVE HELPERS
 * ---------------------------------------------------------------------- */
