/* ==========================================================================
   7Cs Collector's Harbor — theme.css
   All visual styling for the theme lives here (Section 10 / 15.1).
   ========================================================================== */

/* ---- Design tokens (overridden live by wp_add_inline_style, Section 6/22.9) */
:root {
  --color-background: #f5f1e8;
  --color-foreground: #0c1e2f;
  --color-primary: #c78d2b;
  --color-secondary: #dcecec;
  --color-muted: #ded6c4;
  --color-accent: #164f63;
  --color-royal: #1d3f9e;
  --color-coral: #e2492c;
  --color-navy-deep: #071420;
  --color-gold-light: #d9b573;
  --color-button-text: #f7f2e4;
  --color-card: #ebe6dc;
  --color-border: #bcc5cf;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --logo-height: 64px;

  --btn-radius: 999px;
  --btn-height: 44px;
  --btn-padding: 0 1.75rem;
  --btn-font-size: 0.72rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.28em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.6rem;

  --card-radius: 0.5rem;
  --section-padding: 2rem;
  --header-height: 80px;
  --section-padding-x: 1.5rem;
  --checkout-gap: 1.5rem;
  --checkout-max-width: 80rem;

  --shadow-soft: 0 4px 20px -4px rgba(12, 30, 47, 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(12, 30, 47, 0.18);
  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ---- Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; margin: 0; padding: 0; }

body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a, button, [role="button"], label, summary, select { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-arrival-img):not(.theme-gallery-main-img):not(.theme-gallery-thumb-img) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-arrival-img, .theme-gallery-main-img, .theme-gallery-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: var(--section-padding-x);
}
@media (min-width: 1024px) {
  :root { --section-padding-x: 2rem; }
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}

.italic-accent { font-style: italic; color: var(--color-primary); }

.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); }

/* ---- Reveal / motion parity (Section 2.1) ----------------------------- */
.reveal-item, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-item.is-visible, .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade { opacity: 0; transition: opacity 0.8s var(--ease-smooth); }
.reveal-fade.is-visible { opacity: 1; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.4s; }

/* Fallback: always visible in Customizer preview (Section 2.1 rule 5) and
   when JS/IntersectionObserver does not fire. */
body.is-customizer .reveal-item,
body.is-customizer .reveal-stagger > *,
body.is-customizer .reveal-fade,
body.is-customizer .reveal-scale,
.no-js .reveal-item,
.no-js .reveal-stagger > *,
.no-js .reveal-fade,
.no-js .reveal-scale {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item, .reveal-stagger > *, .reveal-fade, .reveal-scale {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .theme-marquee-track {
    animation: none;
  }

  .theme-quote-bg,
  .theme-quote-content {
    transform: none !important;
  }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 40s linear infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes drawerSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes drawerSlideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ---- Buttons ----------------------------------------------------------- */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  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: var(--btn-text-transform);
  border: none;
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}
.theme-btn-primary { background: var(--color-foreground); color: var(--color-background); box-shadow: var(--shadow-soft); }
.theme-btn-primary:hover { background: color-mix(in srgb, var(--color-foreground) 85%, transparent); transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.theme-btn-outline { border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent); background: transparent; color: var(--color-foreground); }
.theme-btn-outline:hover { background: var(--color-foreground); color: var(--color-background); }
.theme-btn-hero { background: var(--color-background); color: var(--color-foreground); padding: 1rem 3rem; box-shadow: var(--shadow-elevated); position: relative; overflow: hidden; }
.theme-btn-hero:hover { transform: translateY(-2px); box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5); }
.btn-hero-primary, .btn-hero-outline { text-transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(6px);
  border-bottom-color: color-mix(in srgb, var(--color-foreground) 12%, transparent);
}
.site-header .theme-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 0.3s var(--ease-smooth);
}
.site-header.header-scrolled .theme-nav-inner { height: 48px; }
@media (min-width: 1024px) {
  .site-header .theme-nav-inner { height: 80px; }
  .site-header.header-scrolled .theme-nav-inner { height: 56px; }
}

.site-logo-link { display: flex; align-items: center; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; transition: height 0.3s var(--ease-smooth); object-fit: contain; }
.site-header.header-scrolled .site-logo-img { height: calc(var(--logo-height) * 0.7) !important; }
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); }

.theme-nav-right { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .theme-nav-right { gap: 2rem; } }
.theme-nav-list { display: none; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-desktop { display: none; align-items: center; }
@media (min-width: 1024px) {
  .theme-nav-desktop { display: flex; }
  .theme-nav-list { display: flex; }
}
.theme-nav-list li { margin: 0; padding: 0; }
.theme-nav-list a, .theme-nav-list button {
  background: none; border: none; padding: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-foreground-header, currentColor);
  transition: opacity 0.3s;
}
.site-header:not(.is-solid) .theme-nav-list a,
.site-header:not(.is-solid) .theme-cart-toggle,
.site-header:not(.is-solid) .theme-mobile-toggle {
  color: #fdfaf2;
  filter: drop-shadow(0 2px 14px rgba(245,241,232,0.5));
}
.site-header.is-solid .theme-nav-list a,
.site-header.is-solid .theme-cart-toggle,
.site-header.is-solid .theme-mobile-toggle { color: var(--color-navy-deep); }
.theme-nav-list a:hover, .theme-nav-list button:hover { opacity: 0.8; }

