/* Hindsight theme stylesheet. Theme by The Free Website Guys. */

/* ============ TOKENS (single source: source HSL tokens -> hex) ============ */
:root {
  --color-background: #121212;
  --color-foreground: #E1E7EF;
  --color-primary: #9D1B21;
  --color-primary-foreground: #F8F8F6;
  --color-card: #1E1B1A;
  --color-muted: #262322;
  --color-muted-foreground: #A2ACB9;
  --color-border: #363230;
  --color-cream: #F8F8F6;
  --color-charcoal: #0D0D0D;
  --color-ember-soft: #C62F36;
  --color-button-text: var(--color-primary-foreground);
  --font-body: 'Switzer', system-ui, -apple-system, sans-serif;
  --font-display: 'Newsreader', 'Instrument Serif', Georgia, serif;
  --radius: 0.75rem;
  --btn-radius: 9999px;
  --btn-height: 3.25rem;
  --btn-padding: 0.875rem 1.5rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0;
  --btn-text-transform: none;
  --btn-icon-padding: 0;
  --card-radius: 1rem;
  --header-height: 5rem;
  --shadow-soft: 0 4px 20px -8px rgb(0 0 0 / 0.5);
  --shadow-elevated: 0 20px 50px -18px rgb(0 0 0 / 0.7);
  --checkout-max-width: 1280px;
  --checkout-gap: 2rem;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--color-border); }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
/* Heading reset (Tailwind preflight parity): real weight/size set per element. */
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, a { cursor: pointer; }
a { color: inherit; }
section[id] { scroll-margin-top: 80px; }
.font-display { font-family: var(--font-display); }

/* Global images: cover/full-bleed classes excluded (see completeness rule). */
img:not(.cover-img):not(.hero-bg):not(.cta-bg):not(.product-card-img):not(.product-main-img):not(.product-thumb-img):not(.service-card-img):not(.about-img):not(.site-logo-img) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg, .cta-bg, .product-card-img, .product-main-img, .product-thumb-img, .service-card-img, .about-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg, .cta-bg {
  display: block;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.18);
  will-change: transform;
}

/* ============ LAYOUT PRIMITIVES ============ */
.container-wide { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-left: 2.5rem; padding-right: 2.5rem; } }
.site-main { min-width: 0; max-width: 100%; }
.site-main-inner { padding-top: calc(var(--header-height) + 2.5rem); }
body.home .site-main-home, .site-main-home { padding-top: 0; }
.page-inner { padding-top: 2.5rem; padding-bottom: 5rem; max-width: 80rem; }
.page-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.014em; font-size: 2.25rem; line-height: 1.05; color: var(--color-cream); margin: 0 0 1.5rem; }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }
.entry-content { max-width: 100%; }

/* ============ BUTTONS ============ */
.hindsight-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-body); font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing); text-transform: none;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.2s;
  cursor: pointer;
}
.hindsight-btn svg { width: 0.9375rem; height: 0.9375rem; flex-shrink: 0; }
.hindsight-btn-primary { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }
.hindsight-btn-primary:hover { background: var(--color-ember-soft); border-color: var(--color-ember-soft); color: var(--color-button-text); }
.hindsight-btn-glass { background: color-mix(in srgb, var(--color-charcoal) 40%, transparent); color: var(--color-cream); border-color: color-mix(in srgb, var(--color-cream) 25%, transparent); backdrop-filter: blur(4px); }
.hindsight-btn-glass:hover { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); color: var(--color-primary); }
.hindsight-btn-outline { background: transparent; color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent); }
.hindsight-btn-outline:hover { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 4%, transparent); }
.hindsight-btn-outline-dark { background: transparent; color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 25%, transparent); height: 3rem; padding-left: 1.75rem; padding-right: 1.75rem; }
.hindsight-btn-outline-dark:hover { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 4%, transparent); }
.hindsight-btn-ghost { background: transparent; border-color: transparent; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); min-height: 2.25rem; font-size: 0.8125rem; }
.hindsight-btn-ghost:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.hindsight-btn-block { width: 100%; }
.hindsight-btn:disabled { opacity: 0.6; pointer-events: none; }

/* Eyebrows + section type (scoped per section below). */
.eyebrow { display: block; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4em; color: var(--color-primary); }
.eyebrow-shop { letter-spacing: 0.32em; margin-bottom: 1rem; }
.eyebrow-center { text-align: center; }
.section-heading { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.014em; line-height: 1.08; text-wrap: balance; color: var(--color-cream); }
.about-section .section-heading { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 1.25rem; }
.services-section .section-heading, .owner-section .section-heading, .contact-section .section-heading { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-top: 1.25rem; }
.shop-section .shop-heading { font-size: 2.25rem; line-height: 1.05; color: var(--color-foreground); margin: 0; }
@media (min-width: 768px) { .shop-section .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-section .shop-heading { font-size: 3.2rem; } }
.contact-section .contact-title { color: var(--color-cream); }
.cta-band__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.014em; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; text-wrap: balance; color: var(--color-cream); margin: 1.25rem 0 0; }
.section-sub { margin-top: 1.5rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-cream) 70%, transparent); max-width: 36rem; }
.shop-section .section-sub { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-top: 1.25rem; font-size: 0.875rem; max-width: 36rem; }
@media (min-width: 768px) { .shop-section .section-sub { font-size: 0.9375rem; } }
.section-head-narrow { max-width: 48rem; }

