/* =========================================================================
   Reign & Sir'Raeya theme stylesheet
   Design tokens ported 1:1 from the original design system.
   ========================================================================= */

:root {
  /* Royal Luxury palette — matches the original design system (HSL tokens). */
  --color-background: #FDF6FB;
  --color-foreground: #2D312E;
  --color-primary: #4A2168;
  --color-primary-foreground: #FFFFFF;
  --color-secondary: #F9EBF5;
  --color-accent: #D64B7D;
  --color-gold: #D4AF37;
  --color-border: #EBDAA2;
  --color-muted: #F7E9F3;
  --color-muted-foreground: #565D58;
  --color-card: #FFFFFF;
  --color-button-text: #FFFFFF;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;

  --shadow-soft: 0 6px 24px -8px rgba(78, 33, 105, 0.12);
  --shadow-elevated: 0 24px 48px -18px rgba(78, 33, 105, 0.22);

  --btn-radius: 999px;
  --btn-height: 52px;
  --btn-padding: 0.9rem 2rem;
  --btn-font-size: 12px;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.22em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.6rem;

  --header-height: 80px;
  --logo-height: 56px;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.admin-bar html { scroll-padding-top: calc(80px + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar html { scroll-padding-top: calc(80px + 46px); }
}
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Tailwind preflight parity - headings inherit weight/size until set explicitly. */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* Global img rule that must not break cover/full-bleed images (Section 15). */
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.site-logo-img):not(.site-footer-logo) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* -------------------------------------------------------------------------
   Reveal / entrance animation system (Section 2.1)
   ------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger inside common grid/row containers. */
.theme-usp-grid .reveal-item:nth-child(1),
.theme-services-grid .reveal-item:nth-child(1),
.theme-product-grid .reveal-item:nth-child(4n+1) { transition-delay: 0s; }
.theme-usp-grid .reveal-item:nth-child(2),
.theme-services-grid .reveal-item:nth-child(2),
.theme-product-grid .reveal-item:nth-child(4n+2) { transition-delay: 0.08s; }
.theme-usp-grid .reveal-item:nth-child(3),
.theme-services-grid .reveal-item:nth-child(3),
.theme-product-grid .reveal-item:nth-child(4n+3) { transition-delay: 0.16s; }
.theme-usp-grid .reveal-item:nth-child(4),
.theme-services-grid .reveal-item:nth-child(4),
.theme-product-grid .reveal-item:nth-child(4n) { transition-delay: 0.24s; }

/* Customizer preview fallback - never hide content in the editor (Section 2.1 / 4.2). */
body.is-customizer .reveal-item,
body.is-customizer .hero-anim,
.no-js .reveal-item,
.no-js .hero-anim {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.hero-anim { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.hero-anim.is-visible { opacity: 1; transform: translateY(0); }
.hero-anim-1 { transition-delay: 0.2s; }
.hero-anim-2 { transition-delay: 0.45s; }
.hero-anim-3 { transition-delay: 0.65s; }
.hero-anim-4 { transition-delay: 1.05s; }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.animate-kenburns { animation: kenburns 16s ease-in-out infinite alternate; will-change: transform; }

@keyframes hero-particle-rise {
  0% { transform: translate3d(var(--drift-x-start, 0), 0, 0); opacity: 0; }
  10% { opacity: var(--p-opacity, 0.5); }
  50% { transform: translate3d(var(--drift-x-mid, 0), -50vh, 0); }
  90% { opacity: var(--p-opacity, 0.5); }
  100% { transform: translate3d(var(--drift-x-end, 0), -110vh, 0); opacity: 0; }
}
@keyframes hero-fog-drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px,-20px,0) scale(1.04); } }
@keyframes hero-fog-drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-25px,-28px,0) scale(1.03); } }
@keyframes twinkle { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.animate-twinkle { animation: twinkle 3.4s ease-in-out infinite; }
@keyframes btnpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(78,33,105,0); } 50% { box-shadow: 0 0 18px 4px rgba(78,33,105,0.28); } }
.animate-btnpulse { animation: btnpulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-kenburns, .animate-btnpulse, .hero-particle, .hero-fog-a, .hero-fog-b { animation: none !important; }
  .hero-particles-layer, .hero-fog-layer { display: none !important; }
}

