/* =============================================================
   Cove Pirates Theme — Main Stylesheet
   ============================================================= */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --color-background:   #161616;
  --color-foreground:   #d8cfbe;
  --color-primary:      #8a6a3b;
  --color-primary-fg:   #f0ebe1;
  --color-secondary:    #1f2a33;
  --color-secondary-fg: #d2c9b7;
  --color-muted-fg:     #8a8070;
  --color-border:       #3a3f42;
  --color-card:         #1f2a33;
  --color-button-text:  #f0ebe1;
  --color-abyss:        #0f0f0f;
  --logo-height:        64px;

  --font-display:   'IM Fell English', 'Pirata One', Georgia, serif;
  --font-flourish:  'Pirata One', 'IM Fell English', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --shadow-soft:     0 6px 24px -8px rgba(0,0,0,0.55);
  --shadow-elevated: 0 24px 60px -16px rgba(0,0,0,0.75);

  --transition: cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;

  --btn-radius:        0;
  --btn-height:        52px;
  --btn-padding:       0 2.5rem;
  --btn-font-size:     0.875rem;
  --btn-font-weight:   400;
  --btn-letter-spacing:0.05em;
  --btn-text-transform:none;

  --card-radius: 0;

  /* Typography scale (mirrors Lovable / Tailwind) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;
  --text-10xl: 10rem;
  --text-micro: 0.625rem;

  --tracking-wide:          0.025em;
  --tracking-eyebrow:       0.35em;
  --tracking-eyebrow-tight: 0.3em;
  --tracking-eyebrow-micro: 0.25em;
  --tracking-cta:           0.2em;

  --leading-tight:   1.25;
  --leading-snug:    1.375;
  --leading-relaxed: 1.625;
  --leading-display: 1.05;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── WORDPRESS ADMIN BAR ────────────────────────────────────── */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
body.admin-bar .scroll-target,
body.admin-bar .about-section,
body.admin-bar .maker-section,
body.admin-bar .shop-section,
body.admin-bar .logbook-section,
body.admin-bar .contact-section {
  scroll-margin-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .scroll-target,
  body.admin-bar .about-section,
  body.admin-bar .maker-section,
  body.admin-bar .shop-section,
  body.admin-bar .logbook-section,
  body.admin-bar .contact-section {
    scroll-margin-top: calc(var(--header-height) + 46px);
  }
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.text-primary   { color: var(--color-primary); }
.text-center    { text-align: center; }
.text-distressed {
  text-shadow:
    0 1px 0 rgba(15, 15, 15, 0.6),
    0 0 1px rgba(216, 207, 190, 0.3);
}
.hidden-mobile  { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: block; } }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

/* ── TEXTURE UTILITIES ──────────────────────────────────────── */
.texture-parchment {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(138,106,59,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(31,42,51,0.06) 0%, transparent 50%);
}
.texture-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.82 0 0 0 0 0.75 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.texture-fog {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(216,207,190,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(216,207,190,0.04) 0%, transparent 60%);
}

/* ── SECTION UTILITIES ──────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.is-visible.reveal-up    { opacity: 1; transform: translateY(0); }
.is-visible.reveal-left  { opacity: 1; transform: translateX(0); }
.is-visible.reveal-right { opacity: 1; transform: translateX(0); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  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-radius: var(--btn-radius);
  transition: opacity 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; color: var(--color-button-text); }

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: rgba(216,207,190,0.3);
}
.btn-outline:hover { background-color: rgba(216,207,190,0.1); }

.btn-full { width: 100%; }

/* ── LOGO ───────────────────────────────────────────────────── */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  filter: brightness(0) invert(1);
  object-fit: contain;
  transition: height 0.3s var(--transition);
}
.site-logo-text {
  font-family: var(--font-flourish);
  font-size: 1.5rem;
  color: var(--color-foreground);
  display: block;
  line-height: var(--logo-height);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background-color 0.3s var(--transition), border-color 0.3s var(--transition), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background-color: rgba(22,22,22,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}
.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-nav-links.hidden-mobile { display: none; }
@media (min-width: 768px) { .site-nav-links.hidden-mobile { display: flex; align-items: center; gap: 2rem; } }

/* Theme Nav List (WP menu) */
.theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.theme-nav-list li a,
.theme-nav-list li button,
.theme-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--color-foreground);
  opacity: 0.9;
  position: relative;
  display: inline-block;
  transition: color 0.2s, opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.theme-nav-list li a::after,
