/* ==========================================================================
   DERMA NEST - LUXURY BOTANICAL COSMETICS STYLESHEET
   Google Stitch Inspired Design Tokens | Made in Bengaluru, India
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-primary: #1a3e2b;        /* Deep Botanical Forest Slate */
  --color-primary-dark: #122b1e;   /* Midnight Forest */
  --color-primary-light: #285a40;  /* Leaf Emerald */
  
  --color-gold: #c5a059;           /* Imperial Champagne Gold */
  --color-gold-light: #fef08a;     /* Luminous Gold Tint */
  --color-gold-dark: #997b3d;      /* Antique Burnished Gold */
  
  --color-sage: #3e5c4e;           /* Botanical Sage */
  --color-sage-light: #eaf2ed;     /* Soft Mint Wash */
  
  --color-bg-pearl: #faf8f5;       /* Warm Pearl Ivory Ground */
  --color-surface-white: #ffffff;  /* Pure White Surface */
  --color-surface-muted: #f4efe9;  /* Muted Sand Surface */
  
  --color-text-main: #1c1917;      /* Warm Charcoal */
  --color-text-muted: #57534e;     /* Stone Neutral */
  --color-text-light: #a8a29e;     /* Subdued Meta */
  
  --color-border: #e7e0d6;         /* Hairline Sand Border */
  --color-border-dark: #cfc5b6;    /* Contrast Border */
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(26, 62, 43, 0.05);
  --shadow-md: 0 6px 18px rgba(26, 62, 43, 0.08);
  --shadow-lg: 0 16px 36px rgba(26, 62, 43, 0.12);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-pearl);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Top Announcement Bar --- */
.announcement-bar {
  background: linear-gradient(90deg, #122b1e 0%, #1a3e2b 50%, #122b1e 100%);
  color: #fef08a;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.announcement-bar strong {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Main Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 74px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-emblem-img {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 62, 43, 0.14);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.brand-tagline {
  display: none;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

@media (min-width: 480px) {
  .brand-tagline {
    display: block;
  }
}

@media (min-width: 640px) {
  .brand-emblem-img {
    width: 52px;
    height: 52px;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .brand-tagline {
    font-size: 0.58rem;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: nowrap;
}

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

@media (min-width: 1200px) {
  .nav-menu {
    gap: 1.45rem;
  }
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--color-text-main);
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gold-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.75rem;
  }
}

.btn-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

@media (min-width: 640px) {
  .btn-icon {
    width: 42px;
    height: 42px;
  }
}

.btn-icon:hover {
  background: var(--color-sage-light);
  border-color: var(--color-primary);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-pearl);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, #f4efe9 0%, #faf8f5 60%, #eaf2ed 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--color-sage-light);
  border: 1px solid rgba(26, 62, 43, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold-dark);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-surface-white);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-muted);
  transform: translateY(-2px);
}

/* Trust Pill Badges */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold-dark);
}

/* Hero Showcase Card */
.hero-card-featured {
  position: relative;
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.hero-featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-gold-light);
  color: #713f12;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
}

.hero-featured-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 1.5rem auto 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(26, 62, 43, 0.08);
  transition: var(--transition-smooth);
}

.hero-featured-img:hover {
  transform: scale(1.03);
}

/* --- Trust Strip Banner --- */
.trust-strip {
  background: var(--color-surface-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.strip-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.15rem;
}

.strip-desc {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- Filter & Category Bar --- */
.filter-bar-wrapper {
  margin-bottom: 2.5rem;
}

.category-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.cat-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-sage-light);
}

.cat-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.cat-count {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Search and Sort Toolbar */
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-surface-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  background: var(--color-bg-pearl);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 62, 43, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-light);
}

.sort-box select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-bg-pearl);
  color: var(--color-text-main);
  cursor: pointer;
  outline: none;
}

