/*
Theme Name: OncoKart
Theme URI: https://oncokart.com
Author: OncoEasy Healthtech Pvt Ltd
Author URI: https://oncoeasy.com
Description: A feature-rich WooCommerce theme for OncoKart — India's oncology specialty pharmacy. Includes prescription upload, cold chain product handling, MOQ logic, CCAvenue payments, and OTP-based auth.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
WC requires at least: 8.0
WC tested up to: 8.9
License: Proprietary
Text Domain: oncokart
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --ok-primary:       #1a6b5a;   /* Deep teal - trust, health */
  --ok-primary-light: #28957b;
  --ok-primary-dark:  #0f4a3e;
  --ok-accent:        #f97316;   /* Warm orange - urgency, CTA */
  --ok-accent-light:  #fb923c;
  --ok-accent-dark:   #ea6700;

  /* Cold chain blue */
  --ok-cold:          #0ea5e9;
  --ok-cold-bg:       #e0f2fe;

  /* Rx purple */
  --ok-rx:            #7c3aed;
  --ok-rx-bg:         #ede9fe;

  /* Neutral */
  --ok-white:         #ffffff;
  --ok-off-white:     #f8faf9;
  --ok-gray-50:       #f0f4f3;
  --ok-gray-100:      #e2e8e6;
  --ok-gray-200:      #c5d1ce;
  --ok-gray-400:      #8ba8a2;
  --ok-gray-600:      #4d6b64;
  --ok-gray-800:      #1e3632;
  --ok-text:          #1a2e2b;
  --ok-text-muted:    #5a7872;

  /* Semantic */
  --ok-success:       #16a34a;
  --ok-warning:       #d97706;
  --ok-danger:        #dc2626;
  --ok-info:          #0284c7;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(26,107,90,0.08);
  --shadow-md:  0 4px 16px rgba(26,107,90,0.12);
  --shadow-lg:  0 12px 40px rgba(26,107,90,0.18);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --duration:   240ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ok-text);
  background: var(--ok-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ok-primary); text-decoration: none; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--ok-primary-light); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ok-gray-800);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }
small { font-size: 0.85rem; }

.text-muted { color: var(--ok-text-muted); }
.text-primary { color: var(--ok-primary); }
.text-accent { color: var(--ok-accent); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--sm { max-width: 800px; }
.container--md { max-width: 1080px; }

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--ok-primary);
  color: var(--ok-white);
  border-color: var(--ok-primary);
}
.btn--primary:hover {
  background: var(--ok-primary-dark);
  border-color: var(--ok-primary-dark);
  color: var(--ok-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--ok-accent);
  color: var(--ok-white);
  border-color: var(--ok-accent);
}
.btn--accent:hover {
  background: var(--ok-accent-dark);
  border-color: var(--ok-accent-dark);
  color: var(--ok-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--ok-primary);
  border-color: var(--ok-primary);
}
.btn--outline:hover {
  background: var(--ok-primary);
  color: var(--ok-white);
}

