/* =========================================================================
   Road Rash Leather — theme.css
   Design tokens ported 1:1 from the source design (src/index.css,
   tailwind.config.ts). Colors are emitted as CSS variables and overridden
   live by the Customizer (see inc/setup.php + assets/js/customizer-preview.js).
   ========================================================================= */

:root {
	--color-background: #f4f1eb;
	--color-foreground: #312017;
	--color-primary: #9d3d25;
	--color-primary-foreground: #faf8f4;
	--color-secondary: #ebe1d6;
	--color-muted-foreground: #5f4e45;
	--color-accent: #da8d1b;
	--color-border: #d1c7bd;
	--color-rosa: #7c1d38;
	--color-marigold: #e68a19;
	--color-teal: #296563;
	--color-butter: #ebe1d6;
	--color-surface-deep: #2f1f18;
	--color-surface-deep-foreground: #f1ece4;

	--font-display: 'Halant', serif;
	--font-body: 'Fira Sans', sans-serif;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgba(49, 32, 23, 0.10);
	--shadow-elevated: 0 8px 40px -8px rgba(49, 32, 23, 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--header-height: 80px;
	--logo-height: 60px;

	--btn-radius: 999px;
	--btn-height: 52px;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;
	--card-radius: 0.75rem;
	--section-padding: 2rem;
	--checkout-gap: 2rem;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { max-width: 100%; }
body { max-width: 100%; overflow-x: clip; }

body {
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* Global img rule must not break cover images (Section 15.1). */
img:not(.cover-img):not(.theme-product-card-img):not(.theme-dog-gear__image-small) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
img.cover-img:not([src]),
img.site-logo-img:not([src]),
img.theme-small-goods-tile__image:not([src]) {
	visibility: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a[href],
button:not(:disabled):not(.disabled),
.button:not(:disabled):not(.disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
label,
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="range"],
.theme-card-link,
.theme-collection-tile,
.theme-small-goods-tile,
.theme-gallery-card,
.theme-product-thumb,
.theme-category-pill,
.theme-hero__dot {
	cursor: pointer;
}
button:disabled,
button.disabled,
.button:disabled,
.button.disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.link-underline {
	position: relative;
	display: inline-block;
}
.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);
}
.link-underline:hover::after { transform: scaleX(1); }

.theme-section-divider {
	height: 1px;
	width: 100%;
	background: var(--color-border);
}

/* =========================================================================
   ANIMATIONS (Section 2.1)
   ========================================================================= */

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-scale-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes theme-fade-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.6s var(--transition-smooth) forwards; }

/* Scroll reveal: initial hidden state, revealed via IntersectionObserver in main.js. */
.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Staggered delay applied inline via JS (--reveal-delay) per Section 2.1 item 4. */
.reveal-item { transition-delay: var(--reveal-delay, 0s); }

/* Customizer preview + no-JS fallback: content must never be stuck invisible. */
body.is-customizer .reveal-item,
html.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .animate-fade-in, .animate-slide-up { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
	* { scroll-behavior: auto !important; }
}

/* =========================================================================
   ANNOUNCEMENT BAR
   ========================================================================= */

.theme-announcement-bar {
	position: relative;
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-bar__inner { padding-top: 0.5rem; padding-bottom: 0.5rem; text-align: center; }
.theme-announcement-bar__text {
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.theme-announcement-bar__close {
	position: absolute;
	right: 0.75rem; top: 50%;
	transform: translateY(-50%);
	padding: 0.25rem;
	opacity: 0.7;
	transition: opacity 0.2s;
	display: flex;
}
.theme-announcement-bar__close:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* =========================================================================
   HEADER
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid,
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--color-border);
}
body.theme-mobile-menu-open .site-header {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--color-border);
}

.site-header__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;
	position: relative;
}