.theme-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-toggle, .theme-mobile-toggle {
  position: relative;
  background: none; border: none; padding: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.theme-cart-toggle:hover, .theme-mobile-toggle:hover { opacity: 0.6; }
.theme-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.theme-cart-count {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500;
  background: var(--color-primary); color: var(--color-button-text);
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-menu {
  display: none;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  padding: 1rem 0;
  animation: fadeIn 0.4s var(--ease-smooth);
}
.theme-mobile-menu.is-open { display: block; }
.theme-mobile-menu .theme-nav-list { display: flex; flex-direction: column; gap: 1rem; }
.theme-mobile-menu .theme-nav-list a { text-align: left; padding: 0.5rem 0; color: var(--color-navy-deep) !important; filter: none !important; }

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
body.admin-bar #theme-cart-drawer,
body.admin-bar #theme-cart-overlay { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar #theme-cart-drawer,
  body.admin-bar #theme-cart-overlay { top: 46px; height: calc(100% - 46px); }
}
body.admin-bar.single-community_post .theme-community-post-container { padding-top: calc(6rem + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar.single-community_post .theme-community-post-container { padding-top: calc(6rem + 46px); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.theme-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-deep);
  isolation: isolate;
}
.theme-hero-slides { position: absolute; inset: 0; }
.theme-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease-smooth), transform 6s var(--ease-smooth);
}
.theme-hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.theme-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.theme-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-navy-deep) 70%, transparent),
    color-mix(in srgb, var(--color-navy-deep) 45%, transparent),
    color-mix(in srgb, var(--color-navy-deep) 85%, transparent));
  z-index: 2;
}
.theme-hero-wave { position: absolute; left: 0; bottom: -1px; z-index: 5; width: 100%; height: 3rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-hero-wave { height: 4rem; } }

.theme-hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh;
  padding-bottom: 6rem;
}
@media (min-width: 768px) { .theme-hero-content { padding-bottom: 8rem; } }
.theme-hero-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
}
@media (min-width: 768px) {
  .theme-hero-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.theme-hero-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(245,241,232,0.9); font-family: var(--font-body); }
.theme-hero-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.9;
  color: var(--color-background);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  font-size: 14vw;
}
@media (min-width: 768px) { .theme-hero-title { font-size: 10vw; } }
@media (min-width: 1024px) { .theme-hero-title { font-size: 8rem; } }
.theme-hero-title .accent { font-style: italic; color: var(--color-gold-light); }
.theme-hero-subtitle {
  margin-top: 1rem; max-width: 36rem;
  font-size: 1rem; font-weight: 300; line-height: 1.6;
  color: rgba(245,241,232,0.9);
}
@media (min-width: 768px) { .theme-hero-subtitle { font-size: 1.125rem; } }

/* ==========================================================================
   CATEGORY MARQUEE
   ========================================================================== */
.theme-marquee { margin-top: -1px; overflow: hidden; background: var(--color-background); padding: 1.5rem 0; }
.theme-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  padding: 0 2rem;
  animation: marquee 40s linear infinite;
}
.theme-marquee-track span.item { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-marquee-track span.item { font-size: 1.875rem; } }
@media (min-width: 1024px) { .theme-marquee-track span.item { font-size: 2.25rem; } }
.theme-marquee-track .sep { margin-left: 4rem; color: color-mix(in srgb, var(--color-primary) 60%, transparent); }

/* ==========================================================================
   NEWEST ARRIVALS
   ========================================================================== */