.theme-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition);
}
.theme-nav-list li a:hover::after,
.theme-nav-link:hover::after { transform: scaleX(1); }
.site-header.is-solid .theme-nav-list li a,
.site-header.is-solid .theme-nav-link { color: var(--color-foreground); }

/* Transparent header nav */
.site-header:not(.is-solid) .theme-nav-list li a,
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.9); }

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.cart-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .cart-btn { color: white; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.mobile-menu-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .mobile-menu-btn { color: white; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile Menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  animation: fadeIn 0.25s var(--transition);
}
.mobile-menu[hidden] { display: none; }
.mobile-nav-list,
.mobile-menu .theme-nav-list,
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.mobile-nav-list li,
.mobile-menu .theme-nav-list li,
.mobile-menu ul li {
  width: 100%;
}
.mobile-nav-list li a,
.mobile-nav-list li button,
.mobile-menu .theme-nav-list li a,
.mobile-menu .theme-nav-list .theme-nav-link,
.mobile-menu .theme-nav-list li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(58,63,66,0.4);
  color: var(--color-foreground);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu .theme-nav-list li a::after,
.mobile-menu .theme-nav-list .theme-nav-link::after {
  display: none;
}
.mobile-nav-list li a:hover,
.mobile-nav-list li button:hover,
.mobile-menu .theme-nav-list li a:hover,
.mobile-menu .theme-nav-list li button:hover { color: var(--color-muted-fg); }

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-background);
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 7rem);
    padding-bottom: 7rem;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform-origin: center;
  animation: heroScale 20s ease-in-out infinite alternate;
}
@keyframes heroScale {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(22,22,22,0.85) 0%, rgba(22,22,22,0.75) 50%, rgba(22,22,22,0.95) 100%);
  transition: opacity 0.5s;
}
.hero-fog {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(216,207,190,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(138,106,59,0.05) 0%, transparent 60%);
  pointer-events: none; opacity: 0.6;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.82 0 0 0 0 0.75 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  width: 100%;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s 0.5s both;
}
.hero-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
@media (min-width: 768px) {
  .hero-label { font-size: var(--text-sm); }
}
.hero-line {
  display: block;
  width: 32px; height: 1px;
  background-color: var(--color-primary);
  animation: growWidth 0.8s 0.8s both;
}
@keyframes growWidth {
  from { width: 0; }
  to   { width: 32px; }
}

.hero-title-wrap { overflow: hidden; }
.hero-title {
  font-family: var(--font-flourish);
  font-size: var(--text-7xl);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: white;
  text-shadow:
    0 4px 30px rgba(0,0,0,1),
    0 1px 0 rgba(15, 15, 15, 0.6),
    0 0 1px rgba(216, 207, 190, 0.3);
  margin-bottom: 0.25rem;
  animation: slideUp 1s 0.6s both;
}
@media (min-width: 768px) {
  .hero-title { font-size: var(--text-8xl); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: var(--text-10xl); }
}
.hero-subtitle-wrap { overflow: hidden; }
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  animation: slideUp 1s 0.75s both;
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: var(--text-4xl); }
}
@media (min-width: 1024px) {
  .hero-subtitle { font-size: var(--text-5xl); }
}
.hero-body {
  color: rgba(216,207,190,0.8);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  animation: fadeIn 0.8s 1s both;
}
@media (min-width: 768px) { .hero-body { font-size: var(--text-lg); } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  animation: fadeIn 0.7s 1.2s both;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; justify-content: center; } }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: translateY(0); } }

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-section {
  position: relative;
  background-color: var(--color-background);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}
.about-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.82 0 0 0 0 0.75 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.about-inner { position: relative; z-index: 1; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .about-inner { padding: 7rem 2rem; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 7rem;
  }
}

.about-photo-col { position: relative; }
.about-photo-frame { position: relative; }
.about-photo-border-behind {
  position: absolute;
  inset: 0;
  transform: translate(0.75rem, 0.75rem);
  border: 1px solid rgba(138,106,59,0.5);
  pointer-events: none;
}
.about-photo-wrap {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(58,63,66,0.4);
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  display: block;
}
.about-photo-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,22,22,0.4) 0%, transparent 50%);
  pointer-events: none;
}
.about-photo-caption {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.caption-line { display: block; width: 2rem; height: 1px; background-color: var(--color-primary); flex-shrink: 0; }
.caption-text {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-eyebrow-tight);
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

.about-text-col { display: flex; flex-direction: column; justify-content: center; }
.about-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-4xl);
  margin: 0.75rem 0 1.5rem;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-wide);
}
@media (min-width: 768px) {
  .about-title { font-size: var(--text-5xl); }
}
@media (min-width: 1024px) {
  .about-title { font-size: var(--text-6xl); }
}
.about-body { display: flex; flex-direction: column; gap: 1rem; color: rgba(216,207,190,0.85); }
.about-body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
@media (min-width: 768px) {
  .about-body p { font-size: var(--text-lg); }
}
.about-flourish {
  font-family: var(--font-flourish);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  padding-top: 0.5rem;
}

