/* Design Tokens for Sneh Herbal */
:root {
  /* Color Tokens */
  --color-herbal-50: #f0fdf4;
  --color-herbal-100: #dcfce7;
  --color-herbal-200: #bbf7d0;
  --color-herbal-300: #86efac;
  --color-herbal-400: #4ade80;
  --color-herbal-500: #22c55e;
  --color-herbal-600: #16a34a;
  --color-herbal-700: #15803d;
  --color-herbal-800: #166534;
  --color-herbal-900: #14532d;

  --color-gold-50: #fffbeb;
  --color-gold-100: #fef3c7;
  --color-gold-200: #fde68a;
  --color-gold-300: #fcd34d;
  --color-gold-400: #fbbf24;
  --color-gold-500: #f59e0b;
  --color-gold-600: #d97706;
  --color-gold-700: #b45309;
  --color-gold-800: #92400e;
  --color-gold-900: #78350f;

  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;

  --color-sage-50: #f6f7f6;
  --color-sage-100: #e3e7e3;
  --color-sage-200: #c7d2c7;
  --color-sage-300: #a3b4a3;
  --color-sage-400: #7d937d;
  --color-sage-500: #5f7a5f;
  --color-sage-600: #4a614a;
  --color-sage-700: #3d4e3d;
  --color-sage-800: #334033;
  --color-sage-900: #2c352c;

  /* Typography Tokens */
  --font-family-sans: 'Inter', system-ui, sans-serif;
  --font-family-display: 'Playfair Display', Georgia, serif;
  --font-family-serif: 'Playfair Display', serif;

  --font-size-fluid-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-fluid-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-fluid-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --font-size-fluid-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --font-size-fluid-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --font-size-fluid-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --font-size-fluid-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
  --font-size-fluid-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);

  /* Spacing Tokens */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius Tokens */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadow Tokens */
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-large: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 2px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);

  /* Animation Tokens */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Tokens */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark mode tokens (for future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-herbal-50: #14532d;
    --color-herbal-100: #166534;
    --color-herbal-200: #15803d;
    --color-herbal-300: #16a34a;
    --color-herbal-400: #22c55e;
    --color-herbal-500: #4ade80;
    --color-herbal-600: #86efac;
    --color-herbal-700: #bbf7d0;
    --color-herbal-800: #dcfce7;
    --color-herbal-900: #f0fdf4;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
    --transition-bounce: 0ms;
  }
}
/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--color-neutral-800);
  background-color: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Checkout / cart sidebar line items — explicit sizes (w-14 etc. may be absent from Tailwind build) */
.checkout-line-items .checkout-line-thumb-wrap,
.cart-line .cart-line-thumb-wrap {
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f0fdf4;
}

.checkout-line-items .checkout-line-thumb-wrap picture,
.checkout-line-items .checkout-line-thumb-wrap img,
.cart-line .cart-line-thumb-wrap picture,
.cart-line .cart-line-thumb-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-line-items .checkout-line-thumb {
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  max-width: 5rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.5rem;
}

.checkout-line-items .checkout-line-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-line-items .checkout-line-item {
  overflow: hidden;
}

/* Cart quantity stepper (+ / − only, no number spinners) */
.cart-qty-stepper button {
  line-height: 1;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cart-qty-stepper button:disabled {
  cursor: not-allowed;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-herbal-500), var(--color-herbal-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--color-herbal-600), var(--color-herbal-700));
}

.btn-secondary {
  background: transparent;
  color: var(--color-herbal-600);
  border: 2px solid var(--color-herbal-600);
}

.btn-secondary:hover {
  background: var(--color-herbal-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
  background: linear-gradient(135deg, var(--color-gold-600), var(--color-gold-700));
}

/* Card Styles */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-herbal-500), var(--color-gold-500));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

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

/* Product Card Specific */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card .product-image {
  transition: transform var(--transition-slow);
  position: relative;
}



/* Navigation Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-link {
  position: relative;
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-herbal-500), var(--color-gold-500));
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-herbal-600);
}

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

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-fluid-base);
  transition: all var(--transition-normal);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-herbal-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder {
  color: var(--color-neutral-400);
}

/* Background Patterns */
.bg-organic {
  background-image: var(--bg-organic-pattern);
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px;
}