.theme-arrivals { position: relative; background: var(--color-background); padding: 5rem 0; overflow: hidden; }
@media (min-width: 768px) { .theme-arrivals { padding: 7rem 0; } }
.theme-arrivals-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); padding-bottom: 1.5rem; }
.theme-arrivals-head .eyebrow { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.32em; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-arrivals-shopall { display: none; align-items: center; gap: 0.5rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.28em; }
@media (min-width: 768px) { .theme-arrivals-shopall { display: inline-flex; } }
.theme-arrivals-intro { margin-top: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .theme-arrivals-intro { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 3rem; } }
.theme-arrivals-heading { font-family: var(--font-display); font-weight: 300; line-height: 0.95; font-size: 14vw; }
@media (min-width: 768px) { .theme-arrivals-heading { font-size: 7vw; } }
@media (min-width: 1024px) { .theme-arrivals-heading { font-size: 6.5rem; } }
.theme-arrivals-desc { max-width: 28rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
@media (min-width: 768px) { .theme-arrivals-desc { font-size: 1.125rem; } }

.theme-arrivals-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .theme-arrivals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .theme-arrivals-grid { gap: 2.5rem; } }
.theme-arrival-card { display: block; min-width: 0; }
.theme-arrival-card .theme-arrival-image { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--color-background); }
.theme-arrival-card .theme-arrival-image img,
.theme-arrival-card .theme-arrival-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-smooth); }
.theme-arrival-card:hover .theme-arrival-image img,
.theme-arrival-card:hover .theme-arrival-img { transform: scale(1.05); }
.theme-arrival-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem; background: rgba(0,0,0,0); transition: background 0.5s; }
.theme-arrival-card:hover .theme-arrival-overlay { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-arrival-overlay .icon-circle {
  display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--color-background); color: var(--color-foreground);
  box-shadow: var(--shadow-elevated); opacity: 0; transform: translateY(8px);
  transition: all 0.5s var(--ease-smooth);
}
.theme-arrival-card:hover .icon-circle { opacity: 1; transform: translateY(0); }
.theme-arrival-caption { margin-top: 1rem; }
.theme-arrival-caption .cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.theme-arrival-caption .row { margin-top: 0.25rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.theme-arrival-caption h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-arrival-caption .price { flex-shrink: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 300; color: var(--color-foreground); }
.theme-arrival-caption .price .woocommerce-Price-amount { font-family: var(--font-display); font-weight: 300; }
.theme-arrivals-mobile-cta { margin-top: 3rem; display: none; justify-content: center; }
@media (max-width: 767px) { .theme-arrivals-mobile-cta { display: flex; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.theme-about { background: var(--color-secondary); }
.theme-about-inner { padding-block: 6rem; display: grid; gap: 3rem; align-items: stretch; }
@media (min-width: 768px) { .theme-about-inner { padding-block: 8rem; } }
@media (min-width: 1024px) { .theme-about-inner { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.theme-about-image-col { position: relative; }
@media (min-width: 1024px) { .theme-about-image-col { grid-column: span 6; } }
.theme-about-corner { position: absolute; top: -1rem; left: -1rem; z-index: 10; width: 6rem; height: 6rem; border-left: 2px solid var(--color-royal); border-top: 2px solid var(--color-royal); }
@media (max-width: 767px) {
  .theme-about-corner { top: 0; left: 0; }
}
.theme-about-image-wrap { position: relative; aspect-ratio: 4/5; height: 100%; width: 100%; overflow: hidden; background: color-mix(in srgb, var(--color-foreground) 5%, transparent); box-shadow: var(--shadow-elevated); }
@media (min-width: 1024px) { .theme-about-image-wrap { aspect-ratio: auto; min-height: 500px; } }
.theme-about-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.theme-about-image-wrap:hover img { transform: scale(1.05); }
.theme-about-signature { position: absolute; bottom: 0; right: 0; padding: 1rem; }
.theme-about-signature p { writing-mode: vertical-rl; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5em; color: var(--color-background); mix-blend-mode: difference; }

.theme-about-content-col { position: relative; z-index: 20; }
@media (min-width: 1024px) { .theme-about-content-col { grid-column: span 6; padding-left: 2rem; } }
@media (min-width: 1280px) { .theme-about-content-col { padding-left: 4rem; } }
.theme-about-content-inner { display: flex; height: 100%; flex-direction: column; justify-content: center; gap: 2.5rem; }
.theme-about-badge { display: inline-block; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent); padding: 0.25rem 0.75rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4em; }
.theme-about-heading {
  font-family: var(--font-display); line-height: 0.95; letter-spacing: -0.01em;
  font-size: 1.875rem;
}
@media (min-width: 640px) { .theme-about-heading { font-size: 2.25rem; } }
@media (min-width: 768px) { .theme-about-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .theme-about-heading { font-size: 5.5rem; } }
.theme-about-heading .accent { font-weight: 300; font-style: italic; color: var(--color-primary); }
.theme-about-body { max-width: 36rem; display: flex; flex-direction: column; gap: 3rem; }
.theme-about-bio { font-size: 1.125rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

.theme-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); padding: 2rem 0; }
.theme-stat { min-width: 0; }
.theme-stat .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-style: italic; }
@media (min-width: 640px) { .theme-stat .value { font-size: 1.875rem; } }
.theme-stat .label { margin-top: 0.25rem; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in srgb, var(--color-foreground) 40%, transparent); overflow-wrap: break-word; }

.theme-social-links { display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem; }
@media (min-width: 768px) { .theme-social-links { grid-template-columns: 1fr 1fr; } }
.theme-social-item { display: flex; flex-direction: column; border-left: 2px solid var(--color-royal); padding-left: 1rem; min-width: 0; }
.theme-social-item.span-full { grid-column: 1 / -1; }
.theme-social-item .label { margin-bottom: 0.25rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.theme-social-item a, .theme-social-item span.value { font-size: 0.875rem; word-break: break-word; }
.theme-social-item a { text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--color-foreground) 10%, transparent); text-underline-offset: 4px; transition: color 0.2s; }
.theme-social-item a:hover { color: var(--color-primary); }

/* ==========================================================================
   OWNER SECTION
   ========================================================================== */