.btn--ghost {
  background: transparent;
  color: var(--ok-text-muted);
  border-color: var(--ok-gray-200);
}
.btn--ghost:hover {
  background: var(--ok-gray-50);
  color: var(--ok-text);
  border-color: var(--ok-gray-400);
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--cold {
  background: var(--ok-cold-bg);
  color: var(--ok-cold);
  border: 1px solid rgba(14,165,233,0.3);
}
.badge--rx {
  background: var(--ok-rx-bg);
  color: var(--ok-rx);
  border: 1px solid rgba(124,58,237,0.3);
}
.badge--moq {
  background: #fff7ed;
  color: var(--ok-accent-dark);
  border: 1px solid rgba(249,115,22,0.3);
}
.badge--sale {
  background: #fef2f2;
  color: var(--ok-danger);
  border: 1px solid rgba(220,38,38,0.3);
}
.badge--new {
  background: #f0fdf4;
  color: var(--ok-success);
  border: 1px solid rgba(22,163,74,0.3);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--ok-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ok-gray-100);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ok-gray-600);
  margin-bottom: 6px;
}
.form-label span.required { color: var(--ok-danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ok-gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ok-text);
  background: var(--ok-white);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.form-control:focus {
  outline: none;
  border-color: var(--ok-primary);
  box-shadow: 0 0 0 4px rgba(26,107,90,0.1);
}
.form-control::placeholder { color: var(--ok-gray-400); }
.form-control.error { border-color: var(--ok-danger); }

.form-hint {
  font-size: 0.82rem;
  color: var(--ok-text-muted);
  margin-top: 5px;
}
.form-error {
  font-size: 0.82rem;
  color: var(--ok-danger);
  margin-top: 5px;
}

/* OTP Input */
.otp-inputs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}
.otp-inputs input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--ok-gray-200);
  border-radius: var(--radius-md);
  color: var(--ok-text);
  background: var(--ok-off-white);
  transition: all var(--duration) var(--ease-out);
}
.otp-inputs input:focus {
  border-color: var(--ok-primary);
  background: var(--ok-white);
  box-shadow: 0 0 0 4px rgba(26,107,90,0.1);
  outline: none;
}
.otp-inputs input.filled {
  border-color: var(--ok-primary);
  background: rgba(26,107,90,0.06);
  color: var(--ok-primary);
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.9rem;
  border-left: 4px solid;
}
.alert--info {
  background: #eff6ff;
  border-color: var(--ok-info);
  color: #1e40af;
}
.alert--warning {
  background: #fffbeb;
  border-color: var(--ok-warning);
  color: #92400e;
}
.alert--success {
  background: #f0fdf4;
  border-color: var(--ok-success);
  color: #14532d;
}
.alert--cold {
  background: var(--ok-cold-bg);
  border-color: var(--ok-cold);
  color: #0c4a6e;
}
.alert--rx {
  background: var(--ok-rx-bg);
  border-color: var(--ok-rx);
  color: #3b0764;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--ok-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ok-gray-100);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--ok-primary-light);
}

.product-card__badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--ok-gray-50);
  overflow: hidden;
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform 400ms var(--ease-out);
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.05); }

.product-card__quick-actions {
  position: absolute;
  right: var(--space-md);
  top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--duration) var(--ease-out);
}
.product-card:hover .product-card__quick-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card__quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ok-white);
  border: 1px solid var(--ok-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ok-gray-600);
  font-size: 1rem;
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.product-card__quick-btn:hover { background: var(--ok-primary); color: var(--ok-white); border-color: var(--ok-primary); }

.product-card__body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ok-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.product-card__name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ok-text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__manufacturer {
  font-size: 0.8rem;
  color: var(--ok-text-muted);
  margin-bottom: var(--space-sm);
}

.product-card__moq-notice {
  background: #fff7ed;
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--ok-accent-dark);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  margin-top: auto;
  padding-top: var(--space-sm);
}
.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ok-primary-dark);
}
.product-card__price-old {
  font-size: 0.9rem;
  color: var(--ok-text-muted);
  text-decoration: line-through;
}
.product-card__discount {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ok-success);
}

.product-card__footer {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  gap: var(--space-sm);
}
.product-card__footer .btn { flex: 1; font-size: 0.88rem; padding: 10px 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ok-white);
  border-bottom: 1px solid var(--ok-gray-100);
}

/* Top Bar */
.header-topbar {
  background: var(--ok-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 7px 0;
  font-size: 0.82rem;
}
.header-topbar a { color: rgba(255,255,255,0.85); }
.header-topbar a:hover { color: var(--ok-white); }
.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.header-topbar__left { display: flex; align-items: center; gap: var(--space-lg); }
.header-topbar__right { display: flex; align-items: center; gap: var(--space-md); }
.header-topbar__item { display: flex; align-items: center; gap: 5px; }

/* Main Header */
.header-main {
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--ok-gray-100);
}
.header-main__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.site-logo__mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ok-primary), var(--ok-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -1px;
  box-shadow: 0 2px 8px rgba(26,107,90,0.3);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ok-primary-dark);
  letter-spacing: -0.5px;
}
.site-logo__tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ok-text-muted);
  font-weight: 600;
  margin-top: 1px;
}

