/* ==========================================================================
   T Squared Apparel — theme.css
   ========================================================================== */

:root {
	--color-background: #f8f8f7;
	--color-foreground: #1c1c1c;
	--color-primary: #121212;
	--color-button-text: #ffffff;
	--color-secondary-bg: #171717;
	--color-muted-foreground: #6e6e6e;
	--color-accent: #c9a669;
	--color-border: #e6e6e6;
	--color-butter: #f8f8f7;
	--color-chocolate: #5d4232;
	--color-powder: #a2bbcd;
	--color-surface-deep: #0f0f10;
	--color-surface-deep-text: #ffffff;

	--font-display: 'Bebas Neue', sans-serif;
	--font-body: 'Barlow', sans-serif;

	--logo-height: 56px;
	--header-height: 80px;
	--radius: 0.25rem;

	--btn-radius: 999px;
	--btn-height: 52px;
	--btn-padding: 0 2.5rem;
	--btn-font-size: 12px;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.32em;
	--btn-text-transform: uppercase;

	--shadow-soft: 0 4px 20px -4px rgba(0,0,0,0.10);
	--shadow-elevated: 0 8px 40px -8px rgba(0,0,0,0.28);
	--ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* --------------------------------------------------------------------
 * RESET / BASE
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
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;
	line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; }
h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	letter-spacing: 0.01em;
	font-weight: 400;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-section__image):not(.cat-tile__img):not(.owner-photo-img):not(.theme-product-card__img):not(.product-cover-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-section__image, .cat-tile__img, .owner-photo-img,
.theme-product-card__img, .product-cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.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(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------
 * BUTTONS
 * ------------------------------------------------------------------ */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	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);
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}
.theme-btn-primary,
.theme-btn-dark { background-color: var(--color-primary); color: var(--color-button-text); }
.theme-btn-primary:hover, .theme-btn-dark:hover { opacity: 0.9; }
.theme-btn-accent { background-color: var(--color-accent); color: var(--color-foreground); }
.theme-btn-accent:hover { opacity: 0.9; }
.theme-btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.theme-btn-outline:hover { border-color: var(--color-foreground); }
.theme-btn-block { width: 100%; }
.theme-btn:disabled, .theme-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* --------------------------------------------------------------------
 * REVEAL ANIMATIONS (Section 2.1)
 * ------------------------------------------------------------------ */
.reveal-item, .reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.reveal-fade { opacity: 0; transition: opacity 0.7s var(--ease-smooth); }
.reveal-item.is-visible, .reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade.is-visible { opacity: 1; }

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

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

@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); } }
.theme-animate-fade-in { animation: theme-fade-in 0.6s var(--ease-smooth) forwards; }
.theme-animate-slide-up { animation: theme-slide-up 0.6s var(--ease-smooth) forwards; }

/* --------------------------------------------------------------------
 * ANNOUNCEMENT BAR
 * ------------------------------------------------------------------ */