/* Process gallery */
.process-section { margin-top: 5rem; }
@media (min-width: 768px) { .process-section { margin-top: 7rem; } }
.process-header { text-align: center; margin-bottom: 2.5rem; }
.process-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  margin-top: 0.75rem;
}
@media (min-width: 768px) {
  .process-title { font-size: var(--text-4xl); }
}
@media (min-width: 1024px) {
  .process-title { font-size: var(--text-5xl); }
}
.process-rule { width: 4rem; height: 1px; background: var(--color-primary); margin: 1.25rem auto 0; }
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.process-step { transition: opacity 0.7s var(--transition), transform 0.7s var(--transition); }
.process-step[style*="--delay"] { transition-delay: var(--delay, 0s); }
.process-image-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary);
  border: 1px solid rgba(58,63,66,0.4);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  aspect-ratio: 4 / 5;
}
.process-image {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.7s ease;
}
.process-image-wrap:hover .process-image { transform: scale(1.03); }
.process-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background-color: rgba(22,22,22,0.8);
  color: var(--color-primary);
  font-family: var(--font-body);
}
.process-caption {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: rgba(216,207,190,0.7);
  line-height: var(--leading-relaxed);
}

/* ── MAKER SECTION ──────────────────────────────────────────── */
.maker-section {
  position: relative;
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}
.maker-texture {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(138,106,59,0.08) 0%, transparent 50%);
}
.maker-compass {
  position: absolute;
  top: -2.5rem; right: -2.5rem;
  width: 18rem; height: 18rem;
  color: rgba(138,106,59,0.05);
  pointer-events: none; z-index: 0;
  transform: rotate(12deg);
}
.maker-compass svg { width: 100%; height: 100%; }
.maker-anchor {
  position: absolute;
  bottom: -3rem; left: -2rem;
  width: 15rem; height: 15rem;
  color: rgba(138,106,59,0.05);
  pointer-events: none; z-index: 0;
  transform: rotate(-12deg);
}
.maker-anchor svg { width: 100%; height: 100%; }

.maker-inner { position: relative; z-index: 1; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .maker-inner { padding: 8rem 2rem; } }

.maker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .maker-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.maker-photo-col { position: relative; }
.maker-photo-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.maker-photo-frame-behind {
  position: absolute;
  inset: 0;
  transform: translate(1rem, 1rem);
  border: 2px solid rgba(138,106,59,0.6);
  pointer-events: none;
  z-index: 0;
}
.maker-photo-img-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(22,22,22,0.1);
}
.maker-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
  display: block;
  transition: transform 0.7s ease;
}
.maker-photo-img-wrap:hover .maker-photo { transform: translateY(-4px); }

.maker-photo-caption {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.25rem;
  position: relative;
  z-index: 2;
}
.maker-photo-caption .caption-line {
  width: 2rem;
  height: 1px;
  background-color: rgba(138,106,59,0.6);
}
.maker-photo-caption .caption-text {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(210,201,183,0.7);
  font-family: var(--font-body);
}

.maker-eyebrow-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.eyebrow-line { display: block; width: 2.5rem; height: 1px; background-color: rgba(138,106,59,0.6); flex-shrink: 0; }
.maker-name {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0.5rem;
  line-height: var(--leading-display);
}
@media (min-width: 768px) {
  .maker-name { font-size: var(--text-6xl); }
}
@media (min-width: 1024px) {
  .maker-name { font-size: var(--text-7xl); }
}
.maker-rule {
  width: 5rem; height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 2rem;
  transition: width 0.8s var(--transition);
}
.is-visible .maker-rule { width: 5rem; }