.site-header__brand { display: flex; align-items: center; min-width: 0; }
.site-logo-text-wrap { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 768px) { .site-logo-text { font-size: 1.25rem; } }
.site-logo-subtitle {
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	margin-top: 0.25rem;
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.is-slot-hidden { display: none !important; }
.theme-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.theme-gallery__label {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1;
	color: #fff;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.1;
}

.site-header__center-nav {
	display: none;
	align-items: center;
	gap: 2rem;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
@media (min-width: 1024px) { .site-header__center-nav { display: flex; } }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-link, .theme-nav-list a {
	font-size: 12px;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s;
}

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .site-header__actions { gap: 0.75rem; } }
.site-header__icon-btn {
	position: relative;
	padding: 0.5rem;
	display: inline-flex;
	transition: opacity 0.2s;
}
.site-header__icon-btn:hover { opacity: 0.6; }
.theme-shop-search-trigger { display: none; }
@media (min-width: 768px) { .theme-shop-search-trigger { display: inline-flex; } }

.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: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.site-header__mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .site-header__mobile-toggle { display: none; } }

.site-header__mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
body.theme-mobile-menu-open .site-header__mobile-menu {
	display: block;
	animation: theme-fade-in 0.4s var(--transition-smooth);
}
.site-header__mobile-menu .theme-nav-list,
.site-header__mobile-menu ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
}
.site-header__mobile-menu li { width: 100%; }
.theme-nav-list--mobile .theme-nav-link,
.theme-nav-list--mobile a,
.site-header__mobile-menu .theme-nav-link,
.site-header__mobile-menu a {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 14px;
	letter-spacing: 0.18em;
	padding: 0.5rem 0;
}

body.theme-no-hero .site-main,
body.theme-no-hero main {
	padding-top: var(--header-height);
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
	border-top: 1px solid var(--color-border);
	background: var(--color-butter);
}
.site-footer__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.site-footer__row {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
@media (min-width: 768px) {
	.site-footer__row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__brand { display: inline-flex; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
@media (min-width: 768px) { .site-footer__nav { gap: 1.75rem; } }
.theme-footer-nav-list, .site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.theme-footer-nav-list a, .site-footer__nav a {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.2s;
}
.theme-footer-nav-list a:hover, .site-footer__nav a:hover { color: var(--color-foreground); }

.site-footer__contact { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .site-footer__contact { flex-direction: row; align-items: center; gap: 1.25rem; } }
.site-footer__contact-link {
	display: flex; align-items: center; gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s;
}
a.site-footer__contact-link:hover { color: var(--color-foreground); }

.site-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	text-align: center;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; text-align: left; } }
.site-footer__quote {
	font-size: 12px;
	color: var(--color-muted-foreground);
	letter-spacing: 0.02em;
	font-style: italic;
	font-family: var(--font-display);
}
.site-footer__copy { font-size: 12px; color: var(--color-muted-foreground); letter-spacing: 0.02em; }

/* =========================================================================
   BUTTONS
   ========================================================================= */

.theme-btn-primary, .theme-btn-dark, .theme-btn-outline, .theme-btn-rosa,
.theme-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	font-family: var(--font-display);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	border-radius: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	border: none;
}
.theme-hero__cta { background: var(--color-background); color: var(--color-foreground); }
.theme-hero__cta:hover { background: color-mix(in srgb, var(--color-background) 90%, transparent); }

.theme-btn-primary {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0.05em;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8rem;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.theme-btn-dark { background: var(--color-foreground); color: var(--color-background); }
.theme-btn-dark:hover { background: color-mix(in srgb, var(--color-foreground) 90%, transparent); }

.theme-btn-rosa { background: var(--color-rosa); color: var(--color-background); }
.theme-btn-rosa:hover { background: color-mix(in srgb, var(--color-rosa) 90%, transparent); }

.theme-btn-outline {
	background: transparent;
	border: 1px solid var(--color-border) !important;
	color: var(--color-foreground);
	text-transform: none;
	letter-spacing: 0.02em;
	font-family: var(--font-body);
	font-weight: 500;
	border-radius: 0.375rem;
	min-height: 2.5rem;
	padding: 0 1.5rem;
}
.theme-btn-outline:hover { background: var(--color-secondary); }

/* =========================================================================
   TYPOGRAPHY / SECTION HEADINGS (Section 2.2.5 — per-section scales)
   ========================================================================= */

.theme-kicker {
	display: block;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
}
.theme-kicker--teal { color: var(--color-teal); }
.theme-kicker--marigold { color: var(--color-marigold); }
.theme-kicker--rosa { color: var(--color-rosa); }

.theme-italic-accent { display: block; font-style: italic; }
.theme-italic-accent--marigold { color: var(--color-marigold); }
.theme-italic-accent--rosa { color: var(--color-rosa); }

.section-heading { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

.collections-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .collections-heading { font-size: 2.25rem; } }

.featured-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .featured-heading { font-size: 3rem; } }