.theme-announcement-bar {
	position: relative;
	background-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-bar__inner { padding: 0.5rem 0; text-align: center; }
.theme-announcement-bar__text { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; }
.theme-announcement-bar__close {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	padding: 0.25rem; opacity: 0.7; color: inherit;
}
.theme-announcement-bar__close:hover { opacity: 1; }

/* --------------------------------------------------------------------
 * HEADER
 * ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50; width: 100%;
	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-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	border-color: var(--color-border);
}
.site-header__nav { display: flex; align-items: center; justify-content: space-between; height: 80px; position: relative; }
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-header__brand-text { display: none; flex-direction: column; line-height: 1; }
@media (min-width: 640px) { .site-header__brand-text { display: flex; } }
.site-header__brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header__brand-subtitle { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.15rem; }

.site-header__center { display: none; }
@media (min-width: 1024px) {
	.site-header__center { display: flex; align-items: center; gap: 2rem; position: absolute; left: 50%; transform: translateX(-50%); }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__icon-btn { position: relative; padding: 0.5rem; transition: opacity 0.2s ease; display: none; }
@media (min-width: 768px) { .theme-scroll-to-shop { display: inline-flex; } }
.theme-cart-btn { display: inline-flex; }
.site-header__menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .site-header__menu-toggle { display: none; } }
.site-header__icon-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px;
	width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 500; background: var(--color-primary); color: var(--color-button-text);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }
.site-header__menu-toggle .icon-close { display: none; }
.site-header__menu-toggle.is-open .icon-menu { display: none; }
.site-header__menu-toggle.is-open .icon-close { display: inline-flex; }

.site-header__mobile-menu { display: none; border-top: 1px solid var(--color-border); padding: 1rem 0; }
.site-header__mobile-menu.is-open { display: block; animation: theme-fade-in 0.3s var(--ease-smooth) forwards; }
@media (min-width: 1024px) { .site-header__mobile-menu { display: none !important; } }
.theme-nav-list-mobile { display: flex; flex-direction: column; gap: 1rem; }
.theme-nav-list-mobile .theme-nav-link {
	text-align: left; font-family: var(--font-display); font-size: 14px;
	font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.5rem 0;
	transition: color 0.2s ease;
}
.theme-nav-list-mobile .theme-nav-link:hover { color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
 * HERO
 * ------------------------------------------------------------------ */
.hero-section { position: relative; background-color: var(--color-background); }
.hero-section__media { position: relative; width: 100%; height: 78vh; min-height: 560px; overflow: hidden; }
@media (min-width: 768px) { .hero-section__media { height: 88vh; min-height: 680px; } }
.hero-section__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.8; }
.hero-section__gradient { position: absolute; inset: 0; background: linear-gradient(to right, rgba(28,28,28,0.8), rgba(28,28,28,0.4), transparent); }
.hero-section__content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-section__text { max-width: 36rem; }
.hero-section__kicker { display: block; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1rem; }
.hero-section__title {
	font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
	font-size: 3.75rem; line-height: 0.95; letter-spacing: 0.02em; color: var(--color-background); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-section__title { font-size: 4.5rem; } }
@media (min-width: 1280px) { .hero-section__title { font-size: 6rem; } }
.hero-section__subtitle { color: rgba(248,248,247,0.9); font-size: 1rem; line-height: 1.6; margin-bottom: 2.5rem; max-width: 28rem; }
@media (min-width: 768px) { .hero-section__subtitle { font-size: 1.125rem; } }

/* --------------------------------------------------------------------
 * SECTION HEADINGS (Section 2.2.5 — per-section scale)
 * ------------------------------------------------------------------ */
.section-heading-block { text-align: center; margin-bottom: 2.5rem; }
.section-heading { font-family: var(--font-display); font-weight: 400; }
.section-kicker { display: block; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.75rem; font-family: var(--font-body); }

.cat-tiles-section__heading, .featured-section__heading { font-size: 2.25rem; letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 768px) { .cat-tiles-section__heading { font-size: 3rem; } .featured-section__heading { font-size: 3.75rem; } }

.about-section__heading { font-size: 2.25rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }

.owner-section__heading { font-size: 3rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.02; }
@media (min-width: 768px) { .owner-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .owner-section__heading { font-size: 4.5rem; } }

.pillars-section__heading, .hats-band__title, .legacy-section__heading { font-size: 3rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.02; }
@media (min-width: 768px) { .pillars-section__heading, .hats-band__title, .legacy-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .pillars-section__heading, .hats-band__title, .legacy-section__heading { font-size: 4.5rem; } }

.shop-heading { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }

.cta-band__title { font-size: 2.25rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.02; }
@media (min-width: 768px) { .cta-band__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-band__title { font-size: 3.75rem; } }

/* --------------------------------------------------------------------
 * SHOP BY CATEGORY TILES
 * ------------------------------------------------------------------ */