.maker-body { display: flex; flex-direction: column; gap: 1.25rem; color: rgba(210,201,183,0.85); }
.maker-body p { line-height: var(--leading-relaxed); }
.maker-quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-primary);
  margin: 2rem 0;
}
.maker-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .maker-quote p { font-size: var(--text-2xl); }
}
@media (min-width: 1024px) {
  .maker-quote p { font-size: var(--text-3xl); }
}
.maker-signoff {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.maker-signoff-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .maker-signoff-text { font-size: var(--text-4xl); }
}
.maker-signoff svg { color: rgba(138,106,59,0.7); }

/* ── COLLECTIONS SECTION ────────────────────────────────────── */
.collections-section {
  position: relative;
  background-color: rgba(31,42,51,0.4);
  overflow: hidden;
}
.collections-texture, .collections-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.collections-texture { opacity: 0.5; }
.collections-grain   { opacity: 0.6; mix-blend-mode: overlay; }

.collections-inner { position: relative; z-index: 1; padding: 4rem 1.5rem 5rem; }
@media (min-width: 768px) { .collections-inner { padding: 6rem 2rem; } }

.collections-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .collections-header { margin-bottom: 2.5rem; } }
.collections-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-wide);
  text-shadow:
    0 1px 0 rgba(15, 15, 15, 0.6),
    0 0 1px rgba(216, 207, 190, 0.3);
}
@media (min-width: 768px) {
  .collections-title { font-size: var(--text-5xl); }
}
.collections-view-all {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow-micro);
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: color 0.2s;
}
@media (min-width: 768px) {
  .collections-view-all { font-size: var(--text-sm); }
}
.collections-view-all:hover { color: rgba(138,106,59,0.8); }

.collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.collection-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(58,63,66,0.4);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
  text-align: left;
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
@media (min-width: 768px) { .collection-tile { aspect-ratio: 4 / 5; } }
.collection-tile[style*="--delay"] { transition-delay: var(--delay, 0s); }

.collection-tile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}
.collection-tile:hover .collection-tile-img { transform: scale(1.05); }

.collection-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,22,22,0.95) 0%, rgba(22,22,22,0.4) 40%, transparent 100%);
}
.collection-tile-content {
  position: absolute;
  inset-x: 0; bottom: 0;
  padding: 1.25rem 1.5rem;
}
.collection-tile-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-foreground);
  letter-spacing: var(--tracking-wide);
}
@media (min-width: 768px) {
  .collection-tile-name { font-size: var(--text-3xl); }
}
.collection-tile-tagline {
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: rgba(216,207,190,0.75);
  font-family: var(--font-body);
}
.collection-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow-micro);
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
}

/* ── SHOP SECTION ───────────────────────────────────────────── */
.shop-section {
  position: relative;
  background-color: rgba(31,42,51,0.4);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}
.shop-texture, .shop-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.shop-texture { opacity: 0.5; }
.shop-grain   { opacity: 0.6; mix-blend-mode: overlay; }
.shop-inner { position: relative; z-index: 1; padding: 5rem 1.5rem 7rem; }
@media (min-width: 768px) { .shop-inner { padding: 7rem 2rem; } }

.shop-header { margin-bottom: 3rem; }
.shop-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-5xl);
  margin: 0.75rem 0;
  letter-spacing: var(--tracking-wide);
  text-shadow:
    0 1px 0 rgba(15, 15, 15, 0.6),
    0 0 1px rgba(216, 207, 190, 0.3);
}
@media (min-width: 768px) {
  .shop-title { font-size: var(--text-7xl); }
}
.shop-body {
  color: rgba(216,207,190,0.65);
  max-width: 36rem;
  margin: 0 auto;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
@media (min-width: 768px) { .shop-body { font-size: var(--text-base); } }

/* Category Filters */
.shop-filters { text-align: center; margin-bottom: 4rem; }
.shop-cat-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.shop-cat-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  border: 1px solid transparent;
  transition: all 0.3s var(--transition);
  cursor: pointer;
}
.shop-cat-btn:hover { background-color: rgba(58,63,66,0.8); }
.shop-cat-btn.is-active { background-color: var(--color-primary); color: var(--color-primary-fg); }

/* Price filter */
.shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-price-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  border: 1px solid var(--color-border);
  transition: background-color 0.3s;
  cursor: pointer;
  font-family: var(--font-body);
}
.shop-price-toggle:hover { background-color: rgba(58,63,66,0.8); }
.price-toggle-chevron { transition: transform 0.3s; flex-shrink: 0; }
.shop-price-toggle[aria-expanded="true"] .price-toggle-chevron { transform: rotate(180deg); }

.price-filter-body {
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 0;
  overflow: hidden;
}
.price-filter-body[hidden] { display: none; }