/* -------------------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------------------- */
.theme-announcement-bar { position: relative; background: var(--color-primary); color: #fff; }
.theme-announcement-inner { padding: 0.6rem 0; text-align: center; }
.theme-announcement-text { font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.theme-announcement-sep { color: var(--color-gold); }
.theme-announcement-dismiss { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; opacity: 0.75; padding: 0.3rem; }
.theme-announcement-dismiss:hover { opacity: 1; }
@media (max-width: 640px) { .theme-announcement-alt { display: none; } }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(253, 246, 251, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-header.is-solid,
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: color-mix(in srgb, var(--color-gold) 30%, transparent);
  box-shadow: var(--shadow-soft);
}
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; overflow: visible; }
@media (min-width: 768px) { .site-nav { height: 80px; } }

.site-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; transition: transform 0.3s var(--ease-smooth); }
.site-brand:hover .site-logo-img { transform: scale(1.05); }
.site-logo-text { font-family: var(--font-display); color: var(--color-primary); font-size: 1.25rem; }
.site-brand-text { display: none; font-family: var(--font-display); color: var(--color-primary); font-size: 1.125rem; line-height: 1.2; }
@media (min-width: 1280px) { .site-brand-text { display: block; } }

.site-nav-links { display: none; }
@media (min-width: 1024px) { .site-nav-links { display: flex; align-items: center; gap: 2.5rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2.5rem; }
.theme-nav-list a {
  position: relative; font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em;
  color: color-mix(in srgb, var(--color-primary) 80%, transparent);
  padding: 0.5rem 0; transition: color 0.2s ease;
}
.theme-nav-list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--color-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-smooth);
}
.theme-nav-list a:hover { color: var(--color-primary); }
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-cart-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  background: transparent; color: var(--color-primary); transition: all 0.2s ease;
}
.theme-cart-toggle:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.theme-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--color-primary);
  transition: color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.theme-mobile-toggle:hover { color: var(--color-accent); }
.theme-mobile-toggle .theme-icon { transition: transform 0.35s var(--ease-smooth), opacity 0.25s ease; }
.icon-menu-close { display: none; }
.theme-mobile-toggle.is-open .icon-menu-open {
  display: none;
  transform: rotate(-90deg) scale(0.8);
  opacity: 0;
}
.theme-mobile-toggle.is-open .icon-menu-close {
  display: block;
  animation: theme-menu-icon-in 0.4s var(--ease-smooth);
}
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.theme-mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.5s var(--ease-smooth),
    opacity 0.4s var(--ease-smooth),
    visibility 0.4s,
    border-color 0.35s ease;
}
.theme-mobile-nav.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  border-top-color: color-mix(in srgb, var(--color-gold) 30%, transparent);
}
.theme-mobile-nav-inner {
  overflow: hidden;
  padding: 0;
  transition: padding 0.45s var(--ease-smooth);
}
.theme-mobile-nav.is-open .theme-mobile-nav-inner {
  padding: 1rem 0;
  animation: theme-mobile-nav-in 0.55s var(--ease-smooth);
}
.theme-mobile-nav-list,
.theme-mobile-nav-list .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.theme-mobile-nav-list > li,
.theme-mobile-nav-list .sub-menu > li {
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.45s var(--ease-smooth),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-mobile-nav.is-open .theme-mobile-nav-list > li,
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.theme-mobile-nav.is-open .theme-mobile-nav-list > li:nth-child(1),
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li:nth-child(1) { transition-delay: 0.06s; }
.theme-mobile-nav.is-open .theme-mobile-nav-list > li:nth-child(2),
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li:nth-child(2) { transition-delay: 0.12s; }
.theme-mobile-nav.is-open .theme-mobile-nav-list > li:nth-child(3),
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li:nth-child(3) { transition-delay: 0.18s; }
.theme-mobile-nav.is-open .theme-mobile-nav-list > li:nth-child(4),
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li:nth-child(4) { transition-delay: 0.24s; }
.theme-mobile-nav.is-open .theme-mobile-nav-list > li:nth-child(5),
.theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li:nth-child(5) { transition-delay: 0.3s; }
.theme-mobile-nav-list a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  transition: color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list a:focus-visible {
  color: var(--color-accent);
  transform: translateX(4px);
}
.theme-mobile-nav-list .sub-menu a {
  padding-left: 1rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
@keyframes theme-mobile-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes theme-menu-icon-in {
  from { opacity: 0; transform: rotate(-45deg) scale(0.85); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-mobile-nav,
  .theme-mobile-nav-inner,
  .theme-mobile-nav-list > li,
  .theme-mobile-nav-list .sub-menu > li,
  .theme-mobile-toggle .theme-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .theme-mobile-nav.is-open .theme-mobile-nav-list > li,
  .theme-mobile-nav.is-open .theme-mobile-nav-list .sub-menu > li {
    opacity: 1;
  }
}
@media (min-width: 1024px) { .theme-mobile-nav { display: none !important; } }

/* -------------------------------------------------------------------------
   Buttons (shared)
   ------------------------------------------------------------------------- */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--btn-radius); padding: var(--btn-padding); min-height: var(--btn-height);
  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: opacity 0.2s ease, background-color 0.2s ease;
}
.theme-btn-primary { background: var(--color-primary); color: var(--color-button-text); }
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-outline { background: transparent; color: var(--color-primary); border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent); }
.theme-btn-outline:hover { background: var(--color-secondary); }
.theme-btn-block { width: 100%; }