.theme-owner { background: var(--color-background); }
.theme-owner-inner { padding-block: 6rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .theme-owner-inner { padding-block: 8rem; } }
@media (min-width: 1024px) { .theme-owner-inner { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.theme-owner-image-col { position: relative; }
@media (min-width: 1024px) { .theme-owner-image-col { grid-column: span 5; } }
.theme-owner-corner { position: absolute; top: -1rem; right: -1rem; z-index: 10; width: 6rem; height: 6rem; border-right: 2px solid var(--color-royal); border-top: 2px solid var(--color-royal); }
@media (max-width: 767px) {
  .theme-owner-corner { top: 0; right: 0; }
}
.theme-owner-image-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--color-secondary); box-shadow: var(--shadow-elevated); }
.theme-owner-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.theme-owner-content { }
@media (min-width: 1024px) { .theme-owner-content { grid-column: span 7; padding-left: 2rem; } }
.theme-owner-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4em; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-owner-name { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 300; line-height: 0.95; font-size: 3rem; }
@media (min-width: 768px) { .theme-owner-name { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-owner-name { font-size: 4.5rem; } }
.theme-owner-title { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--color-primary); }
.theme-owner-bio { margin-top: 2rem; max-width: 42rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
@media (min-width: 768px) { .theme-owner-bio { font-size: 1.125rem; } }

/* ==========================================================================
   SHOP SECTION
   ========================================================================== */
.theme-shop-section { position: relative; background: var(--color-background); overflow: hidden; }
.theme-shop-inner { padding-block: 4rem 7rem; }
@media (min-width: 768px) { .theme-shop-inner { padding-block: 5rem 9rem; } }
.theme-shop-head { text-align: center; margin-bottom: 2rem; }
.theme-shop-heading { margin-top: 0.5rem; font-family: var(--font-display); font-weight: 300; line-height: 0.95; font-size: 2.25rem; }
@media (min-width: 768px) { .theme-shop-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-shop-heading { font-size: 4.75rem; } }

.theme-shop-controls { margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.theme-cat-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.theme-cat-filter {
  border-radius: 0; padding: 0.625rem 1.25rem; font-size: 0.75rem; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.05em; border: none;
  background: var(--color-secondary); color: var(--color-foreground);
  transition: all 0.3s var(--ease-smooth);
}
.theme-cat-filter:hover { background: var(--color-muted); }
.theme-cat-filter.is-active { background: var(--color-primary); color: var(--color-button-text); }

.theme-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-toggle {
  display: flex; align-items: center; gap: 0.5rem; border: none;
  background: var(--color-secondary); color: var(--color-foreground);
  padding: 0.625rem 1.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-smooth);
}
.theme-price-toggle:hover { background: var(--color-muted); }
.theme-price-toggle.is-active { background: var(--color-primary); color: var(--color-button-text); }
.theme-price-toggle svg { transition: transform 0.3s; }
.theme-price-toggle.is-active svg { transform: rotate(180deg); }
.theme-price-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); pointer-events: none; }
.theme-price-panel.is-open { max-height: 200px; opacity: 1; pointer-events: auto; }
.theme-price-panel-inner { width: 16rem; padding: 0.5rem 0; }
.theme-price-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.75rem; }

/* Dual-handle price range slider (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 2px; }
.range-track-bg { left: 0; right: 0; background: color-mix(in srgb, var(--color-foreground) 20%, transparent); }
.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: 16px; height: 16px; border-radius: 50%; background: var(--color-primary); border: 2px solid var(--color-background); box-shadow: var(--shadow-soft); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--color-primary); border: 2px solid var(--color-background); cursor: pointer; }
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 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-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.theme-product-grid.related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-product-grid.related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
/* Only the filterable homepage shop grid starts hidden pending JS (Section 31.14 Mode B). */
.theme-shop-section .theme-product-card-wrap { display: none; }
.theme-shop-section .theme-product-card-wrap.is-shown { display: flex; }

.theme-product-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border: 1px solid var(--color-border);
  background: var(--color-card); box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.theme-product-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-6px); }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 4/5; overflow: hidden; background: color-mix(in srgb, var(--color-secondary) 60%, transparent); }
.theme-product-card__image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-smooth); }
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.06); }
.theme-product-card__image-wrapper img.is-muted { opacity: 0.5; filter: grayscale(30%); }

.theme-product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
  padding: 0.25rem 0.75rem; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--color-primary); color: var(--color-button-text);
}
.theme-product-badge.badge-sold { background: var(--color-muted); color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-product-badge.badge-new { background: var(--color-accent); color: #fff; }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding: 1.25rem; }
.theme-product-card__cat { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 0.25rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 300; line-height: 1.35; min-height: 3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--color-primary); }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-display); font-weight: 500; }