.bg-leaf {
  background-image: var(--bg-leaf-pattern);
  background-size: 60px 60px;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, 
    var(--color-herbal-50) 0%, 
    var(--color-herbal-100) 25%, 
    var(--color-sage-100) 50%, 
    var(--color-herbal-200) 75%, 
    var(--color-herbal-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23bbf7d0" fill-opacity="0.03"%3E%3Cpath d="M50 50c0-27.614-22.386-50-50-50s-50 22.386-50 50 22.386 50 50 50 50-22.386 50-50zm0 0c0 27.614 22.386 50 50 50s50-22.386 50-50-22.386-50-50-50-50 22.386-50 50z\"/%3E%3C/g%3E%3C/svg%3E');
  background-size: 100px 100px;
  animation: float 20s ease-in-out infinite;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
  100% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Typography */
.text-fluid-sm { font-size: var(--font-size-fluid-sm); }
.text-fluid-base { font-size: var(--font-size-fluid-base); }
.text-fluid-lg { font-size: var(--font-size-fluid-lg); }
.text-fluid-xl { font-size: var(--font-size-fluid-xl); }
.text-fluid-2xl { font-size: var(--font-size-fluid-2xl); }
.text-fluid-3xl { font-size: var(--font-size-fluid-3xl); }
.text-fluid-4xl { font-size: var(--font-size-fluid-4xl); }
.text-fluid-5xl { font-size: var(--font-size-fluid-5xl); }

/* Utility Classes */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

body.sh-storefront .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-herbal-600), var(--color-gold-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--color-herbal-500), var(--color-gold-500)) 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
}

/* Focus Styles */
.focus-visible:focus {
  outline: 2px solid var(--color-herbal-500);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--color-neutral-300);
  }
  
  .btn-primary {
    border: 2px solid var(--color-herbal-700);
  }
}
/**
 * Mobile / touch fixes — inputs, keyboards, overflow, overlays, touch targets.
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  /* iOS Safari: overflow-x: clip can cause hit-testing issues with fixed layers */
  overflow-x: hidden;
}

body {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* iOS: inputs below 16px zoom on focus; also helps keyboard reliability */
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']):not([type='button']),
select,
textarea,
.form-input {
  font-size: 16px !important;
  line-height: 1.4;
  min-height: 2.75rem;
  touch-action: manipulation;
}

textarea {
  min-height: 5rem;
}

input[readonly],
textarea[readonly] {
  -webkit-user-select: text;
  user-select: text;
  cursor: default;
  opacity: 1;
  background-color: #f9fafb;
}

/* Touch-friendly controls */
.btn,
button[type='submit'],
button[type='button']:not(.p-2) {
  min-height: 2.75rem;
  touch-action: manipulation;
}

.cart-qty-stepper button {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

/* Prevent clipped / invisible button text */
.btn {
  overflow: visible;
  white-space: normal;
  text-align: center;
}

@media (max-width: 1023px) {
  .checkout-sticky-summary {
    position: static !important;
    top: auto !important;
    width: 100%;
  }

  .pdp-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }

  /* Sticky mobile CTA above safe area */
  .pdp-mobile-bar {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 767px) {
  .navbar .flex.h-16 {
    gap: 0.25rem;
  }

  .navbar .text-2xl {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .navbar .flex-shrink-0 {
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar .flex.items-center.space-x-2 {
    flex-shrink: 0;
  }

  /* Grid children min-width 0 prevents horizontal blowout */
  .grid > * {
    min-width: 0;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Fallback if Tailwind build missed legacy color utilities */
.bg-herbal-green,
.bg-herbal-600 {
  background-color: #16a34a !important;
  color: #fff !important;
}
.bg-herbal-500 {
  background-color: #22c55e !important;
  color: #fff !important;
}
.bg-herbal-700 {
  background-color: #15803d !important;
  color: #fff !important;
}
.hover\:bg-herbal-dark:hover,
.hover\:bg-herbal-600:hover,
.hover\:bg-herbal-700:hover,
.bg-herbal-dark {
  background-color: #15803d !important;
}
.text-herbal-green,
.text-herbal-500 {
  color: #22c55e !important;
}
.text-herbal-600,
.text-herbal-700 {
  color: #16a34a !important;
}
.text-herbal-green:hover,
.hover\:text-herbal-dark:hover {
  color: #15803d !important;
}
.focus\:ring-herbal-green:focus,
.focus\:ring-herbal-500:focus {
  --tw-ring-color: #16a34a;
}
.border-herbal-green {
  border-color: #16a34a !important;
}

/* Checkout / payment CTAs — always visible green on mobile */
.checkout-submit-btn,
#checkout-submit,
#rzp-button {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.checkout-submit-btn:disabled,
#checkout-submit:disabled {
  opacity: 0.65;
  color: #fff !important;
}

/* iOS Safari: disable shimmer overlay on primary CTA buttons */
.checkout-submit-btn::before,
#checkout-submit::before,
#rzp-button::before {
  display: none !important;
}
/**
 * Sneh Herbals storefront v2 — mobile-first, mockup-aligned.
 */

:root {
  --sh-cream: #faf9f6;
  --sh-green: #15803d;
  --sh-green-light: #16a34a;
  --sh-green-soft: #f0fdf4;
  --sh-footer: #1a1f1a;
  --sh-header-h: 3.5rem;
  --sh-sticky-bar-h: 3.75rem;
}

body.sh-storefront {
  background: var(--sh-cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.sh-storefront h1,
body.sh-storefront h2,
body.sh-storefront .sh-hero__title,
body.sh-storefront .sh-section__title,
body.sh-storefront .sh-plp-title,
body.sh-storefront .sh-header__logo,
body.sh-storefront .sh-auth-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Header ── */
.sh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Keep header above any off-canvas layers (iOS Safari tap reliability) */
  z-index: 260;
  height: var(--sh-header-h);
  background: #fff;
  border-bottom: 1px solid #e8ece8;
  padding-top: env(safe-area-inset-top, 0);
}

.sh-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.sh-header__logo {
  justify-self: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--sh-green);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sh-header__logo-img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.sh-header__logo span {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.sh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  color: #374151;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  text-decoration: none;
}

.sh-icon-btn:hover {
  background: var(--sh-green-soft);
  color: var(--sh-green);
}

.sh-cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: var(--sh-green-light);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.sh-nav-desktop a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
}

.sh-nav-desktop a:hover {
  background: var(--sh-green-soft);
  color: var(--sh-green);
}

.sh-header__actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.sh-btn-signup {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--sh-green-light);
  border-radius: 0.5rem;
  text-decoration: none;
}

.sh-btn-signup:hover {
  background: var(--sh-green);
  color: #fff;
}

@media (min-width: 768px) {
  .sh-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 1.5rem;
  }
  .sh-header__logo {
    justify-self: start;
    font-size: 1.35rem;
  }
  .sh-nav-desktop {
    display: flex;
    justify-self: center;
  }
  .sh-btn-signup {
    display: inline-flex;
  }
  .sh-menu-btn {
    display: none !important;
  }
}

/* ── Drawer ── */
.sh-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.sh-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sh-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 210;
  width: min(18.5rem, 88vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: calc(var(--sh-header-h) + env(safe-area-inset-top, 0)) 0 env(safe-area-inset-bottom, 0);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  /* iOS Safari: offscreen transformed layers can still intercept touches */
  pointer-events: none;
  visibility: hidden;
}

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

.sh-drawer__nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.sh-drawer__nav a:hover {
  background: var(--sh-green-soft);
  color: var(--sh-green);
}

.sh-drawer__section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.sh-drawer__section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.sh-drawer-promo {
  margin: 1rem 1.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--sh-green-soft), #fef3c7);
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
}

.sh-drawer-promo p {
  font-size: 0.8125rem;
  color: #374151;
  margin: 0 0 0.5rem;
}

.sh-drawer-promo a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sh-green);
}