/* Price Range Slider (Lovable / Radix-style) */
.price-range-wrapper {
  position: relative;
  width: 100%;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  pointer-events: none;
  z-index: 0;
}
.range-track-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}
.price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 1.75rem;
  top: 0;
  z-index: 2;
}
.price-range-input--max { z-index: 3; }
.price-range-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 0.5rem;
  background: transparent;
}
.price-range-input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  margin-top: -0.375rem;
  box-shadow: none;
}
.price-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  box-shadow: none;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

/* Shop Groups */
.shop-group { margin-bottom: 5rem; }
.shop-group:last-child { margin-bottom: 0; }
.shop-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(58,63,66,0.4);
  padding-bottom: 1rem;
}
.shop-group-header--captains { border-bottom-color: rgba(138,106,59,0.4); }
.shop-group-header-left {}
.shop-group-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}
.shop-group-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .shop-group-title { font-size: var(--text-4xl); }
}
.shop-group-sub {
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
  max-width: 18rem;
  text-align: right;
  font-family: var(--font-body);
}

/* Product Grid */
.shop-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

/* ── PRODUCT CARD ───────────────────────────────────────────── */
.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Pattern A: transparent hit-area overlay */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.theme-product-card * {
  pointer-events: none;
}
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-card-link {
  pointer-events: auto;
}

.theme-product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary);
  border: 1px solid rgba(58,63,66,0.4);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.5s var(--transition), transform 0.5s var(--transition);
}
.theme-product-card:hover .theme-product-card__image-wrapper {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-6px);
}

.theme-product-card__image {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.6s var(--transition);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.03); }

/* Product Badges */
.product-badge {
  position: absolute;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.product-badge--original { top: 0.75rem; right: 0.75rem; background-color: var(--color-primary); color: var(--color-primary-fg); }
.product-badge--sold-out { top: 0.75rem; left: 0.75rem; background-color: var(--color-foreground); color: var(--color-background); }
.product-badge--detail  { top: 1rem; right: 1rem; }

.theme-product-card__info {
  padding: 0 0.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.theme-product-card__name {
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font-body);
  margin: 0;
  transition: color 0.3s;
}
@media (min-width: 768px) {
  .theme-product-card__name { font-size: var(--text-lg); }
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__sizes {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  letter-spacing: 0.15em;
}
.theme-product-card__price {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.theme-product-card__price-from {
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}
.theme-product-card__price-amount .woocommerce-Price-amount,
.theme-product-card__price .woocommerce-Price-amount {
  font-weight: 600;
  color: var(--color-foreground);
}
.theme-product-card__price ins { text-decoration: none; }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.375rem; }

/* Shop empty/no results */
.shop-empty, .shop-no-results { text-align: center; padding: 5rem 0; color: var(--color-muted-fg); }
.shop-no-wc { text-align: center; padding: 3rem 0; color: var(--color-muted-fg); }

/* Sold-out product */
.theme-product-card__image.sold-out { opacity: 0.6; }

/* ── CALLOUT ────────────────────────────────────────────────── */
.callout-wrap { padding: 4rem 1.5rem 5rem; }
@media (min-width: 768px) { .callout-wrap { padding: 5rem 2rem; } }
.callout-box {
  position: relative;
  background-color: var(--color-secondary);
  color: var(--color-secondary-fg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  border: 1px solid rgba(138,106,59,0.4);
  overflow: hidden;
  transition: transform 0.4s var(--transition);
}
.callout-box:hover { transform: scale(1.02); }
.callout-texture, .callout-grain {
  position: absolute; inset: 0; pointer-events: none;
}
.callout-texture { opacity: 0.3; }
.callout-grain   { opacity: 0.5; mix-blend-mode: overlay; }
.callout-label {
  position: relative;
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  display: block;
  margin-bottom: 1rem;
}
.callout-title {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
  letter-spacing: var(--tracking-wide);
  text-shadow:
    0 1px 0 rgba(15, 15, 15, 0.6),
    0 0 1px rgba(216, 207, 190, 0.3);
}
@media (min-width: 768px) {
  .callout-title { font-size: var(--text-5xl); }
}
.callout-body {
  position: relative;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
}
.callout-cta { position: relative; }

@media (min-width: 768px) {
  .callout-box { padding: 4rem; }
}

/* ── LOGBOOK SECTION ────────────────────────────────────────── */
.logbook-section {
  position: relative;
  background-color: rgba(31,42,51,0.4);
  border-top: 1px solid rgba(58,63,66,0.4);
  border-bottom: 1px solid rgba(58,63,66,0.4);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}
.logbook-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
}
.logbook-inner { position: relative; z-index: 1; padding: 5rem 1.5rem 6rem; }
.logbook-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.logbook-line { display: block; width: 2rem; height: 1px; background: var(--color-primary); flex-shrink: 0; }
.logbook-badge-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-family: var(--font-body);
}
.logbook-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  line-height: var(--leading-tight);
}
@media (min-width: 768px) {
  .logbook-title { font-size: var(--text-5xl); }
}
@media (min-width: 1024px) {
  .logbook-title { font-size: var(--text-6xl); }
}
.logbook-body {
  color: rgba(216,207,190,0.7);
  max-width: 36rem;
  margin: 0 auto;
  font-family: var(--font-body);
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg-img { width: 100%; height: 100%; object-fit: cover; }
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(216,207,190,0.7) 0%, rgba(216,207,190,0.55) 50%, rgba(216,207,190,0.8) 100%);
}
.contact-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(216,207,190,0.25) 100%);
}