.about-heading { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-heading { font-size: 2.25rem; } }

.owner-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .owner-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .owner-heading { font-size: 3.75rem; } }

.services-heading { font-size: 2.25rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 4.5rem; } }

.theme-service-row__title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .theme-service-row__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-service-row__title { font-size: 3.75rem; } }

.small-goods-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .small-goods-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .small-goods-heading { font-size: 3.75rem; } }

.dog-gear-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .dog-gear-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .dog-gear-heading { font-size: 3.75rem; } }

.gallery-heading { font-size: 1.875rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .gallery-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-heading { font-size: 3.75rem; } }

.shop-heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.cta-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-heading { font-size: 3.75rem; } }

/* =========================================================================
   SHARED SECTION SPACING
   ========================================================================= */

.theme-section--padded { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .theme-section--padded { padding-top: 5rem; padding-bottom: 5rem; } }
.theme-section--padded-lg { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .theme-section--padded-lg { padding-top: 6rem; padding-bottom: 6rem; } }
.scroll-mt-24 { scroll-margin-top: 6rem; }

/* =========================================================================
   HERO
   ========================================================================= */

.theme-hero__slider {
	position: relative;
	width: 100%;
	height: 78vh;
	min-height: 560px;
	overflow: hidden;
}
@media (min-width: 768px) { .theme-hero__slider { height: 88vh; min-height: 680px; } }

.theme-hero__slide {
	opacity: 0;
	transition: opacity 1.2s var(--transition-smooth);
}
.theme-hero__slide.is-active { opacity: 1; z-index: 1; }
.theme-hero__overlay { position: absolute; inset: 0; background: rgba(49, 32, 23, 0.35); z-index: 2; }

.theme-hero__content { position: relative; height: 100%; z-index: 3; display: flex; align-items: center; justify-content: center; }
.theme-hero__content-inner { max-width: 42rem; text-align: center; }

.theme-hero__title {
	font-size: 3.75rem;
	line-height: 1.05;
	color: var(--color-background);
	margin-bottom: 1.5rem;
	max-width: 32rem;
	margin-left: auto; margin-right: auto;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
	font-weight: 400;
}
@media (min-width: 768px) { .theme-hero__title { font-size: 4.5rem; } }
@media (min-width: 1280px) { .theme-hero__title { font-size: 6rem; } }

.theme-hero__subtitle {
	color: rgba(244, 241, 235, 0.9);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 28rem;
	margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.125rem; } }

.theme-hero__dots {
	position: absolute;
	bottom: 1.5rem; left: 50%;
	transform: translateX(-50%);
	display: flex; gap: 0.5rem;
	z-index: 3;
}
.theme-hero__dot {
	height: 6px; width: 12px;
	background: rgba(244, 241, 235, 0.5);
	transition: all 0.5s;
}
.theme-hero__dot:hover { background: rgba(244, 241, 235, 0.75); }
.theme-hero__dot.is-active { width: 2rem; background: var(--color-background); }

/* =========================================================================
   SHOP BY COLLECTION
   ========================================================================= */

.theme-section__heading { text-align: center; margin-bottom: 2.5rem; }

.theme-collections-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 768px) { .theme-collections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.theme-collection-tile {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	display: block;
}
.theme-collection-tile__img { transition: transform 0.7s var(--transition-smooth); }
.theme-collection-tile:hover .theme-collection-tile__img { transform: scale(1.05); }
.theme-collection-tile__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(49,32,23,0.85), rgba(49,32,23,0.4) 55%, rgba(49,32,23,0.1));
	transition: background 0.5s;
}
.theme-collection-tile:hover .theme-collection-tile__gradient { background: linear-gradient(to top, rgba(49,32,23,0.9), rgba(49,32,23,0.45) 55%, rgba(49,32,23,0.12)); }
.theme-collection-tile__content {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.5rem;
	text-align: left;
	color: var(--color-background);
	text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
@media (min-width: 768px) { .theme-collection-tile__content { padding: 1.75rem; } }
.theme-collection-tile__tagline {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
	margin-bottom: 0.5rem;
	filter: brightness(1.5);
}
.theme-collection-tile__tagline--teal { color: var(--color-teal); }
.theme-collection-tile__tagline--marigold { color: var(--color-marigold); }
.theme-collection-tile__tagline--rosa { color: var(--color-rosa); }
.theme-collection-tile__tagline-rule { height: 1px; width: 1.5rem; background: currentColor; }
.theme-collection-tile__label { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .theme-collection-tile__label { font-size: 1.875rem; } }
.theme-collection-tile__link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); }