body.sh-drawer-open {
  overflow: hidden;
}

#main-content.sh-main {
  padding-top: calc(var(--sh-header-h) + env(safe-area-inset-top, 0));
}

/* ── Buttons ── */
.sh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--sh-green-light);
  border: none;
  border-radius: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  width: 100%;
}

.sh-btn-primary:hover {
  background: var(--sh-green);
  color: #fff;
}

.sh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sh-green);
  background: #fff;
  border: 2px solid var(--sh-green-light);
  border-radius: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  width: 100%;
}

.sh-btn-outline:hover {
  background: var(--sh-green-soft);
}

/* ── Hero (home) ── */
.sh-hero {
  background: var(--sh-cream);
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 1024px) {
  .sh-hero {
    padding: 3rem 1.5rem 4rem;
  }
  .sh-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
  }
}

.sh-hero__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sh-green);
  background: var(--sh-green-soft);
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.sh-hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  color: var(--sh-green);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.sh-hero__title em {
  font-style: normal;
  color: #166534;
  display: block;
}

.sh-hero__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 1.25rem;
  max-width: 32rem;
}

.sh-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .sh-hero__actions {
    flex-direction: row;
  }
  .sh-hero__actions .sh-btn-primary,
  .sh-hero__actions .sh-btn-outline {
    width: auto;
    flex: 1;
  }
}

.sh-hero__image {
  margin-top: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  max-height: 22rem;
  background: var(--sh-green-soft);
}

.sh-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .sh-hero__image {
    margin-top: 0;
    max-height: none;
  }
}