.cat-tiles-section { padding: 4rem 0; }
@media (min-width: 768px) { .cat-tiles-section { padding: 5rem 0; } }
.cat-tiles-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .cat-tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.cat-tile__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,28,28,0.9), rgba(28,28,28,0.4), rgba(28,28,28,0.1)); transition: background 0.4s ease; }
.cat-tile:hover .cat-tile__img { transform: scale(1.05); }
.cat-tile__img { transition: transform 0.7s var(--ease-smooth); }
.cat-tile__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--color-background); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.cat-tile__tagline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); filter: brightness(1.4); margin-bottom: 0.5rem; }
.cat-tile__tagline::before { content: ''; height: 1px; width: 1.5rem; background: currentColor; }
.cat-tile__label { font-size: 1.875rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .cat-tile__label { font-size: 2.25rem; } }
.cat-tile__cta { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }

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

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.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):not(.theme-product-card__quick-add):not(.theme-product-card__badge) { pointer-events: none; }
.theme-product-card .theme-product-card__quick-add,
.theme-product-card .theme-product-card__badge {
	pointer-events: auto;
	position: absolute;
	z-index: 4;
}
.theme-product-card .theme-product-card__quick-add {
	bottom: 0.75rem;
	right: 0.75rem;
}
.theme-product-card .theme-product-card__badge {
	top: 0.75rem;
	left: 0.75rem;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: #efefee;
	margin-bottom: 1.25rem;
}
.theme-product-card:hover .theme-product-card__img { transform: scale(1.04); }
.theme-product-card__img { transition: transform 0.7s var(--ease-smooth); }
.theme-product-card__image-wrapper.is-sold-out .theme-product-card__img { opacity: 0.6; }

.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
	padding: 0.35rem 0.85rem; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	background: var(--color-primary); color: var(--color-button-text); border-radius: 999px;
}
.theme-product-card__quick-add {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
	width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--color-background); color: var(--color-foreground); box-shadow: var(--shadow-soft);
	opacity: 0; transition: opacity 0.3s ease, transform 0.2s ease;
}
@media (min-width: 768px) { .theme-product-card:hover .theme-product-card__quick-add { 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; }
.theme-product-card__title { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; line-height: 1.4; transition: color 0.3s ease; }
@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; margin-top: 0.5rem; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4rem; }

/* --------------------------------------------------------------------
 * FEATURED / GRID SECTIONS common
 * ------------------------------------------------------------------ */
.featured-section, .cat-tiles-section, .pillars-section, .hats-band, .legacy-section { padding: 5rem 0; }
@media (min-width: 768px) {
	.featured-section, .cat-tiles-section { padding: 6rem 0; }
	.pillars-section, .hats-band, .legacy-section { padding: 7rem 0; }
}
.featured-section__footer { text-align: center; margin-top: 3.5rem; }
.featured-section__footer a { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }

/* --------------------------------------------------------------------
 * ABOUT
 * ------------------------------------------------------------------ */
.about-section__inner { max-width: 42rem; margin: 0 auto; text-align: center; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .about-section__inner { padding: 7rem 3.5rem; } }
.about-section__paragraph { color: rgba(28,28,28,0.8); line-height: 1.7; margin-bottom: 1.25rem; }
.about-section__cta { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; margin-top: 1.5rem; display: inline-block; }

/* --------------------------------------------------------------------
 * OWNERS
 * ------------------------------------------------------------------ */