/* =========================================================================
   PRODUCT GRID / CARD (shared everywhere — Section 31.13)
   ========================================================================= */

.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-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

.theme-featured-products { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 768px) { .theme-featured-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-wrap[hidden] { display: none; }

.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card > .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__quick-add,
.theme-product-card .add_to_cart_button { position: relative; z-index: 3; pointer-events: auto; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.theme-product-card-img { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card-img.is-sold-out { opacity: 0.6; }

.theme-product-card__badge {
	position: absolute;
	top: 0.75rem; left: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 12px; font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	background: var(--color-foreground);
	color: var(--color-background);
	border-radius: 999px;
}

.theme-product-card__quick-add {
	position: absolute;
	bottom: 0.75rem; right: 0.75rem;
	width: 2.5rem; height: 2.5rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--color-background);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	transition: opacity 0.3s, transform 0.2s;
	min-height: unset !important;
	padding: 0 !important;
}
.theme-product-card:hover .theme-product-card__quick-add,
.theme-product-card__quick-add:focus-visible { opacity: 1; }
@media (max-width: 767px) { .theme-product-card__quick-add { opacity: 1; } }
.theme-product-card__quick-add:hover { transform: scale(1.08); }
.theme-product-card__quick-add:active { transform: scale(0.92); }

.theme-product-card__info { text-align: center; margin-top: 1rem; flex: 1; }
.theme-product-card__title {
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	font-family: var(--font-body);
	transition: color 0.3s;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; font-family: var(--font-body); }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }

/* Fixed-cardinality sections (Section 31.9.1). */
@media (min-width: 768px) {
	.theme-featured-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.theme-section__footer-link { text-align: center; margin-top: 3.5rem; }

/* =========================================================================
   ABOUT
   ========================================================================= */

.theme-about-section { background: var(--color-background); }
.theme-about__inner {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	padding: 5rem 1.5rem;
}
@media (min-width: 768px) { .theme-about__inner { padding: 7rem 3.5rem; } }
@media (min-width: 1024px) { .theme-about__inner { padding-left: 5rem; padding-right: 5rem; } }
.theme-about__paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }
.theme-about__link { display: inline-block; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; margin-top: 0.5rem; }

/* =========================================================================
   OWNER / SERVICES / DOG GEAR — split rows
   ========================================================================= */

.theme-owner__grid, .theme-dog-gear__grid, .theme-service-row {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
}
@media (min-width: 1024px) {
	.theme-owner__grid, .theme-dog-gear__grid, .theme-service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.theme-owner__photo-wrap, .theme-service-row__image-wrap { position: relative; min-height: 380px; }
@media (min-width: 768px) { .theme-owner__photo-wrap, .theme-service-row__image-wrap { min-height: 500px; } }
@media (min-width: 1024px) { .theme-owner__photo-wrap { min-height: 620px; } }
@media (min-width: 1024px) { .theme-service-row__image-wrap { min-height: 560px; } }
.theme-owner__photo { object-position: top; }

.theme-owner__copy-wrap, .theme-service-row__copy-wrap, .theme-dog-gear__copy-wrap {
	display: flex; align-items: center;
	background: var(--color-background);
	padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .theme-owner__copy-wrap, .theme-service-row__copy-wrap, .theme-dog-gear__copy-wrap { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) { .theme-owner__copy-wrap, .theme-service-row__copy-wrap, .theme-dog-gear__copy-wrap { padding-left: 5rem; padding-right: 5rem; } }
@media (min-width: 1280px) { .theme-owner__copy-wrap, .theme-service-row__copy-wrap, .theme-dog-gear__copy-wrap { padding: 6rem 6rem; } }
.theme-owner__copy, .theme-service-row__copy, .theme-dog-gear__copy { max-width: 36rem; }

.theme-owner__quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	margin-bottom: 2rem;
}
@media (min-width: 768px) { .theme-owner__quote { font-size: 1.5rem; } }
.theme-owner__paragraph { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }

.theme-services-section { background: var(--color-butter); }
.theme-services__heading { text-align: center; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .theme-services__heading { padding: 7rem 3.5rem; } }
@media (min-width: 1024px) { .theme-services__heading { padding-left: 5rem; padding-right: 5rem; } }
@media (min-width: 1024px) {
	.theme-service-row.is-reversed .theme-service-row__image-wrap { order: 2; }
	.theme-service-row.is-reversed .theme-service-row__copy-wrap { order: 1; }
}
.theme-service-row__copy-wrap { background: var(--color-butter); }
.theme-service-row__numeral {
	position: absolute; top: 1.25rem; left: 1.25rem;
	font-family: var(--font-display);
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	padding: 0.25rem 0.5rem;
	background: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(4px);
}
.theme-service-row__numeral--rosa { color: var(--color-rosa); }
.theme-service-row__numeral--marigold { color: var(--color-marigold); }
.theme-service-row__numeral--teal { color: var(--color-teal); }
.theme-service-row__icon-kicker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.theme-service-row__icon {
	display: flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	border-radius: 999px;
	border: 1px solid;
}
.theme-service-row__icon--rosa { border-color: color-mix(in srgb, var(--color-rosa) 40%, transparent); color: var(--color-rosa); }
.theme-service-row__icon--marigold { border-color: color-mix(in srgb, var(--color-marigold) 50%, transparent); color: var(--color-marigold); }
.theme-service-row__icon--teal { border-color: color-mix(in srgb, var(--color-teal) 40%, transparent); color: var(--color-teal); }
.theme-service-row__kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.theme-service-row__kicker--rosa { color: var(--color-rosa); }
.theme-service-row__kicker--marigold { color: var(--color-marigold); }
.theme-service-row__kicker--teal { color: var(--color-teal); }
.theme-service-row__description { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
@media (min-width: 768px) { .theme-service-row__description { font-size: 1.125rem; } }

/* =========================================================================
   SMALL GOODS (dark band)
   ========================================================================= */

.theme-small-goods-section { background: var(--color-surface-deep); color: var(--color-surface-deep-foreground); }
.theme-small-goods__heading { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.theme-small-goods__description { font-family: var(--font-body); color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.7; margin-top: 1.5rem; }

.theme-small-goods-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
@media (min-width: 768px) { .theme-small-goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-small-goods-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.theme-small-goods-tile { display: block; text-align: left; }
.theme-small-goods-tile__image-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: color-mix(in srgb, var(--color-surface-deep-foreground) 5%, transparent); }
.theme-small-goods-tile__image { transition: transform 0.6s var(--transition-smooth); }
.theme-small-goods-tile:hover .theme-small-goods-tile__image { transform: scale(1.05); }
.theme-small-goods-tile__info { padding-top: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.theme-small-goods-tile__label { font-size: 0.875rem; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .theme-small-goods-tile__label { font-size: 1rem; } }
.theme-small-goods-tile__price { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-marigold); font-family: var(--font-body); flex-shrink: 0; }

.theme-small-goods__footer { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.theme-small-goods__badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid color-mix(in srgb, var(--color-marigold) 40%, transparent);
	color: var(--color-marigold);
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
}
.theme-small-goods__badge-rule { height: 1px; width: 1rem; background: var(--color-marigold); }
.theme-small-goods__note { color: color-mix(in srgb, var(--color-surface-deep-foreground) 70%, transparent); font-size: 0.875rem; }

/* =========================================================================
   DOG GEAR
   ========================================================================= */

.theme-dog-gear__image-wrap { position: relative; min-height: 420px; }
@media (min-width: 768px) { .theme-dog-gear__image-wrap { min-height: 560px; } }
@media (min-width: 1024px) { .theme-dog-gear__image-wrap { min-height: 640px; } }
@media (min-width: 1024px) { .theme-dog-gear__grid .theme-dog-gear__image-wrap { order: 2; } .theme-dog-gear__grid .theme-dog-gear__copy-wrap { order: 1; } }
.theme-dog-gear__image-small {
	position: absolute;
	inset: auto;
	top: auto;
	right: auto;
	bottom: 1.5rem;
	left: 1.5rem;
	width: 8rem;
	height: calc(8rem * 4 / 3);
	max-width: none;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	box-shadow: var(--shadow-elevated);
	border: 4px solid var(--color-background);
	z-index: 2;
}
@media (min-width: 768px) {
	.theme-dog-gear__image-small { width: 11rem; height: calc(11rem * 4 / 3); }
}
@media (min-width: 1024px) {
	.theme-dog-gear__image-small { width: 13rem; height: calc(13rem * 4 / 3); }
}
.theme-dog-gear__paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.5rem; }
.theme-dog-gear__paragraph--italic { font-style: italic; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 2.5rem; }

/* =========================================================================
   GALLERY (marquee track)
   ========================================================================= */

.theme-gallery__wrap { padding: 5rem 0; }
@media (min-width: 768px) { .theme-gallery__wrap { padding: 7rem 0; } }
.theme-gallery__heading { margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-gallery__heading { margin-bottom: 3.5rem; } }

.theme-gallery__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	padding-left: 1.5rem; padding-right: 1.5rem;
	scrollbar-width: none;
}
.theme-gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .theme-gallery__track { gap: 1.5rem; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .theme-gallery__track { padding-left: 4rem; padding-right: 4rem; } }

.theme-gallery__item { flex-shrink: 0; width: 78%; }
@media (min-width: 640px) { .theme-gallery__item { width: 55%; } }
@media (min-width: 768px) { .theme-gallery__item { width: 40%; } }
@media (min-width: 1024px) { .theme-gallery__item { width: 30%; } }
@media (min-width: 1280px) { .theme-gallery__item { width: 26%; } }
.theme-gallery__link { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
.theme-gallery__img { object-position: top; transition: transform 0.9s var(--transition-smooth); }
.theme-gallery__link:hover .theme-gallery__img { transform: scale(1.04); }

.theme-gallery__controls-wrap { margin-top: 2.5rem; }
.theme-gallery__controls { display: flex; align-items: center; gap: 1rem; }
.theme-gallery__control-btn {
	height: 3rem; width: 3rem;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.2s, border-color 0.2s;
}
.theme-gallery__control-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* =========================================================================
   SHOP SECTION
   ========================================================================= */

.theme-shop__heading { text-align: center; margin-bottom: 3rem; }
.theme-shop__search { position: relative; max-width: 28rem; margin: 0 auto 2rem; display: flex; align-items: center; }
.theme-shop__search svg { position: absolute; left: 0; color: var(--color-muted-foreground); pointer-events: none; }
.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);
	transition: border-color 0.2s;
}
.theme-shop__search-input:focus { outline: none; border-color: var(--color-foreground); }

.theme-shop__categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-category-pill {
	padding: 0.5rem 1.25rem;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s;
}
.theme-category-pill:hover { border-color: var(--color-rosa); color: var(--color-rosa); }
.theme-category-pill.is-active { background: var(--color-rosa); color: var(--color-background); border-color: var(--color-rosa); }

.theme-shop__price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-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(--color-muted-foreground);
	transition: color 0.3s;
}
.theme-shop__price-toggle:hover { color: var(--color-foreground); }
.theme-shop__price-toggle svg { transition: transform 0.3s; }
.theme-shop__price-toggle.is-open svg { transform: rotate(180deg); }
.theme-shop__price-toggle-value { opacity: 0.7; text-transform: none; letter-spacing: normal; }