.contact-inner { position: relative; z-index: 1; padding: 7rem 1.5rem; }
@media (min-width: 768px) { .contact-inner { padding: 9rem 2rem; } }
.contact-content { max-width: 48rem; margin: 0 auto; }
.contact-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow-tight);
  text-transform: uppercase;
  color: rgba(138,106,59,0.9);
  font-family: var(--font-body);
  display: inline-block;
  margin-bottom: 1rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: 1.5rem;
  color: var(--color-background);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-display);
}
@media (min-width: 768px) {
  .contact-title { font-size: var(--text-6xl); }
}
@media (min-width: 1024px) {
  .contact-title { font-size: var(--text-7xl); }
}
.contact-body {
  color: rgba(22,22,22,0.75);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
@media (min-width: 768px) { .contact-body { font-size: var(--text-lg); } }
.contact-cta {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 2.5rem;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-cta);
  text-transform: uppercase;
  box-shadow: var(--shadow-elevated);
}
.contact-info-row {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  font-size: var(--text-sm);
  color: rgba(22,22,22,0.8);
  font-family: var(--font-body);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.contact-info-item:hover { color: var(--color-primary); }

/* ── CONTACT MODAL ──────────────────────────────────────────── */
.contact-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(22,22,22,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-modal-dialog {
  position: relative;
  width: 100%; max-width: 36rem;
  z-index: 1;
}
.contact-modal-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-elevated);
}
.contact-modal-sheen {
  pointer-events: none;
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(138,106,59,0.1) 100%);
}
.contact-modal-glow {
  position: absolute;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.contact-modal-glow--top { top: -6rem; right: -6rem; background: rgba(138,106,59,0.3); }
.contact-modal-glow--bottom { bottom: -6rem; left: -6rem; background: rgba(138,106,59,0.2); }

.contact-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(216,207,190,0.7);
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
  cursor: pointer;
}
.contact-modal-close:hover { color: var(--color-foreground); background-color: rgba(255,255,255,0.1); }

.contact-modal-body { position: relative; padding: 2rem; }
@media (min-width: 768px) { .contact-modal-body { padding: 2.5rem; } }

.contact-modal-header { margin-bottom: 1.5rem; }
.contact-modal-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .contact-modal-header h3 { font-size: var(--text-4xl); }
}

/* Contact Success */
.contact-success { text-align: center; padding: 2.5rem 1rem; }
.contact-success-icon {
  width: 4rem; height: 4rem;
  background: rgba(138,106,59,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-fg);
}
.contact-success h3 { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.contact-success p { color: var(--color-muted-fg); font-family: var(--font-body); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background-color 0.2s;
  outline: none;
}
.form-input::placeholder { color: rgba(216,207,190,0.4); }
.form-input:focus { border-color: rgba(138,106,59,0.6); background: rgba(255,255,255,0.15); }
.form-textarea { resize: none; }
.contact-form-actions { padding-top: 0.5rem; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
}

.footer-logo-link { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-logo { max-height: 4.5rem; }
.footer-brand-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; }
.footer-pirate-flag { width: 2.5rem; height: 2.5rem; color: rgba(216,207,190,0.7); flex-shrink: 0; margin-top: 2px; }
.footer-tagline { font-size: var(--text-sm); color: var(--color-muted-fg); max-width: 22rem; line-height: var(--leading-relaxed); font-family: var(--font-body); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social-link { font-size: var(--text-sm); color: var(--color-muted-fg); font-family: var(--font-body); transition: color 0.2s; }
.footer-social-link:hover { color: var(--color-primary); }

.footer-col-title { font-size: var(--text-sm); font-weight: 600; margin-bottom: 1rem; font-family: var(--font-body); }
.footer-nav-list, .theme-footer-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.footer-nav-list li a,
.theme-footer-nav-list li a {
  font-size: var(--text-sm);
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-nav-list li a:hover,
.theme-footer-nav-list li a:hover { color: var(--color-foreground); }

.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--color-muted-fg); font-family: var(--font-body); }
.footer-contact-link { transition: color 0.2s; }
.footer-contact-link:hover { color: var(--color-primary); }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: var(--text-xs); color: var(--color-muted-fg); font-family: var(--font-body); }
.footer-credit { font-size: var(--text-xs); color: var(--color-muted-fg); font-family: var(--font-body); transition: color 0.2s; }
.footer-credit:hover { color: var(--color-foreground); }

