/* ==========================================================================
   DEXOQUICK — CUSTOMER UI POLISH
   Loaded last on storefront pages. Fixes contrast, clipping and card rhythm,
   and gives the customer app a calmer, more premium quick-commerce look.
   ========================================================================== */

:root {
  --cq-green-900: #052e26;
  --cq-green-800: #064e3b;
  --cq-green-700: #047857;
  --cq-green-600: #059669;
  --cq-green-500: #10b981;
  --cq-green-100: #d1fae5;
  --cq-green-50: #ecfdf5;
  --cq-ink: #0f172a;
  --cq-body: #475569;
  --cq-muted: #94a3b8;
  --cq-line: #e7eef6;
  --cq-surface: #ffffff;
  --cq-canvas: #f6f8fb;
}

body {
  background: var(--cq-canvas);
  color: var(--cq-ink);
}

h1, h2, h3, h4,
.section-head h2,
.catalog-header h2,
.deals-header h2,
.qc-section-title,
.sh-page-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Header + search
   -------------------------------------------------------------------------- */
.qc-delivery-banner {
  background: linear-gradient(90deg, var(--cq-green-900), var(--cq-green-700) 55%, #0d9488);
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25px;
}

.qc-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--cq-line);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.qc-header-inner {
  padding: 12px 20px;
  gap: 18px;
}

.qc-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--cq-green-500), var(--cq-green-700));
  box-shadow: 0 8px 18px -10px rgba(4, 120, 87, 0.85);
  font-size: 1rem;
}

.qc-logo-text {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.qc-logo-text small {
  margin-top: 2px;
  font-size: 0.52rem;
  letter-spacing: 1.1px;
  color: var(--cq-muted);
}

.qc-search {
  order: 2;
  flex: 1;
  max-width: 760px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f1f5f9;
}

.qc-actions {
  order: 3;
  margin-left: auto;
}

.qc-search:focus-within {
  background: #fff;
  border-color: #a7f3d0;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.qc-search > input {
  font-size: 0.9rem;
}

.qc-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #334155;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.qc-action-btn:hover {
  background: var(--cq-green-50);
  color: var(--cq-green-700);
  transform: translateY(-1px);
}

.qc-cart-badge {
  top: 1px;
  right: 1px;
  box-shadow: 0 0 0 2px #fff;
}

/* Category pill rail */
.qc-categories {
  padding: 12px 0 10px;
  border-bottom: 1px solid #eef3f8;
}

.qc-categories-scroll {
  gap: 10px;
  padding: 0 20px;
}