/* --- Product Cards Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

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

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Single Product Card */
.product-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.product-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.product-weight {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 62, 43, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-card-title:hover {
  color: var(--color-gold-dark);
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.patch-test-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  width: fit-content;
}

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

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.currency {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.original-price {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

/* --- Slide-Out Cart Drawer --- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  z-index: 100;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-pearl);
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.free-shipping-meter {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 0.75rem 1.5rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #dcfce7;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.25rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.cart-item-remove {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: #dc2626;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-pearl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  gap: 0.5rem;
}

.qty-btn {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.85rem;
  padding: 0 0.25rem;
}

.qty-val {
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.cart-drawer-footer {
  padding: 1.5rem;
  background: var(--color-bg-pearl);
  border-top: 1px solid var(--color-border);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.coupon-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.apply-coupon-btn {
  padding: 0.55rem 1rem;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cart-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.cart-calc-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

.cart-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn-razorpay-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #1a3e2b 0%, #122b1e 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.btn-razorpay-checkout:hover {
  background: #0f241a;
  transform: translateY(-2px);
}

.btn-whatsapp-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: #25d366;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.btn-whatsapp-checkout:hover {
  background: #1eb857;
}

/* --- Modals Generic Styling --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 30, 0.7);
  backdrop-filter: blur(6px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.94) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-pearl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  z-index: 10;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Trade / Wholesale Banner Section */
.trade-section {
  background: linear-gradient(135deg, #122b1e 0%, #1a3e2b 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

.trade-tag {
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.trade-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #11231a;
  color: #e2e8f0;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-slate-700 { color: #334155; }
.text-slate-400 { color: #94a3b8; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }

/* ==========================================================================
   PURE UTILITY CLASSES FOR ROBUST BROWSER RENDERING (ZERO-DEPENDENCY)
   ========================================================================== */
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:p-12 { padding: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-serif { font-family: var(--font-serif); }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.line-through { text-decoration: line-through; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rounded-lg { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius-md); }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: var(--radius-pill); }

.bg-white { background-color: #ffffff; }
.bg-stone-50 { background-color: #fafaf9; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-900 { background-color: #142e22; }
.bg-emerald-950 { background-color: #0b1a13; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-rose-50 { background-color: #fff1f2; }

.text-white { color: #ffffff; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #142e22; }
.text-emerald-950 { color: #0b1a13; }
.text-gold-200 { color: #fef08a; }
.text-gold-300 { color: #fde047; }
.text-gold-700 { color: #b45309; }
.text-gold { color: #d4af37; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-900 { color: #78350f; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-stone-200 { color: #e7e5e4; }
.text-stone-300 { color: #d6d3d1; }

.border { border-width: 1px; border-style: solid; border-color: var(--color-border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: var(--color-border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--color-border); }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; border-color: var(--color-border); }
.border-stone-200 { border-color: #e7e5e4; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-emerald-200 { border-color: #a7f3d0; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.cursor-pointer { cursor: pointer; }
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }

/* ==========================================================================
   ACCESSIBILITY, MOBILE NAV DRAWER & LUXURY MOTION SYSTEM
   ========================================================================== */

/* Accessible Keyboard Focus Rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Contrast Refinement inside Light Product & Review Cards */
.product-card .text-slate-400,
.bg-white .text-slate-400 {
  color: #64748b;
}

/* Active Button Press Feedback */
.btn-primary:active,
.btn-secondary:active,
.add-to-cart-btn:active,
.cat-pill:active {
  transform: scale(0.97);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  transition: var(--transition-fast);
}

@media (min-width: 640px) {
  .mobile-menu-btn {
    width: 42px;
    height: 42px;
  }
}

.mobile-menu-btn:hover {
  background: var(--color-sage-light);
  border-color: var(--color-primary);
}

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

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 30, 0.55);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 340px);
  background: var(--color-bg-pearl);
  z-index: 70;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-right: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.flex-col {
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-gold-dark);
  padding-left: 0.85rem;
}

/* Hero Entrance Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-1 {
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animate-2 {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-animate-3 {
  animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Scroll Reveal System (Intersection Observer) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Subtle WhatsApp / Primary CTA Attention Pulse */
@keyframes softGlowPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(18, 43, 30, 0.25), 0 0 0 0 rgba(197, 160, 89, 0.45);
  }
  50% {
    box-shadow: 0 8px 28px rgba(18, 43, 30, 0.3), 0 0 0 8px rgba(197, 160, 89, 0);
  }
}

.floating-whatsapp {
  animation: softGlowPulse 3.2s infinite;
}

/* FAQ Accordion Chevron & Polish */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Atelier / Local Heritage Grid */
.atelier-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.atelier-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Strict Respect for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