/* ============ HEADER ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; max-width: 100%; }
.announcement-bar { background: var(--color-primary); color: var(--color-primary-foreground); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.5rem 1rem; text-align: center; }
.announcement-text { opacity: 0.9; }
.announcement-phone { opacity: 0.9; }
@media (max-width: 639px) { .announcement-phone { display: none; } }
.site-header:not(.is-solid) .announcement-bar { display: none; }
.site-header-inner { transition: background-color 0.5s, border-color 0.5s; border-bottom: 1px solid transparent; max-width: 100%; overflow-x: clip; }
.site-header:not(.is-solid) .site-header-inner { background: transparent; }
.site-header.is-solid .site-header-inner { background: color-mix(in srgb, var(--color-charcoal) 95%, transparent); backdrop-filter: blur(24px); border-bottom-color: rgb(255 255 255 / 0.1); }
.site-header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .site-header-row { height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: transparent; border: 0; color: var(--color-cream); order: 1; }
.nav-toggle:hover { background: rgb(255 255 255 / 0.1); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.brand-link { display: inline-flex; align-items: center; min-width: 0; order: 2; text-decoration: none; }
@media (min-width: 1024px) { .brand-link { order: 1; justify-self: start; } }
.brand-link .site-logo-img, .brand-link .brand-wordmark { display: none; }
.brand-badge-h { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.375rem; background: var(--color-primary); color: var(--color-primary-foreground); font-family: var(--font-display); font-size: 1.125rem; line-height: 1; }
@media (min-width: 640px) {
  .brand-link .site-logo-img, .brand-link .brand-wordmark { display: block; }
  .brand-badge-h { display: none; }
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--color-cream); white-space: nowrap; }
.brand-link .site-logo-img-header { height: 0.75rem !important; width: auto !important; max-width: 220px; }
@media (min-width: 768px) { .brand-link .site-logo-img-header { height: 1rem !important; max-width: none; } }
.brand-wordmark .site-logo-text { line-height: 1.2; font-size: 1.125rem; }
.site-logo-img-footer { height: 1rem !important; }
.site-nav-desktop { display: none; }
@media (min-width: 1024px) {
  .site-nav-desktop { display: flex; align-items: center; gap: 1.75rem; justify-self: center; order: 2; }
}
.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
.theme-nav-list .theme-nav-item { position: relative; }
.theme-nav-link, .theme-nav-list a { position: relative; background: none; border: 0; padding: 0; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-cream) 80%, transparent); text-decoration: none; transition: color 0.3s; }
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--color-primary-foreground); }
.theme-nav-link::after, .theme-nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.375rem; height: 2px; border-radius: 9999px; background: var(--color-primary); opacity: 0; transform: scaleX(0); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.theme-nav-link.is-active, .theme-nav-list a.is-active { color: var(--color-primary-foreground); }
.theme-nav-link.is-active::after, .theme-nav-list a.is-active::after { opacity: 1; transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; order: 3; flex-shrink: 0; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: transparent; border: 0; color: var(--color-cream); }
.cart-btn:hover { background: rgb(255 255 255 / 0.1); }
.cart-btn svg { width: 1.25rem; height: 1.25rem; }
.hindsight-cart-count { position: absolute; top: -0.125rem; right: -0.125rem; background: var(--color-primary); color: var(--color-primary-foreground); font-size: 0.75rem; font-weight: 500; min-width: 18px; height: 18px; padding: 0 0.25rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; }
.hindsight-cart-count:empty { display: none; }
.site-nav-mobile { display: none; border-top: 1px solid rgb(255 255 255 / 0.1); background: color-mix(in srgb, var(--color-charcoal) 98%, transparent); backdrop-filter: blur(24px); }
.site-nav-mobile.is-open { display: block; animation: hindsight-fade-in 0.25s ease-out both; }
@media (min-width: 1024px) { .site-nav-mobile.is-open { display: none; } }
.site-nav-mobile-inner { padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-direction: column; width: 100%; }
.theme-nav-list-mobile { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; list-style: none; }
.theme-nav-list-mobile .theme-nav-item { border-bottom: 1px solid rgb(255 255 255 / 0.1); width: 100%; }
.theme-nav-list-mobile .theme-nav-item:last-child { border-bottom: 0; }
.theme-nav-list-mobile .theme-nav-link, .theme-nav-list-mobile a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-cream) 85%, transparent); text-decoration: none; transition: color 0.3s; }
.theme-nav-list-mobile .theme-nav-link:hover, .theme-nav-list-mobile a:hover { color: var(--color-primary); }
.theme-nav-list-mobile .theme-nav-link::after, .theme-nav-list-mobile a::after { display: none; }
/* Safety net: wrong desktop list class inside mobile panel still stacks. */
.site-nav-mobile .theme-nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.site-nav-mobile .theme-nav-list .theme-nav-item { border-bottom: 1px solid rgb(255 255 255 / 0.1); width: 100%; }
.site-nav-mobile .theme-nav-list .theme-nav-item:last-child { border-bottom: 0; }
.site-nav-mobile .theme-nav-list .theme-nav-link, .site-nav-mobile .theme-nav-list a { display: block; width: 100%; text-align: left; padding: 0.75rem 0; }
.site-nav-mobile .theme-nav-list .theme-nav-link::after, .site-nav-mobile .theme-nav-list a::after { display: none; }

/* ============ HERO ============ */
.hero-section { position: relative; display: flex; min-height: 100svh; align-items: center; overflow: hidden; padding-top: 104px; }
.hero-scrim-a { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: color-mix(in srgb, var(--color-charcoal) 35%, transparent); }
.hero-scrim-b { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--color-charcoal) 30%, transparent) 0%, color-mix(in srgb, var(--color-charcoal) 25%, transparent) 50%, var(--color-charcoal) 100%); }
.hero-scrim-c { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--color-charcoal) 70%, transparent) 0%, color-mix(in srgb, var(--color-charcoal) 25%, transparent) 50%, transparent 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 80rem; margin: 0 auto; padding: 3rem 1.25rem; }
@media (min-width: 640px) { .hero-inner { padding-left: 2rem; padding-right: 2rem; } }
.hero-copy { max-width: 48rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-primary) 45%, transparent); background: color-mix(in srgb, var(--color-charcoal) 50%, transparent); backdrop-filter: blur(4px); padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-cream); }
.hero-badge svg { width: 13px; height: 13px; }
.hero-title { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 6vw, 4.1rem); line-height: 1.05; text-wrap: balance; color: var(--color-cream); }
.hero-title-accent { display: block; color: var(--color-primary); }
.hero-subtitle { margin-top: 1.25rem; max-width: 42rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-cream) 80%, transparent); }
@media (min-width: 640px) { .hero-subtitle { font-size: 1rem; } }
.hero-ctas { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

/* ============ ABOUT ============ */
.about-section { position: relative; background: var(--color-charcoal); padding: 6rem 0; }
@media (min-width: 640px) { .about-section { padding: 8rem 0; } }
.about-layout { display: grid; gap: 3rem; align-items: stretch; min-width: 0; overflow-x: clip; }
@media (min-width: 1024px) { .about-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-media { position: relative; min-height: 420px; }
.about-media .about-img { z-index: 0; }
.about-frame-a { position: absolute; left: -0.75rem; top: -0.75rem; z-index: 1; height: 6rem; width: 6rem; border-left: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent); border-top: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent); pointer-events: none; }
.about-frame-b { position: absolute; right: -0.75rem; bottom: -0.75rem; z-index: 1; height: 6rem; width: 6rem; border-right: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent); pointer-events: none; }
.about-media { position: relative; overflow: hidden; }
.about-paras { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-cream) 75%, transparent); }
.about-points { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about-point { display: flex; gap: 1rem; border-left: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); padding-left: 1.25rem; }
.about-point svg { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; flex-shrink: 0; color: var(--color-primary); }
.about-point h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.0625rem; color: var(--color-cream); }
.about-point p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-cream) 65%, transparent); }
.about-foot { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.about-owner-note { display: flex; align-items: center; gap: 0.75rem; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent); background: color-mix(in srgb, var(--color-primary) 5%, transparent); padding: 0.75rem 1.25rem; }
.about-owner-note svg { width: 1rem; height: 1rem; color: var(--color-primary); flex-shrink: 0; }
.about-owner-note p { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-cream) 80%, transparent); }