.theme-btn-hero-primary, .theme-btn-hero-outline { text-transform: uppercase; }
.theme-btn-hero-primary {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  background: var(--color-primary); color: #fff; border-radius: 999px; padding: 1rem 2.25rem;
  font-size: 12px; letter-spacing: 0.24em; font-weight: 600;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-gold) 35%, transparent), 0 0 28px -4px color-mix(in srgb, var(--color-gold) 35%, transparent);
  transition: box-shadow 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth), background-color 0.2s ease;
}
.theme-btn-hero-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, black); transform: translateY(-1px); }
.theme-btn-hero-outline {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 0; font-size: 12px; letter-spacing: 0.24em;
  font-weight: 600; color: #fff; position: relative;
}
.theme-btn-hero-outline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-smooth); }
.theme-btn-hero-outline:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.theme-hero { position: relative; width: 100%; height: 100dvh; overflow: hidden; background: var(--color-background); }
body.theme-no-hero .theme-hero { display: none; }
.theme-hero-media { position: absolute; inset: 0; }
.theme-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.theme-hero-gradient { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(78,33,105,0.35) 0%, rgba(30,12,45,0.45) 50%, rgba(20,8,32,0.55) 100%); pointer-events: none; }
.theme-hero-vignette { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at center, rgba(20,8,32,0.55) 0%, rgba(20,8,32,0.25) 50%, transparent 72%); pointer-events: none; }

.hero-particles-layer, .hero-fog-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.hero-particle { position: absolute; border-radius: 999px; animation: hero-particle-rise linear infinite; }
.hero-fog-a { position: absolute; left: -15%; bottom: -20%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; filter: blur(70px); animation: hero-fog-drift-a 14s ease-in-out infinite alternate; }
.hero-fog-b { position: absolute; right: -15%; bottom: -25%; width: 65%; height: 65%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; filter: blur(80px); animation: hero-fog-drift-b 18s ease-in-out infinite alternate; }

.hero-stars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-star { position: absolute; width: 14px; height: 14px; background: var(--color-gold); opacity: 0.6; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.hero-star-1 { top: 18%; left: 12%; width: 16px; height: 16px; }
.hero-star-2 { top: 28%; right: 18%; width: 12px; height: 12px; }
.hero-star-3 { top: 10%; right: 34%; width: 10px; height: 10px; opacity: 0.5; }
.hero-star-4 { bottom: 40%; left: 28%; width: 12px; height: 12px; opacity: 0.5; }

.theme-hero-content { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
.theme-hero-inner { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem; border-radius: 1.5rem; }
.theme-hero-badge { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 13px; text-transform: uppercase; letter-spacing: 0.36em; color: var(--color-gold); }
@media (min-width: 768px) { .theme-hero-badge { font-size: 16px; } }
.theme-hero-badge-pill { display: inline-block; background: rgba(78,33,105,0.82); backdrop-filter: blur(8px); border-radius: 40px; padding: 6px 18px; color: var(--color-gold); }
.theme-hero-title { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.08; letter-spacing: -0.01em; margin-top: 0.75rem; color: #fff; }
.theme-hero-title span { display: block; }
.theme-hero-title-italic { font-style: italic; }
.theme-hero-actions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }

/* -------------------------------------------------------------------------
   Marquee
   ------------------------------------------------------------------------- */
.theme-marquee { border-top: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent); overflow: hidden; padding: 1rem 0; background: var(--color-primary); color: var(--color-gold); }
.theme-marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation-name: theme-marquee-scroll; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes theme-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.theme-marquee-item { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; }
.theme-marquee-word { text-transform: uppercase; letter-spacing: 0.32em; font-size: 14px; }
@media (min-width: 768px) { .theme-marquee-word { font-size: 16px; } }
.theme-marquee-sparkle { opacity: 0.5; }

/* -------------------------------------------------------------------------
   Section headings (per-section scales - Section 2.2.5)
   ------------------------------------------------------------------------- */
.theme-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; font-weight: 600; color: var(--color-accent); margin-bottom: 0.75rem; }
.theme-eyebrow-light { color: var(--color-gold); font-size: 12px; letter-spacing: 0.32em; }
.theme-eyebrow-gold { color: var(--color-gold); font-size: 14px; letter-spacing: 0.28em; }
.theme-eyebrow-marigold { color: var(--color-gold); font-size: 14px; letter-spacing: 0.28em; }
.section-heading { line-height: 1.05; letter-spacing: -0.01em; }
.theme-italic-accent, .theme-italic-marigold { font-style: italic; color: var(--color-accent); }
.theme-italic-marigold { color: var(--color-gold); }
.theme-gold-rule { margin-top: 1rem; margin-bottom: 2rem; width: 60px; border: none; border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 50%, transparent); }