.qc-categories-scroll .category-pill {
  padding: 9px 16px;
  border: 1px solid var(--cq-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cq-body);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.qc-categories-scroll .category-pill:hover {
  border-color: #a7f3d0;
  color: var(--cq-green-700);
  background: var(--cq-green-50);
}

.qc-categories-scroll .category-pill.active {
  background: var(--cq-green-800);
  border-color: var(--cq-green-800);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(4, 120, 87, 0.75);
}

/* --------------------------------------------------------------------------
   Hero — one coherent emerald palette across all slides
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 26px 0 10px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.hero-banner-card {
  min-height: 380px;
  padding: 44px 48px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(45, 212, 191, 0.3), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(16, 185, 129, 0.2), transparent 65%),
    linear-gradient(135deg, var(--cq-green-900) 0%, var(--cq-green-800) 44%, #0f766e 100%);
  box-shadow: 0 30px 60px -32px rgba(4, 120, 87, 0.6);
}

.hero-banner-card::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner-card::after {
  right: -40px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-slide {
  position: relative;
  z-index: 1;
}

.hero-slide h2,
.hero-banner-card h2 {
  max-width: 590px;
  margin-bottom: 14px;
  color: #fff !important;
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-slide p,
.hero-banner-card p {
  max-width: 510px;
  margin-bottom: 26px;
  color: rgba(236, 253, 245, 0.84) !important;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-slide .hero-pill,
.hero-banner-card .hero-pill {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12) !important;
  color: #d1fae5 !important;
  backdrop-filter: blur(10px);
}

.hero-slide .hero-pill span,
.hero-banner-card .hero-pill span {
  color: inherit !important;
}

.hero-slide .btn-hero-primary,
.hero-banner-card .btn-hero-primary {
  background: #fff !important;
  color: var(--cq-green-700) !important;
  border: 0;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55);
}

.hero-slide .btn-hero-primary:hover,
.hero-banner-card .btn-hero-primary:hover {
  background: var(--cq-green-50) !important;
  transform: translateY(-2px);
}

.hero-slide .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.hero-slide .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  margin-top: 22px;
  justify-content: flex-start;
}

.hero-dots .hero-dot {
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots .hero-dot.active {
  background: #fff;
}

.hero-side-card {
  padding: 24px;
  border: 1px solid var(--cq-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 44px -32px rgba(15, 23, 42, 0.3);
}

.hero-side-card::before {
  height: 4px;
  background: linear-gradient(90deg, var(--cq-green-500), #0d9488);
}

.side-card-badge {
  margin-bottom: 14px;
  padding: 5px 11px;
  background: var(--cq-green-50);
  color: var(--cq-green-700);
  font-size: 0.72rem;
}

.side-card-content h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.side-card-content p {
  margin-bottom: 18px;
  color: var(--cq-body);
  font-size: 0.85rem;
  line-height: 1.55;
}

.side-upload-trigger {
  padding: 18px 14px;
  border: 1.5px dashed #6ee7b7;
  border-radius: 16px;
  background: var(--cq-green-50);
}

.side-upload-trigger:hover {
  border-color: var(--cq-green-500);
  background: #dcfce7;
}

.side-upload-trigger svg {
  width: 30px;
  height: 30px;
  color: var(--cq-green-700);
}

.side-upload-trigger span.main-text {
  font-size: 0.87rem;
  color: var(--cq-ink);
}

.side-upload-trigger span.sub-text {
  font-size: 0.72rem;
  color: var(--cq-muted);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust-badges-bar {
  padding: 18px 0 10px;
}

.trust-badges-grid {
  gap: 12px;
}

.trust-badge-item {
  padding: 14px 16px;
  border: 1px solid var(--cq-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.trust-badge-item:hover {
  transform: translateY(-2px);
  border-color: #a7f3d0;
  box-shadow: 0 14px 30px -22px rgba(4, 120, 87, 0.4);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cq-green-50);
  color: var(--cq-green-700);
}

.trust-text h4 {
  font-size: 0.86rem;
  line-height: 1.3;
}

.trust-text p {
  margin-top: 2px;
  color: var(--cq-muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Section headers + category grid
   -------------------------------------------------------------------------- */
.category-browse-section .section-head,
.bestseller-section .section-head {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-head h2,
.catalog-header h2,
.deals-header h2 {
  font-size: 1.38rem;
  margin-bottom: 4px;
}

.section-head p,
.catalog-header-title p,
.deals-header p {
  color: var(--cq-muted);
  font-size: 0.84rem;
}

.btn-view-all {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cq-green-50);
  color: var(--cq-green-700) !important;
  font-size: 0.78rem !important;
}

.btn-view-all:hover {
  background: #d1fae5;
}

.category-browse-section {
  padding: 28px 0 8px;
  background: transparent;
}

.category-grid-container {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 18px 14px;
}

.category-grid-item {
  min-width: 0;
}

.category-grid-img-wrap {
  width: 76px;
  height: 76px;
  margin-bottom: 9px;
  border: 1px solid var(--cq-line);
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.category-grid-item:hover .category-grid-img-wrap {
  border-color: #6ee7b7;
  background: var(--cq-green-50);
  box-shadow: 0 10px 22px -16px rgba(4, 120, 87, 0.5);
}

.category-grid-label {
  max-width: 100%;
  color: var(--cq-body);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.category-grid-item:hover .category-grid-label {
  color: var(--cq-green-700);
}

/* --------------------------------------------------------------------------
   Bestsellers / Deals cards
   -------------------------------------------------------------------------- */
.bestseller-section,
.deals-section {
  padding: 24px 0 6px;
}

.deals-timer {
  padding: 7px 14px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff5f6;
}

.bestseller-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 4px 0 10px;
}

.recently-viewed-section {
  padding: 8px 0 4px;
}

#recentlyViewedScroll {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Deals renders exactly 10 products: 5 per row keeps both rows full. */
#dealsScroll {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bs-card {
  min-width: 0;
  width: auto;
  flex: none;
  align-self: stretch;
  border: 1px solid var(--cq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.bs-card:hover {
  transform: translateY(-4px);
  border-color: #a7f3d0;
  box-shadow: 0 20px 34px -24px rgba(4, 120, 87, 0.45);
}

.bs-card-img-wrap {
  height: 150px;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.bs-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bs-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.bs-card-title {
  min-height: 2.7em;
  margin-bottom: 3px;
  color: var(--cq-ink);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.bs-card-desc {
  min-height: 1.25em;
  margin-bottom: 10px;
  color: var(--cq-muted);
  font-size: 0.7rem;
}

.bs-card-bottom {
  margin-top: auto;
  align-items: flex-end;
  gap: 8px;
}

.bs-price-current {
  color: var(--cq-ink);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.bs-price-mrp {
  color: var(--cq-muted);
  font-size: 0.68rem;
}

.bs-card-add {
  padding: 6px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: var(--cq-green-50);
  color: var(--cq-green-700);
  font-size: 0.7rem;
}

.bs-card-add:hover {
  background: var(--cq-green-700);
  border-color: var(--cq-green-700);
}

.bs-qty-stepper {
  border-radius: 10px;
  background: var(--cq-green-700);
}

.bs-badge {
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.6rem;
}

.bs-discount-tag {
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border: 0;
  border-radius: 7px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 0.62rem;
}

.bs-delivery-tag {
  right: 10px;
  bottom: 10px;
  left: auto;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cq-green-700);
  font-size: 0.6rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Catalog product cards
   -------------------------------------------------------------------------- */
.products-grid {
  gap: 18px;
  content-visibility: auto;
  contain-intrinsic-size: 300px 400px;
}

.product-card {
  padding: 14px;
  border: 1px solid var(--cq-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  will-change: transform, box-shadow;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: #a7f3d0;
  box-shadow: 0 12px 24px -10px rgba(4, 120, 87, 0.3);
}

.product-image-container {
  height: 190px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #eef3f8;
  border-radius: 14px;
  background: #f8fafc;
}

.product-image-container img {
  object-fit: contain;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.product-category-tag {
  margin-bottom: 5px;
  color: var(--cq-green-700);
  font-size: 0.66rem;
  letter-spacing: 0.6px;
}

.product-title {
  min-height: 2.7em;
  margin-bottom: 5px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.product-salt {
  margin-bottom: 6px;
  color: var(--cq-muted);
  font-size: 0.73rem;
  font-style: normal;
}

.product-company {
  margin: -2px 0 6px;
  color: var(--cq-muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-pack-size {
  margin-bottom: 10px;
  color: var(--cq-muted);
  font-size: 0.71rem;
}

.current-price {
  color: var(--cq-ink);
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.mrp-price {
  color: var(--cq-muted);
  font-size: 0.72rem;
}

.btn-add-cart {
  padding: 7px 16px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: var(--cq-green-50);
  color: var(--cq-green-700);
  font-size: 0.76rem;
}

.btn-add-cart:hover {
  background: var(--cq-green-700);
  border-color: var(--cq-green-700);
  box-shadow: 0 10px 18px -10px rgba(4, 120, 87, 0.6);
}

.card-badges-top {
  top: 10px;
  left: 10px;
  right: auto;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

/* Share lives in the quick-view sheet; the card itself stays uncluttered
   so the wishlist heart never collides with badges. */
.product-card .share-product-btn {
  display: none !important;
}

.card-badges-top .badge-discount,
.card-badges-top .badge-rx,
.card-badges-top .badge-boosted,
.card-badges-top .badge-cold {
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-discount,
.badge-rx,
.badge-boosted {
  padding: 3px 8px;
  font-size: 0.62rem;
}

.wishlist-heart-btn,
.share-product-btn {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   Sub-pages (products, categories, wishlist, account, orders…)
   -------------------------------------------------------------------------- */
.sh-page {
  padding-top: 24px;
}

/* Page header: accent bar + title, shared by every customer sub-page */
.sh-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.sh-page-title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cq-green-500), var(--cq-green-700));
  box-shadow: 0 4px 10px -4px rgba(4, 120, 87, 0.7);
}

.sh-page-subtitle {
  margin: 6px 0 22px 15px;
  color: var(--cq-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Buttons: larger size + tactile press state */
.sh-btn {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sh-btn:active {
  transform: translateY(1px) scale(0.985);
}

.sh-btn:focus-visible {
  outline: 2px solid var(--cq-green-500);
  outline-offset: 2px;
}

.sh-btn-primary {
  background: linear-gradient(135deg, var(--cq-green-600), var(--cq-green-700));
  box-shadow: 0 10px 20px -14px rgba(4, 120, 87, 0.9);
}

.sh-btn-primary:hover {
  background: linear-gradient(135deg, var(--cq-green-700), var(--cq-green-800));
  box-shadow: 0 14px 24px -14px rgba(4, 120, 87, 0.95);
}

.sh-btn-lg {
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 13px;
}

/* Login gates (orders / wallet / prescriptions / support) */
.sh-page .ord-login-prompt,
.sh-page .wallet-login-prompt,
.sh-page .rx-login-prompt,
.sh-page .sup-login-prompt {
  position: relative;
  max-width: 460px;
  margin: 8px auto 28px;
  padding: 40px 26px 36px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--cq-green-50) 100%);
  border: 1px solid var(--cq-line);
  border-radius: 22px;
  box-shadow: 0 28px 50px -42px rgba(15, 23, 42, 0.55);
  overflow: hidden;
}

.sh-page .ord-login-prompt::before,
.sh-page .wallet-login-prompt::before,
.sh-page .rx-login-prompt::before,
.sh-page .sup-login-prompt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cq-green-500), #0d9488);
}

.sh-gate-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--cq-line);
  color: var(--cq-green-700);
  box-shadow: 0 12px 24px -18px rgba(4, 120, 87, 0.9);
}

.sh-gate-icon svg { width: 28px; height: 28px; }

.sh-page .ord-login-prompt h3,
.sh-page .wallet-login-prompt h3,
.sh-page .rx-login-prompt h3,
.sh-page .sup-login-prompt h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--cq-ink);
  margin-bottom: 6px;
}

.sh-page .ord-login-prompt p,
.sh-page .wallet-login-prompt p,
.sh-page .rx-login-prompt p,
.sh-page .sup-login-prompt p {
  color: var(--cq-body);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto 20px;
}

.sh-page .ord-login-prompt .sh-btn,
.sh-page .wallet-login-prompt .sh-btn,
.sh-page .rx-login-prompt .sh-btn,
.sh-page .sup-login-prompt .sh-btn {
  min-width: 190px;
}

@media (max-width: 560px) {
  .sh-page-title { font-size: 1.4rem; }
  .sh-page-title::before { height: 20px; }
  .sh-page .ord-login-prompt,
  .sh-page .wallet-login-prompt,
  .sh-page .rx-login-prompt,
  .sh-page .sup-login-prompt { padding: 32px 20px 30px; }
}

.sh-card {
  border: 1px solid var(--cq-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Cart drawer recommendation rail: swipeable, but no native scrollbar */
.cart-recommendations-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cart-recommendations-scroll::-webkit-scrollbar {
  display: none;
}

.rec-item-card {
  border-radius: 12px;
  background: #f8fafc;
}

/* My Account — sign-in card + dashboard */
.acct-login {
  max-width: 440px;
  margin: 26px auto 40px;
  padding: 28px;
  border: 1px solid var(--cq-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 48px -34px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.acct-login::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cq-green-500), #0d9488);
}

.acct-login h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.acct-login p {
  margin-bottom: 22px;
  color: var(--cq-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.acct-field label {
  margin-bottom: 6px;
  color: var(--cq-body);
  font-size: 0.78rem;
}

.acct-field input {
  height: 46px;
  border: 1px solid var(--cq-line);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.acct-field input:focus {
  border-color: #6ee7b7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.acct-dashboard {
  max-width: 820px;
  margin: 0 auto;
}

.acct-profile-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #fff 60%);
  border-color: #d1fae5;
}

.acct-avatar {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, var(--cq-green-500), var(--cq-green-700));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(4, 120, 87, 0.7);
}

.acct-stat {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.acct-menu {
  gap: 2px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid var(--cq-line);
  border-radius: 16px;
  background: #fff;
}

.acct-menu-item {
  border-radius: 11px;
  padding: 13px 14px;
}

.acct-menu-item:hover {
  background: var(--cq-green-50);
}

/* products.html filter rail: no native scrollbar */
.prod-filters {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.prod-filters::-webkit-scrollbar {
  display: none;
}

.prod-filter-btn {
  padding: 9px 16px !important;
  border-color: var(--cq-line) !important;
  background: #fff !important;
  color: var(--cq-body) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.prod-filter-btn.active {
  background: var(--cq-green-800) !important;
  border-color: var(--cq-green-800) !important;
  color: #fff !important;
}

.prod-sort {
  border-color: var(--cq-line) !important;
  background: #fff !important;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 769px) {
  .category-grid-container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bestseller-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #dealsScroll {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #recentlyViewedScroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero-banner-card {
    padding: 36px 36px;
  }
}

@media (max-width: 768px) {
  .qc-delivery-banner {
    padding: 7px 12px;
    font-size: 0.66rem;
  }

  .qc-header-inner {
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .qc-search {
    height: 42px;
    border-radius: 12px;
  }

  .qc-categories {
    padding: 10px 0 8px;
  }

  .qc-categories-scroll {
    gap: 8px;
    padding: 0 12px;
  }

  .qc-categories-scroll .category-pill {
    padding: 8px 13px;
    font-size: 0.74rem;
  }

  .hero-section {
    padding: 16px 0 6px;
  }

  .hero-banner-card {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .hero-slide h2,
  .hero-banner-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 6.6vw, 1.8rem);
    line-height: 1.14;
  }

  .hero-slide p,
  .hero-banner-card p {
    margin-bottom: 18px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .hero-slide .hero-pill {
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .hero-dots {
    margin-top: 16px;
  }

  .trust-badges-bar {
    padding: 12px 0 4px;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trust-badge-item {
    min-height: 0;
    padding: 11px 12px;
    gap: 10px;
    border-radius: 14px;
    align-items: center;
  }

  .trust-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .trust-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .trust-text h4 {
    font-size: 0.73rem;
  }

  .trust-text p {
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .section-head h2,
  .catalog-header h2,
  .deals-header h2 {
    font-size: 1.16rem;
  }

  .section-head p,
  .catalog-header-title p,
  .deals-header p {
    font-size: 0.76rem;
  }

  .category-browse-section {
    padding: 20px 0 4px;
  }

  .category-grid-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .category-grid-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .category-grid-label {
    font-size: 0.68rem;
    line-height: 1.28;
  }

  .bestseller-section,
  .deals-section {
    padding: 18px 0 2px;
  }

  .deals-timer {
    padding: 5px 10px;
  }

  .timer-label {
    font-size: 0.66rem;
  }

  .timer-value {
    font-size: 0.82rem;
  }

  .bestseller-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #recentlyViewedScroll {
    display: flex;
    grid-template-columns: none;
  }

  .bestseller-scroll::-webkit-scrollbar {
    display: none;
  }

  .bs-card {
    flex: 0 0 164px;
    scroll-snap-align: start;
    border-radius: 16px;
  }

  .bs-card-img-wrap {
    height: 122px;
    padding: 10px;
  }

  .bs-card-body {
    padding: 10px 11px 12px;
  }

  .bs-card-title {
    min-height: 2.6em;
    font-size: 0.8rem;
  }

  .bs-card-desc {
    margin-bottom: 8px;
    font-size: 0.65rem;
  }

  .bs-price-current {
    font-size: 0.94rem;
  }

  .bs-card-add {
    padding: 5px 11px;
    font-size: 0.66rem;
  }

  .bs-delivery-tag {
    right: 8px;
    bottom: 8px;
    font-size: 0.56rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .current-price {
    font-size: 0.98rem !important;
  }

  .product-card {
    padding: 10px;
    border-radius: 16px;
  }

  .card-badges-top {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .badge-discount,
  .badge-rx,
  .badge-boosted,
  .badge-cold {
    max-width: none !important;
  }

  .badge-rx {
    padding: 3px 6px;
    font-size: 0.54rem;
  }

  .product-image-container {
    height: 138px;
    margin-bottom: 10px;
    padding: 7px;
    border-radius: 12px;
  }

  .product-title {
    min-height: 2.7em;
    font-size: 0.82rem;
  }

  .product-salt {
    font-size: 0.66rem;
  }

  .product-pack-size {
    font-size: 0.64rem;
    margin-bottom: 8px;
  }

  .current-price {
    font-size: 0.98rem;
  }

  .mrp-price {
    font-size: 0.64rem;
  }

  .btn-add-cart {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .qc-bottom-nav {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-top-color: var(--cq-line);
  }

  .sh-page {
    padding-top: 20px;
  }

  .sh-page-title {
    font-size: 1.28rem;
  }

  .acct-login {
    margin: 10px auto 28px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .acct-login h2 {
    font-size: 1.28rem;
  }

  .acct-dashboard {
    max-width: none;
  }

  .acct-profile-card {
    padding: 18px;
  }
}

@media (max-width: 380px) {
  .category-grid-container {
    gap: 12px 8px;
  }

  .category-grid-img-wrap {
    width: 58px;
    height: 58px;
  }

  .bs-card {
    flex-basis: 152px;
  }
}

/* ==========================================================================
   Add-to-cart feedback (rich toast + stepper pop)
   ========================================================================== */
.toast-item.toast-cart {
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 340px;
  padding: 10px 12px;
  border: 1px solid #d6f5e3;
  border-left: 4px solid #047857;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fffa 100%);
  box-shadow: 0 18px 40px -22px rgba(4, 120, 87, 0.55), 0 2px 10px -4px rgba(15, 23, 42, 0.12);
  animation: tcIn 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}

.toast-item.toast-cart.tc-out {
  animation: tcOut 0.26s ease forwards;
}

@keyframes tcIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes tcOut {
  to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

.tc-thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #e6f4ec;
  border-radius: 11px;
  background: #f1f7f4;
}

.tc-thumb img { width: 100%; height: 100%; object-fit: contain; }

.tc-body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }

.tc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #047857;
}

.tc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #047857;
  color: #fff;
  font-size: 0.6rem;
  line-height: 1;
}

.tc-view {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.tc-view:active { transform: scale(0.95); }

.tc-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 0.66rem;
  text-align: center;
}

@media (max-width: 520px) {
  .toast-item.toast-cart { max-width: none; width: 100%; }
}

/* ADD button flips into the quantity stepper with a small spring. Only the
   stepper that actually changed gets the class, so the rest of the grid
   stays still. */
.qty-pop { animation: dqQtyPop 0.36s cubic-bezier(0.2, 0.9, 0.25, 1.25) both; }

@keyframes dqQtyPop {
  0% { transform: scale(0.7); opacity: 0.4; }
  60% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); }
}

.btn-add-cart:active { transform: scale(0.94); }
.bs-card-add:active { transform: scale(0.94); }

/* ==========================================================================
   PRODUCT DETAIL SHEET (quick view) + SEARCH SUGGESTIONS
   Mobile-first: the sheet is a bottom card with a sticky buy bar, so the
   price / quantity / Add to cart are always reachable without scrolling.
   ========================================================================== */

#quickViewModal .modal-card.large {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
#quickViewModal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.qv-layout-container { align-items: start; }

.qv-image-section {
  position: relative;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 22px 18px 18px;
  min-height: 220px;
}
.qv-product-img { max-height: 240px; width: auto; }

.qv-badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.qv-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}
.qv-badge.rx { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.qv-badge.off { background: #059669; color: #fff; }
.qv-badge.out { background: #fee2e2; color: #b91c1c; }

.qv-eta {
  margin-top: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qv-title {
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.qv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qv-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}
.qv-chip.ghost { background: #fff; border: 1px solid #e2e8f0; color: #64748b; font-weight: 600; }
.qv-chip.ok { background: #ecfdf5; color: #047857; }
.qv-chip.warn { background: #fffbeb; color: #b45309; }
.qv-chip.danger { background: #fef2f2; color: #b91c1c; }

.qv-salt {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 12px;
}
.qv-salt b { color: #0f172a; }

.qv-price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  border: 1px solid #d1fae5;
  margin-bottom: 14px;
}
.qv-price-now { font-size: 1.7rem; font-weight: 800; color: #047857; line-height: 1; }
.qv-price-side { display: flex; flex-direction: column; gap: 2px; }
.qv-mrp { font-size: 0.82rem; color: #94a3b8; text-decoration: line-through; }
.qv-save { font-size: 0.78rem; font-weight: 800; color: #059669; }
.qv-tax { font-size: 0.68rem; color: #94a3b8; }

.qv-variants-wrap { margin-bottom: 14px; }
.qv-variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.qv-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-bottom: 12px;
}
.qv-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.qv-section-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 4px;
}
.qv-company { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; }
.qv-policy { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px; }
.qv-policy .qv-section-text { color: #7c2d12; }

.qv-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  margin: 4px 0 12px;
}

/* sticky buy bar */
.qv-action-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef2f7;
  background: #fff;
  border-radius: 0 0 20px 20px;
}
.qv-action-price { display: flex; flex-direction: column; line-height: 1.1; }
.qv-action-amount { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.qv-action-label { font-size: 0.62rem; color: #94a3b8; }

.qv-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d1fae5;
  background: #f0fdf4;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.qv-qty button {
  width: 38px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #047857;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}
.qv-qty button:active { background: #d1fae5; }
.qv-qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.qv-add-btn {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(4, 120, 87, 0.9);
}
.qv-add-btn[disabled] { background: #e2e8f0; color: #94a3b8; box-shadow: none; cursor: not-allowed; }

@media (max-width: 768px) {
  #quickViewModal.modal-overlay { align-items: flex-end; padding: 0; }
  #quickViewModal .modal-card.large {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
  #quickViewModal .modal-card.large .modal-header {
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 3;
  }
  .qv-image-section { min-height: 190px; padding: 18px 16px 14px; }
  .qv-product-img { max-height: 190px; }
  .qv-price-block { padding: 12px 14px; }
  .qv-price-now { font-size: 1.5rem; }
}

/* ---- search dropdown: matches, empty state, chips ---- */
.suggestion-name mark.dq-hit,
.qv-salt mark.dq-hit {
  background: #fef3c7;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.suggestion-salt mark.dq-hit { background: #ecfdf5; }

.suggestion-item { align-items: center; }
.suggestion-img-wrap { position: relative; flex-shrink: 0; }
.suggestion-img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #f8fafc; }
.suggestion-discount {
  position: absolute;
  bottom: -4px;
  left: -4px;
  font-size: 0.6rem;
  font-weight: 800;
  background: #059669;
  color: #fff;
  border-radius: 6px;
  padding: 1px 5px;
}
.suggestion-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.suggestion-price { font-weight: 800; color: #0f172a; }

.dq-search-more {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  color: #047857;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.dq-search-more:hover { background: #f0fdf4; }

.dq-search-empty { padding: 18px 14px; text-align: center; }
.dq-search-empty-icon { font-size: 1.6rem; margin-bottom: 6px; }
.dq-search-empty-title { font-size: 0.92rem; font-weight: 800; color: #0f172a; }
.dq-search-empty-sub { font-size: 0.78rem; color: #64748b; margin-top: 4px; line-height: 1.5; }
.dq-search-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.dq-chip {
  border: 1px solid #d1fae5;
  background: #f0fdf4;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   CART DRAWER — readable rows, real free-delivery progress, clear checkout bar
   ========================================================================== */

.dq-cart-eta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.dq-cart-eta b { font-weight: 800; color: var(--primary-700); }

[data-theme="dark"] .dq-cart-eta { background: rgba(16, 185, 129, 0.14); }
[data-theme="dark"] .dq-cart-eta b { color: var(--primary-200); }

.dq-cart-eta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: dqCartPulse 1.9s infinite;
}

@keyframes dqCartPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dq-cart-eta-tag {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dq-cart-progress { margin-top: 10px; }

.dq-cart-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.dq-cart-progress-head b { color: var(--primary-700); font-weight: 800; }
[data-theme="dark"] .dq-cart-progress-head b { color: var(--primary-200); }

.dq-cart-progress-pct {
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--primary-700);
  flex-shrink: 0;
}

.dq-cart-progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
}

.dq-cart-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #10b981);
  transition: width 0.35s ease;
}

.dq-cart-progress.is-unlocked .dq-cart-progress-head { color: #047857; font-weight: 700; }
.dq-cart-progress.is-unlocked .dq-cart-progress-fill { background: linear-gradient(90deg, #10b981, #06b6d4); }

/* --- item rows --- */
.dq-cart-row {
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
}

.dq-cart-thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  padding: 4px;
  background: #ffffff;
}

.dq-cart-info { min-width: 0; }

.dq-cart-row-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.dq-cart-title {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
}

.dq-cart-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-subtle);
  background: var(--bg-subtle);
  transition: background 0.18s ease, color 0.18s ease;
}

.dq-cart-remove:hover,
.dq-cart-remove:focus-visible {
  background: var(--danger-50);
  color: var(--danger-500);
}

.dq-cart-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 5px 0 8px;
}

.dq-cart-pack,
.dq-cart-variant,
.dq-cart-rx {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.dq-cart-rx {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

.dq-cart-variant {
  background: var(--primary-50);
  border-color: rgba(16, 185, 129, 0.28);
  color: var(--primary-700);
}

[data-theme="dark"] .dq-cart-variant { color: var(--primary-200); }

.dq-cart-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dq-cart-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.dq-cart-price-now {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.dq-cart-price-mrp {
  font-size: 0.74rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.dq-cart-unit {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.dq-cart-save {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
}

.dq-cart-qty button {
  min-width: 26px;
  min-height: 26px;
  padding: 2px 6px;
  font-size: 1rem;
  line-height: 1;
}

.dq-cart-qty span {
  min-width: 22px;
  font-size: 0.85rem;
}

/* --- footer actions --- */
.dq-cart-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.dq-cart-clear {
  width: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.dq-cart-checkout {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
}

.dq-cart-checkout-label {
  font-weight: 800;
  font-size: 0.9rem;
}

.dq-cart-checkout-amount {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

/* --- empty state --- */
.cart-empty-view .cart-empty-icon { opacity: 0.75; }
.cart-empty-view h4 { font-size: 1.02rem; }

@media (max-width: 480px) {
  .dq-cart-thumb { width: 56px; height: 56px; }
  .dq-cart-title { font-size: 0.82rem; }
  .dq-cart-price-now { font-size: 0.92rem; }
  .dq-cart-unit { font-size: 0.64rem; }
  .dq-cart-checkout { min-height: 48px; }
  .dq-cart-checkout-label { font-size: 0.85rem; }
}

/* --- coupon offers: comfy tap targets in the drawer strip --- */
.cart-drawer .available-coupons-strip {
  gap: 8px;
  padding: 2px 1px 6px;
  scroll-snap-type: x proximity;
}

.cart-drawer .coupon-pill-card {
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.74rem;
  gap: 6px;
  scroll-snap-align: start;
}

.cart-drawer .coupon-pill-card span.code { letter-spacing: 0.01em; }

.cart-drawer .coupon-input-wrap input { min-height: 42px; }

.cart-drawer .btn-apply-coupon { min-height: 42px; padding: 0 16px; }