/* Search */
.header-search {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.header-search__input {
  width: 100%;
  padding: 12px 56px 12px 20px;
  border: 2px solid var(--ok-gray-100);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  background: var(--ok-gray-50);
}
.header-search__input:focus {
  border-color: var(--ok-primary);
  background: var(--ok-white);
  box-shadow: 0 0 0 4px rgba(26,107,90,0.08);
  outline: none;
}
.header-search__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--ok-primary);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--duration) var(--ease-out);
}
.header-search__btn:hover { background: var(--ok-primary-dark); }

.header-search__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--ok-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ok-gray-100);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.header-search:focus-within .header-search__suggestions { display: block; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--ok-gray-600);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  border: none;
  background: none;
}
.header-action-btn:hover { color: var(--ok-primary); background: var(--ok-gray-50); }
.header-action-btn .icon { font-size: 1.4rem; }
.header-action-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--ok-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.header-action-btn--rx {
  background: var(--ok-rx-bg);
  color: var(--ok-rx);
  border: 1px solid rgba(124,58,237,0.2);
}
.header-action-btn--rx:hover { background: var(--ok-rx); color: white; }

/* Nav Bar */
.header-nav {
  background: var(--ok-primary-dark);
  padding: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.1);
  color: var(--ok-white);
}
.nav-link--highlight {
  background: var(--ok-accent) !important;
  color: var(--ok-white) !important;
  font-weight: 600;
}
.nav-link--highlight:hover { background: var(--ok-accent-dark) !important; }

/* Mega dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ok-white);
  border: 1px solid var(--ok-gray-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms var(--ease-out);
  z-index: 100;
  padding: var(--space-sm) 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px var(--space-lg);
  font-size: 0.9rem;
  color: var(--ok-text);
  transition: all var(--duration) var(--ease-out);
}
.nav-dropdown a:hover { background: var(--ok-gray-50); color: var(--ok-primary); padding-left: 24px; }

/* ============================================================
   MOBILE HEADER
   ============================================================ */
@media (max-width: 768px) {
  .header-topbar { display: none; }
  .header-main__inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm);
    padding: 12px 0;
  }
  .header-search { display: none; }
  .header-nav { display: none; }
  .site-logo__tagline { display: none; }
  .site-logo__name { font-size: 1.2rem; }

  .header-action-btn span.label { display: none; }
  .header-action-btn { padding: 8px; }

  /* Mobile search bar below header */
  .mobile-search-bar {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--ok-gray-100);
    background: var(--ok-white);
  }
  .mobile-search-bar .header-search { display: flex; max-width: 100%; }
}

@media (min-width: 769px) {
  .mobile-search-bar { display: none; }
  .mobile-bottom-nav { display: none; }
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ok-white);
  border-top: 2px solid var(--ok-gray-100);
  display: flex;
  align-items: stretch;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  color: var(--ok-gray-400);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out);
  border: none;
  background: none;
  position: relative;
}
.mobile-bottom-nav__item.active,
.mobile-bottom-nav__item:hover { color: var(--ok-primary); }
.mobile-bottom-nav__item .icon { font-size: 1.4rem; }
.mobile-bottom-nav__item .badge-count {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: var(--ok-accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.mobile-bottom-nav__item--rx {
  background: linear-gradient(135deg, var(--ok-rx-bg), rgba(124,58,237,0.05));
}
.mobile-bottom-nav__item--rx.active,
.mobile-bottom-nav__item--rx:hover { color: var(--ok-rx); }

/* ============================================================
   HERO SECTION (Desktop)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--ok-primary-dark) 0%, var(--ok-primary) 60%, var(--ok-primary-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
}
.hero__content { color: white; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.9);
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}
.hero__title em {
  font-style: normal;
  color: rgba(255,200,80,0.95);
}
.hero__description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 500px;
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__actions .btn--accent { box-shadow: 0 4px 20px rgba(249,115,22,0.4); }
.hero__actions .btn--outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.hero__actions .btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.hero__trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.hero__trust-item .icon { font-size: 1.1rem; color: rgba(255,255,255,0.9); }

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Rx Upload CTA Card in Hero */
.hero__rx-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}
.hero__rx-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.hero__rx-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-md);
}
.hero__rx-card h3 { color: white; font-size: 1.3rem; margin-bottom: var(--space-sm); }
.hero__rx-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }

/* ============================================================
   MOBILE HERO
   ============================================================ */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
  }
  .hero { min-height: auto; }
  .hero__visual { display: none; }
  .hero__title { font-size: 1.7rem; }
  .hero__description { font-size: 0.95rem; }

  /* Mobile hero banner swiper */
  .mobile-hero-banner {
    background: linear-gradient(135deg, var(--ok-primary-dark), var(--ok-primary));
    padding: var(--space-lg) var(--space-md);
    color: white;
  }

  /* Mobile quick actions */
  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    margin: var(--space-md);
    box-shadow: var(--shadow-card);
  }
  .mobile-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration) var(--ease-out);
    text-align: center;
  }
  .mobile-quick-action:hover { background: var(--ok-gray-50); }
  .mobile-quick-action__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
  }
  .mobile-quick-action__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ok-text-muted);
    line-height: 1.2;
  }
}

@media (min-width: 769px) {
  .mobile-hero-banner,
  .mobile-quick-actions { display: none; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}
.section-header__left { flex: 1; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--ok-accent);
  border-radius: var(--radius-pill);
}
.section-subtitle { color: var(--ok-text-muted); font-size: 0.95rem; margin-top: var(--space-sm); }
.section-link { color: var(--ok-primary); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.section-link:hover { color: var(--ok-accent); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--ok-white);
  border: 2px solid var(--ok-gray-100);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-align: center;
  text-decoration: none;
  color: var(--ok-text);
}
.category-tile:hover {
  border-color: var(--ok-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--ok-primary);
}
.category-tile__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.category-tile__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}
.category-tile__count { font-size: 0.72rem; color: var(--ok-text-muted); }

/* ============================================================
   PROMOTIONAL BANNERS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo-banner--large { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .promo-grid { grid-template-columns: 1fr; }
}

.promo-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out);
  text-decoration: none;
}
.promo-banner:hover { transform: scale(1.02); }
.promo-banner--large { min-height: 320px; }
.promo-banner__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.promo-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  color: white;
}
.promo-banner__tag {
  display: inline-block;
  background: var(--ok-accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}
.promo-banner__title { font-size: 1.2rem; color: white; margin-bottom: 4px; }
.promo-banner--large .promo-banner__title { font-size: 1.8rem; }
.promo-banner__desc { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ============================================================
   COLD CHAIN SECTION
   ============================================================ */