.bestsellers-heading { font-size: 2rem; }
@media (min-width: 768px) { .bestsellers-heading { font-size: 3rem; } }
.services-heading { font-size: 2.25rem; color: #fff; margin-bottom: 1rem; }
@media (min-width: 768px) { .services-heading { font-size: 3rem; } }
.about-heading { font-size: 2.25rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-heading { font-size: 3.75rem; } }
.shop-heading { font-size: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }
.contact-heading { font-size: 2.25rem; margin-bottom: 1.25rem; color: #fff; }
@media (min-width: 768px) { .contact-heading { font-size: 3rem; } }

/* -------------------------------------------------------------------------
   Best sellers + shared product grid / card
   ------------------------------------------------------------------------- */
.theme-bestsellers-section { background: var(--color-secondary); border-top: 1px solid color-mix(in srgb, var(--color-gold) 20%, transparent); padding: 5rem 0 2.5rem; }
.theme-section-heading-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-section-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.theme-shop-all-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--color-primary); position: relative; }
.theme-shop-all-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.theme-shop-all-link:hover::after { transform: scaleX(1); }

.theme-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-product-grid { gap: 2rem; } }
.theme-bestsellers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-bestsellers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-shop-grid, .theme-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .theme-shop-grid, .theme-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-shop-grid, .theme-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent); box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s ease; }
.theme-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); border-color: color-mix(in srgb, var(--color-gold) 60%, transparent); }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link):not(.theme-product-card__add) { pointer-events: none; }
.theme-product-card .theme-product-card__add {
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-secondary); }
.theme-product-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.theme-product-card__image--hover { opacity: 0; }
.theme-product-card:hover .theme-product-card__image:not(.theme-product-card__image--hover) { opacity: 0; }
.theme-product-card:hover .theme-product-card__image--hover { opacity: 1; }
@media (max-width: 767px) { .theme-product-card__image--hover { display: none; } }

.theme-badge { position: absolute; z-index: 3; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
.theme-badge-soldout { top: 1rem; right: 1rem; background: var(--color-primary); color: #fff; }

.theme-product-card__body {
  padding: 1rem 18px 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: var(--color-card);
}
.theme-product-card__category {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 6px;
  overflow-wrap: break-word;
}
.theme-product-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.375;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  flex: 1;
}
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-foreground);
  margin: 0 0 0.75rem;
}
.theme-product-card__price .amount,
.theme-product-card__price bdi,
.theme-product-card__price ins {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}
.theme-product-card__add {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: transparent;
  transition: all 0.3s ease;
  text-transform: none;
}
.theme-product-card__add:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.theme-product-card__add--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* -------------------------------------------------------------------------
   USP badges
   ------------------------------------------------------------------------- */