.theme-shop-showmore { margin-top: 3rem; display: flex; justify-content: center; }
.theme-shop-empty { padding: 5rem 0; text-align: center; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); font-weight: 300; }
.theme-shop-wave { position: absolute; inset-inline: 0; bottom: 0; z-index: 10; display: block; width: 100%; height: 80px; pointer-events: none; }
@media (min-width: 768px) { .theme-shop-wave { height: 120px; } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.theme-services { position: relative; width: 100%; overflow: hidden; padding: 5rem 0; background: color-mix(in srgb, var(--color-royal) 5%, var(--color-background)); }
@media (min-width: 768px) { .theme-services { padding: 7rem 0; } }
.theme-services-head { text-align: center; max-width: 56rem; margin: 0 auto; }
.theme-services-heading { margin-top: 1rem; font-family: var(--font-display); font-weight: 300; line-height: 0.95; font-size: 2.25rem; }
@media (min-width: 768px) { .theme-services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-services-heading { font-size: 4.75rem; } }
.theme-services-heading .accent { font-style: italic; color: var(--color-royal); }
.theme-services-grid { margin-top: 3rem; display: grid; }
@media (min-width: 768px) { .theme-services-grid { margin-top: 4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.theme-service { display: flex; flex-direction: column; padding: 2rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .theme-service { padding: 2rem 2rem; } }
.theme-service:not(:last-child) { }
@media (min-width: 768px) { .theme-service:not(:last-child) { border-right: 1px solid color-mix(in srgb, var(--color-royal) 15%, transparent); } }
.theme-service h4 { display: flex; min-height: 5.5rem; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
@media (min-width: 768px) { .theme-service h4 { min-height: 6.5rem; font-size: 2.1rem; } }
.theme-service p { margin: 1.25rem auto 0; min-height: 6rem; max-width: 18rem; font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
@media (min-width: 768px) { .theme-service p { min-height: 7rem; font-size: 1rem; } }
.theme-service .divider { margin: 1.5rem auto 0; height: 1px; width: 3.5rem; background: color-mix(in srgb, var(--color-royal) 60%, transparent); }
.theme-service svg { margin: 1.25rem auto 0; color: var(--color-royal); }
.theme-services-wave { position: absolute; inset-inline: 0; bottom: 0; z-index: 10; display: block; width: 100%; height: 80px; pointer-events: none; }
@media (min-width: 768px) { .theme-services-wave { height: 120px; } }

/* ==========================================================================
   COMMUNITY
   ========================================================================== */
.theme-community { background: var(--color-background); }
.theme-community-inner { padding-block: 6rem; }
@media (min-width: 768px) { .theme-community-inner { padding-block: 8rem; } }
.theme-community-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.theme-community-heading { margin-top: 1rem; font-family: var(--font-display); font-weight: 300; line-height: 0.95; font-size: 2.25rem; }
@media (min-width: 768px) { .theme-community-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-community-heading { font-size: 4.75rem; } }
.theme-community-subtitle { margin: 1.5rem auto 0; max-width: 42rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
@media (min-width: 768px) { .theme-community-subtitle { font-size: 1.125rem; } }
.theme-community-grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .theme-community-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; } }
.theme-community-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card); box-shadow: var(--shadow-soft);
  transition: box-shadow 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.theme-community-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.theme-community-card .img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--color-secondary); }
.theme-community-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.theme-community-card:hover img { transform: scale(1.05); }
.theme-post-cat-badge { position: absolute; left: 1rem; top: 1rem; display: inline-block; border: 1px solid; padding: 0.25rem 0.75rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; backdrop-filter: blur(4px); }
.theme-post-cat-badge.is-event { background: color-mix(in srgb, var(--color-coral) 15%, transparent); color: var(--color-coral); border-color: color-mix(in srgb, var(--color-coral) 30%, transparent); }
.theme-post-cat-badge.is-arrival { background: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.theme-post-cat-badge.is-launch { background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-post-cat-badge.is-news { background: color-mix(in srgb, var(--color-foreground) 10%, transparent); color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-foreground) 20%, transparent); }
.theme-community-card .body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
@media (min-width: 768px) { .theme-community-card .body { padding: 1.75rem; } }
.theme-community-card .meta { display: flex; align-items: center; gap: 0.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-community-card h3 { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.2; }
@media (min-width: 768px) { .theme-community-card h3 { font-size: 1.5rem; } }
.theme-community-card .excerpt { margin-top: 1rem; flex: 1; font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-community-card .read-more { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-primary); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.theme-faq { background: var(--color-background); }
.theme-faq-divider-wrap { padding-block: 0; }
.theme-faq-divider { margin: 0 auto; height: 1px; width: 100%; max-width: 64rem; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-foreground) 20%, transparent), transparent); }
.theme-faq-inner { padding-block: 6rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .theme-faq-inner { padding-block: 8rem; } }
@media (min-width: 1024px) { .theme-faq-inner { grid-template-columns: repeat(12, 1fr); gap: 4rem; align-items: start; } }
.theme-faq-head { }
@media (min-width: 1024px) { .theme-faq-head { grid-column: span 5; position: sticky; top: 6rem; } }
.theme-faq-heading { margin-top: 1rem; font-family: var(--font-display); font-weight: 300; line-height: 0.92; font-size: 3rem; }
@media (min-width: 768px) { .theme-faq-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-faq-heading { font-size: 5rem; } }
.theme-faq-heading .accent { font-style: italic; color: var(--color-primary); }
.theme-faq-desc { margin-top: 1.5rem; max-width: 28rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
@media (min-width: 768px) { .theme-faq-desc { font-size: 1.125rem; } }
.theme-faq-list { }
@media (min-width: 1024px) { .theme-faq-list { grid-column: span 7; } }
.theme-faq-list-inner { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 60%, transparent 40%); }
.theme-faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 60%, transparent 40%); }
.theme-faq-question {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left; background: none; border: none; transition: color 0.3s;
}
.theme-faq-question:hover { color: var(--color-primary); }
.theme-faq-question span.q { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; line-height: 1.2; }
@media (min-width: 768px) { .theme-faq-question span.q { font-size: 1.5rem; } }
.theme-faq-question svg { flex-shrink: 0; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); transition: transform 0.3s; }
.theme-faq-item.is-open .theme-faq-question svg { transform: rotate(45deg); }
.theme-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-smooth); }
.theme-faq-item.is-open .theme-faq-answer { max-height: 400px; }
.theme-faq-answer p { padding-bottom: 1.5rem; padding-right: 2.5rem; font-size: 1rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   QUOTE
   ========================================================================== */
.theme-quote { position: relative; isolation: isolate; width: 100%; min-height: 85vh; overflow: hidden; }
@media (min-width: 768px) { .theme-quote { min-height: 95vh; } }
.theme-quote-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 130%;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}
.theme-quote-bg img,
.theme-quote-bg .js-quote-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.theme-quote-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom,
  color-mix(in srgb, var(--color-navy-deep) 60%, transparent),
  color-mix(in srgb, var(--color-navy-deep) 50%, transparent),
  color-mix(in srgb, var(--color-navy-deep) 80%, transparent)); }