.cold-chain-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 2px solid rgba(14,165,233,0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.cold-chain-section::before {
  content: '❄';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 8rem;
  opacity: 0.07;
  user-select: none;
}
.cold-chain-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.cold-chain-section__icon {
  width: 56px;
  height: 56px;
  background: rgba(14,165,233,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ok-cold);
  border: 2px solid rgba(14,165,233,0.3);
  flex-shrink: 0;
}
.cold-chain-notice {
  background: white;
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}
.cold-chain-notice strong { color: var(--ok-cold); }

/* ============================================================
   RX UPLOAD MODULE
   ============================================================ */
.rx-upload-section {
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  border: 2px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rx-upload-section::before {
  content: '℞';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 9rem;
  opacity: 0.05;
  color: var(--ok-rx);
  font-family: var(--font-display);
  user-select: none;
}

.rx-upload-zone {
  border: 3px dashed rgba(124,58,237,0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  position: relative;
}
.rx-upload-zone:hover,
.rx-upload-zone.dragover {
  border-color: var(--ok-rx);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 6px rgba(124,58,237,0.08);
}
.rx-upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.rx-upload-zone__icon {
  width: 80px;
  height: 80px;
  background: var(--ok-rx-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-md);
  border: 3px solid rgba(124,58,237,0.2);
}
.rx-upload-zone h3 { color: var(--ok-rx); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-sm); }
.rx-upload-zone p { color: var(--ok-text-muted); font-size: 0.9rem; margin-bottom: var(--space-md); }
.rx-upload-zone__formats {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.rx-upload-zone__format {
  background: white;
  border: 1px solid var(--ok-gray-200);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok-text-muted);
}

.rx-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.rx-preview-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--ok-gray-100);
}
.rx-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rx-preview-item__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(220,38,38,0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rx-info-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.rx-info-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: left;
}
.rx-info-step__num {
  width: 32px;
  height: 32px;
  background: var(--ok-rx);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rx-info-step__content h5 { font-family: var(--font-body); font-weight: 700; margin-bottom: 3px; font-size: 0.9rem; }
.rx-info-step__content p { font-size: 0.82rem; color: var(--ok-text-muted); margin: 0; }

/* ============================================================
   MOQ (MINIMUM ORDER QUANTITY) UI
   ============================================================ */
.moq-selector {
  background: #fff7ed;
  border: 2px solid rgba(249,115,22,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.moq-selector__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ok-accent-dark);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.moq-selector__options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.moq-option {
  padding: 8px 16px;
  border: 2px solid var(--ok-gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease-out);
  background: white;
  color: var(--ok-text);
}
.moq-option:hover { border-color: var(--ok-accent); color: var(--ok-accent-dark); }
.moq-option.active {
  border-color: var(--ok-accent);
  background: var(--ok-accent);
  color: white;
}
.moq-option .moq-savings {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.8;
}
.moq-warning {
  font-size: 0.8rem;
  color: var(--ok-accent-dark);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   QUANTITY INPUT
   ============================================================ */
.qty-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--ok-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--ok-gray-50);
  border: none;
  font-size: 1.2rem;
  color: var(--ok-text);
  cursor: pointer;
  transition: background var(--duration) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.qty-btn:hover { background: var(--ok-primary); color: white; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-input input[type=number] {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--ok-gray-200);
  border-right: 2px solid var(--ok-gray-200);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ok-text);
  padding: 0 var(--space-sm);
  height: 44px;
  -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 26, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms var(--ease-out);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--ok-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms var(--ease-out);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal__header {
  background: linear-gradient(135deg, var(--ok-primary-dark), var(--ok-primary));
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  color: white;
  text-align: center;
  position: relative;
}
.modal__logo {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-display);
  margin: 0 auto var(--space-md);
}
.modal__title { font-size: 1.4rem; color: white; margin-bottom: 6px; }
.modal__subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin: 0; }
.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: background var(--duration) var(--ease-out);
}
.modal__close:hover { background: rgba(255,255,255,0.3); }

.modal__body { padding: var(--space-xl); }

.auth-tabs {
  display: flex;
  background: var(--ok-gray-50);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-xl);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ok-text-muted);
  transition: all var(--duration) var(--ease-out);
  border: none;
  background: none;
}
.auth-tab.active {
  background: var(--ok-white);
  color: var(--ok-primary);
  box-shadow: var(--shadow-sm);
}

.auth-step { display: none; }
.auth-step.active { display: block; }

.phone-input-group {
  display: flex;
  gap: var(--space-sm);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border: 2px solid var(--ok-gray-100);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ok-text);
  background: var(--ok-gray-50);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-input-group .form-control { flex: 1; }

.otp-resend {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.88rem;
  color: var(--ok-text-muted);
}
.otp-resend button {
  background: none;
  border: none;
  color: var(--ok-primary);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
}
.otp-resend button:disabled { color: var(--ok-text-muted); cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--ok-text-muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ok-gray-100);
}

/* ============================================================
   CHECKOUT - COLD CHAIN NOTICE
   ============================================================ */
