/* ==========================================================================
   Pitter Paw Collars — theme stylesheet
   Custom design system: brand colors, typography, layout and components.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--color-border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.03em;
	font-weight: 700;
	margin: 0;
	line-height: 1.1;
}

/* Cover-image exclusion list (Section 15.1) — every class below is also
   declared in the "cover image" ruleset further down. */
img:not(.cover-img) {
	max-width: 100%;
	height: auto;
}
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   2. CSS variables (fallback defaults; live values are injected inline by
      wp_add_inline_style — Section 22.9 / 6.1).
   ------------------------------------------------------------------------- */
:root {
	--color-background: #fffdfa;
	--color-foreground: #162c2c;
	--color-primary: #139086;
	--color-primary-foreground: #fffcf5;
	--color-secondary: #faf5e5;
	--color-muted: #e7efee;
	--color-muted-foreground: #5a7271;
	--color-accent: #f43e5c;
	--color-accent-foreground: #ffffff;
	--color-border: #dae7e5;
	--color-butter: #fcf6e8;
	--color-ring: #139086;

	--font-display: 'Outfit', system-ui, sans-serif;
	--font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

	--radius: 1.25rem;
	--shadow-soft: 0 6px 24px -6px rgb(22 44 44 / 0.08);
	--shadow-elevated: 0 16px 48px -12px rgb(22 44 44 / 0.16);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--header-height: 80px;
	--logo-height: 40px;

	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 13px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.16em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;
	--checkout-gap: 2.5rem;
	--card-radius: 1.25rem;
	--section-padding: 2rem;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	min-width: 0;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

/* -------------------------------------------------------------------------
   3. Buttons & links
   ------------------------------------------------------------------------- */
.theme-nav-link,
.theme-nav-list a,
.theme-accordion__trigger,
.theme-size-pill,
.theme-product-thumb,
.theme-cart-drawer__remove,
.theme-cart-drawer__qty-btn,
.theme-qty-minus,
.theme-qty-plus,
.site-header__menu-toggle,
.site-header__cart-btn,
.site-header__brand,
.site-header__mobile-link,
.theme-category-tile,
.theme-cat-filter,
.theme-shop-price-filter__toggle,
.theme-link-underline,
.site-footer__brand,
.site-footer__nav-link,
.site-footer__contact-link,
.theme-modal__close,
.theme-modal__quick-contacts a,
.theme-product-card__link,
.theme-card-link,
.theme-404__link,
[data-scroll-to],
[data-contact-trigger],
[data-cart-open],
[data-cart-close] {
	cursor: pointer;
}

.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.theme-btn-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-outline {
	background-color: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
}
.theme-btn-outline:hover { background-color: var(--color-muted); }
.theme-btn-pill {
	border-radius: 9999px;
	padding: 0 2.5rem;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	box-shadow: var(--shadow-soft);
}
.theme-btn-block { width: 100%; }
.theme-btn-sm { height: 36px; font-size: 0.8125rem; }

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-link-underline::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }
.theme-link-underline--light { color: var(--color-primary-foreground); }

.theme-eyebrow {
	display: block;
	font-size: 13px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
	text-align: center;
	max-width: 100%;
	overflow-wrap: anywhere;
}
@media (max-width: 374px) {
	.theme-eyebrow { letter-spacing: 0.18em; font-size: 11px; }
}
.theme-eyebrow--light { color: rgb(255 255 255 / 0.7); }
.theme-highlight { color: var(--color-primary); }
.theme-highlight--accent { color: var(--color-accent); }

.theme-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.theme-icon--xs { width: 0.875rem; height: 0.875rem; }
.theme-icon--sm { width: 1rem; height: 1rem; }
.theme-icon--xl { width: 3rem; height: 3rem; }