/* ── CART OVERLAY & DRAWER ──────────────────────────────────── */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(216,207,190,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--transition);
}
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-color: var(--color-background);
  z-index: 400;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.cart-drawer-close {
  padding: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
  color: var(--color-muted-fg);
  text-align: center;
}
.cart-drawer-empty svg { opacity: 0.5; }
.cart-drawer-empty p { font-family: var(--font-body); }
.cart-continue {
  border: 1px solid var(--color-border);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.cart-continue:hover { border-color: var(--color-foreground); }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item { display: flex; gap: 1rem; }
.cart-item-thumb-link {
  display: block;
  width: 5rem; height: 6rem;
  background-color: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-thumb-link img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-variations { margin-top: 0.25rem; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-fg); font-family: var(--font-body); display: block; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 0.25rem; font-family: var(--font-body); }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
  padding: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: background-color 0.2s;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-value { font-size: 0.875rem; min-width: 1.5rem; text-align: center; font-family: var(--font-body); }
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; font-family: var(--font-body); }
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); font-family: var(--font-body); }
.cart-checkout-btn { height: 3.25rem; }

/* ── INNER PAGES ────────────────────────────────────────────── */
.theme-inner-page { padding-top: var(--header-height); min-height: 60vh; }
.theme-inner-page .container-wide { padding-top: 3rem; padding-bottom: 5rem; }
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .page-title { font-size: var(--text-4xl); }
}
.entry-content { line-height: var(--leading-relaxed); font-family: var(--font-body); }

/* ── 404 ────────────────────────────────────────────────────── */
.error-404 { padding: 5rem 0; }
.error-404-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-4xl);
  margin: 1rem 0;
}
.error-404-body { color: var(--color-muted-fg); margin-bottom: 2rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ── SINGLE PRODUCT PAGE ────────────────────────────────────── */
.single-product .container-wide { padding-top: 0; }

.product-back-link { padding: 1.5rem 0 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 1.5rem 0 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: start;
    min-width: 0;
  }
}

.theme-product-gallery { min-width: 0; max-width: 100%; }
.product-main-image-wrap {
  position: relative;
  background-color: var(--color-secondary);
  overflow: hidden;
  border: 1px solid rgba(58,63,66,0.4);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 2.5rem;
  min-height: 50vh;
}
.product-main-img {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.product-thumb-btn {
  aspect-ratio: 1/1;
  width: calc(20% - 0.5rem);
  overflow: hidden;
  border: 2px solid transparent;
  background-color: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem;
  opacity: 0.6;
  transition: border-color 0.2s, opacity 0.2s;
}
.product-thumb-btn:hover, .product-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.product-thumb-btn img { max-width: 100%; max-height: 100%; object-fit: contain; }

.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-categories {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin: 0 0 0.5rem;
  overflow-wrap: break-word;
}
.product-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .product-title { font-size: var(--text-3xl); }
}
.product-price {
  font-size: var(--text-2xl);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}
.product-stock { font-size: 0.75rem; font-family: var(--font-body); margin-bottom: 1.5rem; padding: 0.375rem 0.75rem; display: inline-block; }
.product-stock--in  { background: rgba(138,106,59,0.15); color: var(--color-primary); }
.product-stock--out { background: rgba(216,207,190,0.1);  color: var(--color-muted-fg); }