/* ============ SERVICES ============ */
.services-section { position: relative; background: var(--color-card); padding: 6rem 0; }
@media (min-width: 640px) { .services-section { padding: 8rem 0; } }
.services-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: color-mix(in srgb, var(--color-cream) 10%, transparent); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-charcoal); }
.service-card-img { z-index: 0; transition: transform 0.7s ease; }
.service-card:hover .service-card-img { transform: scale(1.1); }
.service-card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--color-charcoal) 35%, transparent) 45%, color-mix(in srgb, var(--color-charcoal) 95%, transparent) 100%); opacity: 0.85; transition: opacity 0.5s; pointer-events: none; }
.service-card:hover .service-card-scrim { opacity: 0.95; }
.service-card-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; color: var(--color-cream); transform: translateY(1rem); transition: transform 0.5s; }
@media (min-width: 640px) { .service-card-body { padding: 2rem; } }
.service-card:hover .service-card-body { transform: translateY(0); }
.service-card-tag { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em; color: var(--color-primary); }
.service-card-title { margin-top: 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) { .service-card-title { font-size: 1.75rem; } }
.service-card-desc { margin-top: 0.75rem; max-width: 20rem; font-size: 0.8125rem; line-height: 1.6; opacity: 0; transition: opacity 0.5s 0.1s; }
@media (min-width: 640px) { .service-card-desc { font-size: 0.875rem; } }
.service-card:hover .service-card-desc { opacity: 1; }
.service-card-rule { margin-top: 1.5rem; height: 1px; width: 2rem; background: color-mix(in srgb, var(--color-primary) 70%, transparent); transition: width 0.5s; }
.service-card:hover .service-card-rule { width: 4rem; }
.services-quote { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.75rem; border: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: var(--color-charcoal); padding: 1.75rem; }
@media (min-width: 640px) { .services-quote { margin-top: 4rem; padding: 2.25rem; } }
@media (min-width: 1024px) { .services-quote { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; } }
.services-quote-info { display: flex; align-items: flex-start; gap: 1.25rem; }
.services-quote-info > svg { width: 1.625rem; height: 1.625rem; margin-top: 0.25rem; flex-shrink: 0; color: var(--color-primary); }
.services-quote-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--color-cream); }
@media (min-width: 640px) { .services-quote-info h3 { font-size: 1.75rem; } }
.services-quote-info p { margin-top: 0.5rem; max-width: 36rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-cream) 70%, transparent); }
.services-quote-ctas { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .services-quote-ctas { flex-direction: row; } }
@media (min-width: 1024px) { .services-quote-ctas { flex-shrink: 0; } }

/* ============ OWNER ============ */
.owner-section { position: relative; background: var(--color-charcoal); padding: 6rem 0; }
@media (min-width: 640px) { .owner-section { padding: 8rem 0; } }
.owner-grid { margin-top: 3.5rem; display: grid; gap: 1px; border: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: color-mix(in srgb, var(--color-cream) 10%, transparent); }
@media (min-width: 1024px) { .owner-grid { grid-template-columns: 1fr 1fr; } }
.owner-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--color-cream) 10%, transparent); }
.owner-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-card); }
.owner-photo img { transition: transform 0.7s ease; }
.owner-photo:hover img { transform: scale(1.05); }
.owner-founder-badge { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; }
.owner-bio { display: flex; flex-direction: column; justify-content: space-between; background: var(--color-card); padding: 2rem; }
@media (min-width: 640px) { .owner-bio { padding: 2.5rem; } }
.owner-quote { border-left: 1px solid var(--color-primary); padding-left: 1.25rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: color-mix(in srgb, var(--color-cream) 85%, transparent); }
@media (min-width: 768px) { .owner-quote { font-size: 1.5rem; } }
.owner-paras { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-cream) 75%, transparent); }
.owner-stats { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); padding-top: 2rem; }
.owner-stat-v { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; color: var(--color-primary); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 640px) { .owner-stat-v { font-size: 1.1875rem; } }
@media (min-width: 768px) { .owner-stat-v { font-size: 1.3125rem; } }
.owner-stat-l { margin-top: 0.375rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: color-mix(in srgb, var(--color-cream) 60%, transparent); }
.owner-fb { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 0.75rem; border-top: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); padding-top: 1.75rem; font-size: 0.875rem; font-weight: 500; color: var(--color-cream); text-decoration: none; transition: color 0.3s; }
.owner-fb:hover { color: var(--color-primary); }
.owner-fb svg { width: 1rem; height: 1rem; }

