@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --background: oklch(0.98 0.008 60);
  --foreground: oklch(0.18 0.012 40);
  --card: oklch(0.97 0.01 55);
  --card-foreground: oklch(0.18 0.012 40);
  --primary: oklch(0.22 0.015 45);
  --primary-foreground: oklch(0.98 0.008 60);
  --secondary: oklch(0.92 0.012 55);
  --secondary-foreground: oklch(0.22 0.015 45);
  --muted: oklch(0.94 0.01 58);
  --muted-foreground: oklch(0.48 0.01 45);
  --border: oklch(0.88 0.012 55);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --radius: 2rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease-out;
}

.site-header.scrolled {
  background-color: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.site-header .nav-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  transition: padding 0.5s ease-out;
}

.site-header.scrolled .nav-inner {
  padding: 1.5rem 2rem;
}

@media (min-width: 768px) {
  .site-header .nav-inner { padding: 2.5rem 4rem; }
  .site-header.scrolled .nav-inner { padding: 1.5rem 4rem; }
}
@media (min-width: 1024px) {
  .site-header .nav-inner { padding: 2.5rem 6rem; }
  .site-header.scrolled .nav-inner { padding: 1.5rem 6rem; }
}

.nav-top {
  display: flex;
  flex-direction: column;
  align-items:center;
  gap: 2rem;
  transition: all 0.4s ease-out;
}

.site-header.scrolled .nav-top {
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.nav-logo {
  display: block;
  margin-inline: auto;
  transition: all 0.4s ease-out;
}

.nav-logo img {
  height: 7rem;
  width: 7rem;
  object-fit: contain;
  transition: all 0.5s ease-out;
}

.site-header.scrolled .nav-logo img {
  height: 3.5rem;
  width: 3.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  display: block;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  color: var(--foreground);
  opacity: 0.7;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.nav-links a:hover {
  opacity: 1;
  background-color: color-mix(in oklch, var(--secondary) 50%, transparent);
}

.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease-out;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.site-header.scrolled .nav-mobile-btn {
  position: static;
}

@media (min-width: 1024px) {
  .nav-mobile-btn { display: none; }
}

.nav-mobile-btn:hover { transform: scale(1.05); }
.nav-mobile-btn svg { width: 1.5rem; height: 1.5rem; color: var(--foreground); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
  animation: fadeSlideDown 0.3s ease-out;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  display: block;
  padding: 0.875rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease-out;
}

.nav-mobile-menu a:hover { background: var(--secondary); }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   SHARED BUTTON VARIANTS
   ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}
.btn-primary:hover { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.97); transition: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease-out;
}
.btn-secondary:hover { transform: scale(1.02); }
.btn-secondary:active { transform: scale(0.97); transition: none; }

/* =====================
   HERO SECTION — COLLAGE LAYOUT
   ===================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* clear the fixed nav (logo 7rem + links + padding ≈ 15rem uncollapsed) */
  padding-top: 16rem;
  padding-bottom: 5rem;
  background-color: var(--background);
  --hero-bg-shift: 0px;
  --hero-ship-shift: 0px;
  --hero-text-shift: 0px;
  --hero-ship-drift-x: 0px;
  --hero-ship-drift-y: 0px;
  --hero-text-drift-x: 0px;
  --hero-text-drift-y: 0px;
}

.hero-background,
.hero-ship {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.08s linear;
}

.hero-background {
  inset: 0;
  background-image: url("/assets/hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--hero-bg-shift), 0) scale(1.08);
  z-index: 0;
}

.hero-ship {
  top: 50%;
  right: 0;
  width: 64vw;
  height: min(76vh, 780px);
  background-image: url("/assets/hero-ship.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  transform: translate3d(var(--hero-ship-drift-x), calc(-50% + var(--hero-ship-shift) + var(--hero-ship-drift-y)), 0) scale(1.02);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner { padding: 0 4rem; }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 0 6rem;
  }
  .hero-section {
    padding-top: 14rem;
    padding-bottom: 4rem;
  }
}

/* ---- Left: Copy ---- */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
  transform: translate3d(var(--hero-text-drift-x), calc(var(--hero-text-shift) + var(--hero-text-drift-y)), 0);
  will-change: transform;
  transition: transform 0.08s linear;
}

@media (max-width: 1023px) {
  .hero-copy { text-align: center; align-items: center; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.50 0.07 55);
}