.owner-section { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .owner-section { grid-template-columns: repeat(2, 1fr); } }
.owner-section__media { position: relative; min-height: 380px; }
@media (min-width: 768px) { .owner-section__media { min-height: 520px; } }
@media (min-width: 1024px) { .owner-section__media { min-height: 620px; } }
.owner-photo-img { object-position: top; }
.owner-section__text { display: flex; align-items: center; background-color: var(--color-background); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .owner-section__text { padding: 6rem 3.5rem; } }
.owner-section__text-inner { max-width: 36rem; }
.owner-section__quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(28,28,28,0.85); margin-bottom: 2rem; line-height: 1.3; }
@media (min-width: 768px) { .owner-section__quote { font-size: 1.875rem; } }
.owner-section__paragraph { color: rgba(28,28,28,0.75); line-height: 1.7; margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------
 * PILLARS
 * ------------------------------------------------------------------ */
.pillars-section { background-color: var(--color-butter); }
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.pillar-card {
	position: relative; background-color: var(--color-background);
	border: 1px solid var(--color-border); border-left-width: 4px;
	padding: 2rem; transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .pillar-card { padding: 2.5rem; } }
.pillar-card--gold { border-left-color: var(--color-accent); }
.pillar-card--gold:hover { background-color: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.pillar-card--chocolate { border-left-color: var(--color-chocolate); }
.pillar-card--chocolate:hover { background-color: color-mix(in srgb, var(--color-chocolate) 5%, transparent); }
.pillar-card--powder { border-left-color: var(--color-powder); }
.pillar-card--powder:hover { background-color: color-mix(in srgb, var(--color-powder) 10%, transparent); }
.pillar-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.pillar-card__icon { display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--color-border); }
.pillar-card--gold .pillar-card__icon { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.pillar-card--chocolate .pillar-card__icon { color: var(--color-chocolate); border-color: color-mix(in srgb, var(--color-chocolate) 40%, transparent); }
.pillar-card--powder .pillar-card__icon { color: var(--color-powder); border-color: color-mix(in srgb, var(--color-powder) 60%, transparent); }
.pillar-card__numeral { display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 999px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em; color: var(--color-button-text); }
.pillar-card--gold .pillar-card__numeral { background-color: var(--color-accent); color: var(--color-foreground); }
.pillar-card--chocolate .pillar-card__numeral { background-color: var(--color-chocolate); }
.pillar-card--powder .pillar-card__numeral { background-color: var(--color-powder); color: var(--color-foreground); }
.pillar-card__kicker { display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.75rem; }
.pillar-card--gold .pillar-card__kicker { color: var(--color-accent); }
.pillar-card--chocolate .pillar-card__kicker { color: var(--color-chocolate); }
.pillar-card--powder .pillar-card__kicker { color: var(--color-powder); }
.pillar-card__title { font-size: 1.875rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; margin-bottom: 1rem; }
@media (min-width: 768px) { .pillar-card__title { font-size: 2.25rem; } }
.pillar-card__description { color: var(--color-muted-foreground); line-height: 1.7; }

/* --------------------------------------------------------------------
 * HATS DARK BAND
 * ------------------------------------------------------------------ */
.hats-band { background-color: var(--color-surface-deep); color: var(--color-surface-deep-text); }
.hats-band__heading { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.hats-band__title em, .hats-band__title i,
.hats-band__title .heading-accent,
.legacy-section__heading .heading-accent { display: block; font-style: italic; color: var(--color-accent); font-family: var(--font-display); text-transform: uppercase; }
.hats-band__title { display: block; }
.hats-band__paragraph { color: color-mix(in srgb, var(--color-surface-deep-text) 75%, transparent); line-height: 1.7; }
.hats-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; min-width: 0; }
@media (min-width: 768px) { .hats-band__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.hats-band__tile { display: block; min-width: 0; max-width: 100%; }
.hats-band__tile-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: color-mix(in srgb, var(--color-surface-deep-text) 5%, transparent); }
.hats-band__tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-smooth); }
.hats-band__tile:hover .hats-band__tile-image img { transform: scale(1.05); }
.hats-band__tile-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; min-width: 0; }
.hats-band__tile-name { font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 768px) { .hats-band__tile-name { font-size: 1.25rem; } }
.hats-band__tile-price { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); flex-shrink: 0; }
.hats-band__footer { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.hats-band__badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); color: var(--color-accent); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; }
.hats-band__badge::before { content: ''; height: 1px; width: 1rem; background: var(--color-accent); }
.hats-band__subtext { color: color-mix(in srgb, var(--color-surface-deep-text) 70%, transparent); font-size: 0.875rem; }

/* --------------------------------------------------------------------
 * LEGACY SECTION
 * ------------------------------------------------------------------ */
