/* ============================================
   DEAR CARE NEPAL — Design Tokens & Styles
   Inspired by indē wild's warm luxury aesthetic
   ============================================ */

/* Variables are globally defined in base.css */

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
  background: var(--color-bar-bg);
  color: var(--color-bar-text);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.announcement-bar .marquee {
  display: flex;
  gap: var(--space-12);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.announcement-bar .marquee span {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.announcement-bar .marquee span::after {
  content: '✦';
  opacity: 0.5;
}

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

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-4) var(--space-6);
  transition: box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo em {
  font-style: italic;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.theme-toggle {
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.15 0.02 60 / 0.3) 0%,
    oklch(0.15 0.02 60 / 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-bg);
  padding: var(--space-8) var(--space-6);
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-6);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto var(--space-8);
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: 1px solid var(--color-primary);
}

.btn-accent:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-accent:active {
  transform: translateY(0);
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
  background: var(--color-surface);
  padding: var(--space-4) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.marquee-strip .track {
  display: flex;
  gap: var(--space-12);
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-strip .track span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.marquee-strip .track span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-6);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   PRODUCTS SECTION — indē wild inspired
   ============================================ */
.products-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.products-header .section-subtitle {
  margin-inline: auto;
}

/* Category filter tabs */
.product-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive);
}

.filter-btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-text);
  border-color: var(--color-primary);
  font-weight: 600;
}

/* 3-column product grid like indē wild */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

/* Image container */
.product-card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

/* Hover overlay with CTA */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.15 0.02 60 / 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
  transition: background 0.4s var(--ease-out);
  border-radius: var(--radius-lg);
}

.product-card:hover .product-card-overlay {
  background: rgba(18, 19, 20, 0.45);
}

.product-card-overlay .overlay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.product-card:hover .product-card-overlay .overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Pill badges — top-left, stacking */
.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.product-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: oklch(from var(--color-bg) l c h / 0.85);
  color: var(--color-primary);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card body — text below image */
.product-card-body {
  padding: var(--space-4) var(--space-1) var(--space-2);
}

.product-card-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.product-card-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.product-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.product-card-price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.product-card-price .price-size {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

/* ============================================
   ABOUT / STORY SECTION
   ============================================ */
.story-section {
  background: var(--color-surface);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content .section-label {
  margin-bottom: var(--space-3);
}

.story-content .section-title {
  margin-bottom: var(--space-6);
}

.story-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.story-text + .story-text {
  margin-top: var(--space-4);
}

/* ============================================
   INGREDIENTS SECTION
   ============================================ */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.ingredient-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.ingredient-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  color: var(--color-primary);
}

.ingredient-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.ingredient-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   FULL-BLEED IMAGE SECTION
   ============================================ */
.full-bleed {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.15 0.02 60 / 0.6);
}

.full-bleed-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-bg);
  padding: var(--space-12) var(--space-6);
  max-width: 680px;
}

.full-bleed-content .section-title {
  color: var(--color-bg);
  margin-bottom: var(--space-4);
}

.full-bleed-content p {
  font-size: var(--text-base);
  opacity: 0.9;
  line-height: 1.7;
  margin-inline: auto;
}

/* ============================================
   PROMISES / VALUES
   ============================================ */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.promise-item {
  padding: var(--space-6) var(--space-4);
}

.promise-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.promise-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.promise-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */
.instagram-section {
  background: var(--color-surface);
}

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

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.instagram-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.instagram-grid a:hover img {
  transform: scale(1.06);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

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

.footer-brand .logo {
  color: var(--color-bg);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer-brand .logo em {
  color: var(--color-primary-highlight, #C49A6E);
}

.footer-desc {
  font-size: var(--text-sm);
  color: oklch(from var(--color-bg) l c h / 0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: oklch(from var(--color-bg) l c h / 0.5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: oklch(from var(--color-bg) l c h / 0.7);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col a:hover {
  color: var(--color-bg);
}

.footer-bottom {
  border-top: 1px solid oklch(from var(--color-bg) l c h / 0.12);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: oklch(from var(--color-bg) l c h / 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: oklch(from var(--color-bg) l c h / 0.5);
  transition: color var(--transition-interactive);
}

.footer-social a:hover {
  color: var(--color-bg);
}

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

/* ============================================
   CART — Floating Badge & Toast
   ============================================ */
.cart-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  animation: badge-in 0.3s ease;
}
.cart-badge svg {
  stroke: var(--color-bg);
}
.cart-count {
  font-variant-numeric: tabular-nums;
}

@keyframes badge-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cart-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.cart-toast svg {
  stroke: var(--color-primary);
  flex-shrink: 0;
}
.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   SIDE CART DRAWER
   ============================================ */

/* Overlay */
.cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.35s ease;
}
.cd-overlay.open {
  background: rgba(0,0,0,0.45);
  pointer-events: all;
}

/* Drawer panel */
.cd {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  z-index: 9999;
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  font-family: var(--font-body);
}
.cd.open {
  transform: translateX(0);
}

/* Header */
.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #FFF5CC;
  flex-shrink: 0;
}
.cd-header-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2B2B2B;
  margin: 0;
}
.cd-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #2B2B2B;
  cursor: pointer;
  transition: background 0.2s;
}
.cd-close:hover {
  background: #FFF5CC;
}

/* Shipping Progress Bar */
.cd-shipping {
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.cd-shipping-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.cd-shipping-msg svg {
  flex-shrink: 0;
  stroke: var(--color-text);
}
.cd-shipping-msg strong {
  color: var(--color-text);
  font-weight: 700;
}
.cd-shipping-bar {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cd-shipping-fill {
  height: 100%;
  background: var(--color-text-faint);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}
.cd-shipping.complete .cd-shipping-msg strong {
  color: var(--color-primary);
  font-weight: 700;
}
.cd-shipping.complete .cd-shipping-fill {
  background: var(--color-primary);
}

/* Gift Incentive */
.cd-gift {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(244,208,111,0.12) 0%, rgba(234,227,210,0.15) 100%);
  border-bottom: 1px solid #FFF5CC;
  flex-shrink: 0;
}
.cd-gift-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #F4D06F;
  border-radius: 10px;
  flex-shrink: 0;
}
.cd-gift-icon svg {
  stroke: #2B2B2B;
}
.cd-gift-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cd-gift-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2B2B2B;
}
.cd-gift-name {
  font-size: 12.5px;
  color: #2B2B2B;
  line-height: 1.35;
}
.cd-gift-name em {
  font-style: italic;
  color: #666666;
  font-weight: 400;
}
.cd-gift-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2B2B2B;
  background: #F4D06F;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Scrollable Body */
.cd-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0;
}

