/* ============================================
   ELI DENTAL — Premium Dental Supply
   Luxury Editorial Aesthetic
   ============================================ */

/* --- Tokens --- */
:root {
  --white: #ffffff;
  --off-white: #fafaf8;
  --cream: #f5f3ef;
  --silver-100: #e8e6e1;
  --silver-200: #d4d1cb;
  --silver-300: #b8b4ac;
  --silver-400: #9a958c;
  --silver-500: #7c766c;
  --charcoal: #3a3632;
  --ink: #1c1a17;
  --accent: #8b7355;
  --accent-light: #a8956f;
  --accent-dark: #6e5a42;
  --accent-glow: rgba(139, 115, 85, 0.15);
  --teal: #5a8a8a;
  --teal-light: #e8f0ef;

  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'Outfit', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(3.2rem, 1.5rem + 6vw, 7rem);
  --fs-h2: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --fs-small: 0.85rem;
  --fs-tag: 0.75rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --space-section: clamp(5rem, 4rem + 5vw, 10rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-soft: 0 2px 20px rgba(28, 26, 23, 0.04);
  --shadow-card: 0 4px 32px rgba(28, 26, 23, 0.06);
  --shadow-elevated: 0 12px 48px rgba(28, 26, 23, 0.1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-normal: 400ms;
  --dur-slow: 700ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-tooth {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader-text {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--dur-normal) var(--ease-out),
              padding var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 var(--silver-100);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav.is-scrolled .nav-logo-img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  position: relative;
  transition: color var(--dur-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-normal) var(--ease-out);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--accent); }

.nav-link--cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-fast);
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 0%, var(--cream) 50%, var(--teal-light) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(90, 138, 138, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8b4ac' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  margin-left: clamp(0rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-md);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  color: var(--silver-500);
  max-width: 480px;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--fs-small);
  color: var(--silver-400);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--silver-200);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-visual-card {
  position: relative;
  width: clamp(280px, 30vw, 420px);
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow:
    0 20px 60px rgba(28, 26, 23, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.hero-visual-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.hero-visual-logo {
  width: 65%;
  height: auto;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.06));
}

.hero-visual-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--silver-400);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.2);
}

.btn--ghost {
  border: 1px solid var(--silver-200);
  color: var(--charcoal);
  background: rgba(255,255,255,0.5);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}

.btn--outline-dark {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--outline-dark:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
}

.btn--white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--full { width: 100%; justify-content: center; }

/* --- Marquee --- */
.marquee {
  padding: 1.5rem 0;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--silver-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-dot {
  width: 4px !important;
  height: 4px;
  background: var(--accent) !important;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section Headers --- */
.section-tag {
  display: inline-block;
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 1px;
  background: var(--accent);
}

.section-tag--light { color: var(--accent-light); }
.section-tag--light::before { background: var(--accent-light); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-tag {
  padding-left: 0;
}

.section-header .section-tag::before { display: none; }

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.section-title--left { text-align: left; }

.section-desc {
  font-size: var(--fs-body);
  color: var(--silver-400);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Categories --- */
.categories {
  padding: var(--space-section) 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--off-white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}

.cat-card:hover {
  background: var(--white);
  border-color: var(--silver-100);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
  transition: transform var(--dur-normal) var(--ease-out);
}

.cat-card:hover .cat-card-icon { transform: scale(1.1); }

.cat-card-icon svg { width: 100%; height: 100%; }

.cat-card-title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.cat-card-desc {
  font-size: var(--fs-small);
  color: var(--silver-400);
  flex: 1;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.03em;
  transition: gap var(--dur-normal) var(--ease-out);
}

.cat-card:hover .cat-card-link { gap: 0.8rem; }

/* --- Products --- */
.products {
  padding: var(--space-section) 0;
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-100);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.product-card-img {
  position: relative;
  background: linear-gradient(145deg, var(--off-white), var(--cream));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  z-index: 1;
}

.product-card-badge--new { background: var(--teal); }

.product-placeholder {
  width: 50%;
  color: var(--silver-200);
  transition: transform var(--dur-slow) var(--ease-out);
}


.product-card-body {
  padding: 1.25rem;
}

.product-card-cat {
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.3rem 0;
  line-height: 1.3;
}

.product-card-info {
  font-size: var(--fs-small);
  color: var(--silver-400);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--silver-100);
}

.product-card-price {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.product-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--accent);
  transition: all var(--dur-fast);
}

.product-card-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.products-cta { text-align: center; }

/* --- Value Banner --- */
.value-banner {
  padding: var(--space-xl) 0;
  background: var(--white);
  border-top: 1px solid var(--silver-100);
  border-bottom: 1px solid var(--silver-100);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-item { text-align: center; }

.value-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.value-icon svg { width: 100%; height: 100%; }

.value-item h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: var(--fs-small);
  color: var(--silver-400);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- About --- */
.about {
  padding: var(--space-section) 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
}

.about-logo {
  width: 60%;
  mix-blend-mode: multiply;
}


.about-year {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--ink);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-elevated);
}

.about-year-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

.about-year-label {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--silver-300);
}