/* ============ MARQUEE ============ */
.marquee { position: relative; overflow: hidden; border-top: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: var(--color-card); padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 2rem; white-space: nowrap; animation: hindsight-marquee 22s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 2rem; }
.marquee-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--color-cream) 75%, transparent); }
.marquee-dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--color-primary); flex-shrink: 0; }
@keyframes hindsight-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }
@keyframes hindsight-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hindsight-slide-in-bottom { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ SHOP ============ */
.shop-section { background: var(--color-background); padding: 6rem 0; }
@media (min-width: 768px) { .shop-section { padding: 8rem 0; } }
.shop-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .shop-head { flex-direction: row; align-items: end; justify-content: space-between; } }
.shop-head-copy { max-width: 42rem; }
.shop-search { position: relative; width: 100%; }
@media (min-width: 1024px) { .shop-search { width: 20rem; flex-shrink: 0; } }
.shop-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.shop-search-input { width: 100%; height: 2.75rem; padding-left: 2.75rem; padding-right: 1rem; border-radius: 9999px; background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); color: var(--color-foreground); font-size: 0.875rem; font-family: var(--font-body); }
.shop-search-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.shop-search-input:focus { outline: none; border-color: var(--color-primary); }
.shop-pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-shop-pill { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); background: transparent; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); text-decoration: none; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
a.theme-shop-pill:hover, button.theme-shop-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-shop-pill.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.shop-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-shop-grid, .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-shop-slot { display: flex; min-width: 0; }
.theme-shop-slot[hidden] { display: none; }
.shop-more { margin-top: 3rem; display: flex; justify-content: center; }

/* Product card (shared partial, all contexts). */
.hindsight-product-card-wrap { min-width: 0; }
.hindsight-product-card-wrap, .hindsight-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-shop-slot > .hindsight-product-card-wrap { flex: 1; }
.hindsight-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; background: var(--color-card); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.hindsight-product-card__image-wrapper .theme-card-link { position: absolute; inset: 0; z-index: 1; }
.hindsight-product-card__image { z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s, transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.hindsight-product-card__image.is-active { opacity: 1; }
.hindsight-product-card-wrap:hover .hindsight-product-card__image.is-active { transform: scale(1.04); }
.hindsight-card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 0%, transparent 40%, color-mix(in srgb, var(--color-foreground) 35%, transparent) 100%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.hindsight-product-card-wrap:hover .hindsight-card-scrim { opacity: 1; }
.hindsight-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; background: var(--color-foreground); color: var(--color-background); font-size: 0.6875rem; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 9999px; pointer-events: none; }
.hindsight-card-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 2rem; height: 2rem; border-radius: 9999px; background: color-mix(in srgb, var(--color-background) 85%, transparent); backdrop-filter: blur(4px); border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--color-foreground); opacity: 0; transition: opacity 0.3s, background-color 0.3s, color 0.3s; box-shadow: var(--shadow-soft); }
.hindsight-card-prev { left: 0.5rem; }
.hindsight-card-next { right: 0.5rem; }
.hindsight-card-arrow svg { width: 1rem; height: 1rem; }
.hindsight-product-card-wrap:hover .hindsight-card-arrow { opacity: 1; }
.hindsight-card-arrow:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.hindsight-card-dots { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: flex; gap: 0.25rem; pointer-events: none; }
.hindsight-card-dot { height: 0.25rem; width: 0.25rem; border-radius: 9999px; background: color-mix(in srgb, var(--color-background) 60%, transparent); transition: width 0.3s, background-color 0.3s; }
.hindsight-card-dot.is-active { width: 1rem; background: var(--color-background); }
.hindsight-card-actions { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 3; display: flex; align-items: center; gap: 0.5rem; opacity: 0; transition: opacity 0.5s ease-out; }
.hindsight-product-card-wrap:hover .hindsight-card-actions { opacity: 1; }
.hindsight-card-add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.5rem; border-radius: 9999px; background: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(4px); color: var(--color-foreground); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; box-shadow: var(--shadow-soft); transition: background-color 0.3s, color 0.3s; }
.hindsight-card-add:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.hindsight-card-add svg { width: 0.875rem; height: 0.875rem; }
.hindsight-card-view { width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(4px); color: var(--color-foreground); box-shadow: var(--shadow-soft); transition: background-color 0.3s, color 0.3s; }
.hindsight-card-view:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.hindsight-card-view svg { width: 1rem; height: 1rem; }
.hindsight-product-card__image-link { display: block; overflow: hidden; }
.hindsight-product-card__image-link img { display: block; width: 100%; }
.hindsight-product-card__meta { display: block; padding: 0 0.125rem; text-decoration: none; flex: 1; }
.hindsight-card-cat { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; color: color-mix(in srgb, var(--color-primary) 90%, transparent); margin-bottom: 0.375rem; }
.hindsight-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.3; color: var(--color-foreground); transition: color 0.3s; }
@media (min-width: 768px) { .hindsight-card-title { font-size: 1.3rem; } }
@media (min-width: 1024px) { .hindsight-card-title { font-size: 1.4rem; } }
.hindsight-product-card-wrap:hover .hindsight-card-title { color: var(--color-primary); }
.hindsight-card-price { margin-top: 0.375rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.hindsight-card-price del { opacity: 0.6; margin-right: 0.375rem; }
.hindsight-card-price ins { text-decoration: none; }

/* ============ CTA BAND ============ */
.cta-band { position: relative; overflow: hidden; }
/* Two stacked layers like React — separate divs so the gradient reveals video through scrim-a. */
.cta-scrim-a { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(13 13 13 / 0.7); }
.cta-scrim-b { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgb(13 13 13 / 0.8), rgb(13 13 13 / 0.5), rgb(13 13 13 / 0.85)); }
.cta-inner { position: relative; z-index: 3; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7rem 1.25rem; }
@media (min-width: 640px) { .cta-inner { padding: 9rem 2rem; } }
.cta-text { margin-top: 1.25rem; max-width: 36rem; font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-cream) 80%, transparent); }
.cta-ctas { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .cta-ctas { flex-direction: row; } }