/* ── Trust bar ── */
.sh-trust-bar {
  background: #fff;
  border-top: 1px solid #e8ece8;
  border-bottom: 1px solid #e8ece8;
  padding: 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sh-trust-bar::-webkit-scrollbar {
  display: none;
}

.sh-trust-bar__inner {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  min-width: min-content;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .sh-trust-bar__inner {
    max-width: 80rem;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
  }
}

.sh-trust-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 4.5rem;
}

.sh-trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sh-green);
  margin-bottom: 0.25rem;
}

.sh-trust-item span {
  font-size: 0.625rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .sh-trust-item span {
    font-size: 0.75rem;
  }
}

/* ── Horizontal scroll (categories / products) ── */
.sh-hscroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sh-hscroll::-webkit-scrollbar {
  display: none;
}

.sh-hscroll > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.sh-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 5.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.sh-cat-chip__img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sh-green-soft);
  margin-bottom: 0.5rem;
  border: 2px solid #e8ece8;
}

.sh-cat-chip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-cat-chip__name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Section headings ── */
.sh-section {
  padding: 1.25rem 0;
}

@media (min-width: 768px) {
  .sh-section {
    padding: 2rem 0;
  }
}

.sh-section__head {
  padding: 0 1rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.sh-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
}

.sh-section__sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* ── Product card (horizontal scroll) ── */
.sh-product-card {
  width: 10.5rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e8ece8;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sh-product-card__img {
  aspect-ratio: 1;
  background: var(--sh-green-soft);
  overflow: hidden;
}

.sh-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-product-card__body {
  padding: 0.625rem;
}

.sh-product-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.sh-product-card__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sh-green-light);
}

.sh-product-card__mrp {
  font-size: 0.6875rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 0.25rem;
}

/* ── Product list row (mobile PLP) ── */
.sh-product-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
  min-width: 0;
}

.sh-product-row__thumb {
  flex: 0 0 4.75rem;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: var(--sh-green-soft);
  border: 1px solid #e8ece8;
}

.sh-product-row__thumb img,
.sh-product-row__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-product-row__body {
  flex: 1;
  min-width: 0;
}

.sh-product-row__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  text-decoration: none;
}

.sh-product-row__title:hover {
  color: var(--sh-green);
}

.sh-product-row__meta {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.sh-product-row__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.sh-product-row__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sh-green-light);
}

.sh-product-row__badge {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--sh-green);
  background: var(--sh-green-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.sh-product-row__cart {
  flex: 0 0 auto;
  align-self: center;
}

.sh-product-row__cart a,
.sh-product-row__cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--sh-green-soft);
  color: var(--sh-green);
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sh-product-row__cart-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ── PLP toolbar ── */
.sh-plp-toolbar {
  background: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8ece8;
}

.sh-plp-search {
  position: relative;
}

.sh-plp-search input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.5rem !important;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #f9fafb;
}

.sh-plp-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: #9ca3af;
  pointer-events: none;
}

.sh-plp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0.75rem 0 0;
  padding: 0 1rem;
}

/* ── Sticky bottom bars ── */
.sh-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e8ece8;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
  .sh-sticky-bar--mobile,
  .sh-sticky-bar.sh-sticky-bar--mobile.sh-hide-desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .sh-page-with-sticky {
    padding-bottom: calc(var(--sh-sticky-bar-h) + env(safe-area-inset-bottom, 0) + 1rem);
  }
}

.sh-sticky-bar__btn {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  touch-action: manipulation;
}

.sh-sticky-bar__btn--primary {
  background: var(--sh-green-light);
  border-color: var(--sh-green-light);
  color: #fff;
  flex: 2;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Why choose grid ── */
.sh-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.sh-why-card {
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e8ece8;
}

.sh-why-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.sh-why-card__icon-circle {
  display: none;
}

.sh-why-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem;
}

.sh-why-card p {
  font-size: 0.6875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .sh-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .sh-why-card {
    padding: 2rem 1.5rem;
    border: 1px solid #e8ece8;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .sh-why-card:hover {
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
  }

  .sh-why-card__icon {
    display: none;
  }

  .sh-why-card__icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
  }

  .sh-why-card__icon-circle svg {
    flex-shrink: 0;
  }

  .sh-why-card__icon-circle--herbal {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
  }

  .sh-why-card__icon-circle--gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
  }

  .sh-why-card__icon-circle--sage {
    background: linear-gradient(135deg, #e3e7e3, #c7d2c7);
    color: #4a614a;
  }

  .sh-why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
  }

  .sh-why-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b5563;
  }
}

/* ── Footer ── */
.sh-footer {
  background: var(--sh-footer);
  color: #d1d5db;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}

.sh-footer__grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sh-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.sh-footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.sh-footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #86efac;
  margin: 0 0 1rem;
}