.theme-quote-content {
  display: flex;
  min-height: 85vh;
  align-items: center;
  justify-content: center;
  padding-block: 9rem;
  will-change: transform;
}
@media (min-width: 768px) {
  .theme-quote-content { min-height: 95vh; padding-block: 12rem; }
}
.theme-quote-inner { margin: 0 auto; max-width: 56rem; text-align: center; }
.theme-quote-eyebrow { color: rgba(245,241,232,0.9); }
.theme-quote-text { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 300; line-height: 1.05; color: var(--color-background); font-size: 1.875rem; }
@media (min-width: 768px) { .theme-quote-text { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-quote-text { font-size: 3.75rem; } }
.theme-quote-text .mark { font-family: var(--font-display); font-style: italic; color: var(--color-gold-light); }
.theme-quote-text .js-quote-text { color: var(--color-background); }
.theme-quote-text .js-quote-highlight { color: var(--color-gold-light); }
.theme-quote-divider { margin: 2.5rem auto 0; height: 1px; width: 4rem; background: rgba(245,241,232,0.6); }
.theme-quote-attribution { margin-top: 1.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.32em; color: rgba(245,241,232,0.8); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.theme-contact { position: relative; overflow: hidden; background: var(--color-secondary); color: var(--color-foreground); }
.theme-contact-inner { position: relative; padding-block: 6rem; }
@media (min-width: 768px) { .theme-contact-inner { padding-block: 8rem; } }
.theme-contact-grid { margin: 0 auto; max-width: 72rem; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 4rem; }
@media (min-width: 1024px) { .theme-contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.theme-contact-left { display: flex; height: 100%; flex-direction: column; }
.theme-contact-tag { display: inline-flex; align-items: center; gap: 1rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-contact-tag .bar { height: 1px; width: 3rem; background: var(--color-foreground); }
.theme-contact-heading { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 300; line-height: 0.9; letter-spacing: -0.01em; font-size: 3.75rem; }
@media (min-width: 768px) { .theme-contact-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .theme-contact-heading { font-size: 6rem; } }
.theme-contact-heading .accent,
.theme-contact-heading .js-contact-heading-accent { font-style: italic; color: var(--color-primary); }
.theme-contact-subtitle { margin-top: 2rem; max-width: 28rem; font-size: 0.875rem; font-weight: 300; line-height: 1.6; }
.theme-contact-list { margin-top: 3rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-contact-list-item { display: block; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-contact-list-item a, .theme-contact-list-item div.static-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding: 1.5rem 0.5rem; transition: background 0.3s; }
.theme-contact-list-item a:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-contact-list-item .label-row { display: flex; align-items: center; gap: 0.5rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.theme-contact-list-item .value-row { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; text-align: right; font-size: 0.875rem; font-weight: 500; word-break: break-word; }

.theme-contact-right { display: flex; height: 100%; flex-direction: column; }
.theme-contact-form {
  position: relative; flex: 1; display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  background: color-mix(in srgb, var(--color-background) 90%, transparent);
  padding: 2rem; box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--color-foreground) 10%, transparent);
  backdrop-filter: blur(4px);
}
@media (min-width: 768px) { .theme-contact-form { padding: 3rem; } }
.theme-contact-form .form-row-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .theme-contact-form .form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-contact-form label { margin-bottom: 0.5rem; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.32em; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-contact-form input, .theme-contact-form textarea {
  width: 100%; border: none; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 40%, transparent);
  background: transparent; padding: 0.75rem 0; font-size: 1rem; font-weight: 300; color: var(--color-foreground);
  transition: border-color 0.3s; font-family: var(--font-body);
}
.theme-contact-form input::placeholder, .theme-contact-form textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }
.theme-contact-form input:focus, .theme-contact-form textarea:focus { outline: none; border-color: var(--color-foreground); }
.theme-contact-form .field-block { margin-top: 2rem; }
.theme-contact-form .form-footer { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; }
@media (min-width: 640px) { .theme-contact-form .form-footer { flex-direction: row; align-items: center; } }
.theme-contact-form .required-note { font-size: 10px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.28em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-contact-submit { border-radius: 0; background: var(--color-foreground); color: var(--color-background); padding: 0 3rem; }
.theme-contact-submit:hover { background: color-mix(in srgb, var(--color-foreground) 90%, transparent); transform: translateX(4px); }

.theme-contact-success {
  display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  padding: 5rem 2rem; text-align: center; backdrop-filter: blur(4px);
  animation: fadeIn 0.5s var(--ease-smooth);
}
.theme-contact-form-wrap.is-submitted .theme-contact-form { display: none; }
.theme-contact-form-wrap.is-submitted .theme-contact-success { display: flex; }
.theme-contact-success .icon-box { margin-bottom: 1.5rem; display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center; border: 1px solid var(--color-foreground); background: var(--color-foreground); }
.theme-contact-success h3 { margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 300; line-height: 1.2; }
.theme-contact-success h3 .accent { font-style: italic; }
.theme-contact-success p { font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); background: color-mix(in srgb, var(--color-secondary) 40%, var(--color-background)); }
.site-footer-inner { padding-block: 3rem 0; }
@media (min-width: 1024px) { .site-footer-inner { padding-top: 4rem; } }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.footer-logo-img { height: 5rem !important; width: auto !important; max-width: 5rem; object-fit: contain; display: block; }
.footer-bio { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.footer-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-social a {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  background: transparent;
  transition: background-color 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}
.footer-social a:hover { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.footer-social a svg { flex-shrink: 0; stroke: currentColor; }
.footer-social a:hover svg { stroke: currentColor; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-nav-list { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.footer-nav-list a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--color-foreground); opacity: 1; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col button { background: none; border: none; padding: 0; font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); transition: color 0.2s; text-align: left; }
.footer-col a:not(.footer-social a):hover, .footer-col button:hover { color: var(--color-foreground); }
.footer-col li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.footer-col li a { word-break: break-all; }
.footer-bottom { margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 0.75rem; font-weight: 300; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }

/* ==========================================================================
   SIDE CART DRAWER (Section 12, 31.1, 31.6)
   ========================================================================== */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-smooth);
}
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;
  background: var(--color-background); z-index: 91; 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-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
.theme-cart-header h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-close { background: none; border: none; padding: 0.25rem; transition: opacity 0.2s; }
.theme-cart-close:hover { opacity: 0.6; }

.theme-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-empty svg { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-cart-empty p { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1.5rem; }

.theme-cart-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item .thumb { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; }
.theme-cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item .details { flex: 1; min-width: 0; }
.theme-cart-item .name { font-size: 0.875rem; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.theme-cart-item .price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.125rem; }
.theme-cart-item .qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item .qty-row button { padding: 0.25rem; background: none; border: none; border-radius: 4px; transition: background 0.2s; }
.theme-cart-item .qty-row button:hover { background: var(--color-secondary); }
.theme-cart-item .qty-row span.qty-val { width: 1.5rem; text-align: center; font-size: 0.875rem; }
.theme-cart-item .qty-row .remove-btn { margin-left: auto; font-size: 0.75rem; background: none; border: none; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-item .qty-row .remove-btn:hover { color: var(--color-foreground); }
.theme-cart-item .attrs { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.25rem; }

.theme-cart-footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-row .label { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-subtotal-row .value { font-weight: 500; }
.theme-cart-note { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-checkout-btn { width: 100%; }

/* Hide WooCommerce injected "View cart" link everywhere (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.ajax_add_to_cart.theme-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; }

/* ==========================================================================
   WOOCOMMERCE — NOTICES (scoped, Section 14.1)
   ========================================================================== */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  font-family: var(--font-body); border-radius: var(--card-radius);
  padding: 1rem 1.5rem; margin: 0 0 1.5rem; list-style: none; border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  background: var(--color-secondary); color: var(--color-foreground);
}
.woocommerce-error { border-color: color-mix(in srgb, var(--color-coral) 40%, transparent); background: color-mix(in srgb, var(--color-coral) 10%, transparent); }

/* ==========================================================================
   ADD TO CART BUTTON OVERRIDE (Section 11.4.1)
   ========================================================================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important;
  min-height: 3rem !important;
  box-shadow: var(--shadow-soft) !important;
  transition: background-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth) !important;
}
.single-product .single_add_to_cart_button.button:hover,
.single-product a.single_add_to_cart_button:hover {
  opacity: 1 !important;
  background-color: color-mix(in srgb, var(--color-foreground) 85%, transparent) !important;
  color: var(--color-background) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated) !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;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.single-product .variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }

.theme-single-product { padding-top: 5rem; }
@media (min-width: 1024px) { .theme-single-product { padding-top: 6rem; } }
.theme-back-link-wrap { padding: 1.5rem 0; }
.theme-back-link { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); transition: color 0.2s; }
.theme-back-link:hover { color: var(--color-foreground); }
.theme-back-link svg { margin-right: 0.5rem; flex-shrink: 0; }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

/* Hide any stray default WooCommerce gallery output inside our custom layout. */
.theme-product-gallery .woocommerce-product-gallery,
.theme-product-gallery .woocommerce-product-gallery__wrapper,
.theme-product-gallery .zoomImg { display: none !important; }

.theme-product-gallery-main { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-gallery-main .theme-gallery-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; max-width: 100%; }
.theme-product-thumbnails button { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; padding: 0; background: none; }
.theme-product-thumbnails button.is-active { border-color: var(--color-primary); opacity: 1; }
.theme-product-thumbnails button:hover { opacity: 1; }
.theme-product-thumbnails img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-meta { display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-product-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.2; margin-top: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-product-title { font-size: 1.875rem; } }
.theme-product-price { font-family: var(--font-body); font-size: 1.5rem; font-weight: 500; color: var(--color-primary); margin: 0 0 1.5rem; }
.theme-product-price .woocommerce-Price-amount { font-family: var(--font-body); font-weight: 500; }

.theme-product-stock { display: inline-block; margin-bottom: 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.375rem 0.9rem; }
.theme-product-stock.in-stock { color: var(--color-accent); }
.theme-product-stock.out-of-stock { background: var(--color-muted); color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

.theme-product-description {
  color: color-mix(in srgb, var(--color-foreground) 65%, transparent);
  line-height: 1.625;
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-line;
}

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; background: none; border: none; transition: background 0.2s; display: flex; align-items: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3rem; min-width: 3rem; padding: 0.75rem 0; text-align: center; border: none; background: transparent; font-family: var(--font-body); font-weight: 300; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-captain-note { margin-bottom: 2rem; border-radius: var(--card-radius); border: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-card) 70%, transparent); padding: 1rem; }
.theme-captain-note .label { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-captain-note p.text { margin-top: 0.5rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 300; line-height: 1.625; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-details h3 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.theme-product-details ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details li { display: flex; align-items: flex-start; font-family: var(--font-body); font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); overflow-wrap: break-word; word-break: break-word; }
.theme-product-details li::before { content: ''; width: 6px; height: 6px; background: var(--color-primary); border-radius: 50%; margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-posted-in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-section h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-section h2 { font-size: 1.5rem; } }
.theme-product-grid.related-grid { gap: 1.5rem; }
@media (min-width: 1024px) { .theme-product-grid.related-grid { gap: 2rem; } }

/* Variable product layout (Section 11.5.1, 11.13) */
.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; }
/* ==========================================================================
   WOOCOMMERCE SHOP / ARCHIVE
   ========================================================================== */
.theme-archive-header { text-align: center; padding: 7rem 0 2rem; }
.theme-archive-header h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; }
.theme-archive-inner { padding-bottom: 5rem; }
.theme-archive-empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* ==========================================================================
   CHECKOUT / CART / ACCOUNT / THANK YOU (Section 13, 13.7, 22.8)
   ========================================================================== */
.page-title { font-family: var(--font-display); font-weight: 300; font-size: 2.5rem; padding-block: 6rem 1rem; }
@media (min-width: 768px) { .page-title { font-size: 3.5rem; } }

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }

/* Checkout block — width parity (Section 13, 13.7) */

/* Parent wrappers must not compress the block (page.php uses .container-wide). */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .site-main > .container-wide,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout article,
body.woocommerce-checkout #page-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .site-main > .container-wide {
  padding-left: 0;
  padding-right: 0;
}

body.woocommerce-checkout .page-title {
  max-width: var(--checkout-max-width, 80rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.woocommerce-checkout .page-title {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Root checkout container (1280px / 80rem, centered). */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
  max-width: var(--checkout-max-width, 80rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout,
  .entry-content .wp-block-woocommerce-checkout,
  .entry-content .wc-block-checkout {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Notices — same width/alignment as checkout (wc-block-components-notices). */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  max-width: var(--checkout-max-width, 80rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Sidebar-layout containers fill the checkout root; grid lives here, not on a plain wrapper. */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
body.woocommerce-checkout .wc-block-checkout.is-large,
.entry-content .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
  body.woocommerce-checkout .wc-block-checkout.is-large,
  body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main),
  body.woocommerce-checkout .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block),
  .entry-content .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
  .entry-content .wc-block-checkout:has(> .wc-block-checkout__main),
  .entry-content .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block) {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--checkout-gap, 1.5rem);
    align-items: start;
  }
}

/* First grid child: notices span full width. */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main) > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block) > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout > .wc-block-components-notices {
  grid-column: 1 / -1;
  order: 1;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
.entry-content .wc-block-checkout__main,
.entry-content .wp-block-woocommerce-checkout-fields-block {
  order: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
  order: 3;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
  .entry-content .wc-block-checkout__sidebar,
  .entry-content .wp-block-woocommerce-checkout-totals-block {
    min-width: 360px;
  }
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main) > *,
body.woocommerce-checkout .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block) > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout:has(> .wc-block-checkout__main) > *,
.entry-content .wc-block-checkout:has(> .wp-block-woocommerce-checkout-fields-block) > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  border-radius: var(--card-radius);
  border-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: 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-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}