.checkout-cold-notice {
  background: var(--ok-cold-bg);
  border: 2px solid rgba(14,165,233,0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.checkout-cold-notice__icon {
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--ok-cold);
}
.checkout-cold-notice h4 { color: #0369a1; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.checkout-cold-notice p { color: #0c4a6e; font-size: 0.9rem; margin: 0; }

/* Payment Method - prepaid only for cold chain */
.payment-method-card {
  border: 2px solid var(--ok-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.payment-method-card.active {
  border-color: var(--ok-primary);
  background: rgba(26,107,90,0.03);
}
.payment-method-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--ok-gray-50);
}
.payment-method-card input[type=radio] { accent-color: var(--ok-primary); width: 18px; height: 18px; }
.payment-method-card__label { flex: 1; }
.payment-method-card__name { font-weight: 600; font-size: 0.95rem; }
.payment-method-card__desc { font-size: 0.82rem; color: var(--ok-text-muted); }
.payment-method-card__logos {
  display: flex;
  gap: 6px;
  align-items: center;
}
.payment-logo {
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--ok-gray-100);
  padding: 2px 6px;
  background: white;
}

/* ============================================================
   CART
   ============================================================ */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--ok-gray-100);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--ok-gray-50);
  padding: 8px;
  border: 1px solid var(--ok-gray-100);
}
.cart-item__name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item__meta { font-size: 0.82rem; color: var(--ok-text-muted); }
.cart-item__moq-warn {
  font-size: 0.78rem;
  color: var(--ok-accent-dark);
  background: #fff7ed;
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 4px;
  display: inline-block;
}
.cart-item__price-col { text-align: right; }
.cart-item__price { font-size: 1.1rem; font-weight: 700; color: var(--ok-primary-dark); }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--ok-text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 4px;
  padding: 0;
  text-decoration: underline;
}
.cart-item__remove:hover { color: var(--ok-danger); }

/* Order Summary */
.order-summary {
  background: var(--ok-off-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}
.order-summary__title { font-size: 1.2rem; margin-bottom: var(--space-lg); font-family: var(--font-body); font-weight: 700; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ok-gray-100);
  font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row--total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ok-text);
  border-top: 2px solid var(--ok-gray-200);
  padding-top: var(--space-md);
  margin-top: 4px;
}
.summary-row .savings { color: var(--ok-success); font-weight: 600; }
.coupon-input {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.coupon-input .form-control { flex: 1; padding: 10px 14px; font-size: 0.9rem; }
.coupon-input .btn { padding: 10px 16px; font-size: 0.88rem; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ok-gray-800);
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-3xl);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
}
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
}

.footer-brand .site-logo__name { color: white; }
.footer-brand .site-logo__tagline { color: rgba(255,255,255,0.5); }
.footer-about {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: var(--space-md) 0;
  color: rgba(255,255,255,0.6);
}
.footer-trust-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.footer-trust-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.footer-col h5 {
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--duration) var(--ease-out);
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }
.footer-payment-logos {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.footer-payment-logo {
  height: 22px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1) invert(1);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--ok-gray-50);
  border-top: 1px solid var(--ok-gray-100);
  border-bottom: 1px solid var(--ok-gray-100);
  padding: var(--space-lg) 0;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.trust-item__icon {
  width: 44px;
  height: 44px;
  background: var(--ok-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}
.trust-item__text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ok-text); }
.trust-item__text span { font-size: 0.78rem; color: var(--ok-text-muted); }

/* ============================================================
   MOBILE SPECIFIC COMPONENTS
   ============================================================ */
@media (max-width: 768px) {
  /* Category scroll on mobile */
  .category-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-md) 0;
    gap: var(--space-sm);
  }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-tile {
    flex-shrink: 0;
    width: 100px;
    scroll-snap-align: start;
    padding: var(--space-md) var(--space-sm);
  }

  /* Mobile section */
  .section-padding { padding: var(--space-xl) 0; }
  .section-header { margin-bottom: var(--space-lg); }

  /* Bottom padding for bottom nav */
  body { padding-bottom: 72px; }

  /* Cart item compact */
  .cart-item { grid-template-columns: 64px 1fr auto; gap: var(--space-sm); padding: var(--space-md); }
  .cart-item__image { width: 64px; height: 64px; }

  /* Footer on mobile */
  .footer-main { gap: var(--space-lg); }
  .site-footer { margin-top: var(--space-xl); padding-bottom: 80px; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}
@media (max-width: 480px) {
  .toast-container { right: var(--space-sm); left: var(--space-sm); }
}
.toast {
  background: var(--ok-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  pointer-events: all;
  animation: toastIn 300ms var(--ease-out);
  max-width: 360px;
}
.toast--success { border-color: var(--ok-success); }
.toast--error { border-color: var(--ok-danger); }
.toast--info { border-color: var(--ok-info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.section-padding { padding: var(--space-2xl) 0; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-bottom-nav { display: none; }
}