.sh-footer a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
}

.sh-footer a:hover {
  color: #86efac;
}

.sh-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sh-footer li {
  margin-bottom: 0.5rem;
}

.sh-footer__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.sh-footer__values span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sh-footer__bottom {
  max-width: 80rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.sh-footer__operator {
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.sh-footer__operator a {
  color: #d1d5db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sh-footer__operator a:hover {
  color: #fff;
}

/* ── Auth pages ── */
.sh-auth-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e8ece8;
  padding: 1.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.sh-auth-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
  text-align: center;
}

.sh-auth-card .sh-auth-sub {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.sh-auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.sh-auth-social a,
.sh-auth-social button {
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.sh-auth-social button {
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.sh-auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sh-auth-google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.sh-auth-divider {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 1rem 0;
  position: relative;
}

.sh-auth-divider::before,
.sh-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}

.sh-auth-divider::before {
  left: 0;
}

.sh-auth-divider::after {
  right: 0;
}

/* ── Responsive visibility (no Tailwind required) ── */
.sh-hscroll.sh-hide-desktop {
  display: flex;
}

.sh-hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .sh-hide-desktop {
    display: none !important;
  }

  .sh-hide-mobile {
    display: block !important;
  }

  .sh-hide-mobile.sh-desktop-grid {
    display: grid !important;
  }
}

/* Legacy alias — do NOT set display:block (breaks flex hscroll) */
.sh-mobile-only {
  /* visibility: use .sh-hide-desktop instead */
}

.sh-desktop-grid {
  display: none;
}

@media (min-width: 768px) {
  .sh-mobile-only {
    display: none !important;
  }

  .sh-desktop-grid {
    display: grid;
  }
  .sh-plp-hero-hide-mobile {
    display: block;
  }
}

@media (max-width: 767px) {
  .sh-plp-hero-hide-mobile {
    display: none;
  }
}

/* ── Cart mobile line ── */
.sh-cart-line {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  min-width: 0;
}

.sh-cart-line__info {
  flex: 1;
  min-width: 0;
}

.sh-cart-line__info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Star rating (PLP rows / cards) ── */
.sh-stars {
  display: inline-flex;
  gap: 0.05rem;
  color: #f59e0b;
  font-size: 0.6875rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sh-rating-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.sh-rating-line span {
  font-size: 0.6875rem;
  color: #6b7280;
  font-weight: 500;
}

/* ── PLP category chips row ── */
.sh-plp-cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sh-plp-cats::-webkit-scrollbar {
  display: none;
}

.sh-plp-cat-pill {
  flex: 0 0 auto;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
}

.sh-plp-cat-pill.is-active,
.sh-plp-cat-pill:hover {
  background: var(--sh-green-soft);
  border-color: #86efac;
  color: var(--sh-green);
}

/* ── Bottom sheet (filter / sort) ── */
#sh-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

#sh-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sh-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 230;
  max-height: 75vh;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.sh-sheet.is-open {
  transform: translateY(0);
}

.sh-sheet__handle {
  width: 2.5rem;
  height: 0.25rem;
  background: #d1d5db;
  border-radius: 9999px;
  margin: 0 auto 1rem;
}

.sh-sheet h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #111827;
}

.sh-sheet label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.sh-sheet select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem !important;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f9fafb;
}

body.sh-sheet-open {
  overflow: hidden;
}

/* ── Home CTA banner (replaces heavy gradient block on mobile) ── */
.sh-cta-banner {
  margin: 0 1rem 2rem;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  border-radius: 1rem;
  text-align: center;
  color: #fff;
}

.sh-cta-banner h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.sh-cta-banner p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.sh-cta-banner .sh-btn-primary {
  background: #fff;
  color: var(--sh-green);
  max-width: 14rem;
  margin: 0 auto;
}

.sh-cta-banner .sh-btn-primary:hover {
  background: #f0fdf4;
}

/* ── Cart mobile ── */
@media (max-width: 767px) {
  .sh-cart-page .sh-cart-desktop-title {
    display: none;
  }

  .sh-cart-page .cart-line {
    padding: 1rem !important;
  }

  .sh-cart-page .cart-line .flex.items-center.space-x-4 {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .sh-cart-page .cart-line h3 {
    font-size: 0.9375rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sh-cart-page .cart-line .flex-1 {
    min-width: 0;
    flex: 1 1 60%;
  }

  .sh-cart-page .cart-bogo-hint {
    word-break: break-word;
  }

  .sh-cart-page .checkout-sticky-summary {
    position: static !important;
    margin-bottom: 0.5rem;
  }

  .sh-cart-page > .max-w-7xl > .mb-8 {
    padding: 0 0.25rem;
    margin-bottom: 1rem;
  }

  .sh-cart-page > .max-w-7xl > .mb-8 h1 {
    font-size: 1.375rem;
    font-family: 'Playfair Display', Georgia, serif;
  }
}

/* ── Cart free-delivery product nudge ── */
.cart-fd-suggestions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #bfdbfe;
}

.cart-fd-suggestions__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem;
}

.cart-fd-suggestions__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.cart-fd-suggestion {
  flex: 0 0 auto;
  width: 7.5rem;
  max-width: 7.5rem;
  border: 1px solid #dbeafe;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.cart-fd-suggestion__img-link {
  display: block;
  margin-bottom: 0.375rem;
  flex-shrink: 0;
}

.cart-fd-suggestion__img-wrap {
  width: 100%;
  height: 3.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-fd-suggestion__img-wrap picture,
.cart-fd-suggestion__img-wrap img {
  display: block;
  width: 100%;
  height: 3.5rem;
  max-height: 3.5rem;
  object-fit: cover;
}

.cart-fd-suggestion__img-wrap .sh-img-fallback {
  font-size: 1.125rem;
  line-height: 3.5rem;
}

.cart-fd-suggestion__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.cart-fd-suggestion__name:hover {
  color: var(--sh-green, #15803d);
}

.cart-fd-suggestion__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sh-green, #15803d);
  margin: 0 0 0.375rem;
}

.cart-fd-suggestion__form {
  margin-top: auto;
}

.cart-fd-suggestion__add {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sh-green, #15803d);
  border: 1px solid #86efac;
  border-radius: 0.25rem;
  padding: 0.25rem 0;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.cart-fd-suggestion__add:hover {
  background: #f0fdf4;
}

/* ── Checkout polish ── */
.sh-checkout-page {
  background: var(--sh-cream);
}

.sh-checkout-card {
  background: #fff;
  border: 1px solid #e8ece8;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sh-checkout-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #111827;
}

.sh-checkout-steps {
  margin-bottom: 1.5rem;
}

.sh-checkout-steps__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-checkout-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  min-width: 0;
  text-align: center;
}

.sh-checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.125rem);
  width: calc(100% - 2.25rem);
  height: 2px;
  background: #e5e7eb;
  transform: translateY(-50%);
  z-index: 0;
}