.theme-shop__price-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);
}
.theme-shop__price-panel.is-open { max-height: 12rem; opacity: 1; }
.theme-price-range__labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* Dual-handle range slider (Section 31.4). */
.theme-price-range-wrapper { position: relative; height: 1.5rem; margin-top: 0.75rem; }
.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(--color-secondary); }
.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: 20px; height: 20px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
	margin-top: 0;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px; height: 16px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; border: none; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop__show-more-wrap { text-align: center; margin-top: 3rem; }
.theme-shop__empty { text-align: center; padding: 5rem 0; }
.theme-shop__empty p { color: var(--color-muted-foreground); }

/* =========================================================================
   FINAL CTA / CONTACT
   ========================================================================= */

.theme-cta-section { position: relative; background: var(--color-butter); overflow: hidden; }
.theme-cta__bg { z-index: 0; }
.theme-cta__inner { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .theme-cta__inner { padding-top: 8rem; padding-bottom: 8rem; } }
.theme-cta__card {
	max-width: 42rem; margin: 0 auto; text-align: center;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-elevated);
	padding: 3rem 2rem;
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
@media (min-width: 768px) { .theme-cta__card { padding: 4rem 3.5rem; } }
.theme-cta__paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 2.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }
.theme-cta__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta__actions { flex-direction: row; } }