.legacy-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .legacy-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.legacy-section__paragraph { color: rgba(28,28,28,0.8); line-height: 1.7; margin-bottom: 1.5rem; }
.legacy-section__paragraph--italic { font-style: italic; color: rgba(28,28,28,0.7); margin-bottom: 2.5rem; }
.legacy-grid__image-frame { position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden; background-color: var(--color-secondary-bg); box-shadow: var(--shadow-elevated); }
.legacy-grid__caption { margin-top: 1.25rem; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.legacy-grid__caption span { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(28,28,28,0.5); }
.legacy-grid__mark { width: 36px; height: 36px; object-fit: contain; opacity: 0.8; }

/* --------------------------------------------------------------------
 * SHOP SECTION
 * ------------------------------------------------------------------ */
.shop-section { padding: 4rem 0; background-color: var(--color-background); }
@media (min-width: 768px) { .shop-section { padding: 6rem 0; } }
.shop-section__heading { text-align: center; margin-bottom: 3rem; }
.shop-search-wrap { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.shop-search-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.shop-search-input {
	width: 100%; padding: 0.6rem 0 0.6rem 1.75rem; background: transparent;
	border: none; border-bottom: 1px solid var(--color-border); outline: none; color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.shop-search-input:focus { border-bottom-color: var(--color-foreground); }
.shop-cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.shop-cat-pill {
	padding: 0.5rem 1.25rem; font-family: var(--font-body); 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 ease;
}
.shop-cat-pill:hover { border-color: var(--color-foreground); }
.shop-cat-pill.is-active { background-color: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-price-filter__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 ease; }
.shop-price-filter__toggle:hover { color: var(--color-foreground); }
.shop-price-filter__toggle svg { transition: transform 0.3s ease; }
.shop-price-filter__toggle.is-open svg { transform: rotate(180deg); }
.shop-price-filter__panel { width: 100%; max-width: 22rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); }
.shop-price-filter__panel.is-open { max-height: 12rem; opacity: 1; padding-top: 0.5rem; }

.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: 999px; }
.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: 18px; height: 18px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

.theme-shop-empty { text-align: center; padding: 3.5rem 0; color: var(--color-muted-foreground); }
.shop-show-more-wrap { text-align: center; margin-top: 3rem; }
.shop-show-more-wrap button { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }

/* --------------------------------------------------------------------
 * FINAL CTA
 * ------------------------------------------------------------------ */
.final-cta-section { position: relative; background-color: var(--color-butter); overflow: hidden; }
.final-cta-section__bg { opacity: 0.4; }
.final-cta-section__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 80%, transparent), color-mix(in srgb, var(--color-background) 60%, transparent), color-mix(in srgb, var(--color-background) 90%, transparent)); }
.final-cta-section__inner { position: relative; padding: 6rem 0; }
@media (min-width: 768px) { .final-cta-section__inner { padding: 8rem 0; } }
.final-cta-card { max-width: 42rem; margin: 0 auto; text-align: center; background-color: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(4px); box-shadow: var(--shadow-elevated); padding: 3rem 2rem; border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
@media (min-width: 768px) { .final-cta-card { padding: 4rem 3.5rem; } }
.final-cta-card__paragraph { color: rgba(28,28,28,0.75); line-height: 1.7; margin: 1.5rem 0 2.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-butter); }
.site-footer__inner { padding: 3rem 0; }
@media (min-width: 1024px) { .site-footer__inner { padding: 3.5rem 0; } }
.site-footer__top { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-footer__brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__brand-accent { color: var(--color-accent); }
.site-footer__brand-tagline { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.footer-nav-link { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-nav-link: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 ease; }
.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; gap: 0.75rem; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }
.site-footer__pillars { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.site-footer__copyright { font-size: 12px; letter-spacing: 0.02em; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
 * MODAL (contact)
 * ------------------------------------------------------------------ */
.theme-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.theme-modal.is-open { display: flex; }
.theme-modal__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); animation: theme-fade-in 0.2s ease; }
.theme-modal__panel {
	position: relative; z-index: 1; width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius);
	padding: 1.75rem; box-shadow: var(--shadow-elevated); animation: theme-slide-up 0.25s var(--ease-smooth);
}
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; padding: 0.4rem; border-radius: 4px; opacity: 0.7; }
.theme-modal__close:hover { opacity: 1; background: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.theme-modal__title { font-size: 1.75rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.theme-modal__description { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-modal__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-modal__meta-link { display: flex; align-items: center; gap: 0.5rem; }
.theme-modal__meta-link:hover { color: var(--color-foreground); }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: repeat(2, 1fr); } }
.theme-contact-form__field { margin-bottom: 1rem; }
.theme-contact-form__row .theme-contact-form__field { margin-bottom: 0; }
.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.6rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: var(--radius); outline: none; resize: none; transition: box-shadow 0.3s ease;
}
.theme-contact-form__field input:focus, .theme-contact-form__field textarea:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.theme-contact-form__error { color: #b62020; font-size: 0.875rem; margin: -0.25rem 0 0.75rem; }
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success__icon { width: 56px; height: 56px; background: var(--color-primary); color: var(--color-button-text); border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-contact-success h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.theme-contact-success p { color: var(--color-muted-foreground); font-size: 0.875rem; }

/* --------------------------------------------------------------------
 * SIDE CART DRAWER
 * ------------------------------------------------------------------ */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(28,28,28,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem; z-index: 91;
	background: var(--color-background); box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s var(--ease-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; opacity: 0.7; }
.theme-cart-drawer__close:hover { opacity: 1; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); }
.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 {
	width: 80px; height: 96px; flex-shrink: 0; overflow: hidden; background: #efefee;
	display: flex; align-items: stretch;
}
.theme-cart-drawer__item-image img,
.theme-cart-drawer__item-image figure,
.theme-cart-drawer__item-image a { width: 100%; height: 100%; display: block; }
.theme-cart-drawer__item-image img { object-fit: cover; }
.theme-cart-drawer__item-body { 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; }
.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.15rem; }
.theme-cart-drawer__item-meta { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.65rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; }
.theme-cart-qty-btn:hover { background: #efefee; }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; color: var(--color-muted-foreground); }
.theme-cart-remove-btn: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__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
 * WOOCOMMERCE: NOTICES (scoped — Section 14.1)
 * ------------------------------------------------------------------ */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); border-radius: var(--radius); border: 1px solid var(--color-border);
	padding: 1rem 1.25rem; margin: 0 auto 1.5rem; max-width: 80rem; list-style: none;
}