/* ============ CONTACT ============ */
.contact-section { position: relative; background: var(--color-charcoal); padding: 6rem 0; }
@media (min-width: 640px) { .contact-section { padding: 8rem 0; } }
.theme-section-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .theme-section-layout { grid-template-columns: 0.82fr 1.18fr; gap: 2.5rem; } }
.theme-section-copy { max-width: 540px; text-align: left; align-self: center; }
.contact-info { display: flex; flex-direction: column; justify-content: space-between; border: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: var(--color-card); padding: 2rem; min-width: 0; }
@media (min-width: 640px) { .contact-info { padding: 2.5rem; } }
.contact-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--color-cream); }
.contact-card-sub { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-cream) 70%, transparent); }
.contact-list { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.75rem; }
.contact-list > li { display: flex; gap: 1rem; min-width: 0; }
.contact-list > li > svg { width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; flex-shrink: 0; color: var(--color-primary); }
.contact-list-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.24em; color: color-mix(in srgb, var(--color-cream) 50%, transparent); }
.contact-list-value { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--color-cream); overflow-wrap: break-word; }
.contact-list-link { display: block; text-decoration: none; transition: color 0.3s; overflow-wrap: break-word; word-break: break-word; }
.contact-list-link:hover { color: var(--color-primary); }
.contact-quote { margin-top: 2.5rem; border-left: 1px solid var(--color-primary); padding-left: 1.25rem; }
.contact-quote-text { font-family: var(--font-display); font-style: italic; font-size: 1.1875rem; line-height: 1.4; color: color-mix(in srgb, var(--color-cream) 85%, transparent); }
.contact-quote-author { margin-top: 0.75rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--color-cream) 50%, transparent); }
.contact-form-card { border: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); background: var(--color-card); padding: 2rem; min-width: 0; }
@media (min-width: 640px) { .contact-form-card { padding: 2.5rem; } }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-field label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.24em; color: color-mix(in srgb, var(--color-cream) 50%, transparent); }
.form-field input, .form-field textarea, .form-field select { margin-top: 0.5rem; width: 100%; border-radius: 0.375rem; border: 1px solid color-mix(in srgb, var(--color-cream) 15%, transparent); background: var(--color-charcoal); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: var(--font-body); color: var(--color-cream); transition: border-color 0.3s; }
.form-field input::placeholder, .form-field textarea::placeholder { color: color-mix(in srgb, var(--color-cream) 40%, transparent); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--color-primary); }
.form-field textarea { resize: none; }
.form-row-2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-select-wrap { position: relative; }
.form-select-wrap select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
.form-select-wrap select:invalid { color: color-mix(in srgb, var(--color-cream) 40%, transparent); }
.form-select-wrap > svg { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--color-primary); pointer-events: none; }
.contact-note { text-align: center; font-size: 0.75rem; color: color-mix(in srgb, var(--color-cream) 55%, transparent); }