body.woocommerce-checkout h2, body.woocommerce-checkout h3 { font-family: var(--font-display); font-weight: 300; }

/* Cart / My Account width parity (Section 13.7) */
body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { body.woocommerce-cart .woocommerce, body.woocommerce-account .woocommerce { padding: 0 2rem; } }

/* Thank you page (Section 22.8) */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: 6rem; padding-bottom: 4rem; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 1.5rem 0; margin-bottom: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; }
@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; }
}

/* ==========================================================================
   SINGLE COMMUNITY POST
   ========================================================================== */
.single-community_post .theme-community-post-container { padding-top: 6rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .single-community_post .theme-community-post-container { padding-top: 7rem; } }
.theme-community-post-header { margin-top: 2rem; text-align: center; }
.theme-community-post-header .theme-post-cat-badge { position: static; display: inline-block; }
.theme-community-post-title { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 300; line-height: 0.98; font-size: 2.25rem; }
@media (min-width: 768px) { .theme-community-post-title { font-size: 3.75rem; } }
.theme-community-post-meta { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-community-post-image { margin-top: 3rem; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: var(--color-secondary); box-shadow: var(--shadow-elevated); }
.theme-community-post-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-community-post-body { margin-top: 3rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
.theme-community-post-excerpt { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; font-weight: 300; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
@media (min-width: 768px) { .theme-community-post-excerpt { font-size: 1.5rem; } }
.theme-community-post-content { margin-top: 2rem; font-size: 1rem; font-weight: 300; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
@media (min-width: 768px) { .theme-community-post-content { font-size: 1.125rem; } }
.theme-community-post-content p { margin-bottom: 1.25rem; }
.theme-community-related { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); background: color-mix(in srgb, var(--color-secondary) 40%, transparent); padding: 5rem 0; }
.theme-community-related-head { margin-bottom: 2.5rem; display: flex; align-items: flex-end; justify-content: space-between; }
.theme-community-grid.two-col { grid-template-columns: 1fr; }
@media (min-width: 768px) { .theme-community-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-community-related-head h2 { font-family: var(--font-display); font-size: 1.875rem; font-weight: 300; }
@media (min-width: 768px) { .theme-community-related-head h2 { font-size: 2.25rem; } }
.theme-community-related-head a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-primary); }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.theme-404 h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 300; margin-bottom: 1rem; }
.theme-404 p { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 2rem; }