/* --------------------------------------------------------------------
 * ADD TO CART BUTTON OVERRIDES (Section 11.4.1)
 * ------------------------------------------------------------------ */
.single-product .single_add_to_cart_button.button,
.single-product .add_to_cart_button.button,
.single-product a.single_add_to_cart_button,
.single-product a.add_to_cart_button,
.single-product button.single_add_to_cart_button,
.theme-variations-form .single_add_to_cart_button.button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-display) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single-product .single_add_to_cart_button.button:hover,
.single-product .add_to_cart_button.button:hover,
.theme-variations-form .single_add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .add_to_cart_button.button:disabled,
.single-product .add_to_cart_button.button.disabled,
.theme-variations-form .single_add_to_cart_button.button:disabled,
.theme-variations-form .single_add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single-product .single_add_to_cart_button.button:disabled:hover,
.single-product .single_add_to_cart_button.button.disabled:hover,
.theme-variations-form .single_add_to_cart_button.button:disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0 !important;
	border-radius: 50% !important;
	width: 40px !important;
	height: 40px !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: var(--shadow-soft) !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
	opacity: 1 !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* --------------------------------------------------------------------
 * SINGLE PRODUCT PAGE
 * ------------------------------------------------------------------ */
.single-product-main { padding: 6rem 0 6rem; max-width: 100%; overflow-x: clip; }
@media (min-width: 1024px) { .single-product-main { padding-top: 7rem; } }
.breadcrumb-nav { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.breadcrumb-nav a:hover { color: var(--color-foreground); }
.breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 1rem 0 6rem; align-items: start; min-width: 0; max-width: 100%;
}
@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%; overflow: hidden; }

.theme-product-gallery-mobile { display: block; width: 100%; max-width: 100%; }
.theme-product-gallery-stack { display: none; width: 100%; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-gallery-mobile { display: none; }
	.theme-product-gallery-stack { display: flex; flex-direction: column; gap: 1rem; }
}
.theme-product-gallery-stack__item {
	position: relative; aspect-ratio: 1 / 1; background: #efefee; overflow: hidden; width: 100%; max-width: 100%;
}
.theme-product-gallery-stack__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-main-image {
	position: relative; aspect-ratio: 1 / 1; background: #efefee; overflow: hidden; width: 100%; max-width: 100%;
}
.theme-product-main-image .product-cover-img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 2px; }
.theme-product-thumb { position: relative; width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; background: #efefee; }
.theme-product-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb:hover .thumb-img, .theme-product-thumb.is-active .thumb-img { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-foreground); opacity: 0; }
.theme-product-thumb.is-active::after { opacity: 1; }