/* ============ FOOTER ============ */
.site-footer { background: var(--color-charcoal); color: var(--color-foreground); border-top: 1px solid rgb(255 255 255 / 0.1); }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; padding-top: 5rem; padding-bottom: 2.25rem; } }
.footer-about { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 20rem; }
.footer-social { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); text-decoration: none; transition: color 0.3s; }
.footer-social:hover { color: var(--color-primary); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; margin-bottom: 1rem; color: var(--color-primary); }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a, .footer-links button { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); background: none; border: 0; padding: 0; text-align: left; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover, .footer-links button:hover { color: var(--color-primary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact a { display: inline-flex; align-items: flex-start; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); text-decoration: none; overflow-wrap: break-word; word-break: break-word; transition: color 0.3s; }
.footer-contact a:hover { color: var(--color-primary); }
.footer-contact svg { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; }
.footer-address { display: inline-flex; align-items: flex-start; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 3.5rem; padding-top: 2rem; padding-bottom: 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
@media (min-width: 640px) { .site-footer-bottom { flex-direction: row; } }
.site-footer-bottom a { text-decoration: none; transition: color 0.3s; }
.site-footer-bottom a:hover { color: var(--color-primary); }
.site-footer { padding-bottom: 2rem; }

/* ============ PROMO BANNER ============ */
.promo-banner { position: fixed; bottom: 1.5rem; left: 1rem; right: 1rem; z-index: 60; background: var(--color-charcoal); color: var(--color-foreground); border-radius: 1rem; box-shadow: var(--shadow-elevated); border: 1px solid rgb(255 255 255 / 0.08); padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; animation: hindsight-fade-in 0.7s ease-out both; }
@media (min-width: 640px) { .promo-banner { left: auto; right: 1.5rem; max-width: 26rem; } }
.promo-banner[hidden] { display: none; }
.promo-text { font-size: 0.8125rem; line-height: 1.6; flex: 1; width: 100%; }
@media (min-width: 640px) { .promo-text { font-size: 0.9375rem; } }
.promo-code { font-weight: 600; background: var(--color-primary); color: var(--color-primary-foreground); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.promo-dismiss { flex-shrink: 0; margin-top: 0.125rem; padding: 0.375rem; border-radius: 9999px; background: transparent; border: 0; color: inherit; }
.promo-dismiss:hover { background: rgb(255 255 255 / 0.1); }
.promo-dismiss svg { width: 1rem; height: 1rem; display: block; }

/* ============ CART DRAWER ============ */
.hindsight-cart-overlay { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--color-foreground) 30%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
body.cart-open .hindsight-cart-overlay { opacity: 1; visibility: visible; }
body.cart-open { overflow: hidden; }
.hindsight-cart-drawer { position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; z-index: 71; background: var(--color-background); box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
body.cart-open .hindsight-cart-drawer { transform: translateX(0); }
.hindsight-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.hindsight-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.hindsight-drawer-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--color-foreground); }
.hindsight-drawer-close { padding: 0.375rem; border-radius: 9999px; background: transparent; border: 0; color: inherit; }
.hindsight-drawer-close:hover { background: color-mix(in srgb, var(--color-foreground) 6%, transparent); }
.hindsight-drawer-close svg { width: 1.25rem; height: 1.25rem; display: block; }
.hindsight-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.hindsight-drawer-empty-icon { width: 3rem; height: 3rem; color: color-mix(in srgb, var(--color-foreground) 30%, transparent); margin-bottom: 1rem; }
.hindsight-drawer-empty-text { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; font-size: 0.875rem; }
.hindsight-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hindsight-drawer-item { display: flex; gap: 1rem; min-width: 0; }
/* Cart line thumbnails — grid cover (React: w-24 h-32 / object-cover). */
.hindsight-drawer-thumb,
.theme-cart-item__image {
  display: grid;
  width: 6rem;
  height: 8rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-muted);
  border-radius: 0.375rem;
  text-decoration: none;
}
.hindsight-drawer-thumb img,
.theme-cart-item__image img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.hindsight-drawer-thumb:hover img,
.theme-cart-item__image:hover img { transform: scale(1.05); }
/* Pair / upsell row (when present). */
.theme-cart-drawer__pair-image {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-muted);
  border-radius: 0.375rem;
}
.theme-cart-drawer__pair-image img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.theme-cart-drawer__pair-image:hover img { transform: scale(1.05); }
.hindsight-drawer-info { flex: 1; min-width: 0; }
.hindsight-drawer-name { font-size: 0.875rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; transition: color 0.3s; }
.hindsight-drawer-name:hover { color: var(--color-primary); }
.hindsight-drawer-price { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.hindsight-drawer-meta { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.hindsight-drawer-meta li { margin: 0.125rem 0; }
.hindsight-drawer-meta .meta-label { font-weight: 600; }
.hindsight-drawer-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.hindsight-drawer-controls button { background: transparent; border: 0; padding: 0.25rem; border-radius: 0.25rem; color: inherit; }
.hindsight-drawer-controls button:hover { background: var(--color-muted); }
.hindsight-drawer-controls button svg { width: 0.75rem; height: 0.75rem; display: block; }
.hindsight-drawer-controls span { font-size: 0.8125rem; width: 1.5rem; text-align: center; }
.hindsight-drawer-remove { margin-left: auto; font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.hindsight-drawer-remove:hover { color: var(--color-primary); }
.hindsight-drawer-foot { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); background: color-mix(in srgb, var(--color-card) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.hindsight-drawer-foot .hindsight-btn-ghost svg { width: 1rem; height: 1rem; }
.hindsight-drawer-subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.hindsight-drawer-subtotal span:first-child { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.hindsight-drawer-subtotal span:last-child { font-weight: 500; }
.hindsight-drawer-note { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* ============ SINGLE PRODUCT ============ */
.single-product-main { background: var(--color-background); padding-top: calc(var(--header-height) + 1.5rem); }
.single-product-main .container-wide { max-width: 80rem; }
.product-crumbs { padding: 1.5rem 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.product-crumbs a { text-decoration: none; transition: color 0.3s; }
.product-crumbs a:hover { color: var(--color-primary); }
.crumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.crumb-current { color: var(--color-foreground); }
.single-product .theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .single-product .theme-product-gallery { grid-column: span 7; position: sticky; top: 7rem; align-self: start; }
  .single-product .theme-product-info { grid-column: span 5; }
}
.theme-gallery-main { position: relative; aspect-ratio: 1 / 1; width: 100%; background: var(--color-card); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.single-product .theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.625rem; flex-wrap: wrap; max-width: 100%; }
.theme-thumb { aspect-ratio: 1 / 1; background: var(--color-card); border-radius: 0.375rem; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; transition: border-color 0.3s; }
.theme-thumb.is-active { border-color: var(--color-primary); }
.theme-thumb:not(.is-active):hover { border-color: color-mix(in srgb, var(--color-foreground) 20%, transparent); }
.product-cat { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 500; }
.single-product .product-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.05; color: var(--color-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .single-product .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .single-product .product-title { font-size: 2.6rem; } }
.single-product .product-price { font-size: 1.25rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); margin-bottom: 1.75rem; }
.single-product .product-price del { opacity: 0.6; margin-right: 0.5rem; }
.single-product .product-price ins { text-decoration: none; }
.product-stock.out { display: inline-block; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; background: var(--color-foreground); color: var(--color-background); border-radius: 9999px; padding: 0.375rem 0.875rem; margin-bottom: 1.5rem; }
.single-product .woocommerce-product-details__short-description, .single-product .woocommerce-variation-description, .single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }
.product-description { font-size: 0.9375rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-bottom: 2rem; white-space: pre-line; }
.product-form-wrapper { margin-bottom: 1.5rem; }
.single-product .theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); border-radius: 9999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 1rem; background: transparent; border: 0; color: inherit; display: inline-flex; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-primary); }
.theme-qty-minus svg, .theme-qty-plus svg { width: 0.875rem; height: 0.875rem; display: block; }
.theme-qty-input { width: 2.75rem; text-align: center; background: transparent; border: 0; color: inherit; font-size: 0.875rem; font-weight: 500; padding: 0.625rem 0; }
.theme-qty-input:focus { outline: none; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 0; }
@media (min-width: 480px) { .single-product .single_add_to_cart_button { min-width: 160px; } }
/* Woo button override (higher specificity; theme.css owns visuals). */
.single_add_to_cart_button.button, .add_to_cart_button.button, a.single_add_to_cart_button, a.add_to_cart_button {
  background-color: var(--color-primary) !important; color: var(--color-button-text) !important;
  border: none !important; border-radius: var(--btn-radius) !important; min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important; gap: 0.5rem !important; font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important; font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important; text-transform: none !important;
  cursor: pointer !important; transition: opacity 0.2s ease !important; text-decoration: none !important; line-height: 1.2 !important;
}
.single_add_to_cart_button.button:hover, .add_to_cart_button.button:hover { opacity: 0.85 !important; background-color: var(--color-primary) !important; color: var(--color-button-text) !important; }
.single_add_to_cart_button.button:disabled, .single_add_to_cart_button.button.disabled, .add_to_cart_button.button:disabled, .add_to_cart_button.button.disabled {
  cursor: not-allowed !important; opacity: 0.4 !important; pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover, .single_add_to_cart_button.button.disabled:hover, .add_to_cart_button.button:disabled:hover, .add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important; background-color: var(--color-primary) !important;
}
/* Card compact buttons override the global rules (placed after). */
.hindsight-product-card-wrap .add_to_cart_button.ajax_add_to_cart { min-height: 2.5rem !important; padding: 0 1rem !important; border-radius: 9999px !important; font-size: 0.875rem !important; }
/* Hide Woo "View cart" injected after AJAX add. */
.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; }
.ajax_add_to_cart.hindsight-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after, .ajax_add_to_cart.loading::after { display: none !important; }
.product-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.product-details-title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.product-details-body { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.product-details-body ul { display: flex; flex-direction: column; gap: 0.625rem; }
.product-details-body li { display: flex; align-items: flex-start; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.product-details-body li::before { content: ""; width: 0.25rem; height: 0.25rem; background: var(--color-primary); border-radius: 9999px; margin-top: 0.625rem; margin-right: 0.75rem; flex-shrink: 0; }
.product-trust { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.product-trust-item { text-align: center; min-width: 0; }
.product-trust-item svg { width: 1.25rem; height: 1.25rem; margin: 0 auto 0.5rem; color: var(--color-primary); }
.product-trust-item p { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
/* Variations */
.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; position: relative; }
.single-product .variations { width: 100%; margin-bottom: 1.25rem; }
.single-product .variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.single-product .theme-variable-product-form .theme-attr-select-hidden,
.single-product .theme-variable-product-form.cart .theme-attr-select-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.single-product .theme-variable-product-form .theme-variation-pills,
.single-product .theme-variable-product-form.cart .theme-variation-pills {
  display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.625rem;
}
.single-product .theme-variable-product-form .theme-variation-pill,
.single-product .theme-variable-product-form.cart .theme-variation-pill {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.25rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); background: transparent;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.single-product .theme-variable-product-form .theme-variation-pill:hover:not(:disabled),
.single-product .theme-variable-product-form.cart .theme-variation-pill:hover:not(:disabled) {
  border-color: var(--color-primary); color: var(--color-primary);
}
.single-product .theme-variable-product-form .theme-variation-pill.is-selected,
.single-product .theme-variable-product-form.cart .theme-variation-pill.is-selected {
  background: var(--color-cream); color: var(--color-charcoal); border-color: var(--color-cream);
}
.single-product .theme-variable-product-form .theme-variation-pill:disabled,
.single-product .theme-variable-product-form.cart .theme-variation-pill:disabled { opacity: 0.4; cursor: not-allowed; }
.single_variation_wrap .single_variation { margin-bottom: 1rem; }
/* Related */
.related-products-section { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.related-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2.5rem; }
.related-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; color: var(--color-foreground); }
@media (min-width: 768px) { .related-title { font-size: 2.25rem; } }
.related-view-all { display: none; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); text-decoration: none; }
@media (min-width: 640px) { .related-view-all { display: inline-flex; } }
.related-view-all:hover { color: var(--color-primary); }
.related-view-all svg { width: 1rem; height: 1rem; }
.back-to-shop { padding-bottom: 4rem; }
.back-to-shop a { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); text-decoration: none; }
.back-to-shop a:hover { color: var(--color-primary); }