.about-text {
  color: var(--silver-500);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: var(--space-lg) 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--charcoal);
  font-weight: 400;
}

.about-feature svg { color: var(--accent); flex-shrink: 0; }

/* --- Testimonials --- */
.testimonials {
  padding: var(--space-section) 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.testimonial:hover {
  background: var(--white);
  border-color: var(--silver-100);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.testimonial-text {
  font-size: var(--fs-body);
  color: var(--charcoal);
  line-height: 1.8;
  flex: 1;
  margin-bottom: var(--space-md);
  font-style: italic;
  font-family: var(--ff-display);
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--silver-100);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 500;
}

.testimonial-name {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--silver-400);
}

/* --- Contact --- */
.contact {
  padding: var(--space-section) 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.contact-desc {
  color: var(--silver-300);
  max-width: 420px;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method svg { color: var(--accent-light); flex-shrink: 0; }

.contact-method-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-400);
}

.contact-method-value {
  font-size: var(--fs-body);
  color: var(--white);
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--silver-300);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 300;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  outline: none;
}

.form-input::placeholder { color: var(--silver-500); }
.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a958c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option { background: var(--ink); color: var(--white); }

.form-textarea { resize: vertical; min-height: 100px; }

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-xl);
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--accent-light);
  font-size: var(--fs-small);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: var(--fs-small);
  color: var(--silver-500);
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.footer-link {
  display: block;
  font-size: var(--fs-small);
  color: var(--silver-500);
  padding: 0.3rem 0;
  transition: color var(--dur-fast);
}

.footer-link:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: var(--fs-small);
  color: var(--silver-500);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver-400);
  transition: all var(--dur-fast);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(139, 115, 85, 0.1);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0);
}

/* --- Scroll-driven enhancements (GSAP) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--teal));
  z-index: 9999;
  pointer-events: none;
}

.hero-bg-pattern,
.contact-bg-pattern,

/* Refined reveal for elements GSAP batch-reveals on scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
}

/* --- 3D scroll layer --- */
/* Grids become a perspective stage so cards rotate in real 3D space */
.categories-grid,
.products-grid,
.testimonials-grid {
  perspective: 1400px;
  perspective-origin: 50% 30%;
}

/* 3D entrance: cards tilt up from depth as they scroll into view.
   Rides the existing IntersectionObserver reveal (adds .is-visible). */
[data-animate="fade-3d"] {
  opacity: 0;
  transform: perspective(1400px) rotateX(-14deg) translateY(48px) translateZ(-70px);
  transform-origin: 50% 100%;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

[data-animate="fade-3d"].is-visible {
  opacity: 1;
  transform: perspective(1400px) rotateX(0) translateY(0) translateZ(0);
}


@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero-bg-pattern,
  .contact-bg-pattern,
  .reveal-up { opacity: 1; transform: none; }
  .categories-grid,
  .products-grid,
  .testimonials-grid { perspective: none; }
  [data-animate="fade-3d"] { transform: translateY(30px); }
  [data-animate="fade-3d"].is-visible { transform: translate(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-content {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub { max-width: 100%; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual { display: none; }

  .hero-visual-card { width: 260px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }

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

  .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .about-visual { max-width: 400px; margin: 0 auto; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 320px);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--dur-normal) var(--ease-out);
    box-shadow: -20px 0 60px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links.is-open { transform: translateX(0); }

  .nav-link { font-size: 1.1rem; }

  .nav-link--cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle { display: flex; }

  .categories-grid { grid-template-columns: 1fr; }

  .products-grid { grid-template-columns: 1fr 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .value-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-features { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .hero-stats { flex-direction: column; gap: 1rem; }

  .hero-stat-divider { width: 40px; height: 1px; }
}

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

  .hero-visual-card { width: 220px; }
}

/* --- Selection --- */
::selection {
  background: var(--accent-glow);
  color: var(--ink);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--silver-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-400); }

/* --- Nav account button --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--silver-200);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}

.nav-account-btn:hover {
  background: var(--cream);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Sidebar overlay --- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out);
  z-index: 199;
}

.sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* --- Sidebar panel --- */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100dvh;
  background: var(--white);
  box-shadow: -8px 0 48px rgba(28,26,23,0.12);
  transform: translateX(100%);
  transition: transform var(--dur-normal) var(--ease-out);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--silver-200);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.sidebar-close:hover { background: var(--cream); color: var(--ink); }

/* Logged-out auth panel */
.sidebar-auth {
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.sidebar-auth-logo { margin-bottom: 0.5rem; }

.sidebar-auth-title {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.sidebar-auth-sub {
  font-size: 0.9rem;
  color: var(--silver-500);
  text-align: center;
  margin-bottom: 0.5rem;
}

.sidebar-google-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: 1.5px solid var(--silver-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  justify-content: center;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  cursor: pointer;
}

.sidebar-google-btn:hover {
  border-color: var(--accent);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

/* Email / username auth form */
.sidebar-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  color: var(--silver-400);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-auth-divider::before,
.sidebar-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--silver-200);
}

.sidebar-auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.sidebar-field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-500);
}

.sidebar-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--silver-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.sidebar-field input::placeholder { color: var(--silver-400); }

.sidebar-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.sidebar-auth-error {
  min-height: 1rem;
  margin: -0.15rem 0 0;
  font-size: 0.8rem;
  color: #c0392b;
  text-align: left;
}

.sidebar-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}