@media (min-width: 1024px) {
	.theme-product-info { position: sticky; top: 7rem; align-self: start; }
}
.theme-product-category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.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-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-price .woocommerce-Price-amount { font-family: var(--font-body); }
.theme-stock-status--out { color: #b62020; margin-bottom: 1rem; font-size: 0.9rem; }
.theme-product-lede { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-option-group { margin-bottom: 1.5rem; }
.theme-option-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-option-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-option-pill {
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--color-border);
	border-radius: 999px; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem;
}
.theme-option-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-option-pill.is-selected { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.theme-option-pill--color.is-selected { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); color: var(--color-foreground); border-color: var(--color-foreground); }
.theme-color-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--color-border); display: inline-block; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.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: #efefee; }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; padding: 0.5rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-quantity-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.single-product .theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 0.5rem; }
.single-product .single_add_to_cart_button { width: 100%; min-width: 0; }

.theme-variations-form .variations { display: none; }
.theme-variations-form .woocommerce-variation-price { display: none; }
.theme-variations-form .reset_variations { display: none !important; }
.theme-variations-form .woocommerce-variation-add-to-cart { display: flex; flex-direction: column; gap: 1rem; }
.theme-variations-form .woocommerce-variation-add-to-cart .theme-quantity-wrapper { align-self: flex-start; }

.cat-tile { width: 100%; border: none; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }

.theme-accordion { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger svg { transition: transform 0.2s ease; }
.theme-accordion__trigger.is-open svg { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; overflow-wrap: break-word; word-break: break-word; }
.theme-accordion__panel.is-open { display: block; }
.theme-product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.theme-product-description p { margin-bottom: 0.75rem; }
.theme-details-heading { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.theme-product-details-list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details-list li { display: flex; align-items: flex-start; color: var(--color-muted-foreground); font-size: 0.9375rem; }
.theme-bullet-dot { width: 4px; height: 4px; background: var(--color-foreground); border-radius: 50%; margin: 0.5rem 0.75rem 0 0; flex-shrink: 0; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-header { text-align: center; margin-bottom: 3rem; }
.related-products-kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; display: block; }
.related-products-title { font-size: 1.875rem; }
@media (min-width: 768px) { .related-products-title { font-size: 2.25rem; } }

/* --------------------------------------------------------------------
 * SHOP ARCHIVE
 * ------------------------------------------------------------------ */
.woocommerce-archive-main { padding: 6rem 0; }
.shop-archive-container .page-title { text-align: center; margin-bottom: 2.5rem; }

/* --------------------------------------------------------------------
 * VARIATIONS TABLE (present in case of future variable products)
 * ------------------------------------------------------------------ */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* --------------------------------------------------------------------
 * CHECKOUT BLOCK OVERRIDES (Section 13)
 * ------------------------------------------------------------------ */
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }
body.woocommerce-checkout .site-page-container,
body.woocommerce-cart .site-page-container,
body.woocommerce-account .site-page-container { padding-top: 3rem; padding-bottom: 4rem; }
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: 0; }

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-size: 2rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2rem;
}

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-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: var(--radius);
	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 {
	outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 50%, transparent);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: #f1f1ef; border-radius: var(--radius); padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important; color: var(--color-button-text) !important;
	border-radius: var(--btn-radius) !important; font-family: var(--font-body) !important; text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius); font-family: var(--font-body);
}
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }

/* --------------------------------------------------------------------
 * THANK YOU PAGE (Section 22.8)
 * ------------------------------------------------------------------ */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { border: none; padding: 0; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@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; overflow-wrap: break-word; }

/* --------------------------------------------------------------------
 * 404
 * ------------------------------------------------------------------ */
.theme-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.theme-404__code { font-size: 4rem; }
.theme-404__message { font-size: 1.25rem; color: var(--color-muted-foreground); }
.theme-404__link { text-decoration: underline; color: var(--color-primary); }

/* --------------------------------------------------------------------
 * GENERIC PAGE
 * ------------------------------------------------------------------ */
.site-page-container { padding: 3rem 0; }
.page-title { font-size: 2rem; text-transform: uppercase; margin-bottom: 1.5rem; }