.product-description {
  color: rgba(216,207,190,0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: 2rem;
  font-family: var(--font-body);
  overflow-wrap: break-word;
}

/* Quantity Wrapper */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.theme-qty-minus, .theme-qty-plus {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background-color 0.2s;
  cursor: pointer;
  background: none; border: none;
  color: var(--color-foreground);
  font-family: var(--font-body);
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  width: 3rem; min-width: 3rem;
  text-align: center;
  border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  background: none;
  color: var(--color-foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
  padding: 0.75rem 0;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add to Cart Area */
.theme-add-to-cart-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.single-product .theme-add-to-cart-area { gap: 0.75rem; }
.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Variable Product Variations */
.theme-variation-picker { margin-bottom: 1.5rem; }
.theme-variation-picker__title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
}
.theme-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.theme-variation-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-foreground);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-variation-option:hover { border-color: rgba(138, 106, 59, 0.5); }
.theme-variation-option.is-selected {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.theme-variation-option__label { font-weight: 500; }
.theme-variation-option__price {
  font-size: var(--text-xs);
  color: var(--color-muted-fg);
}
.theme-variation-option.is-selected .theme-variation-option__price {
  opacity: 0.9;
  color: inherit;
}
.theme-variation-select-hidden.variations {
  display: none !important;
  margin: 0;
  border: 0;
}

/* Single Variation Wrap */
.single_variation_wrap { margin-top: 0; }
.single_variation_wrap .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.single_variation_wrap .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability { display: none; }

/* Product Details Section */
.product-details-section { margin-top: 0; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.product-details-title { font-size: var(--text-sm); font-weight: 600; margin: 0 0 1rem; font-family: var(--font-body); }
.product-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-details-list li {
  font-size: var(--text-sm);
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}
.product-details-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 0.5rem;
  margin-right: 0.75rem;
}

/* Related Products */
.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .related-products-title { font-size: var(--text-2xl); }
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* ── ADD TO CART BUTTON OVERRIDES (§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: var(--btn-text-transform) !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;
}
/* Disabled state */
.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;
}

/* Button loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide WC "View cart" link after AJAX add (§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; }

/* ── ARCHIVE PRODUCT ────────────────────────────────────────── */
.archive-product-section { padding: 2rem 0; }
.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.archive-shop-header { padding: 2rem 0 1.5rem; }
.archive-shop-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
}
@media (min-width: 768px) {
  .archive-shop-header h1 { font-size: var(--text-4xl); }
}

/* ── WOOCOMMERCE STYLE OVERRIDES ────────────────────────────── */
/* Notices scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* WC notices that must show */
.woocommerce-error { display: block; }
body.woocommerce-checkout .woocommerce-error { display: block; }

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  padding: 1.5rem 0 1rem;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .page-title { font-size: var(--text-4xl); }
}

body.woocommerce-checkout .wc-block-checkout {
  display: block;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important; max-width: none !important;
  background-color: var(--color-secondary) !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-body) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: 0;
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  font-family: var(--font-body) !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
  background-color: rgba(138,106,59,0.15);
  border-color: var(--color-primary);
  color: var(--color-foreground);
}

/* Order summary item quantity badge */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #000 !important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span {
  color: #000 !important;
  font-weight: 600;
}

/* ── THANK YOU PAGE ─────────────────────────────────────────── */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  padding: 0 0 1rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-order h2,
  body.theme-thankyou-page .woocommerce-order-details__title {
    font-size: var(--text-2xl);
  }
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: var(--color-muted-fg); }
body.theme-thankyou-page .woocommerce-order-overview li strong { color: var(--color-foreground); display: block; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; font-style: normal; font-size: 0.875rem; line-height: 1.7; }
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 td,
body.theme-thankyou-page .woocommerce-order-details th {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
body.theme-thankyou-page .thankyou-page { max-width: 48rem; }

/* ── WC WRAPPERS ────────────────────────────────────────────── */
.woocommerce-page .woocommerce-ordering { display: none; }
.woocommerce-page .woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-page .page-numbers {
  display: inline-flex; gap: 0.5rem;
  list-style: none;
}
.woocommerce-page .page-numbers li a,
.woocommerce-page .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: background-color 0.2s;
}
.woocommerce-page .page-numbers li .current,
.woocommerce-page .page-numbers li a:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

/* ── SCROLL TARGET ──────────────────────────────────────────── */
.scroll-target { scroll-margin-top: var(--header-height); }

/* ── THEME INNER PAGE HEADER SPACING ────────────────────────── */
body.theme-no-hero .site-header { position: fixed; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --header-height: 72px; }
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 1.5rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