.theme-usp-section { padding: 1.5rem 0 3rem; background: linear-gradient(to bottom, var(--color-secondary), var(--color-background)); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.theme-usp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (min-width: 768px) { .theme-usp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.theme-usp-badge {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; border-radius: 999px;
  background: var(--color-card); border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent);
  box-shadow: 0 2px 8px -4px rgba(78,33,105,0.12); transition: box-shadow 0.2s ease, transform 0.2s var(--ease-smooth), border-color 0.2s ease;
}
.theme-usp-badge:hover { transform: scale(1.03); border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: 0 6px 20px -8px rgba(78,33,105,0.25); }
.theme-usp-icon { color: var(--color-gold); flex-shrink: 0; }
.theme-usp-text { font-size: 14px; font-weight: 500; color: var(--color-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.theme-icon { width: 20px; height: 20px; }
.theme-icon-xs { width: 16px; height: 16px; }
.theme-icon-xxs { width: 13px; height: 13px; }
.theme-icon-sm { width: 14px; height: 14px; }
.theme-icon-lg { width: 48px; height: 48px; }
.theme-icon-gold { color: var(--color-gold); }

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */
.theme-services-section { background: var(--color-primary); padding: 5rem 0; }
.theme-services-heading { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.theme-services-crown { display: flex; justify-content: center; margin-bottom: 1rem; }
.theme-services-intro { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.6; }
@media (min-width: 768px) { .theme-services-intro { font-size: 1.125rem; } }
.theme-services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .theme-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-service-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  padding: 1.75rem; display: flex; flex-direction: column; transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-smooth);
}
.theme-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: color-mix(in srgb, var(--color-gold) 60%, transparent); }
.theme-service-icon-wrap { width: 56px; height: 56px; border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 5%, transparent); border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: background-color 0.3s ease; }
.theme-service-card:hover .theme-service-icon-wrap { background: color-mix(in srgb, var(--color-gold) 20%, transparent); }
.theme-service-title { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.theme-service-description { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; margin-bottom: 1.5rem; flex: 1; }
.theme-service-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 14px; font-weight: 600; color: var(--color-accent); align-self: flex-start; text-transform: none; letter-spacing: normal; }
.theme-service-link:hover { color: var(--color-primary); }
.theme-service-link svg { transition: transform 0.2s ease; }
.theme-service-link:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.theme-about-section { position: relative; background: var(--color-background); padding: 5rem 0; }
.theme-about-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .theme-about-inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-about-image-wrap { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 1024px) { .theme-about-image-wrap { aspect-ratio: 3 / 2; } }
.theme-about-vignette-left { position: absolute; inset: 0; background: linear-gradient(to right, rgba(14,11,8,0.15) 0%, transparent 30%); pointer-events: none; }
.theme-about-vignette-bottom { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,11,8,0.25) 0%, transparent 40%); pointer-events: none; }
.theme-about-copy { display: flex; flex-direction: column; justify-content: center; }
.theme-about-paragraph-1 { font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-about-paragraph-1 { font-size: 1.25rem; } }
.theme-about-paragraph-2 { font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
@media (min-width: 768px) { .theme-about-paragraph-2 { font-size: 1.125rem; } }
.theme-about-cta { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 600; color: var(--color-primary); transition: color 0.2s ease; }
.theme-about-cta:hover { color: var(--color-accent); }
.theme-about-rule { margin-top: 4rem; border: none; border-top: 1px solid color-mix(in srgb, var(--color-gold) 20%, transparent); }

/* -------------------------------------------------------------------------
   Shop
   ------------------------------------------------------------------------- */
.theme-shop-section { background: var(--color-background); padding: 2rem 0 4rem; }
@media (min-width: 768px) { .theme-shop-section { padding: 2.5rem 0 6rem; } }
.theme-shop-heading { text-align: center; margin-bottom: 3rem; }
.theme-shop-search { position: relative; max-width: 26rem; margin: 0 auto 2rem; }
.theme-shop-search-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search-input { width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: none; border-bottom: 1px solid var(--color-border); font-family: var(--font-body); font-size: 1rem; color: var(--color-foreground); }
.theme-shop-search-input:focus { outline: none; border-bottom-color: var(--color-gold); }
.theme-shop-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter { padding: 0.5rem 1.25rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); background: var(--color-card); color: var(--color-primary); transition: all 0.3s ease; }
.theme-cat-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-cat-filter.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.theme-shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); background: none; border: none; transition: color 0.3s ease; }
.theme-price-toggle:hover { color: var(--color-gold); }
.theme-price-toggle-value { text-transform: none; letter-spacing: normal; opacity: 0.7; }
.theme-price-toggle .theme-icon-xxs { transition: transform 0.3s ease; }
.theme-price-toggle.is-open .theme-icon-xxs { transform: rotate(180deg); }
.theme-price-panel { width: 100%; max-width: 24rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); }
.theme-price-panel.is-open { max-height: 120px; opacity: 1; }
.theme-price-values { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.75rem; }

/* Dual-handle range slider (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; margin-top: 0.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 999px; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 999px; background: var(--color-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer; margin-top: 0; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 999px; background: var(--color-primary); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer; }
.range-input::-webkit-slider-runnable-track { background: transparent; }
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-empty { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }
.theme-shop-show-more { text-align: center; margin-top: 3rem; }

/* -------------------------------------------------------------------------
   Contact / newsletter
   ------------------------------------------------------------------------- */