.sh-checkout-step.is-complete:not(:last-child)::after {
  background: var(--sh-green, #16a34a);
}

.sh-checkout-step__marker {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #9ca3af;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.sh-checkout-step__num {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.sh-checkout-step__check {
  display: none;
  width: 1rem;
  height: 1rem;
}

.sh-checkout-step.is-active .sh-checkout-step__marker,
.sh-checkout-step.is-complete .sh-checkout-step__marker {
  border-color: var(--sh-green, #16a34a);
  background: var(--sh-green, #16a34a);
  color: #fff;
}

.sh-checkout-step.is-complete .sh-checkout-step__num {
  display: none;
}

.sh-checkout-step.is-complete .sh-checkout-step__check {
  display: block;
}

.sh-checkout-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.2;
}

.sh-checkout-step.is-active .sh-checkout-step__label,
.sh-checkout-step.is-complete .sh-checkout-step__label {
  color: var(--sh-green, #15803d);
  font-weight: 700;
}

/* Cart: desktop-only in-summary checkout (mobile uses sticky footer) */
@media (max-width: 1023px) {
  .sh-cart-checkout-desktop {
    display: none;
  }
}

.cart-fd-suggestions--single {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
}

.cart-fd-suggestion--single {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  padding: 0.5rem;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  background: #fff;
}

.cart-fd-suggestion--single .cart-fd-suggestion__img-link {
  margin-bottom: 0;
  flex-shrink: 0;
}

.cart-fd-suggestion--single .cart-fd-suggestion__img-wrap {
  width: 3.5rem;
  height: 3.5rem;
}

.cart-fd-suggestion__body {
  flex: 1;
  min-width: 0;
}

.cart-fd-suggestion--single .cart-fd-suggestion__form {
  margin-top: 0;
  flex-shrink: 0;
}

.cart-fd-suggestion--single .cart-fd-suggestion__add {
  width: auto;
  min-width: 4.5rem;
  padding: 0.375rem 0.75rem;
}

.cart-line-remove {
  font-weight: 400;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ── Checkout coupon (explicit styles — not all utilities in Tailwind build) ── */
.checkout-coupon-section {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.8) 0%, #fff 100%);
}

#checkout-coupon-toggle:hover {
  background: rgba(240, 253, 244, 0.6);
}

.checkout-coupon-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.checkout-coupon-chevron.is-open,
.checkout-coupon-chevron.rotate-180 {
  transform: rotate(180deg);
}

/* ── PDP page sticky padding (mobile only — bar hidden on desktop) ── */
@media (max-width: 1023px) {
  .pdp-page.sh-page-with-sticky {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }
}

.pdp-mobile-bar {
  z-index: 85;
}

.pdp-mobile-bar .pdp-btn-outline-mobile {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid var(--sh-green-light, #16a34a);
  border-radius: 0.5rem;
  background: #fff;
  color: #15803d;
  white-space: nowrap;
}

/* ── Auth password field ── */
.sh-pw-wrap {
  position: relative;
}

.sh-pw-wrap input {
  padding-right: 2.75rem !important;
}

.sh-pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Product card enhancements ── */
.sh-product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.sh-product-card__rating span {
  font-size: 0.625rem;
  color: #6b7280;
}

.sh-product-card__off {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  margin-top: 0.25rem;
}

/* ── Hero botanical (desktop) ── */
.sh-hero__image {
  border: 1px solid #e8ece8;
  box-shadow: 0 12px 40px rgba(21, 128, 61, 0.08);
}

@media (min-width: 1024px) {
  .sh-hero {
    background: linear-gradient(180deg, var(--sh-cream) 0%, #fff 100%);
  }
}

/* ── Drawer header ── */
.sh-drawer__brand {
  padding: 1rem 1.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sh-green);
  border-bottom: 1px solid #f3f4f6;
}

/* Hide legacy sections when v2 active */

/* ── Unified homepage layouts (single DOM, responsive CSS) ── */
.sh-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--sh-green-soft);
}

.sh-categories-unified {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sh-categories-unified::-webkit-scrollbar {
  display: none;
}

.sh-category-unified {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.sh-category-unified__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 5.5rem;
  text-align: center;
}

.sh-category-unified__img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sh-green-soft);
  margin-bottom: 0.5rem;
  border: 2px solid #e8ece8;
}

