/**
 * Milkart — Apple (España) "White Gallery Vitrine" Design System
 * Inspired by Refero Design System: https://styles.refero.design/style/a48ef430-8c6a-42d8-8c53-ab7bb43cf33b
 */

/* ---------------------------------------------------- */
/* CSS CUSTOM PROPERTIES (DESIGN TOKENS)                */
/* ---------------------------------------------------- */
:root {
  /* Colors */
  --color-pure-white: #ffffff;
  --color-fog-mist: #f5f5f7;
  --color-paper-gray: #fafafc;
  --color-silver-smoke: #e8e8ed;
  --color-ash-border: rgba(0, 0, 0, 0.08);
  --color-hairline: rgba(0, 0, 0, 0.05);
  --color-graphite: #6e6e73;
  --color-charcoal: #444545;
  --color-steel: #313131;
  --color-near-black: #1d1d1f;
  --color-true-black: #000000;
  --color-apple-blue: #0071e3;
  --color-apple-blue-hover: #0077ed;
  --color-link-blue: #0066cc;
  --color-ember: #b64400;
  --color-ember-soft: rgba(182, 68, 0, 0.08);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Typography Scale */
  --text-display: clamp(38px, 6vw, 76px);
  --leading-display: 1.05;
  --tracking-display: -0.025em;

  --text-heading-lg: clamp(30px, 4.5vw, 52px);
  --leading-heading-lg: 1.08;
  --tracking-heading-lg: -0.02em;

  --text-heading-md: clamp(22px, 3.2vw, 36px);
  --leading-heading-md: 1.15;
  --tracking-heading-md: -0.015em;

  --text-subheading: clamp(19px, 2.4vw, 24px);
  --leading-subheading: 1.25;
  --tracking-subheading: -0.01em;

  --text-body: 17px;
  --leading-body: 1.47;
  --tracking-body: -0.022em;

  --text-body-sm: 14px;
  --leading-body-sm: 1.43;
  --tracking-body-sm: -0.016em;

  --text-caption: 12px;
  --leading-caption: 1.33;
  --tracking-caption: -0.01em;

  /* Radii */
  --radius-card: 28px;
  --radius-card-sm: 20px;
  --radius-pill: 980px;
  --radius-badge: 9999px;
  --radius-nav-pill: 32px;
  --radius-input: 12px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.18);

  /* Layout */
  --page-max-width: 1240px;
  --page-padding: clamp(20px, 4vw, 40px);
  --section-gap: clamp(64px, 8vw, 112px);

  /* Animation timing */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 300ms;
}

/* ---------------------------------------------------- */
/* RESET & BASE STYLES                                  */
/* ---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-system);
  font-size: 16px;
  background-color: var(--color-pure-white);
  color: var(--color-near-black);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--color-pure-white);
}

body.modal-open {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-apple-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* ---------------------------------------------------- */
/* TYPOGRAPHY UTILITIES                                 */
/* ---------------------------------------------------- */
.display-title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
  color: var(--color-near-black);
}

.section-title {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  font-weight: 600;
  color: var(--color-near-black);
}

.section-subtitle {
  font-size: var(--text-subheading);
  line-height: var(--leading-subheading);
  letter-spacing: var(--tracking-subheading);
  color: var(--color-graphite);
  font-weight: 400;
  max-width: 640px;
  margin-top: 12px;
}

.eyebrow {
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-graphite);
}

.body-text {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-graphite);
}

/* ---------------------------------------------------- */
/* BUTTONS & LINKS (APPLE SPEC)                         */
/* ---------------------------------------------------- */
/* Primary: Apple Blue filled pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-apple-blue);
  color: var(--color-pure-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.24);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Secondary: Subtle pill button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-fog-mist);
  color: var(--color-near-black);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--color-silver-smoke);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Text link with animated arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-link-blue);
  font-size: var(--text-body);
  font-weight: 400;
  transition: color 0.2s ease;
}

.text-link span.arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease-apple);
  font-size: 18px;
  line-height: 1;
}

.text-link:hover {
  color: var(--color-apple-blue-hover);
  text-decoration: underline;
}

.text-link:hover span.arrow {
  transform: translateX(4px);
  text-decoration: none;
}

/* ---------------------------------------------------- */
/* STICKY GLASS HEADER & NAVIGATION                     */
/* ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-ash-border);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.nav-shell {
  max-width: var(--page-max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-near-black);
}

.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 34px;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-tagline {
    font-size: 8.5px;
  }
}

/* Main Navigation Menu */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-near-black);
}

.nav-link i.chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-link i.chevron {
  transform: rotate(180deg);
}

/* Apple Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-card-sm);
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-apple), visibility 0.2s;
  z-index: 1010;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-charcoal);
  border-radius: 12px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: var(--color-fog-mist);
  color: var(--color-near-black);
}

/* Nav Actions (Lang + Mobile Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Apple Sliding Pill Language Switcher */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-fog-mist);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--color-ash-border);
}