.section-heading {
	font-family: var(--font-display);
	font-weight: 800;
	text-align: center;
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
   4. Scroll-reveal animations (Section 2.1)
   ------------------------------------------------------------------------- */
.reveal-item, .reveal-hero {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible, .reveal-hero.is-visible {
	opacity: 1;
	transform: translateY(0);
}
body.is-customizer .reveal-item,
body.is-customizer .reveal-hero {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-hero { transition: none; opacity: 1; transform: none; }
}

@keyframes kenBurns {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.animate-ken-burns {
	animation: kenBurns 26s ease-in-out infinite alternate;
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.animate-ken-burns { animation: none; }
}

@keyframes themeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes themeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: themeFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: themeSlideUp 0.6s var(--transition-smooth) forwards; }

/* -------------------------------------------------------------------------
   5. Announcement bar
   ------------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-announcement-bar__inner { padding: 0.5rem 2.5rem 0.5rem 1.5rem; text-align: center; min-width: 0; }
.theme-announcement-bar__text {
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	overflow-wrap: anywhere;
}
@media (max-width: 374px) {
	.theme-announcement-bar__text { letter-spacing: 0.12em; font-size: 11px; }
}
.theme-announcement-bar__close {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	padding: 0.25rem;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}
.theme-announcement-bar__close:hover { opacity: 1; }

/* WordPress admin bar offset for sticky header */
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* -------------------------------------------------------------------------
   6. Header
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
	background-color: rgb(255 253 250 / 0.95);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-header__nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 5rem;
	min-width: 0;
}
.site-header__toggle,
.site-header__actions {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	z-index: 2;
}
.site-header__toggle { left: 0; }
.site-header__actions { right: 0; }
.site-header__menu-toggle { padding: 0.5rem; transition: opacity 0.2s ease; }
.site-header__menu-toggle:hover { opacity: 0.6; }
.site-header__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-width: 0;
	max-width: calc(100% - 6.5rem);
}
.site-logo-img {
	height: 2.25rem !important;
	width: auto !important;
	object-fit: contain;
	flex-shrink: 0;
}
@media (min-width: 768px) {
	.site-logo-img { height: var(--logo-height) !important; }
}
.site-logo-text {
	display: none;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
	color: var(--color-foreground);
	overflow: hidden;
	text-overflow: ellipsis;
}
.site-logo-text__accent { color: var(--color-primary); }
@media (min-width: 640px) {
	.site-logo-text { display: block; }
}
.site-header__cart-btn { position: relative; padding: 0.5rem; transition: opacity 0.2s ease; }
.site-header__cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

/* Desktop nav — absolute left, visible lg+ (matches Lovable lg:flex) */
.site-header__nav-links {
	display: none;
	align-items: center;
	gap: 1.75rem;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
}
@media (min-width: 1024px) {
	.site-header__nav-links { display: flex; }
	.site-header__toggle { display: none; }
	.site-header__brand { max-width: none; }
}
.theme-nav-link, .theme-nav-list a {
	position: relative;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: color 0.3s ease;
	white-space: nowrap;
}
.theme-nav-link::after, .theme-nav-list a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--color-primary); }
.theme-nav-link:hover::after, .theme-nav-list a:hover::after { transform: scaleX(1); }
.theme-nav-list--desktop { display: flex; gap: 1.75rem; }