/* ============ ARCHIVE ============ */
.archive-product-main { background: var(--color-background); padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 6rem; }
.archive-head { margin-bottom: 2.5rem; }
.archive-head .shop-pills { margin-bottom: 0; margin-top: 1.5rem; }
.archive-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* ============ CHECKOUT BLOCK (WC Blocks — aligned with Lovable reference) ============ */

/* C.2 — single fixed-header offset on shell, not on main */
body.woocommerce-checkout .theme-checkout-main { padding-top: 0; padding-bottom: 0; }
.theme-checkout-shell {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-top: calc(var(--header-height) + 0.5rem);
  padding-bottom: 4rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) { .theme-checkout-shell { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .theme-checkout-shell { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* C.1 — header shares 1280px column with checkout block */
.theme-checkout-header {
  max-width: var(--checkout-max-width);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  margin-bottom: 0;
}
.checkout-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
  text-decoration: none;
  transition: color 0.3s;
}
.checkout-continue-link:hover { color: var(--color-primary); }
.checkout-continue-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.theme-checkout-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--color-cream);
}
.theme-checkout-intro {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-cream) 75%, transparent);
}

/* D — neutralize parent width constraints */
body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
  max-width: none;
  width: 100%;
}

/* C.2 — collapse vertical gap between header and block */
body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
  margin-top: 0;
  padding-top: 0;
}
body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
  margin-top: 0;
}

/* D — checkout root container */
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
  display: block;
  max-width: var(--checkout-max-width);
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide { margin-top: 0; }
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
  margin-top: 0;
  padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
  margin-top: 0;
  padding-top: 0;
}

/* E — 2-column grid only on internal sidebar-layout wrapper */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap);
    align-items: start;
    flex-direction: unset;
    flex-wrap: nowrap;
    margin: 0;
  }
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  .entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
  .entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap);
    align-items: start;
  }
  body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) > .wc-block-components-notices,
  .entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) > .wc-block-components-notices {
    grid-column: 1 / -1;
  }
}

/* F — sidebar wrappers transparent; card only on order summary */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
  background: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  box-sizing: border-box;
}

/* G — notices aligned to checkout column */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  max-width: var(--checkout-max-width);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: var(--checkout-gap);
}
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
  display: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner { border-radius: 0.5rem; font-family: var(--font-body); }

/* H — empty cart */
body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
  margin-inline: auto;
  max-width: 36rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Checkout form + summary typography */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-title,
.entry-content .wc-block-checkout__sidebar .wc-block-components-title,
.entry-content .wc-block-checkout__main .wc-block-components-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-cream);
}
/* Dynamic floating labels — idle vs .is-active / :focus-within */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
.entry-content .wc-block-checkout .wc-block-components-text-input,
.entry-content .wc-block-checkout .wc-block-components-textarea,
.entry-content .wc-block-checkout .wc-block-components-combobox,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input {
  --checkout-field-bg: var(--color-card);
  --checkout-field-fg: var(--color-foreground);
  --checkout-label-fg: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input.is-active,
body.woocommerce-checkout .wc-block-components-text-input:focus-within,
body.woocommerce-checkout .wc-block-components-textarea.is-active,
body.woocommerce-checkout .wc-block-components-textarea:focus-within,
body.woocommerce-checkout .wc-block-components-combobox.is-active,
body.woocommerce-checkout .wc-block-components-combobox:focus-within,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within,
.entry-content .wc-block-checkout .wc-block-components-textarea.is-active,
.entry-content .wc-block-checkout .wc-block-components-textarea:focus-within,
.entry-content .wc-block-checkout .wc-block-components-combobox.is-active,
.entry-content .wc-block-checkout .wc-block-components-combobox:focus-within,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within {
  --checkout-field-bg: #fff;
  --checkout-field-fg: #000;
  --checkout-label-fg: #000;
}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-textarea label,
body.woocommerce-checkout .wc-block-components-combobox label,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-textarea label,
.entry-content .wc-block-checkout .wc-block-components-combobox label,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--checkout-label-fg) !important;
  opacity: 1;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea,