.theme-contact-section { position: relative; background: var(--color-primary); overflow: hidden; padding: 5rem 0; }
@media (min-width: 768px) { .theme-contact-section { padding: 7rem 0; } }
.theme-contact-video { position: absolute; inset: 0; opacity: 0.5; }
.theme-contact-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-primary) 55%, transparent) 0%, color-mix(in srgb, var(--color-primary) 45%, transparent) 50%, color-mix(in srgb, var(--color-primary) 60%, transparent) 100%); pointer-events: none; }
.theme-contact-inner { position: relative; max-width: 42rem; margin: 0 auto; text-align: center; }
@media (min-width: 768px) { .theme-contact-inner { max-width: 64rem; } }
.theme-contact-paragraph { color: rgba(255,255,255,0.85); font-size: 1.125rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-contact-paragraph { font-size: 1.25rem; } }
.theme-newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 26rem; margin: 0 auto; }
@media (min-width: 640px) { .theme-newsletter-form { flex-direction: row; align-items: stretch; } }
.theme-newsletter-input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); color: #fff; border-radius: 999px; padding: 0.75rem 1.25rem; font-size: 14px; font-family: var(--font-body); }
.theme-newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.theme-newsletter-input:focus { outline: none; border-color: var(--color-gold); }
.theme-newsletter-submit { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; background: var(--color-gold); color: var(--color-primary); border-radius: 999px; padding: 0.75rem 1.75rem; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; border: none; transition: opacity 0.2s ease; }
.theme-newsletter-submit:hover { opacity: 0.9; }
.theme-newsletter-feedback { margin-top: 0.75rem; font-size: 13px; color: var(--color-gold); min-height: 1.2em; }
.theme-contact-social { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.theme-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-gold) 50%, transparent); color: #fff; transition: all 0.2s ease; }
.theme-social-btn:hover { background: var(--color-gold); color: var(--color-primary); border-color: var(--color-gold); }
.theme-contact-message-link { font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 600; color: rgba(255,255,255,0.9); background: none; border: none; position: relative; }
.theme-contact-message-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.theme-contact-message-link:hover { color: var(--color-gold); }
.theme-contact-message-link:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--color-primary); color: #fff; }
.site-footer-inner {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .site-footer-inner {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
}
.site-footer-top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); }
@media (min-width: 640px) { .site-footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.site-footer-brand:hover { transform: scale(1.02); }
.site-footer-logo {
  height: 64px !important;
  width: auto !important;
  max-width: none;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer-brand-text { display: block; }
.site-footer-brand-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
}
@media (min-width: 640px) {
  .site-footer-brand-name { font-size: 1.5rem; }
}
.site-footer-brand-subtitle {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--color-gold);
}
.site-footer-tagline p { font-family: var(--font-display); font-style: italic; font-size: 14px; color: rgba(255,255,255,0.95); }
@media (min-width: 640px) { .site-footer-tagline { max-width: 32rem; text-align: right; } }

.site-footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col-findus { grid-column: span 2 / span 2; }
@media (min-width: 768px) { .footer-col-findus { grid-column: auto; } }
.footer-col-title { display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; color: var(--color-gold); margin-bottom: 1.25rem; }
.footer-link-list, .footer-nav-list, .footer-findus-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link, .footer-nav-list a { font-size: 14px; color: rgba(255,255,255,0.8); text-align: left; transition: color 0.2s ease; }
.footer-link:hover, .footer-nav-list a:hover { color: var(--color-gold); }
.footer-findus-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); font-size: 14px; transition: color 0.2s ease; }
.footer-findus-link:hover { color: var(--color-gold); }
.footer-findus-static { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-social { margin-top: 1rem; display: flex; gap: 0.75rem; }
.footer-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-gold) 50%, transparent); color: #fff; transition: all 0.2s ease; }
.footer-social-btn:hover { background: var(--color-gold); color: var(--color-primary); border-color: var(--color-gold); }

.site-footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
@media (min-width: 768px) { .site-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright, .footer-credit { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-credit a:hover { color: var(--color-gold); }
.footer-quote { font-size: 14px; font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.85); }

/* -------------------------------------------------------------------------
   Cart drawer + overlay
   ------------------------------------------------------------------------- */
#theme-cart-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--color-primary) 30%, transparent); backdrop-filter: blur(3px); z-index: 60; display: none; }
body.cart-open #theme-cart-overlay { display: block; animation: theme-fade-in 0.25s ease; }

#theme-cart-drawer { position: fixed; right: -100%; top: 0; height: 100%; width: 100%; max-width: 28rem; background: #fff; z-index: 61; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; transition: right 0.35s var(--ease-smooth); }
body.cart-open #theme-cart-drawer { right: 0; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); }
.theme-cart-drawer-title { font-size: 1.25rem; color: var(--color-primary); }
.theme-cart-drawer-close { background: none; border: none; color: var(--color-primary); padding: 0.25rem; opacity: 0.8; }
.theme-cart-drawer-close:hover { opacity: 1; }
.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer-empty svg { color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-cart-drawer-empty p { color: var(--color-muted-foreground); }
.theme-cart-drawer-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-image { width: 80px; height: 96px; flex-shrink: 0; border-radius: 0.75rem; overflow: hidden; background: var(--color-secondary); border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent); }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 14px; font-weight: 500; color: var(--color-primary); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item-name:hover { color: var(--color-accent); }
.theme-cart-item-price { font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-item-variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { display: inline-flex; padding: 0.25rem; color: var(--color-primary); background: none; border: none; border-radius: 0.25rem; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-qty-value { font-size: 14px; width: 24px; text-align: center; }
.theme-cart-remove { margin-left: auto; font-size: 14px; color: var(--color-muted-foreground); background: none; border: none; }
.theme-cart-remove:hover { color: var(--color-accent); }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; background: #fff; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 14px; }
.theme-cart-subtotal-value { font-weight: 600; color: var(--color-primary); }
.theme-cart-shipping-note { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted-foreground); }

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Hide WooCommerce's injected "View cart" link (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; }

/* Scoped WooCommerce notice visibility (Section 14.1). */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* -------------------------------------------------------------------------
   Contact modal
   ------------------------------------------------------------------------- */
.theme-modal { position: fixed; inset: 0; z-index: 70; display: none; }
.theme-modal.is-open { display: block; }
.theme-modal-overlay { position: absolute; inset: 0; background: rgba(20,8,32,0.5); backdrop-filter: blur(2px); animation: theme-fade-in 0.2s ease; }
.theme-modal-panel { position: relative; max-width: 32rem; width: calc(100% - 2rem); max-height: 90vh; overflow-y: auto; margin: 5vh auto; background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-elevated); animation: theme-modal-in 0.25s var(--ease-smooth); }
@keyframes theme-modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.theme-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--color-muted-foreground); }
.theme-modal-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal-description { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-modal-contacts { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 14px; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-modal-contacts a { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-modal-contacts a:hover { color: var(--color-gold); }
.theme-form-row.two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row.two-col { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.4rem; }
.theme-form-field input, .theme-form-field textarea {
  width: 100%; padding: 0.6rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body); color: var(--color-foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-form-field textarea { resize: none; }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-gold) 50%, transparent); }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-success-icon { width: 56px; height: 56px; border-radius: 999px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* -------------------------------------------------------------------------
   Single product page (Section 11.13)
   ------------------------------------------------------------------------- */
.single-product-main { padding-top: 1.5rem; padding-bottom: 4rem; }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb .woocommerce-product-category a,
.theme-breadcrumb .posted_in a { color: inherit; }

.single-product .theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; min-width: 0; }
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; } }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main { aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; border-radius: var(--radius-lg); }
.single-product .theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; justify-content: center; max-width: 100%; }
.theme-product-thumb { position: relative; width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; border-radius: 0.5rem; background: var(--color-secondary); border: 2px solid transparent; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb:hover img, .theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }

.theme-product-info { position: sticky; top: 6rem; }
.theme-product-category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-accent); margin-bottom: 0.75rem; }
.theme-product-category a { color: inherit; }
.product-title { font-family: var(--font-body); font-weight: 600; font-style: normal; font-size: 2.25rem; line-height: 1.15; color: var(--color-primary); margin-bottom: 0.75rem; }
@media (min-width: 768px) { .product-title { font-size: 2.75rem; } }
.theme-product-price { font-size: 1.5rem; font-weight: 600; color: var(--color-foreground); margin-bottom: 1rem; }
.theme-product-price .price del { opacity: 0.5; font-weight: 400; margin-right: 0.5rem; }
.theme-stock-status { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1rem; }
.theme-stock-out { color: var(--color-accent); }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent); border-radius: 999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.6rem 1rem; background: none; border: none; color: var(--color-foreground); transition: background-color 0.2s ease; }
.theme-qty-minus { border-radius: 999px 0 0 999px; }
.theme-qty-plus { border-radius: 0 999px 999px 0; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-qty-input { width: 44px; text-align: center; border: none; background: none; font-family: var(--font-body); font-size: 14px; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* Variation swatches (single product) */
.single-product .theme-variations {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0 0;
}
.single-product .theme-variation-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.single-product .theme-variation-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
}
.single-product .theme-variation-control {
  position: relative;
  min-width: 0;
}
.single-product .theme-variation-native-select--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.single-product .theme-variation-select-wrap {
  position: relative;
  width: 100%;
}
.single-product .theme-variation-native-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent);
  background: transparent;
  padding: 0.75rem 3rem 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-smooth);
}
.single-product .theme-variation-native-select:focus {
  outline: none;
  border-color: var(--color-foreground);
}
.single-product .theme-variation-select-chevron {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-foreground);
  display: inline-flex;
}
.single-product .theme-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.single-product .theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-foreground);
  transition: border-color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
}
.single-product .theme-swatch--size {
  min-width: 3.5rem;
  justify-content: center;
  padding: 0.5rem 1.25rem;
}
.single-product .theme-swatch:hover:not(:disabled):not(.is-disabled) {
  border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.single-product .theme-swatch.is-selected {
  border-color: var(--color-foreground);
  background: color-mix(in srgb, var(--color-foreground) 5%, transparent);
}
.single-product .theme-swatch:disabled,
.single-product .theme-swatch.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.single-product .theme-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-primary);
}
.single-product .reset_variations {
  display: none;
  margin-top: 0.75rem;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--color-muted-foreground);
}
.single-product .reset_variations:hover {
  color: var(--color-foreground);
}
.theme-product-tabs { margin-top: 2rem; min-width: 0; }
.theme-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
  padding-bottom: 0.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .theme-tabs-nav { gap: 0.75rem; }
}
@media (min-width: 1280px) {
  .theme-tabs-nav { gap: 1.25rem; justify-content: flex-start; }
}
.theme-tab-btn {
  position: relative;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  padding: 0 0 0.5rem;
  color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .theme-tab-btn {
    font-size: 14px;
    flex: 0 1 auto;
    text-align: left;
  }
}
@media (min-width: 1280px) {
  .theme-tab-btn { font-size: 16px; }
}
.theme-tab-btn:hover { color: var(--color-foreground); }
.theme-tab-btn.is-active { font-style: italic; color: var(--color-foreground); }
.theme-tab-btn.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--color-foreground); }
.theme-tabs-panels {
  padding-top: 1.5rem;
  font-size: 15px;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  line-height: 1.7;
  overflow-wrap: break-word;
  overflow: visible;
}
.theme-tab-panel { display: none; }
.theme-tab-panel.is-active { display: block; }
.theme-benefit-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-benefit-list li { display: flex; align-items: flex-start; }
.theme-benefit-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--color-foreground); margin-top: 0.55rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-related-heading { text-align: center; margin: 4rem 0 3rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }
.theme-related-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-title { font-size: 1.75rem; font-weight: inherit; }
@media (min-width: 768px) { .theme-related-title { font-size: 2.25rem; } }