/* Mobile menu panel — separate UI from desktop nav (matches Lovable) */
.site-header__mobile-menu {
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
	animation: fadeIn 0.3s var(--transition-smooth) forwards;
}
.site-header__mobile-menu[hidden] { display: none !important; }
.site-header__mobile-links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.site-header__mobile-link {
	display: block;
	width: 100%;
	text-align: left;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.025em;
	text-transform: none;
	padding: 0.5rem 0;
	color: var(--color-foreground);
	background: none;
	border: none;
	transition: color 0.2s ease;
}
.site-header__mobile-link:hover { color: var(--color-muted-foreground); }
.site-header__mobile-link::after { display: none !important; }
.site-header__menu-toggle .icon-menu,
.site-header__menu-toggle .icon-close { display: block; }
.site-header__menu-toggle .icon-menu[hidden],
.site-header__menu-toggle .icon-close[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.theme-hero__mobile { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; }
.theme-hero__desktop { display: none; }
@media (min-width: 1280px) {
	.theme-hero__mobile { display: none; }
	.theme-hero__desktop { display: block; position: relative; min-height: 560px; overflow: hidden; }
}
.theme-hero__image--desktop { object-position: right center; }
.theme-hero__gradient--mobile {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.25) 60%, rgb(0 0 0 / 0.1));
}
.theme-hero__content-wrap { position: relative; z-index: 10; display: flex; min-height: 560px; align-items: center; justify-content: flex-start; }
.theme-hero__content--mobile {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 1.5rem;
	text-align: center;
	width: 100%;
	max-width: none;
}
.theme-hero__content:not(.theme-hero__content--mobile) {
	max-width: 28rem;
	text-align: left;
}
.theme-hero__content--mobile .theme-hero__heading,
.theme-hero__content--mobile .theme-hero__description {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.theme-hero__content--mobile .theme-hero__description {
	max-width: 28rem;
}
.theme-hero__eyebrow { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1rem; color: var(--color-muted-foreground); max-width: 100%; overflow-wrap: anywhere; }
.theme-hero__eyebrow--light { color: rgb(255 255 255 / 0.9); text-align: center; padding-inline: 0.5rem; }
@media (max-width: 374px) {
	.theme-hero__eyebrow, .theme-hero__eyebrow--light { letter-spacing: 0.18em; font-size: 11px; }
}
.theme-hero__heading { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.25rem; color: var(--color-foreground); }
.theme-hero__heading--light { color: #fff; }
.theme-hero__highlight { color: var(--color-primary); }
.theme-hero__description { font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 28rem; margin-left: auto; margin-right: auto; color: rgb(22 44 44 / 0.75); }
.theme-hero__description--light { color: rgb(255 255 255 / 0.85); }
@media (min-width: 1280px) {
	.theme-hero__heading { font-size: 3.75rem; line-height: 1.03; margin-left: 0; margin-right: 0; }
	.theme-hero__description { margin-left: 0; margin-right: 0; }
}

/* -------------------------------------------------------------------------
   8. Generic section spacing
   ------------------------------------------------------------------------- */
.theme-section { background-color: var(--color-background); }
.theme-home { overflow-x: clip; min-width: 0; }
.theme-section > .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
	.theme-section > .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
}
.theme-section__heading { text-align: center; margin-bottom: 3rem; }
.theme-section__footer { text-align: center; margin-top: 3.5rem; }

/* -------------------------------------------------------------------------
   9. Category tiles
   ------------------------------------------------------------------------- */
.theme-category-section .section-heading,
.about-section-heading,
.offerings-section .section-heading { font-weight: 800; }
.category-section-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .category-section-heading { font-size: 2.25rem; } }

.theme-category-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
	.theme-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
.theme-category-tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 1.25rem;
	text-align: left;
	transition: transform 0.3s ease;
}
.theme-category-tile:hover { transform: translateY(-4px); }
.theme-category-tile__image { transition: transform 0.7s var(--transition-smooth); }
.theme-category-tile:hover .theme-category-tile__image { transform: scale(1.04); }
.theme-category-tile__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgb(22 44 44 / 0.55), rgb(22 44 44 / 0.1) 60%, transparent);
	transition: background-color 0.5s ease;
}
.theme-category-tile:hover .theme-category-tile__overlay { background: linear-gradient(to top, rgb(22 44 44 / 0.65), rgb(22 44 44 / 0.15) 60%, transparent); }
.theme-category-tile__content {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.5rem;
	color: #fff;
}
@media (min-width: 768px) { .theme-category-tile__content { padding: 1.75rem; } }
.theme-category-tile__tagline { display: block; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.5rem; }
.theme-category-tile__label { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .theme-category-tile__label { font-size: 1.875rem; } }
.theme-category-tile__cta { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.9; }

/* -------------------------------------------------------------------------
   10. Featured products (bg-primary editorial band)
   ------------------------------------------------------------------------- */
.theme-featured-section { background-color: var(--color-primary); }
.theme-featured-section .theme-section__heading { margin-bottom: 3.5rem; }
.featured-section-heading { color: var(--color-primary-foreground); font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .featured-section-heading { font-size: 3rem; } }
.theme-product-grid--featured { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 768px) { .theme-product-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.theme-featured-card {
	background-color: var(--color-background);
	border-radius: 1.25rem;
	padding: 1rem 1rem 1.5rem;
	box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .theme-featured-card { padding: 1.25rem 1.25rem 1.5rem; } }

/* -------------------------------------------------------------------------
   11. About section
   ------------------------------------------------------------------------- */
.theme-about-section { background-color: var(--color-butter); }
.theme-about-section > .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .theme-about-section > .container-wide { padding-top: 4rem; padding-bottom: 4rem; } }
.theme-about__inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.theme-about__image-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.theme-about__image { width: 7rem; height: 7rem; border-radius: 1.25rem; box-shadow: var(--shadow-soft); position: relative; }
@media (min-width: 768px) { .theme-about__image { width: 8rem; height: 8rem; } }
.about-section-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .about-section-heading { font-size: 3rem; } }
.theme-about__quote { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.35; color: rgb(22 44 44 / 0.85); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .theme-about__quote { font-size: 1.5rem; } }
.theme-about__paragraph { color: rgb(22 44 44 / 0.7); line-height: 1.75; margin-bottom: 1rem; }