.eyebrow-rule {
  display: block;
  flex-shrink: 0;
  width: 2rem;
  height: 2px;
  background: oklch(0.50 0.07 55);
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .eyebrow-rule { display: none; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.hero-body {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.68;
  max-width: 420px;
}

@media (max-width: 1023px) {
  .hero-body { max-width: 520px; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.375rem;
}

@media (max-width: 1023px) {
  .hero-buttons { justify-content: center; }
}

/* Hero-specific CTA buttons (override shared variants where needed) */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.125rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px oklch(0.22 0.015 45 / 0.28);
}

.btn-hero-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.125rem;
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease-out, border-color 0.25s ease-out, background 0.25s ease-out;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--foreground) 55%, transparent);
  background: color-mix(in oklch, var(--secondary) 40%, transparent);
}

.btn-hero-secondary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Trust strip */
.hero-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

@media (max-width: 1023px) {
  .hero-trust { justify-content: center; text-align: left; }
}

.trust-badge {
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.50 0.07 55);
}

.trust-copy {
  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.62;
  margin: 0;
  padding-top: 0.25rem;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 14rem;
    padding-bottom: 3rem;
  }

  .hero-ship {
    width: 110vw;
    height: 48vh;
    right: -64vw;
    border-radius: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-ship {
    width: 120vw;
    right: -72vw;
  }
}

/* Double-bezel (used elsewhere in the site, kept intact) */
.double-bezel {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 460px;
  width: 100%;
}

.double-bezel .inner {
  position: relative;
  border-radius: calc(var(--radius) - 0.75rem);
  overflow: hidden;
}

.double-bezel .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================
   SECTION LAYOUT
   ===================== */
.section-inner {
  max-width: 1800px;
  margin: 0 auto;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================
   BENTO GRID
   ===================== */
.bento-section {
  padding: 6rem 2rem;
}
@media (min-width: 768px) { .bento-section { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .bento-section { padding: 10rem 6rem; } }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  grid-auto-rows: minmax(280px, auto);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
  }
  .bento-span-2c { grid-column: span 2; }
  .bento-span-2r { grid-row: span 2; }
  .bento-span-2c2r { grid-column: span 2; grid-row: span 2; }
}

.bento-card {
  height: 100%;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease-out;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.bento-card:hover { transform: scale(1.01); }
.bento-card:active { transform: scale(0.99); transition: none; }

.bento-card .inner {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) - 0.5rem);
  overflow: hidden;
}

.bento-card .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.bento-card:hover .inner img { transform: scale(1.05); }

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,20,10,0.8) 0%, rgba(30,20,10,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  display: flex;
  align-items: flex-end;
}

.bento-card:hover .bento-overlay { opacity: 1; }

.bento-overlay-content {
  padding: 2rem;
  color: #faf8f5;
}

.bento-overlay-category {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.bento-overlay-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Product grid for category pages */
.product-grid-section {
  padding: 6rem 2rem;
}
@media (min-width: 768px) { .product-grid-section { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .product-grid-section { padding: 10rem 6rem; } }

#product-grid, #featured-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  #product-grid, #featured-products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  #product-grid, #featured-products { grid-template-columns: repeat(3, 1fr); }
}

/* Product cards styled with new design */
#product-grid a, #featured-products a {
  display: block;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.3s ease-out;
  color: var(--foreground);
}
#product-grid a:hover, #featured-products a:hover { transform: scale(1.01); }

/* Override app.js card styles */
#product-grid a > div, #featured-products a > div {
  border-radius: calc(var(--radius) - 0.5rem) !important;
  border: none !important;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

#product-grid a > div > div:first-child,
#featured-products a > div > div:first-child {
  border-radius: calc(var(--radius) - 0.5rem) calc(var(--radius) - 0.5rem) 0 0;
  overflow: hidden;
}

/* =====================
   ATELIER GALLERY
   ===================== */
.atelier-gallery-section {
  padding: 4rem 2rem 6rem;
  background: color-mix(in oklch, var(--secondary) 18%, transparent);
}
@media (min-width: 768px) { .atelier-gallery-section { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .atelier-gallery-section { padding: 8rem 6rem; } }

.atelier-gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.atelier-gallery-header .section-eyebrow {
  margin-bottom: 1rem;
}

.atelier-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.atelier-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(85%, 1fr);
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .atelier-gallery-track {
    grid-auto-columns: minmax(48%, 1fr);
  }
}

@media (min-width: 1280px) {
  .atelier-gallery-track {
    grid-auto-columns: minmax(31%, 1fr);
  }
}

.atelier-gallery-track::-webkit-scrollbar {
  display: none;
}

.atelier-gallery-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.atelier-gallery-card img {
  cursor: zoom-in;
}

.atelier-gallery-card {
  scroll-snap-align: start;
  padding: 0.9rem;
  border-radius: calc(var(--radius) + 0.2rem);
  border: none;
  background: transparent;
}

.atelier-gallery-card span {
  display: none;
}

.atelier-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 0.3rem);
  object-fit: cover;
  display: block;
}