/* Section 11.4.1 - add to cart button style override */
.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: 14px !important;
  font-weight: 500 !important;
  letter-spacing: normal !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.9 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
/* Card compact button variant overrides global rules above. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0.625rem 1rem !important;
  border-radius: 999px !important;
  font-size: 13px !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; }

/* -------------------------------------------------------------------------
   Archive / shop
   ------------------------------------------------------------------------- */
.archive-product-main { padding: 3rem 0 5rem; }
.theme-archive-header { text-align: center; margin-bottom: 2.5rem; }
.theme-archive-pagination { margin-top: 3rem; text-align: center; }
.theme-archive-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; margin: 0 0.2rem; color: var(--color-primary); border: 1px solid var(--color-border); }
.theme-archive-pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.theme-empty-state { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   Generic page / 404
   ------------------------------------------------------------------------- */
.page-main { padding: 4rem 0 6rem; }
.page-title { font-size: 2.5rem; margin-bottom: 2rem; }
.theme-404-main { min-height: 60vh; display: flex; align-items: center; }
.theme-404-wrap { text-align: center; padding: 6rem 0; }
.theme-404-title { font-size: 4rem; margin-bottom: 1rem; }
.theme-404-message { color: var(--color-muted-foreground); font-size: 1.125rem; margin-bottom: 1.5rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { color: var(--color-accent); }

/* -------------------------------------------------------------------------
   Checkout / Cart / Account (WooCommerce Blocks overrides - Section 13)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-header .container-wide,
body.woocommerce-checkout .site-footer .container-wide,
body.woocommerce-checkout .theme-announcement-bar .container-wide,
body.woocommerce-cart .site-header .container-wide,
body.woocommerce-cart .site-footer .container-wide,
body.woocommerce-account .site-header .container-wide,
body.woocommerce-account .site-footer .container-wide {
  padding-top: 0;
  padding-bottom: 0;
  max-width: 1280px;
}

body.woocommerce-checkout .site-main,
body.woocommerce-checkout .page-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

body.woocommerce-checkout .site-main .container-wide,
body.woocommerce-checkout .site-main .entry-content,
body.woocommerce-checkout .site-main article,
body.woocommerce-checkout #page-content {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Checkout block wrapper — centered max-width, no parent compression */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Notices container (class uses "notices", plural) */
body.woocommerce-checkout .wc-block-components-notices,
body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
.entry-content .wc-block-components-notices {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  grid-column: 1 / -1;
  border-radius: var(--radius-sm);
}

/* Two-column checkout layout — target real sidebar layout wrappers */
@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 .wc-block-components-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid !important;
    grid-template-columns: 1fr minmax(360px, 400px) !important;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .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;
}

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: 360px;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

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 {
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-foreground);
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-gold) 40%, transparent);
}
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;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Cart page */
body.woocommerce-cart .wc-block-cart {
  max-width: 1400px; margin: 0 auto;
}
@media (min-width: 768px) {
  body.woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* -------------------------------------------------------------------------
   Thank you page (Section 22.8)
   ------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .theme-thankyou-content { max-width: 900px; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  padding: 0 0 1rem 0;
  font-size: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.6rem; border-bottom: 1px solid var(--color-border); text-align: left; }
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 {
  display: flex; flex-direction: column; gap: 1.5rem;
}
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; }
}

/* -------------------------------------------------------------------------
   No-JS fallback
   ------------------------------------------------------------------------- */
.no-js .theme-mobile-nav {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}
.no-js .theme-mobile-nav-inner { padding: 1rem 0; }
.no-js .theme-mobile-nav-list > li,
.no-js .theme-mobile-nav-list .sub-menu > li { opacity: 1; transform: none; }
.no-js .theme-price-panel { max-height: none; opacity: 1; }