.sh-category-unified__img img,
.sh-category-unified__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-category-unified__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.sh-products-unified {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sh-products-unified::-webkit-scrollbar {
  display: none;
}

.sh-product-unified {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 10.5rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e8ece8;
  overflow: hidden;
}

.sh-product-unified__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sh-product-unified__img {
  position: relative;
  aspect-ratio: 1;
  background: var(--sh-green-soft);
  overflow: hidden;
}

.sh-product-unified__photo,
.sh-product-unified__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-product-unified__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.sh-cta-unified {
  background: var(--sh-cream);
  color: #111827;
}

.sh-cta-unified__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.sh-cta-unified__text {
  font-size: 0.875rem;
  color: #6b7280;
  max-width: 20rem;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.sh-cta-unified__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .sh-categories-unified {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    overflow: visible;
    padding: 0 1rem;
    max-width: 80rem;
    margin: 0 auto;
    align-items: stretch;
  }

  .sh-category-unified {
    flex: unset;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e8ece8;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .sh-category-unified__link {
    width: auto;
  }

  .sh-category-unified__img {
    width: 100%;
    height: 14rem;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
  }

  .sh-category-unified__body {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
  }

  .sh-category-unified__desc {
    flex: 1;
    min-height: 2.75rem;
  }

  .sh-category-unified__body > a:last-child {
    margin-top: auto;
  }

  .sh-products-unified {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    overflow: visible;
    padding: 0 1rem;
    max-width: 80rem;
    margin: 0 auto;
  }

  .sh-product-unified {
    width: auto;
    display: flex;
    flex-direction: column;
  }

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

  .sh-cta-unified {
    color: #fff;
  }

  .sh-cta-unified__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
  }

  .sh-cta-unified__text {
    font-size: 1.125rem;
    color: #dcfce7;
    max-width: 48rem;
    margin-bottom: 3rem;
  }

  .sh-cta-unified__btn {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    border: none;
  }
}
body.sh-storefront .hero-gradient.sh-plp-hero-hide-mobile {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--sh-cream) 100%);
}

/* ── AJAX cart toast + loading ── */
.sh-cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5rem + env(safe-area-inset-bottom, 0));
  transform: translateX(-50%) translateY(1rem);
  z-index: 200;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #14532d;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sh-cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sh-cart-toast--error {
  background: #991b1b;
}

.cart-line--loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Header greeting (desktop "Hi, {name}") ── */
.sh-header__greeting {
  align-items: center;
  padding: 0 0.5rem;
  margin-right: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-header__greeting:hover {
  color: var(--sh-green-light);
}

/* ── Drawer greeting (mobile "Hi, {name}") ── */
.sh-drawer__greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: var(--sh-green-soft);
}