.atelier-gallery-dots {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

.atelier-dot {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: rgba(25, 25, 25, 0.2);
}

.atelier-dot-active {
  background: rgba(25, 25, 25, 0.9);
}


@media (min-width: 1024px) {
  .atelier-gallery-track {
    display: flex;
    width: 100%;
    padding: 4% 2%;
    box-sizing: border-box;
    height: 60vh;
    gap: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }

  .atelier-gallery-card {
    flex: 1;
    overflow: hidden;
    transition: 0.5s;
    margin: 0 0.2%;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    line-height: 0;
    padding: 0;
    border: 0;
    border-radius: 25px 0px 25px 0px;
    background: transparent;
  }

  .atelier-gallery-card > img {
    width: 200%;
    height: calc(100%);
    object-fit: cover;
    transition: 0.5s;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .atelier-gallery-card > span {
    font-size: 3.8vh;
    display: block;
    text-align: center;
    height: 10vh;
    line-height: 2.6;
    font-family: var(--font-display);
    color: var(--foreground);
    background: var(--card);
  }

  .atelier-gallery-card:hover {
    flex: 1 1 50%;
  }

  .atelier-gallery-card:hover > img {
    width: 100%;
    height: 100%;
  }

  .atelier-gallery-dots {
    display: none;
  }
}


.atelier-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(95vw, 1100px);
}

.atelier-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.atelier-lightbox-image {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1rem;
}

.atelier-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* =====================
   ABOUT SECTION
   ===================== */
.about-section {
  padding: 6rem 2rem;
  background: color-mix(in oklch, var(--secondary) 30%, transparent);
}
@media (min-width: 768px) { .about-section { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .about-section { padding: 10rem 6rem; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(14, 1fr);
    gap: 6rem;
  }
  .about-image-col {
    grid-column: 1 / 6;
  }
  .about-text-col {
    grid-column: 6 / 14;
  }
}


.about-image-header {
  margin-bottom: 3rem;
}

.about-image-header .about-title {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .about-image-header {
    margin-bottom: 1.5rem;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0.8;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.stat-label {
  opacity: 0.6;
  font-size: 0.9375rem;
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
  padding: 6rem 2rem;
  text-align: center;
}
@media (min-width: 768px) { .contact-section { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .contact-section { padding: 10rem 6rem; } }

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.contact-desc {
  max-width: 600px;
  margin: 0 auto 4rem;
  opacity: 0.7;
  font-size: 1.125rem;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-actions { flex-direction: row; }
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.5rem;
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform 0.2s ease-out;
}
.btn-primary-lg:hover { transform: scale(1.02); }
.btn-primary-lg:active { transform: scale(0.97); transition: none; }

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform 0.2s ease-out;
}
.btn-secondary-lg:hover { transform: scale(1.02); }
.btn-secondary-lg:active { transform: scale(0.97); transition: none; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
@media (min-width: 768px) { .site-footer { padding: 3rem 4rem; } }
@media (min-width: 1024px) { .site-footer { padding: 3rem 6rem; } }

.site-footer .footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .site-footer .footer-inner { flex-direction: row; }
}

.footer-copy {
  opacity: 0.6;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  opacity: 0.6;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--foreground);
  transition: opacity 0.2s ease-out;
}

.footer-links a:hover { opacity: 1; }

/* =====================
   PAGE HERO (category pages)
   ===================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --page-hero-parallax-y: 0px;
  --page-hero-drift-x: 0px;
  padding-top: 14rem;
  padding-bottom: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  transition: transform 0.15s linear;
}

.page-hero::before {
  width: min(48vw, 36rem);
  height: min(48vw, 36rem);
  top: 8rem;
  left: -8rem;
  background: radial-gradient(circle at center, color-mix(in oklch, var(--muted) 85%, white) 0%, transparent 72%);
  transform: translate3d(calc(var(--page-hero-drift-x) * -0.35), calc(var(--page-hero-parallax-y) * -0.2), 0);
}

.page-hero::after {
  width: min(42vw, 30rem);
  height: min(42vw, 30rem);
  right: -6rem;
  bottom: -6rem;
  background: radial-gradient(circle at center, color-mix(in oklch, var(--secondary) 70%, white) 0%, transparent 72%);
  transform: translate3d(calc(var(--page-hero-drift-x) * 0.25), calc(var(--page-hero-parallax-y) * 0.35), 0);
}
@media (min-width: 768px) { .page-hero { padding-left: 4rem; padding-right: 4rem; } }
@media (min-width: 1024px) { .page-hero { padding-left: 6rem; padding-right: 6rem; } }

.page-hero-inner {
  max-width: 1800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  opacity: 0.7;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
}

/* Featured product image halftone diamond overlay */
#featured-products a.featured-overlay-card .featured-image-container,
#product-grid a.featured-overlay-card .featured-image-container {
  position: relative;
}

#featured-products a.featured-overlay-card .featured-image-container::after,
#product-grid a.featured-overlay-card .featured-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to top right, #000, #fff),
    repeating-linear-gradient(45deg, #000 0 5px, #fff 5px 10px),
    repeating-linear-gradient(-45deg, #000 0 5px, #fff 5px 10px);
  background-blend-mode: hard-mix, screen;
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 420ms ease;
}

#featured-products a.featured-overlay-card:hover .featured-image-container::after,
#product-grid a.featured-overlay-card:hover .featured-image-container::after {
  opacity: 0;
}

.diamond-overlay {
  position: relative;
}
.diamond-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 1.5l6 6-6 6-6-6 6-6z' fill='%23000000' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 15px 15px;
  mix-blend-mode: overlay;
  /* non-linear (exponential-like) fade: gentle at top, steeper toward bottom */
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.2) 42%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.82) 88%,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.2) 42%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.82) 88%,
    rgba(0, 0, 0, 1) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
}
.diamond-overlay:hover::after {
  opacity: 0;
}