/* =========================================================================
   CONTACT MODAL
   ========================================================================= */

#theme-contact-overlay {
	position: fixed; inset: 0;
	background: rgba(49, 32, 23, 0.4);
	z-index: 100;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s;
}
body.contact-open #theme-contact-overlay { opacity: 1; visibility: visible; }

#theme-contact-modal {
	position: fixed;
	top: 50%; left: 50%;
	transform: translate(-50%, -46%) scale(0.96);
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 101;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth), visibility 0.3s;
	background: var(--color-background);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-elevated);
	padding: 1.5rem;
}
@media (min-width: 640px) { #theme-contact-modal { padding: 2rem; } }
body.contact-open #theme-contact-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.theme-modal__close { position: absolute; top: 1rem; right: 1rem; padding: 0.5rem; opacity: 0.6; transition: opacity 0.2s; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.theme-modal__description { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-modal__contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-modal__contact-link { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.theme-modal__contact-link:hover { color: var(--color-foreground); }

.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__field input, .theme-contact-form__field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	transition: box-shadow 0.3s;
}
.theme-contact-form__field textarea { resize: none; }
.theme-contact-form__field input:focus, .theme-contact-form__field textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-form__error { color: #c32222; font-size: 0.875rem; }

.theme-modal__success-icon {
	width: 3.5rem; height: 3.5rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px;
	margin: 0 auto 1rem;
}
#theme-contact-success-state { text-align: center; padding: 2rem 0; }
.theme-modal__success-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal__success-text { color: var(--color-muted-foreground); font-size: 0.875rem; }

/* =========================================================================
   404
   ========================================================================= */

.theme-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--color-secondary); }
.theme-404__inner { text-align: center; }
.theme-404__title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }
.theme-404__link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* =========================================================================
   SINGLE PRODUCT
   ========================================================================= */