/* Empty State */
.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 12px;
}
.cd-empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: #2B2B2B;
  margin: 0;
}
.cd-empty-sub {
  font-size: 13px;
  color: #666666;
  margin: 0;
}
.cd-empty-cta {
  margin-top: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1.5px solid #2B2B2B;
  color: #2B2B2B;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cd-empty-cta:hover {
  background: #F4D06F;
  color: #2B2B2B;
}

/* Line Items */
.cd-items {
  padding: 0;
}
.cd-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #FFF5CC;
  position: relative;
}
.cd-item-img {
  width: 80px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #EAE3D2;
  flex-shrink: 0;
}
.cd-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cd-item-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #2B2B2B;
  line-height: 1.3;
  margin: 0;
}
.cd-item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cd-item-tag {
  font-size: 11px;
  color: #666666;
  background: rgba(244,208,111,0.18);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cd-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #2B2B2B;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.cd-item-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.cd-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  padding: 0;
}
.cd-item-remove:hover {
  color: #2B2B2B;
  background: rgba(244,208,111,0.15);
}
.cd-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #EAE3D2;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
}
.cd-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 15px;
  color: #2B2B2B;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  font-family: var(--font-body);
}
.cd-qty-btn:hover {
  background: #FFF5CC;
}
.cd-qty-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.cd-qty-btn:disabled:hover {
  background: transparent;
}
.cd-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2B2B2B;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}

/* Gift Line Item (in-cart visual) */
.cd-item.cd-item--gift {
  background: linear-gradient(135deg, rgba(244,208,111,0.08) 0%, transparent 100%);
}
.cd-item--gift .cd-item-name {
  color: var(--color-text);
}
.cd-item--gift .cd-item-price {
  color: var(--color-primary);
  font-style: italic;
}

/* Upsell / Cross-sell */
.cd-upsell {
  padding: 20px 24px;
  border-top: 1px solid var(--color-divider);
}
.cd-upsell-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  margin: 0 0 14px;
}
.cd-upsell-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-upsell-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #FFF5CC;
  border-radius: 10px;
  background: #fff;
}
.cd-upsell-img {
  width: 56px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #EAE3D2;
  flex-shrink: 0;
}
.cd-upsell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-upsell-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cd-upsell-name {
  font-size: 13px;
  font-weight: 600;
  color: #2B2B2B;
  line-height: 1.3;
}
.cd-upsell-price {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
}
.cd-upsell-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid #666666;
  color: #666666;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.1s;
  white-space: nowrap;
}
.cd-upsell-btn:hover {
  background: #F4D06F;
  color: #2B2B2B;
  border-color: #F4D06F;
}
.cd-upsell-btn:active {
  transform: scale(0.96);
}
.cd-upsell-btn.added {
  background: #F4D06F;
  color: #2B2B2B;
  border-color: #F4D06F;
  pointer-events: none;
}

/* Footer / Checkout */
.cd-footer {
  border-top: 1px solid var(--color-divider);
  padding: 16px 24px 24px;
  flex-shrink: 0;
  background: var(--color-bg);
}

/* Subtotal */
.cd-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.cd-subtotal-label {
  font-size: 14px;
  font-weight: 600;
  color: #2B2B2B;
}
.cd-subtotal-val {
  font-size: 16px;
  font-weight: 700;
  color: #2B2B2B;
  font-variant-numeric: tabular-nums;
}
.cd-tax-note {
  font-size: 11px;
  color: #666666;
  margin: 0 0 16px;
}

/* Primary CTA */
.cd-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-interactive), transform 0.1s;
}
.cd-checkout-btn:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-on-primary);
}
.cd-checkout-btn:active {
  transform: scale(0.98);
}
.cd-checkout-btn svg {
  flex-shrink: 0;
}

/* Prevent body scroll when drawer open */
body.cd-open {
  overflow: hidden;
}

/* Mobile cart drawer */
@media (max-width: 480px) {
  .cd {
    width: 100vw;
  }
  .cd-item-img {
    width: 68px;
    height: 85px;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-clip {
  to { clip-path: inset(0 0 0 0); }
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  padding: var(--space-2);
  color: var(--color-text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .promises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    min-height: 70vh;
  }
  .hero-title {
    font-size: var(--text-2xl);
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .ingredients-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .promises-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  .header {
    padding: var(--space-3) var(--space-4);
  }
  .section {
    padding: clamp(var(--space-8), 6vw, var(--space-16)) var(--space-4);
  }
  .cart-badge {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
}