.sh-drawer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--sh-green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.sh-drawer__greeting-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Breadcrumb nav — shared across PDP, product list, category pages */
.pdp-breadcrumb {
  font-size: 0.8125rem;
  color: #6b7280;
}
.pdp-breadcrumb a {
  color: #6b7280;
  transition: color 0.2s;
}
.pdp-breadcrumb a:hover {
  color: #16a34a;
}
.pdp-breadcrumb [aria-current] {
  color: #374151;
  font-weight: 500;
}

/* Minimum 44px tap targets (WCAG) for quantity steppers */
.cart-qty-dec,
.cart-qty-inc {
  min-height: 44px;
  min-width: 44px;
}

/* Button loading spinner (AJAX add-to-cart, coupon apply, quantity update) */
.sh-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.sh-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sh-btn-spin 0.6s linear infinite;
}
.sh-btn-loading.sh-btn-loading--dark::after {
  border-color: rgba(22, 163, 74, 0.3);
  border-top-color: #16a34a;
}
@keyframes sh-btn-spin {
  to { transform: rotate(360deg); }
}

/* Subtle attention accent for the unopened checkout coupon toggle */
.checkout-coupon-toggle--accent {
  animation: sh-coupon-pulse 2.5s ease-in-out infinite;
}
@keyframes sh-coupon-pulse {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(22, 163, 74, 0.06); }
}

.sh-checkout-steps-condensed {
  margin: 0 0 1rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 0.5rem;
  text-align: center;
}

.sh-pw-strength {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.sh-pw-strength span {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background-color: #e5e7eb;
  transition: background-color 0.2s ease;
}

/* ── Pre-existing rules recovered from generated sneh-app.css (were never in a real source file) ── */
.sh-headline-solid {
  color: #1a1a1a;
}

.sh-checkout-flow .pricing-summary__total {
  padding: 1rem 1.125rem;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
}

.sh-checkout-flow .pricing-summary__total span:last-child {
  font-size: 1.75rem;
  line-height: 1.2;
}

.sh-cart-sticky-cta {
  gap: 0;
}

.sh-sticky-bar__btn--full {
  flex: 1 1 100%;
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
}
/* 
   Pricing Styles - Proper formatting for currency and strike-through prices
   Add this to your base.html or include in your main CSS
*/

/* Fix Rupee Symbol Overlapping - Critical Fix */
.text-4xl,
.text-3xl, 
.text-2xl,
.text-xl,
.text-lg {
    word-spacing: 0.15em !important;
    letter-spacing: 0.02em !important;
}

/* Specific fix for price displays */
span[class*="font-bold"],
span[class*="text-herbal"],
span[class*="text-gradient"],
.selling-price,
.price-display {
    word-spacing: 0.2em !important;
    letter-spacing: 0.03em !important;
}

/* Ensure all text elements have proper spacing */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force spacing in price containers */
.price-container,
.flex.items-baseline,
div[class*="gap-"] {
    gap: 0.75rem !important;
}

/* Price Container Spacing */
.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Selling Price Styles */
.selling-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 0.02em;
}

/* Strike-through Price Styles */
.strike-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    letter-spacing: 0.01em;
}

/* MRP Display */
.mrp-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Discount Badge */
.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

/* Savings Text */
.savings-text {
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.savings-text svg {
    width: 1rem;
    height: 1rem;
}

/* Product Card Pricing */
.product-card .price-section {
    margin: 0.75rem 0;
}

.product-card .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 0.02em;
}

.product-card .was-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Cart/Checkout Pricing */
.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-price .current {
    font-size: 1.125rem;
    font-weight: 600;
    color: #16a34a;
}

.cart-item-price .original {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Responsive Pricing */
@media (max-width: 640px) {
    .selling-price {
        font-size: 1.25rem;
    }
    
    .strike-price {
        font-size: 0.875rem;
    }
    
    .discount-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Price comparison tooltip */
.price-info-tooltip {
    position: relative;
    display: inline-block;
}

.price-info-tooltip .tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.price-info-tooltip:hover .tooltip-content {
    display: block;
}

/* Ensure proper spacing for rupee symbol in all contexts */
span:contains("₹") {
    word-spacing: 0.05em;
}

/* Fix any CSS conflicts with rupee symbol */
* {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

/* Price display in admin */
.admin .field-display_cost_price,
.admin .field-display_selling_price,
.admin .field-display_mrp,
.admin .field-display_strike_price {
    min-width: 100px;
}

/* Ensure no text overlap */
.text-4xl, .text-3xl, .text-2xl, .text-xl {
    line-height: 1.2;
    word-spacing: normal;
}