/* Featured product title overlay hover animation */
#featured-products a .card-inner-group,
#product-grid a .card-inner-group {
  position: relative;
}

#featured-products a .product-title-overlay,
#product-grid a .product-title-overlay {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

#featured-products a .product-title-overlay::before,
#product-grid a .product-title-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.25rem;
  background: rgba(15, 13, 13, 0.94);
  transition: height 620ms cubic-bezier(0.2, 1.15, 0.25, 1), background-color 620ms ease;
  will-change: height;
}

#featured-products a .product-title-text,
#product-grid a .product-title-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: #f5f0ea;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: font-size 620ms cubic-bezier(0.2, 1.15, 0.25, 1), line-height 620ms cubic-bezier(0.2, 1.15, 0.25, 1), letter-spacing 620ms cubic-bezier(0.2, 1.15, 0.25, 1);
  position: relative;
  z-index: 1;
}

#featured-products a:hover .product-title-overlay,
#product-grid a:hover .product-title-overlay {
  align-items: center;
}

#featured-products a:hover .product-title-overlay::before,
#product-grid a:hover .product-title-overlay::before {
  height: 100%;
  background: rgba(15, 13, 13, 0.98);
}

#featured-products a:hover .product-title-text,
#product-grid a:hover .product-title-text {
  font-size: 2.45rem;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

#featured-products a:active .product-title-overlay::before,
#product-grid a:active .product-title-overlay::before {
  height: 102%;
}

#featured-products a:active .product-title-text,
#product-grid a:active .product-title-text {
  font-size: 2.55rem;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

@media (prefers-reduced-motion: reduce) {
  #featured-products a .product-title-overlay::before,
  #featured-products a .product-title-text,
  #product-grid a .product-title-overlay::before,
  #product-grid a .product-title-text {
    transition: none;
  }
}

/* =====================
   PRODUCT DETAIL SLIDER
   ===================== */
.detail-gallery {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.detail-slider-window {
  padding: 1rem 9vw;
}

.detail-slider-track {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  overflow: visible;
  scrollbar-width: none;
  transition: transform 420ms ease;
  will-change: transform;
}
.detail-slider-track::-webkit-scrollbar { display: none; }

.detail-slide {
  flex: 0 0 66vw;
  max-width: 66vw;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  border: none;
  background: transparent;
  overflow: hidden;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-gallery-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12vw;
  min-width: 64px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  color: var(--foreground);
  background: transparent;
}

.detail-gallery-nav-left {
  left: 0;
  background: linear-gradient(90deg, var(--background) 0%, color-mix(in oklch, var(--background) 70%, transparent) 55%, transparent 100%);
}

.detail-gallery-nav-right {
  right: 0;
  background: linear-gradient(270deg, var(--background) 0%, color-mix(in oklch, var(--background) 70%, transparent) 55%, transparent 100%);
}

.detail-gallery-arrow {
  opacity: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transform: scale(0.94);
}

.detail-gallery-nav:hover .detail-gallery-arrow {
  opacity: 1;
  transform: scale(1);
}

.detail-gallery-empty {
  min-height: 24rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: grid;
  place-items: center;
  opacity: 0.45;
}

@media (max-width: 767px) {
  .detail-gallery {
    width: auto;
    margin: 0;
    overflow: hidden;
  }

  .detail-slider-window {
    padding: 0;
  }

  .detail-slider-track {
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .detail-slide {
    flex: 0 0 100%;
    max-width: 100%;
    border-radius: 1rem;
    scroll-snap-align: center;
  }

  .detail-gallery-nav {
    display: none;
  }
}