.lang-pill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-graphite);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-pill-item.active {
  background-color: var(--color-pure-white);
  color: var(--color-near-black);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hamburger toggle for mobile */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  touch-action: manipulation;
}

.menu-toggle:hover {
  background-color: var(--color-fog-mist);
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background-color: var(--color-near-black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------- */
/* HERO SECTION (WHITE GALLERY VITRINE)                 */
/* ---------------------------------------------------- */
.hero-vitrine {
  background: var(--color-pure-white);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-vitrine .eyebrow {
  margin-bottom: 16px;
  color: var(--color-graphite);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-fog-mist);
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-vitrine .display-title {
  margin-bottom: 18px;
  color: var(--color-near-black);
}

.hero-vitrine .hero-desc {
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: var(--leading-subheading);
  letter-spacing: var(--tracking-subheading);
  color: var(--color-graphite);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

/* Hero Spotlight Stage */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ambient Radial Glow */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 600px);
  height: min(100%, 480px);
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(245, 245, 247, 0.4) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-product-img {
  position: relative;
  z-index: 2;
  max-height: clamp(340px, 46vw, 560px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
  transition: transform 0.6s var(--ease-apple);
}

.hero-product-img:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Floating feature chips */
.hero-chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-ash-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-near-black);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
}

.hero-chip-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.hero-chip-2 {
  bottom: 20%;
  right: 6%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ---------------------------------------------------- */
/* BENTO VITRINE CARDS (28px RADIUS)                    */
/* ---------------------------------------------------- */
.bento-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background-color: var(--color-pure-white);
}

.bento-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: var(--color-fog-mist);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease-apple), box-shadow 0.4s ease;
  min-height: 420px;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Bento Spans */
.bento-card-8 {
  grid-column: span 8;
}

.bento-card-4 {
  grid-column: span 4;
}

.bento-card-6 {
  grid-column: span 6;
}

.bento-card-12 {
  grid-column: span 12;
}

.bento-card-header {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.bento-card-header .eyebrow {
  margin-bottom: 8px;
}

.bento-card-title {
  font-size: var(--text-heading-md);
  line-height: var(--leading-heading-md);
  letter-spacing: var(--tracking-heading-md);
  font-weight: 600;
  color: var(--color-near-black);
  margin-bottom: 12px;
}

.bento-card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-graphite);
  max-width: 440px;
}

.bento-card-media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.bento-card-media img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease-apple);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.08));
}

.bento-card:hover .bento-card-media img {
  transform: scale(1.04);
}

.bento-lineup-media {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 24px;
}

.bento-lineup-media img {
  height: clamp(140px, 30vw, 200px);
  max-width: 45%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s var(--ease-apple);
}

.bento-lineup-media img:hover {
  transform: translateY(-8px) scale(1.05);
}

/* ---------------------------------------------------- */
/* NARRATIVE FULL-BLEED VITRINE (TURKESTAN STORY)       */
/* ---------------------------------------------------- */
.narrative-vitrine {
  padding-bottom: var(--section-gap);
}

.narrative-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-near-black);
  color: var(--color-pure-white);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

.narrative-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.narrative-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.1);
}

.narrative-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.3) 0%, rgba(29, 29, 31, 0.85) 100%);
  z-index: 2;
}

.narrative-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.narrative-content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.narrative-title {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.narrative-desc {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.narrative-content .btn-primary {
  background-color: #ffffff;
  color: var(--color-near-black);
}

.narrative-content .btn-primary:hover {
  background-color: var(--color-fog-mist);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------- */
/* CATALOG PAGE STYLES                                  */
/* ---------------------------------------------------- */
.catalog-header-section {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 36px;
  background-color: var(--color-pure-white);
  text-align: center;
}

.catalog-header-section .display-title {
  margin-bottom: 12px;
}

/* Category Filter Bar */
.filter-bar-sticky {
  position: sticky;
  top: 52px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-ash-border);
  padding: 12px 0;
  z-index: 900;
  transition: box-shadow 0.2s ease;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  max-width: 100%;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-graphite);
  background-color: var(--color-fog-mist);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: var(--color-silver-smoke);
  color: var(--color-near-black);
}

.filter-btn.active {
  background-color: var(--color-near-black);
  color: var(--color-pure-white);
}

/* Search Input */
.catalog-search-wrap {
  position: relative;
  width: 240px;
}

.catalog-search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  font-size: 13.5px;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-ash-border);
  background-color: var(--color-fog-mist);
  color: var(--color-near-black);
  outline: none;
  transition: all 0.2s ease;
}

.catalog-search-input:focus {
  background-color: var(--color-pure-white);
  border-color: var(--color-apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.catalog-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-graphite);
  font-size: 13px;
  pointer-events: none;
}

/* Products Count */
.catalog-status {
  padding: 24px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-graphite);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: var(--section-gap);
}

/* Product Card (Apple Store Style) */
.product-card {
  background-color: var(--color-fog-mist);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s ease;
  content-visibility: auto;
  contain-intrinsic-size: 1px 380px;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-badge-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
}