.entry-content .wc-block-checkout .wc-block-components-combobox input,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--checkout-field-bg) !important;
  color: var(--checkout-field-fg) !important;
  caret-color: var(--checkout-field-fg);
  border: 1px solid color-mix(in srgb, var(--color-cream) 15%, transparent);
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox input:focus,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea:focus,
.entry-content .wc-block-checkout .wc-block-components-combobox input:focus,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input:focus {
  border-color: var(--color-primary);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea:not(.is-active):not(:focus-within) textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox:not(.is-active):not(:focus-within) input::placeholder,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-textarea:not(.is-active):not(:focus-within) textarea::placeholder,
.entry-content .wc-block-checkout .wc-block-components-combobox:not(.is-active):not(:focus-within) input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:not(.is-active):not(:focus-within) input::placeholder {
  color: var(--color-muted-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input.is-active input::placeholder,
body.woocommerce-checkout .wc-block-components-text-input:focus-within input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea.is-active textarea::placeholder,
body.woocommerce-checkout .wc-block-components-textarea:focus-within textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox.is-active input::placeholder,
body.woocommerce-checkout .wc-block-components-combobox:focus-within input::placeholder,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input::placeholder,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-textarea.is-active textarea::placeholder,
.entry-content .wc-block-checkout .wc-block-components-textarea:focus-within textarea::placeholder,
.entry-content .wc-block-checkout .wc-block-components-combobox.is-active input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-combobox:focus-within input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within input::placeholder {
  color: rgb(0 0 0 / 0.45);
}
body.woocommerce-checkout .wc-block-components-text-input.is-active input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-text-input:focus-within input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-textarea.is-active textarea:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-textarea:focus-within textarea:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-combobox.is-active input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-combobox:focus-within input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input.is-active input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input:focus-within input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-textarea.is-active textarea:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-textarea:focus-within textarea:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-combobox.is-active input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-combobox:focus-within input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:focus-within input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
body.woocommerce-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-textarea:not(.is-active):not(:focus-within) textarea:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-combobox:not(.is-active):not(:focus-within) input:-webkit-autofill,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-textarea:not(.is-active):not(:focus-within) textarea:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-combobox:not(.is-active):not(:focus-within) input:-webkit-autofill,
.entry-content .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:not(.is-active):not(:focus-within) input:-webkit-autofill {
  -webkit-text-fill-color: var(--color-foreground) !important;
  box-shadow: 0 0 0 1000px var(--color-card) inset !important;
}
/* Selects — light chrome; labels always dark */
body.woocommerce-checkout .wc-blocks-components-select__label,
body.woocommerce-checkout .wc-block-components-select__label,
.entry-content .wc-block-checkout .wc-blocks-components-select__label,
.entry-content .wc-block-checkout .wc-block-components-select__label {
  color: #000 !important;
  opacity: 1;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #000;
  background-color: #fff;
  border: 1px solid color-mix(in srgb, var(--color-cream) 15%, transparent);
  border-radius: 0.375rem;
}
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  outline: none;
}
body.woocommerce-checkout .wc-block-components-checkbox label,
.entry-content .wc-block-checkout .wc-block-components-checkbox label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-cream) 70%, transparent);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border: none;
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85;
  background-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-cart-items,
.entry-content .wc-block-checkout .wc-block-cart-items { font-family: var(--font-body); }
body.woocommerce-checkout .wc-block-components-order-summary__content,
.entry-content .wc-block-checkout .wc-block-components-order-summary__content { background: transparent; }
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
.entry-content .wc-block-checkout .wc-block-components-order-summary-item__quantity {
  color: #000;
}
body.woocommerce-checkout .wc-block-components-totals-item__label,
.entry-content .wc-block-checkout .wc-block-components-totals-item__label {
  color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
}
body.woocommerce-checkout .wc-block-components-totals-item__value,
.entry-content .wc-block-checkout .wc-block-components-totals-item__value {
  color: var(--color-foreground);
  font-weight: 500;
}
body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { max-width: 80rem; margin: 0 auto; }
body.woocommerce-cart .page-title, body.woocommerce-account .page-title, body.theme-thankyou-page .page-title { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* ============ THANK YOU ============ */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { max-width: 80rem; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2, body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; color: var(--color-cream); padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 2rem; padding: 1.5rem; background: var(--color-card); border-radius: var(--card-radius); }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); min-width: 0; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { body.theme-thankyou-page .woocommerce-customer-details.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; } }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; min-width: 0; font-style: normal; font-size: 0.875rem; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
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-details { background: var(--color-card); border-radius: var(--card-radius); padding: 1.5rem; margin-bottom: 2rem; }

/* ============ WOO NOTICES (scoped only) ============ */
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#hindsight-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { border-radius: 0.5rem; }

/* ============ 404 ============ */
.notfound-main { display: flex; align-items: center; min-height: 70vh; }
.notfound-inner { text-align: center; padding: 5rem 0; }
.notfound-title { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-cream); }
.notfound-text { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 2rem; }

/* ============ REVEAL / ANIMATION ============ */
.reveal-item, [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.reveal-item.is-visible, [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
/* Customizer preview + no-observer fallback: never hide content in editor. */
body.is-customizer .reveal-item, body.is-customizer [data-reveal] { opacity: 1; transform: none; }
.no-observer .reveal-item, .no-observer [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-item, [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
