/**
 * 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;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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 {
  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 {
  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;
}

/* ── 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;
}

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

.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;
}

.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;
}

/* ── 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 button {
  min-height: 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.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 .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;
  }
}

/* ── 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 {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sh-checkout-step {
  flex: 1;
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.sh-checkout-step.is-active {
  color: var(--sh-green);
  border-bottom-color: var(--sh-green-light);
}

/* ── PDP page sticky padding ── */
.pdp-page.sh-page-with-sticky {
  padding-bottom: calc(4.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 */
body.sh-storefront .hero-gradient.sh-plp-hero-hide-mobile {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--sh-cream) 100%);
}