.single-product-main { padding-top: 1rem; }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.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); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 6rem;
	padding-top: 1rem;
	align-items: flex-start;
	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%; }
@media (min-width: 1024px) {
	.theme-product-info {
		position: sticky;
		top: 7rem;
		align-self: start;
		padding-left: 1rem;
	}
}
@media (min-width: 1024px) {
	body.admin-bar .theme-product-info { top: calc(7rem + 32px); }
}

.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 100%; overflow-x: auto; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.2s; }
.theme-product-thumb:hover img { opacity: 1; }
.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;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.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); }
.product-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) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.75rem; } }
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; font-family: var(--font-body); }
.theme-product-info__price .woocommerce-Price-amount { font-family: var(--font-body); }
.theme-product-info__stock { font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.theme-product-info__stock.is-out-of-stock { color: #c32222; }
.theme-product-info__description { color: var(--color-muted-foreground); font-size: 1rem; line-height: 1.625; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-quantity-block { margin-bottom: 1rem; }
.theme-quantity-label {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
}
.theme-quantity-wrapper {
	display: inline-flex; align-items: center;
	border: 1px solid var(--color-border);
	margin-bottom: 1rem;
}
.theme-quantity-block .theme-quantity-wrapper { margin-bottom: 0; }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color 0.2s; display: flex; align-items: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 3rem; padding: 0.5rem 0; text-align: center;
	border: none; background: transparent;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.theme-add-to-cart-area__cta {
	width: 100%;
	background: var(--color-foreground); color: var(--color-background);
	padding: 1rem 0;
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	transition: opacity 0.2s;
}
.theme-add-to-cart-area__cta:hover { opacity: 0.9; }

.theme-product-accordions { margin-top: 2.5rem; }
.theme-product-features__description { margin-bottom: 1rem; }
.theme-product-features__description p:last-child { margin-bottom: 0; }
.theme-product-accordion { border-top: 1px solid var(--color-border); }
.theme-product-accordion:last-child { border-bottom: 1px solid var(--color-border); }
.theme-product-accordion__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 0; text-align: left;
}
.theme-product-accordion__trigger svg { transition: transform 0.2s; }
.theme-product-accordion__trigger.is-open svg { transform: rotate(180deg); }
.theme-product-accordion__trigger span { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-body); }
.theme-product-accordion__panel { display: none; padding-bottom: 1.5rem; color: var(--color-muted-foreground); font-size: 15px; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.theme-product-accordion__panel.is-open { display: block; }
.theme-product-accordion__panel p { margin-bottom: 0.75rem; }
.theme-product-accordion__panel ul { margin-top: 0.75rem; }
.theme-product-accordion__panel li { display: flex; align-items: flex-start; margin-bottom: 0.5rem; }
.theme-product-accordion__panel li::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: var(--color-foreground); margin: 0.5rem 0.75rem 0 0; flex-shrink: 0; }

.theme-related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.theme-related-products__heading { text-align: center; margin-bottom: 3rem; }
.theme-related-products__kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Add-to-cart style override — Section 11.4.1 */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.05em !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.theme-product-info .theme-add-to-cart-area { display: block; margin-bottom: 0; }
.theme-product-info .single_add_to_cart_button.button,
.theme-product-info a.single_add_to_cart_button {
	width: 100% !important;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	padding: 1rem 0 !important;
	border-radius: 999px !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	min-height: unset !important;
}
.theme-product-info .single_add_to_cart_button.button:hover,
.theme-product-info a.single_add_to_cart_button:hover {
	opacity: 1 !important;
	background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent) !important;
	color: var(--color-background) !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-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
/* Card compact circular button overrides global rules (Section 11.4.1). */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0 !important;
	border-radius: 50% !important;
	width: 2.5rem; height: 2.5rem;
}
.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;
}