.product-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-ember);
  background-color: var(--color-ember-soft);
  padding: 3px 9px;
  border-radius: var(--radius-badge);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.product-card-image img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-apple);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.08));
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-info {
  margin-top: auto;
}

.product-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-near-black);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.product-card-meta {
  font-size: 14px;
  color: var(--color-graphite);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-view-btn {
  font-size: 13.5px;
  color: var(--color-link-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-view-btn {
  transform: translateX(3px);
}

/* Empty State */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.catalog-empty.is-visible {
  display: block;
}

.catalog-empty-icon {
  font-size: 40px;
  color: var(--color-graphite);
  margin-bottom: 16px;
}

/* ---------------------------------------------------- */
/* PRODUCT DETAIL MODAL / DRAWER                        */
/* ---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.apple-modal {
  background: var(--color-pure-white);
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s var(--ease-apple);
  padding: clamp(24px, 4vw, 40px);
}

.modal-backdrop.is-open .apple-modal {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-fog-mist);
  color: var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s, color 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--color-silver-smoke);
  color: var(--color-near-black);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.modal-image-wrap {
  background: var(--color-fog-mist);
  border-radius: var(--radius-card-sm);
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrap img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.1));
}

.modal-info-wrap .eyebrow {
  margin-bottom: 6px;
}

.modal-product-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-near-black);
  margin-bottom: 8px;
}

.modal-product-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-graphite);
  margin-bottom: 20px;
}

.modal-specs-list {
  background: var(--color-fog-mist);
  border-radius: var(--radius-card-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--color-ash-border);
}

.modal-spec-row:last-child {
  border-bottom: none;
}

.modal-spec-label {
  color: var(--color-graphite);
}

.modal-spec-value {
  color: var(--color-near-black);
  font-weight: 600;
}

.modal-order-btn {
  width: 100%;
}

/* ---------------------------------------------------- */
/* NARRATIVE & EDITORIAL PAGES (HISTORY & GOAL)         */
/* ---------------------------------------------------- */
.editorial-hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.editorial-hero .eyebrow {
  margin-bottom: 16px;
}

.editorial-hero .display-title {
  margin-bottom: 16px;
}

.editorial-hero .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.editorial-banner-wrap {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: 0 var(--page-padding);
}

.editorial-banner-img {
  width: 100%;
  height: clamp(300px, 45vw, 540px);
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.story-section {
  max-width: 900px;
  margin: 0 auto var(--section-gap);
  padding: 0 var(--page-padding);
}

.story-quote-block {
  border-left: 3px solid var(--color-near-black);
  padding-left: 24px;
  margin: 40px 0;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-near-black);
  letter-spacing: -0.015em;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 56px 0;
}

.story-split.reverse {
  direction: rtl;
}
.story-split.reverse > * {
  direction: ltr;
}

.story-media {
  background: var(--color-fog-mist);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-media img {
  max-height: 360px;
  border-radius: var(--radius-card-sm);
  object-fit: contain;
}

/* ---------------------------------------------------- */
/* FOOTER (APPLE SPEC)                                  */
/* ---------------------------------------------------- */
.site-footer {
  background-color: var(--color-fog-mist);
  border-top: 1px solid var(--color-ash-border);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 40px;
  color: var(--color-graphite);
  font-size: var(--text-body-sm);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.footer-brand .brand-logo-img {
  height: 38px;
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.5;
  color: var(--color-graphite);
  margin-bottom: 16px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-near-black);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-graphite);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-near-black);
  text-decoration: underline;
}

.footer-contacts-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid var(--color-ash-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--color-graphite);
}

/* ---------------------------------------------------- */
/* REVEAL ON SCROLL ANIMATIONS                          */
/* ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-apple), transform 0.6s var(--ease-apple);
}

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

/* ---------------------------------------------------- */
/* RESPONSIVE DESIGN (MOBILE ADAPTATION)                */
/* ---------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-card-8 {
    grid-column: span 12;
  }

  .bento-card-4 {
    grid-column: span 12;
  }

  .bento-card-6 {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px var(--page-padding);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-apple), opacity 0.35s, visibility 0.35s;
    overflow-y: auto;
    z-index: 999;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
  }

  .nav-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-near-black);
    padding: 6px 0;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 8px 16px;
    opacity: 1;
    visibility: visible;
    min-width: unset;
  }

  .dropdown-link {
    font-size: 16px;
    padding: 8px 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card {
    padding: 20px 16px;
    min-height: 320px;
    border-radius: 20px;
  }

  .product-card-image {
    height: 150px;
  }

  .product-card-image img {
    max-height: 140px;
  }

  .product-card-title {
    font-size: 16px;
  }

  .hero-chip {
    display: none;
  }

  .story-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-image-wrap {
    padding: 20px;
  }

  .modal-image-wrap img {
    max-height: 180px;
  }

  .filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search-wrap {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn-primary {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