/* -------------------------------------------------------------------------
   12. Collar guide
   ------------------------------------------------------------------------- */
.guide-section-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .guide-section-heading { font-size: 3rem; } }
.theme-guide-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .theme-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.theme-guide-card {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	border: 1px solid;
	padding: 2rem;
	transition: border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) { .theme-guide-card { padding: 2.5rem; } }
.theme-guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.theme-guide-card--primary { border-color: color-mix(in srgb, var(--color-primary) 20%, transparent); background-color: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.theme-guide-card--primary:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.theme-guide-card--accent { border-color: color-mix(in srgb, var(--color-accent) 25%, transparent); background-color: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.theme-guide-card--accent:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.theme-guide-card__glow {
	position: absolute; right: -2.5rem; top: -2.5rem;
	height: 8rem; width: 8rem; border-radius: 9999px;
	filter: blur(24px); opacity: 0; transition: opacity 0.5s ease;
	pointer-events: none;
}
.theme-guide-card--primary .theme-guide-card__glow { background-color: color-mix(in srgb, var(--color-primary) 25%, transparent); }
.theme-guide-card--accent .theme-guide-card__glow { background-color: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.theme-guide-card:hover .theme-guide-card__glow { opacity: 1; }
.theme-guide-card__icon {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem; border-radius: 1rem;
	margin-bottom: 1.5rem;
	transition: background-color 0.5s ease, color 0.5s ease, transform 0.3s ease;
}
.theme-guide-card--primary .theme-guide-card__icon { background-color: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); }
.theme-guide-card--primary:hover .theme-guide-card__icon { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-guide-card--accent .theme-guide-card__icon { background-color: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); }
.theme-guide-card--accent:hover .theme-guide-card__icon { background-color: var(--color-accent); color: var(--color-accent-foreground); }
.theme-guide-card:hover .theme-guide-card__icon { transform: rotate(-8deg) scale(1.08); }
.theme-guide-card__bestfor {
	position: relative;
	display: inline-block;
	border-radius: 9999px;
	padding: 0.25rem 0.75rem;
	font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.theme-guide-card--primary .theme-guide-card__bestfor { background-color: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); }
.theme-guide-card--accent .theme-guide-card__bestfor { background-color: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); }
.theme-guide-card__title { position: relative; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .theme-guide-card__title { font-size: 1.5rem; } }
.theme-guide-card__description { position: relative; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-guide-card__bar { position: relative; display: block; margin-top: 1.5rem; height: 4px; width: 2.5rem; border-radius: 9999px; transform-origin: left; transition: transform 0.5s ease; }
.theme-guide-card--primary .theme-guide-card__bar { background-color: var(--color-primary); }
.theme-guide-card--accent .theme-guide-card__bar { background-color: var(--color-accent); }
.theme-guide-card:hover .theme-guide-card__bar { transform: scaleX(3.5); }

/* -------------------------------------------------------------------------
   13. Shop section
   ------------------------------------------------------------------------- */
.shop-heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
.theme-shop-section__heading { display: flex; flex-direction: column; align-items: center; }

.theme-shop-search { position: relative; width: 100%; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search__input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.75rem;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	font-size: 1rem;
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.theme-shop-search__input:focus { outline: none; border-color: var(--color-foreground); }
.theme-shop-search__input::placeholder { color: var(--color-muted-foreground); }

.theme-shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.5rem 1rem;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 9999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s ease;
	max-width: 100%;
	white-space: nowrap;
}
.theme-cat-filter:hover { border-color: var(--color-foreground); }
.theme-cat-filter.is-active { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-shop-price-filter__toggle {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s ease;
	max-width: 100%;
	text-align: center;
}
.theme-shop-price-filter__toggle:hover { color: var(--color-foreground); }
.theme-shop-price-filter__toggle svg { transition: transform 0.3s ease; }
.theme-shop-price-filter__toggle.is-open svg { transform: rotate(180deg); }
.theme-shop-price-filter__current { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.theme-shop-price-filter__panel {
	width: 100%;
	max-width: 24rem;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
	box-sizing: border-box;
	padding-inline: 0.25rem;
}
.theme-shop-price-filter__panel.is-open { max-height: 200px; opacity: 1; padding: 0.5rem 0; }
.theme-shop-price-filter__values { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }

/* Dual-handle price range (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 9999px; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-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: 1.25rem; height: 1.25rem;
	border-radius: 9999px;
	border: 2px solid var(--color-primary);
	background: var(--color-background);
	cursor: pointer;
	box-shadow: var(--shadow-soft);
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 1.25rem; height: 1.25rem;
	border-radius: 9999px;
	border: 2px solid var(--color-primary);
	background: var(--color-background);
	cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* Product grid & cards */
.theme-product-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; align-items: stretch; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.theme-product-grid--archive { margin-top: 2rem; }

#theme-shop-grid .theme-product-card-wrap.is-filtered-out,
#theme-shop-grid .theme-product-card-wrap.is-hidden-slot { display: none; }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__image-wrapper,
.theme-product-card__quick-add,
.add_to_cart_button.ajax_add_to_cart { pointer-events: auto; }
.theme-product-card__image-wrapper { position: relative; overflow: hidden; }

.theme-product-card__image-wrapper {
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	border-radius: 1.25rem;
	margin-bottom: 1.25rem;
}
.theme-product-card__image-wrapper img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.04); }
.theme-product-card-wrap[data-in-stock="0"] .theme-product-card__image-wrapper img { opacity: 0.6; }

.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
	padding: 0.25rem 0.75rem;
	font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: 9999px;
}
.theme-product-card__quick-add {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
	width: 2.5rem; height: 2.5rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9999px;
	background-color: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: var(--shadow-soft);
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.2s ease;
	min-height: unset !important;
	padding: 0 !important;
	border: none !important;
}
.theme-product-card__quick-add:hover { transform: scale(1.08); }
@media (min-width: 768px) {
	.theme-product-card__quick-add { opacity: 0; }
	.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
}

.theme-product-card__info { text-align: center; }
.theme-product-card__title {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--color-foreground);
	transition: color 0.3s ease;
	margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; font-weight: 600; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }

.theme-shop-actions { text-align: center; margin-top: 3rem; }
.theme-shop-empty { text-align: center; padding: 5rem 0; }
.theme-shop-empty p { color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   14. CTA section with video background
   ------------------------------------------------------------------------- */
.theme-cta-section { position: relative; background-color: var(--color-butter); overflow: hidden; }
.theme-cta-section__video { z-index: 0; }
.theme-cta-section__overlay { position: absolute; inset: 0; z-index: 1; background-color: color-mix(in srgb, var(--color-background) 45%, transparent); }
.theme-cta-section__gradient { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 55%, transparent), color-mix(in srgb, var(--color-background) 20%, transparent), color-mix(in srgb, var(--color-background) 55%, transparent)); }
.theme-cta-section__inner { position: relative; z-index: 2; }
.theme-cta-section__content { max-width: 42rem; margin: 0 auto; text-align: center; }
.cta-band__title { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-band__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-band__title { font-size: 3rem; } }
.theme-cta-section__paragraph { color: rgb(22 44 44 / 0.75); line-height: 1.75; margin-bottom: 2.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }
.theme-cta-section__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta-section__actions { flex-direction: row; } }

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); }
.site-footer .container-wide {
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.site-footer .container-wide { padding-inline: 2rem; }
}
.site-footer__top {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem;
}
@media (min-width: 1024px) {
	.site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; padding-top: 3rem; padding-bottom: 3rem; }
}
.site-footer__brand { display: flex; align-items: center; gap: 0.625rem; }
.site-footer__brand .site-logo-text { display: block; font-size: 1.125rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 1.5rem; }
@media (min-width: 1024px) { .site-footer__nav { gap: 2rem; } }
.site-footer__nav-link { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.site-footer__nav-link:hover { color: var(--color-primary); }
.site-footer__contact { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .site-footer__contact { flex-direction: row; gap: 1.25rem; } }
.site-footer__contact-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; max-width: 100%; overflow-wrap: anywhere; }
.site-footer__contact-link:hover { color: var(--color-primary); }
.site-footer__bottom {
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright, .site-footer__credit { font-size: 13px; color: var(--color-muted-foreground); letter-spacing: 0.02em; }
.site-footer__credit a { text-decoration: underline; transition: color 0.2s ease; }
.site-footer__credit a:hover { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   16. Cart drawer + overlay + contact modal
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 50;
	background-color: rgb(22 44 44 / 0.2);
	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; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background-color: var(--color-background);
	z-index: 51;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s 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(--color-border); }
.theme-cart-drawer__title { 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(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty p { color: var(--color-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-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { width: 5rem; height: 6rem; background-color: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.5rem; }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-drawer__item-meta { font-size: 0.8125rem; color: var(--color-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 { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-drawer__qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-drawer__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* Hide WooCommerce's default "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Contact modal */
.theme-modal { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.theme-modal.is-open { visibility: visible; }
.theme-modal__overlay { position: absolute; inset: 0; background-color: rgb(0 0 0 / 0.8); opacity: 0; transition: opacity 0.2s ease; }
.theme-modal.is-open .theme-modal__overlay { opacity: 1; }
.theme-modal__content {
	position: absolute; left: 50%; top: 50%;
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	transform: translate(-50%, -48%) scale(0.96);
	opacity: 0;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	padding: 1.5rem;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.theme-modal.is-open .theme-modal__content { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.theme-modal__close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__header { margin-bottom: 1rem; }
.theme-modal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal__description { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-modal__quick-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-modal__quick-contacts a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-modal__quick-contacts a:hover { color: var(--color-primary); }

.theme-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-form__field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-contact-form input, .theme-contact-form textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	font-size: 1rem;
	transition: box-shadow 0.3s ease;
}
.theme-contact-form input::placeholder, .theme-contact-form textarea::placeholder { color: var(--color-muted-foreground); }
.theme-contact-form input:focus, .theme-contact-form textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 50%, transparent); }
.theme-contact-form textarea { resize: none; }
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-form__error { color: var(--color-accent); font-size: 0.875rem; }

.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success__icon {
	width: 3.5rem; height: 3.5rem; border-radius: 9999px;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
}
.theme-contact-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-success p { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   17. Breadcrumb, single product page (ProductDetail.tsx parity)
   ------------------------------------------------------------------------- */
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); }

body.single-product .site-main.single-product-main,
body.theme-no-hero.single-product .site-main.single-product-main {
	padding-top: 6rem !important;
	padding-bottom: 0;
	overflow-x: clip;
}
@media (min-width: 1024px) {
	body.single-product .site-main.single-product-main,
	body.theme-no-hero.single-product .site-main.single-product-main {
		padding-top: 7rem !important;
	}
}

.theme-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding: 1rem 0 6rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4rem;
	}
}

.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-gallery__mobile { display: block; }
.theme-product-gallery__desktop { display: none; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) {
	.theme-product-gallery__mobile { display: none; }
	.theme-product-gallery__desktop { display: flex; }
}

.theme-product-gallery__frame {
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
}
.theme-product-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: static !important;
	max-width: 100%;
}

.theme-product-thumbnails {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin-top: 1rem;
	overflow-x: auto;
	max-width: 100%;
	padding-bottom: 0.25rem;
}
.theme-product-thumb {
	position: relative;
	width: 5rem;
	height: 5rem;
	flex-shrink: 0;
	overflow: hidden;
	background-color: var(--color-secondary);
	border: none;
	padding: 0;
}
.theme-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: static !important;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}
.theme-product-thumb:hover img,
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--color-foreground);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-info {
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 1024px) {
	.theme-product-info {
		position: sticky;
		top: 7rem;
		align-self: start;
		padding-left: 1rem;
	}
}

.theme-product-info__category {
	display: block;
	font-size: 13px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}
.theme-product-info__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.1;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
	.theme-product-info__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
	.theme-product-info__title { font-size: 2.75rem; }
}
.theme-product-info__price {
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
	font-family: var(--font-body);
	color: var(--color-foreground);
}
.theme-product-info__price .amount,
.theme-product-info__price bdi,
.theme-product-info__price span { font: inherit; color: inherit; }
.theme-product-info__stock { font-size: 0.875rem; margin-bottom: 1rem; font-weight: 500; }
.theme-product-info__stock.is-out-of-stock { color: var(--color-accent); }
.theme-product-info__teaser {
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	overflow-wrap: break-word;
}

.theme-product-options { margin-bottom: 1.5rem; }
.theme-product-options__label {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
	font-family: var(--font-body);
	font-weight: 400;
}
.theme-product-options__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-product-options__swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.theme-color-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	font-family: var(--font-body);
	background: transparent;
}
.theme-color-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-color-pill.is-selected {
	border-color: var(--color-primary);
	background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.theme-color-swatch {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	flex-shrink: 0;
}
.theme-color-swatch--sm { width: 0.625rem; height: 0.625rem; }

.ppc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.theme-cart-item-meta {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	color: var(--color-muted-foreground);
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.theme-cart-item-meta__row { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.theme-cart-item-meta__color { display: inline-flex; align-items: center; gap: 0.35rem; }
.theme-cart-item-meta__label { font-weight: 500; }

.theme-size-pill {
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	transition: all 0.2s ease;
	font-family: var(--font-body);
}
.theme-size-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-size-pill.is-selected {
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-color: var(--color-foreground);
}

.theme-product-quantity { margin-bottom: 1rem; }
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: 0;
}
.theme-qty-minus,
.theme-qty-plus {
	padding: 0.5rem 0.75rem;
	transition: background-color 0.2s ease;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-value {
	display: inline-block;
	min-width: 2.75rem;
	padding: 0.5rem 1rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.theme-qty-input { display: none; }

.theme-add-to-cart-area { margin-bottom: 0.5rem; }

/* Lovable CTA — foreground fill, pill shape */
.theme-product-atc-btn,
.single-product-main .theme-product-atc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem 1.5rem;
	border: none;
	border-radius: 9999px;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	min-height: unset !important;
}
.theme-product-atc-btn:hover:not(:disabled):not(.disabled) {
	opacity: 0.9;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
}
.theme-product-atc-btn:disabled,
.theme-product-atc-btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.25rem 0;
	text-align: left;
}
.theme-accordion__trigger span {
	font-size: 13px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-accordion__chevron { transition: transform 0.2s ease; }
.theme-accordion.is-open .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; overflow-wrap: break-word; }
.theme-accordion.is-open .theme-accordion__panel { display: block; }
.theme-accordion__description-text,
.theme-accordion__panel p {
	font-size: 0.9375rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 1rem;
	font-family: var(--font-body);
	white-space: pre-line;
}
.theme-accordion__list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-accordion__list li {
	display: flex;
	align-items: flex-start;
	font-size: 0.9375rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}
.theme-accordion__list li::before {
	content: '';
	width: 4px;
	height: 4px;
	border-radius: 9999px;
	background: var(--color-foreground);
	margin: 0.5rem 0.75rem 0 0;
	flex-shrink: 0;
}

.related-products-section {
	padding: 5rem 0;
	border-top: 1px solid var(--color-border);
}
.theme-related__heading { text-align: center; margin-bottom: 3rem; }
.theme-related__heading-italic {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1rem;
	color: var(--color-muted-foreground);
	margin-bottom: 0.5rem;
}
.theme-related__heading-main {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
}
@media (min-width: 768px) {
	.theme-related__heading-main { font-size: 2.25rem; }
}

.theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (min-width: 1024px) {
	.theme-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}
.theme-related-card {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
.theme-related-card__image-wrap {
	display: block;
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	border-radius: 1.25rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
	transition: transform 0.3s ease;
}
.theme-related-card:hover .theme-related-card__image-wrap { transform: translateY(-4px); }
.theme-related-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: static !important;
	display: block;
	transition: transform 0.7s var(--transition-smooth);
}
.theme-related-card:hover .theme-related-card__image { transform: scale(1.04); }
.theme-related-card__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}
.theme-related-card__category {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.theme-related-card__title {
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.25;
	transition: color 0.3s ease;
}
@media (min-width: 768px) {
	.theme-related-card__title { font-size: 1.25rem; }
}
.theme-related-card:hover .theme-related-card__title { color: var(--color-primary); }
.theme-related-card__price {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-muted-foreground);
}
@media (min-width: 768px) {
	.theme-related-card__price { font-size: 1.125rem; }
}

/* Reset WC leftovers on single product */
.single-product-main .woocommerce-product-gallery,
.single-product-main .product_meta,
.single-product-main .woocommerce-tabs,
.single-product-main .woocommerce-notices-wrapper:not(:empty) { display: none !important; }
.single-product-main a.added_to_cart.wc-forward { display: none !important; }
.single-product-main .single_add_to_cart_button.loading::after,
.single-product-main .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;
}

/* -------------------------------------------------------------------------
   18. WooCommerce shop archive page
   ------------------------------------------------------------------------- */
.theme-shop-archive__inner { padding: 3rem 0; }
.theme-shop-archive__header { text-align: center; margin-bottom: 2.5rem; }
.theme-shop-archive__header .page-title { font-size: 2rem; }
.theme-shop-archive__pagination { margin-top: 3rem; text-align: center; }
.theme-shop-archive__empty { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   19. WooCommerce notices (Section 14.1)
   ------------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border: 1px solid var(--color-border);
	background-color: var(--color-secondary);
	color: var(--color-foreground);
	list-style: none;
}
.woocommerce-error { border-color: var(--color-accent); background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); }