/* Hide "View cart" injected by WooCommerce after AJAX add (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; }

/* =========================================================================
   WOOCOMMERCE NOTICES (Section 14.1)
   ========================================================================= */

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body);
	border-radius: 0.5rem;
	padding: 1rem 1.5rem;
	margin: 1rem 0;
	list-style: none;
}
.woocommerce-error { background: #fdecea; color: #c32222; }
.woocommerce-message { background: color-mix(in srgb, var(--color-primary) 12%, var(--color-background)); }
.woocommerce-info { background: var(--color-secondary); }

/* =========================================================================
   SIDE CART DRAWER
   ========================================================================= */

#theme-cart-overlay {
	position: fixed; inset: 0;
	background: rgba(49, 32, 23, 0.2);
	z-index: 90;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0;
	height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background);
	z-index: 91;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s; }
.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-y: 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 { position: relative; width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; display: block; }
.theme-cart-drawer__item-image img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	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; }
.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-variation { font-size: 0.75rem; 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; display: flex; }
.theme-cart-drawer__qty-btn:hover { background: 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; }
.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:last-child { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout-btn { width: 100%; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* =========================================================================
   CHECKOUT BLOCK OVERRIDE (Section 13)
   ========================================================================= */

body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { width: 100%; }
.page-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .page-title { font-size: 2.5rem; } }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout__form,
	body.woocommerce-cart .wc-block-cart {
		display: block;
	}
}

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-select select {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	font-family: var(--font-body);
	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 {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	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-primary-foreground) !important;
	border-radius: 999px !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.5rem; }

/* =========================================================================
   THANK YOU PAGE (Section 22.8)
   ========================================================================= */

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height); }
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-size: 1.5rem; padding: 0 0 1rem 0; }
@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; border: 1px solid var(--color-border); padding: 1rem; border-radius: 0.5rem; }

/* =========================================================================
   MISC UTILITY
   ========================================================================= */

[hidden] { display: none !important; }
.theme-hidden-init { display: none; }
.theme-generic-container { padding-top: 4rem; padding-bottom: 4rem; }