.sidebar-submit-btn:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-soft);
}

.sidebar-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--silver-400);
}

.sidebar-auth-switch {
  font-size: 0.85rem;
  color: var(--silver-500);
  text-align: center;
}

.sidebar-auth-switch-btn {
  border: none;
  background: none;
  padding: 0;
  margin-left: 0.25rem;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-auth-switch-btn:hover { color: var(--accent-dark); }

/* Logged-in user panel */
.sidebar-user {
  padding: 3.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-user-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.sidebar-user-email {
  font-size: 0.82rem;
  color: var(--silver-500);
  margin-bottom: 1rem;
}

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.sidebar-nav-link:hover { background: var(--cream); color: var(--ink); }

.sidebar-nav-link--admin {
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sidebar-nav-link--admin:hover { background: var(--teal-light); color: var(--teal); filter: brightness(0.95); }

.sidebar-nav-orders-link { position: relative; }

.sidebar-orders-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3em;
  background: var(--accent);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
  line-height: 1;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--silver-500);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  margin-top: auto;
}

.sidebar-logout-btn:hover {
  background: #fef2f2;
  color: #c0392b;
  border-color: #fca5a5;
}

/* Products grid loading / empty states */
.products-loading,
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--silver-400);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
}

/* ── Cart drawer ─────────────────────────────────────────────────────────── */
.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--silver-200);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.nav-cart-btn:hover { background: var(--cream); border-color: var(--accent); color: var(--accent); }
.nav-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--silver-100);
  z-index: 1001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-normal) var(--ease-out);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28,26,23,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-normal);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--silver-100);
  flex-shrink: 0;
}
.cart-drawer-header h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 500; }
.cart-drawer-header button { background: none; border: none; cursor: pointer; color: var(--charcoal); display: flex; }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 3rem 0; color: var(--silver-400); text-align: center; }
.cart-empty svg { width: 48px; height: 48px; }
.cart-browse-btn { margin-top: 0.5rem; padding: 0.5rem 1.25rem; background: var(--accent); color: var(--white); border-radius: var(--radius-sm); font-size: 0.88rem; font-family: var(--ff-body); text-decoration: none; }

.cart-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.cart-item-img { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img svg { width: 24px; height: 24px; color: var(--silver-300); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.cart-item-price { font-size: 0.85rem; color: var(--accent-dark); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin-top: 0.25rem; }
.cart-qty-btn { width: 24px; height: 24px; border: 1px solid var(--silver-200); border-radius: 4px; background: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--charcoal); transition: background 150ms; }
.cart-qty-btn:hover { background: var(--cream); }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--silver-400); padding: 0.25rem; display: flex; flex-shrink: 0; transition: color 150ms; }
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--silver-100); flex-shrink: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; }
.cart-checkout-btn { display: block; text-align: center; padding: 0.8rem 1.25rem; background: var(--accent); color: var(--white); border-radius: var(--radius-md); font-family: var(--ff-body); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 180ms; }
.cart-checkout-btn:hover { background: var(--accent-dark); }