/* -------------------------------------------------------------------------
   20. Generic page / 404 / thank you
   ------------------------------------------------------------------------- */
.theme-page { padding-top: 6rem; padding-bottom: 6rem; }
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }

.theme-404 { min-height: 60vh; display: flex; align-items: center; }
.theme-404__inner { text-align: center; padding: 6rem 0; }
.theme-404__code { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.theme-404__message { font-size: 1.125rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }

body.theme-thankyou-page .site-main { padding: 4rem 0; overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-order-details { margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem;
	list-style: none; padding: 1.5rem; background: var(--color-secondary); border-radius: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { flex: 1 1 auto; font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--color-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;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px; overflow-wrap: break-word;
	border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem;
}
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
	body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; max-width: none; }
}

/* -------------------------------------------------------------------------
   21. WooCommerce Checkout Block overrides (Section 13)
   Dual selectors: dedicated checkout page + embedded block in .entry-content
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .site-main--checkout,
.entry-content:has(.wc-block-checkout) .site-main {
	padding-top: 1.25rem;
	padding-bottom: 3rem;
}

/* Lateral padding — .theme-page shorthand used to zero .container-wide inline padding */
body.woocommerce-checkout .container-wide.theme-page--checkout {
	padding-top: 0;
	padding-bottom: 3rem;
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .container-wide.theme-page--checkout {
		padding-inline: 2rem;
	}
}

/* Neutralize parent width constraints on checkout */
body.woocommerce-checkout .theme-page--checkout,
body.woocommerce-checkout .theme-page--checkout .entry-content,
body.woocommerce-checkout .container-wide.theme-page--checkout,
.entry-content .wc-block-checkout {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	display: block;
	max-width: 1280px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

/* Checkout page header */
.theme-checkout-header { margin-bottom: 1.5rem; }
.theme-checkout-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
	margin-bottom: 1rem;
	font-family: var(--font-body);
}
.theme-checkout-header__back:hover { color: var(--color-foreground); }
.theme-checkout-header__title {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 0.75rem;
}
.theme-checkout-header__intro {
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin: 0;
	max-width: 42rem;
}

/* Two-column layout — verify DOM: sidebar layout wrappers */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout.is-large,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 1280px;
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
	grid-column: 1 / -1;
	order: 1;
}

body.woocommerce-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout__main { order: 2; }

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
	order: 3;
	min-width: 360px;
	background: none;
	border-radius: 0;
	padding: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	background-color: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 50%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input input::placeholder {
	color: var(--color-muted-foreground);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner { border-radius: 0.75rem; }

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	background-color: var(--color-background);
}
