/* =====================================================
   E-Commerce Storefront — Multi-Theme Edition v2.0
   7 Professional Themes: General · Grocery · Organic
   Restaurant · Pharmacy · Brand/Luxe · Gadgets
===================================================== */

/* ── Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

/* ── Design Tokens (Default = General Blue Theme) ─── */
:root {
  --ecom-primary:           #2563eb;
  --ecom-primary-dark:      #1d4ed8;
  --ecom-primary-light:     #dbeafe;
  --ecom-primary-rgb:       37, 99, 235;
  --ecom-accent:            #f59e0b;
  --ecom-accent-dark:       #d97706;
  --ecom-danger:            #dc2626;
  --ecom-danger-light:      #fef2f2;
  --ecom-success:           #16a34a;
  --ecom-success-light:     #f0fdf4;
  --ecom-bg:                #ffffff;
  --ecom-soft:              #f0f4ff;
  --ecom-surface:           #f8fafc;
  --ecom-text:              #0f172a;
  --ecom-text-2:            #334155;
  --ecom-muted:             #64748b;
  --ecom-subtle:            #94a3b8;
  --ecom-border:            #e2e8f0;
  --ecom-border-strong:     #cbd5e1;
  --ecom-topbar-bg:         #0f172a;
  --ecom-topbar-text:       #cbd5e1;
  --ecom-topbar-link:       #94a3b8;
  --ecom-header-bg:         #ffffff;
  --ecom-header-shadow:     0 1px 0 #e2e8f0;
  --ecom-nav-bg:            #ffffff;
  --ecom-nav-border:        #e2e8f0;
  --ecom-catbtn-bg:         #2563eb;
  --ecom-catbtn-color:      #ffffff;
  --ecom-hero-bg:           linear-gradient(135deg,#eff6ff 0%,#ffffff 50%,#f0fdf4 100%);
  --ecom-hero-border:       #e2e8f0;
  --ecom-card-bg:           #ffffff;
  --ecom-card-border:       #e2e8f0;
  --ecom-card-radius:       10px;
  --ecom-card-hover-shadow: 0 8px 24px rgba(37,99,235,.12);
  --ecom-footer-bg:         #0f172a;
  --ecom-footer-border:     rgba(255,255,255,.08);
  --ecom-footer-text:       #94a3b8;
  --ecom-footer-head:       #f1f5f9;
  --ecom-input-bg:          #ffffff;
  --ecom-input-border:      #cbd5e1;
  --ecom-shadow-xs:         0 1px 2px rgba(15,23,42,.05);
  --ecom-shadow-sm:         0 1px 6px rgba(15,23,42,.07);
  --ecom-shadow:            0 4px 18px rgba(15,23,42,.09);
  --ecom-shadow-lg:         0 12px 40px rgba(15,23,42,.13);
  --ecom-radius-sm:         6px;
  --ecom-radius:            10px;
  --ecom-radius-lg:         16px;
  --ecom-radius-full:       9999px;
  --ecom-ease:              cubic-bezier(.4,0,.2,1);
  --ecom-fast:              .12s;
  --ecom-mid:               .2s;
  --ecom-slow:              .32s;
  --ecom-font:              'Inter','Segoe UI',system-ui,sans-serif;
  --ecom-font-display:      'Inter','Segoe UI',system-ui,sans-serif;
}

/* ── Base Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--ecom-font);
  font-size: 15px;
  color: var(--ecom-text);
  background: var(--ecom-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ecom-primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ecom-primary); outline-offset: 2px; }
button:focus-visible { outline: 2px solid var(--ecom-primary); outline-offset: 2px; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Layout ────────────────────────────────────────── */
.ecom-container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Announcement Bar ──────────────────────────────── */
.ecom-announce {
  background: var(--ecom-primary);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  letter-spacing: .02em;
}
.ecom-announce a { color: rgba(255,255,255,.85); text-decoration: underline; }
.ecom-announce a:hover { color: #fff; }

/* ── Header (sticky) ───────────────────────────────── */
.ecom-header {
  background: var(--ecom-header-bg);
  box-shadow: var(--ecom-header-shadow);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ── Topbar ─────────────────────────────────────────── */
.ecom-topbar {
  background: var(--ecom-topbar-bg);
  color: var(--ecom-topbar-text);
  font-size: 13px;
}
.ecom-topbar .ecom-container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.ecom-topbar span { display: inline-flex; align-items: center; gap: 5px; }
.ecom-topbar span i { opacity: .6; font-size: 12px; }
.ecom-topbar a { color: var(--ecom-topbar-link); transition: color var(--ecom-fast); }
.ecom-topbar a:hover { color: #fff; }

/* ── Main Bar ───────────────────────────────────────── */
.ecom-mainbar {
  min-height: 80px;
  display: grid;
  grid-template-columns: 260px minmax(260px,1fr) auto;
  align-items: center;
  gap: 24px;
}
.ecom-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--ecom-text);
  transition: opacity var(--ecom-mid);
}
.ecom-brand:hover { opacity: .82; color: var(--ecom-text); }
.ecom-brand-logo-img {
  max-height: 48px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}
.ecom-brand-mark {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ecom-radius);
  color: #fff;
  background: var(--ecom-primary);
  font-size: 17px;
  flex-shrink: 0;
  transition: background var(--ecom-mid);
}

/* ── Search ─────────────────────────────────────────── */
.ecom-search { position: relative; display: flex; }
.ecom-search input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--ecom-border);
  border-right: 0;
  border-radius: var(--ecom-radius) 0 0 var(--ecom-radius);
  padding: 0 16px;
  outline: 0;
  background: var(--ecom-input-bg);
  color: var(--ecom-text);
  transition: border-color var(--ecom-fast);
}
.ecom-search input:focus { border-color: var(--ecom-primary); }
.ecom-search button {
  width: 58px;
  border: 0;
  border-radius: 0 var(--ecom-radius) var(--ecom-radius) 0;
  background: var(--ecom-accent);
  color: #111827;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--ecom-mid);
}
.ecom-search button:hover { background: var(--ecom-accent-dark); }
.ecom-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 30;
  background: #fff;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  box-shadow: var(--ecom-shadow-lg);
  overflow: hidden;
}
.ecom-search-results a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ecom-border);
  transition: background var(--ecom-fast);
}
.ecom-search-results a:hover { background: var(--ecom-soft); }
.ecom-search-results a:last-child { border-bottom: 0; }
.ecom-search-results a small { display: block; font-size: 12px; color: var(--ecom-muted); }
.ecom-search-results img { width: 52px; height: 52px; object-fit: contain; background: var(--ecom-soft); border-radius: var(--ecom-radius-sm); }

/* ── Header Actions ─────────────────────────────────── */
.ecom-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.ecom-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--ecom-radius);
  font-size: 14px;
  transition: background var(--ecom-fast), color var(--ecom-fast);
}
.ecom-actions > a:hover { background: var(--ecom-soft); color: var(--ecom-primary); }
.ecom-cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  background: var(--ecom-card-bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: border-color var(--ecom-mid), box-shadow var(--ecom-mid);
}
.ecom-cart-toggle:hover {
  border-color: var(--ecom-primary);
  box-shadow: 0 0 0 3px rgba(var(--ecom-primary-rgb),.1);
}
.ecom-cart-toggle strong {
  min-width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-primary);
  color: #fff;
  font-size: 12px;
}

/* ── Nav Bar ────────────────────────────────────────── */
.ecom-nav {
  border-top: 1px solid var(--ecom-border);
  background: var(--ecom-nav-bg);
}
.ecom-nav .ecom-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 52px;
}
.ecom-nav .ecom-container > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 52px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ecom-text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--ecom-fast), border-color var(--ecom-fast);
}
.ecom-nav .ecom-container > a:hover { color: var(--ecom-primary); border-bottom-color: var(--ecom-primary); }
.ecom-category-button {
  height: 52px;
  min-width: 240px;
  border: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ecom-catbtn-bg);
  color: var(--ecom-catbtn-color);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--ecom-fast);
}
.ecom-category-button:hover { opacity: .9; }
.ecom-category-menu {
  position: absolute;
  z-index: 25;
  top: 52px; left: 0;
  width: 280px;
  background: #fff;
  border: 1.5px solid var(--ecom-border);
  border-top: 0;
  box-shadow: var(--ecom-shadow-lg);
  border-radius: 0 0 var(--ecom-radius) var(--ecom-radius);
  display: none;
}
.ecom-nav:hover .ecom-category-menu { display: block; }
.ecom-category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ecom-border);
  color: var(--ecom-text-2);
  font-size: 14px;
  transition: background var(--ecom-fast), color var(--ecom-fast), padding-left var(--ecom-fast);
}
.ecom-category-menu a:hover { background: var(--ecom-soft); color: var(--ecom-primary); padding-left: 22px; }
.ecom-category-menu a:last-child { border-bottom: 0; }

/* ── Hero Section ───────────────────────────────────── */
.ecom-hero {
  background: var(--ecom-hero-bg);
  border-bottom: 1px solid var(--ecom-hero-border);
}
.ecom-hero-grid {
  min-height: 440px;
  display: grid;
  grid-template-columns: 260px minmax(280px,1fr) 340px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}
.ecom-hero-cats {
  background: var(--ecom-card-bg);
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  box-shadow: var(--ecom-shadow);
  overflow: hidden;
  align-self: stretch;
}
.ecom-hero-cats h3 {
  margin: 0;
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ecom-muted);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-hero-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ecom-border);
  font-size: 14px;
  transition: background var(--ecom-fast), color var(--ecom-fast), padding-left var(--ecom-fast);
}
.ecom-hero-cats a:hover { background: var(--ecom-soft); color: var(--ecom-primary); padding-left: 22px; }
.ecom-hero-cats a:last-child { border-bottom: 0; }
.ecom-hero-cats small {
  min-width: 26px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-soft);
  font-size: 11px;
  color: var(--ecom-muted);
}
.ecom-hero-copy { padding: 10px 0; }
.ecom-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--ecom-radius-full);
  background: rgba(var(--ecom-primary-rgb),.1);
  color: var(--ecom-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(var(--ecom-primary-rgb),.2);
}
.ecom-hero-copy h1 {
  max-width: 590px;
  margin: 0 0 16px;
  font-family: var(--ecom-font-display);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--ecom-text);
}
.ecom-hero-copy p {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--ecom-muted);
  font-size: 17px;
  line-height: 1.65;
}
.ecom-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ecom-hero-actions a,
.ecom-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--ecom-radius);
  background: var(--ecom-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--ecom-mid), transform var(--ecom-mid), box-shadow var(--ecom-mid);
}
.ecom-hero-actions a:hover,
.ecom-primary:hover {
  background: var(--ecom-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ecom-card-hover-shadow);
}
.ecom-hero-actions a:nth-child(2) { background: var(--ecom-text); }
.ecom-hero-actions a:nth-child(2):hover { background: #1e293b; box-shadow: none; }
.ecom-hero-products { display: grid; gap: 12px; }
.ecom-hero-products a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--ecom-card-bg);
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  box-shadow: var(--ecom-shadow-sm);
  transition: box-shadow var(--ecom-mid), transform var(--ecom-mid), border-color var(--ecom-mid);
}
.ecom-hero-products a:hover { box-shadow: var(--ecom-shadow); transform: translateX(4px); border-color: var(--ecom-primary); color: var(--ecom-text); }
.ecom-hero-products img { width: 96px; height: 86px; object-fit: contain; background: var(--ecom-soft); border-radius: var(--ecom-radius-sm); }
.ecom-hero-products span { display: block; font-weight: 700; font-size: 14px; }
.ecom-hero-products strong { display: block; color: var(--ecom-primary); font-size: 16px; font-weight: 800; margin-top: 4px; }

/* ── Sections ───────────────────────────────────────── */
.ecom-section { padding: 60px 0; }
.ecom-band { background: var(--ecom-soft); }
.ecom-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.ecom-section-head h2 {
  margin: 0;
  font-family: var(--ecom-font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ecom-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ecom-primary);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color var(--ecom-fast);
}
.ecom-section-head a:hover { color: var(--ecom-primary-dark); text-decoration: underline; }
.ecom-page-head {
  padding: 40px 0;
  background: var(--ecom-soft);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-page-head h1 {
  margin: 0;
  font-family: var(--ecom-font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ecom-page-head p { max-width: 640px; margin: 8px 0 0; color: var(--ecom-muted); }

/* ── Category Grid ──────────────────────────────────── */
.ecom-category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.ecom-category-card {
  display: grid; gap: 8px; align-content: start;
  padding: 16px;
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  transition: border-color var(--ecom-mid), box-shadow var(--ecom-mid), transform var(--ecom-mid);
}
.ecom-category-card:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-card-hover-shadow); transform: translateY(-3px); color: var(--ecom-text); }
.ecom-category-card img { width: 100%; height: 80px; object-fit: contain; }
.ecom-category-card span { font-weight: 800; font-size: 13px; }
.ecom-category-card small { color: var(--ecom-muted); font-size: 12px; }

/* ── Brand Grid ─────────────────────────────────────── */
.ecom-brand-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.ecom-brand-grid a {
  display: grid; gap: 8px; align-content: center; justify-items: center;
  min-height: 120px; padding: 16px;
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  transition: border-color var(--ecom-mid), box-shadow var(--ecom-mid), transform var(--ecom-mid);
}
.ecom-brand-grid a:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-card-hover-shadow); transform: translateY(-3px); color: var(--ecom-text); }
.ecom-brand-grid img { width: 100%; height: 58px; object-fit: contain; }
.ecom-brand-grid span { font-weight: 800; font-size: 13px; text-align: center; }

/* ── Product Grid & Card ────────────────────────────── */
.ecom-product-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.ecom-product-card {
  position: relative; min-width: 0;
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--ecom-mid), box-shadow var(--ecom-mid), border-color var(--ecom-mid);
}
.ecom-product-card:hover { transform: translateY(-4px); box-shadow: var(--ecom-shadow-lg); border-color: var(--ecom-primary); }
.ecom-product-media {
  position: relative; height: 190px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ecom-surface);
  overflow: hidden;
}
.ecom-product-media img { max-height: 165px; object-fit: contain; transition: transform var(--ecom-slow); }
.ecom-product-card:hover .ecom-product-media img { transform: scale(1.06); }

/* Floating wishlist / actions */
.ecom-product-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px);
  transition: opacity var(--ecom-mid), transform var(--ecom-mid);
}
.ecom-product-card:hover .ecom-product-actions { opacity: 1; transform: translateX(0); }
.ecom-product-actions button {
  width: 34px; height: 34px; border: 0;
  border-radius: var(--ecom-radius-full);
  background: #fff; color: var(--ecom-muted);
  box-shadow: var(--ecom-shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background var(--ecom-fast), color var(--ecom-fast), transform var(--ecom-fast);
}
.ecom-product-actions button:hover { background: var(--ecom-primary); color: #fff; transform: scale(1.08); }
.ecom-product-actions button.wishlisted { background: var(--ecom-danger); color: #fff; }

.ecom-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--ecom-danger); color: #fff;
  border-radius: var(--ecom-radius-sm);
  padding: 3px 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.ecom-product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.ecom-product-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
  font-weight: 700; font-size: 14px; color: var(--ecom-text);
  transition: color var(--ecom-fast);
}
.ecom-product-title:hover { color: var(--ecom-primary); }
.ecom-product-meta { color: var(--ecom-muted); font-size: 12px; margin-top: 4px; }
.ecom-product-price { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.ecom-product-price strong,
.ecom-detail-price strong { color: var(--ecom-primary); font-size: 18px; font-weight: 800; }
.ecom-product-price del,
.ecom-detail-price del { color: var(--ecom-subtle); font-size: 13px; }
.ecom-add-cart { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: auto; }
.ecom-stepper {
  display: grid; grid-template-columns: 34px 1fr 34px;
  height: 40px; border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius); overflow: hidden;
  background: var(--ecom-input-bg);
}
.ecom-stepper button, .ecom-stepper input { border: 0; min-width: 0; text-align: center; background: transparent; color: var(--ecom-text); }
.ecom-stepper button { color: var(--ecom-primary); cursor: pointer; }
.ecom-stepper button:hover { background: var(--ecom-soft); }
.ecom-bag {
  border: 0; border-radius: var(--ecom-radius);
  background: var(--ecom-primary); color: #fff;
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ecom-mid), transform var(--ecom-fast);
}
.ecom-bag:hover { background: var(--ecom-primary-dark); transform: scale(1.05); }

/* ── Shop Layout ────────────────────────────────────── */
.ecom-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.ecom-filter {
  align-self: start; padding: 20px;
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  position: sticky; top: 92px;
}
.ecom-filter h4 { margin: 0 0 16px; font-weight: 900; font-size: 15px; }
.ecom-filter label {
  display: block; margin: 16px 0 7px;
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ecom-muted);
}
.ecom-filter input,
.ecom-filter select,
.ecom-checkout input,
.ecom-checkout textarea,
.ecom-checkout select,
.ecom-track input {
  width: 100%; min-height: 42px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  padding: 8px 12px;
  background: var(--ecom-input-bg);
  color: var(--ecom-text);
  transition: border-color var(--ecom-fast);
}
.ecom-filter input:focus,
.ecom-filter select:focus,
.ecom-checkout input:focus,
.ecom-checkout textarea:focus,
.ecom-checkout select:focus,
.ecom-track input:focus { border-color: var(--ecom-primary); outline: none; }
.ecom-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ecom-check-list label,
.ecom-checkbox,
.ecom-radio {
  display: flex !important; align-items: center;
  gap: 8px; margin: 8px 0 !important;
  font-weight: 600 !important; font-size: 14px;
}
.ecom-check-list input,
.ecom-checkbox input,
.ecom-radio input { width: auto; min-height: auto; accent-color: var(--ecom-primary); }
.ecom-filter button {
  width: 100%; min-height: 42px; margin-top: 16px;
  border: 0; border-radius: var(--ecom-radius);
  background: var(--ecom-primary); color: #fff;
  font-weight: 800; cursor: pointer;
  transition: background var(--ecom-mid);
}
.ecom-filter button:hover { background: var(--ecom-primary-dark); }
.ecom-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 10px 14px;
  background: var(--ecom-card-bg);
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius);
}
.ecom-shop-toolbar span { color: var(--ecom-muted); font-size: 14px; }
.ecom-shop-toolbar select {
  min-height: 38px; border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius); padding: 0 10px;
  background: var(--ecom-input-bg); color: var(--ecom-text);
}
.ecom-pagination { margin-top: 28px; }
.ecom-pagination .pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.ecom-pagination .page-item .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius-sm) !important;
  background: var(--ecom-card-bg);
  color: var(--ecom-text-2);
  font-size: 14px; font-weight: 600;
  transition: background var(--ecom-fast), border-color var(--ecom-fast), color var(--ecom-fast);
}
.ecom-pagination .page-item .page-link:hover { background: var(--ecom-soft); border-color: var(--ecom-primary); color: var(--ecom-primary); }
.ecom-pagination .page-item.active .page-link { background: var(--ecom-primary); border-color: var(--ecom-primary); color: #fff; }
.ecom-pagination .page-item.disabled .page-link { opacity: .45; cursor: default; pointer-events: none; }
.ecom-pagination-info { margin: 10px 0 0; font-size: 13px; color: var(--ecom-muted); }

/* ── Product Detail ─────────────────────────────────── */
.ecom-product-detail { display: grid; grid-template-columns: minmax(300px,480px) 1fr; gap: 48px; align-items: start; }
.ecom-detail-media {
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius-lg);
  background: var(--ecom-surface);
  padding: 28px;
  position: sticky; top: 92px;
}
.ecom-detail-media img { width: 100%; height: 420px; object-fit: contain; }
.ecom-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ecom-primary); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.ecom-detail-info h1 { font-size: 34px; line-height: 1.14; font-weight: 900; margin: 12px 0; letter-spacing: -.025em; }
.ecom-code, .ecom-stock { color: var(--ecom-muted); font-size: 13px; }
.ecom-detail-price { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.ecom-detail-price strong { font-size: 30px; font-weight: 900; }
.ecom-detail-cart { grid-template-columns: 160px auto; justify-content: start; margin-top: 20px; }
.ecom-description { max-width: 960px; }
.ecom-description h2, .ecom-description h3 { font-weight: 900; }

/* ── Cart Page ──────────────────────────────────────── */
.ecom-cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.ecom-cart-table { border: 1.5px solid var(--ecom-card-border); border-radius: var(--ecom-card-radius); background: var(--ecom-card-bg); padding: 0 18px; }
.ecom-cart-row {
  display: grid; grid-template-columns: 80px minmax(160px,1fr) 160px 120px 44px;
  gap: 14px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-cart-row:last-child { border-bottom: 0; }
.ecom-cart-row img { width: 80px; height: 70px; object-fit: contain; background: var(--ecom-soft); border-radius: var(--ecom-radius-sm); }
.ecom-cart-update { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.ecom-cart-update input, .ecom-cart-update button {
  height: 38px; border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius); background: var(--ecom-input-bg);
}
.ecom-cart-update button { font-weight: 700; cursor: pointer; transition: border-color var(--ecom-fast); }
.ecom-cart-update button:hover { border-color: var(--ecom-primary); }
.ecom-cart-remove button {
  width: 36px; height: 36px; border: 0;
  border-radius: var(--ecom-radius);
  background: var(--ecom-danger-light); color: var(--ecom-danger);
  cursor: pointer; transition: background var(--ecom-fast);
}
.ecom-cart-remove button:hover { background: #fee2e2; }

/* ── Summary Sidebar ────────────────────────────────── */
.ecom-summary {
  position: sticky; top: 92px;
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  padding: 20px;
}
.ecom-summary h3 { margin: 0 0 14px; font-weight: 900; font-size: 17px; }
.ecom-summary div,
.ecom-cart-total div,
.ecom-order-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--ecom-border); font-size: 14px;
}
.ecom-summary div:last-of-type { border-bottom: 0; font-size: 17px; font-weight: 800; color: var(--ecom-primary); }
.ecom-summary a,
.ecom-cart-buttons a {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 14px; border-radius: var(--ecom-radius);
  background: var(--ecom-primary); color: #fff; font-weight: 800; font-size: 15px;
  transition: background var(--ecom-mid), transform var(--ecom-fast);
}
.ecom-summary a:hover,
.ecom-cart-buttons a:hover { background: var(--ecom-primary-dark); transform: translateY(-1px); color: #fff; }

/* ── Cart Drawer ────────────────────────────────────── */
.ecom-cart-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(400px,100%);
  z-index: 1001; transform: translateX(110%);
  transition: transform var(--ecom-slow) var(--ecom-ease);
}
.ecom-cart-drawer.open { transform: translateX(0); }
.ecom-cart-panel {
  height: 100%; background: var(--ecom-card-bg);
  box-shadow: var(--ecom-shadow-lg);
  display: grid; grid-template-rows: auto 1fr;
}
.ecom-cart-head {
  height: 64px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-cart-head h3 { margin: 0; font-weight: 900; }
.ecom-cart-close { width: 36px; height: 36px; border: 0; border-radius: var(--ecom-radius); background: var(--ecom-soft); cursor: pointer; transition: background var(--ecom-fast); }
.ecom-cart-close:hover { background: var(--ecom-border); }
.ecom-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.44);
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: opacity var(--ecom-mid), visibility var(--ecom-mid);
}
.ecom-drawer-backdrop.open { opacity: 1; visibility: visible; }
.ecom-cart-empty {
  min-height: 280px; display: grid; place-items: center;
  align-content: center; gap: 10px; color: var(--ecom-muted);
  text-align: center; padding: 20px;
}
.ecom-cart-empty i { font-size: 40px; color: var(--ecom-primary); opacity: .35; }
.ecom-cart-empty p { margin: 0; }
.ecom-cart-empty a {
  min-height: 42px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: var(--ecom-radius);
  background: var(--ecom-primary); color: #fff; font-weight: 800; margin-top: 6px;
}
.ecom-cart-lines { padding: 12px 16px; max-height: calc(100vh - 270px); overflow: auto; }
.ecom-cart-line {
  display: grid; grid-template-columns: 60px 1fr 32px;
  gap: 10px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-cart-line:last-child { border-bottom: 0; }
.ecom-cart-line img { width: 60px; height: 56px; object-fit: contain; background: var(--ecom-soft); border-radius: var(--ecom-radius-sm); }
.ecom-cart-line strong { display: block; font-size: 13px; font-weight: 700; }
.ecom-cart-line span { color: var(--ecom-muted); font-size: 12px; }
.ecom-cart-line button { border: 0; background: transparent; color: var(--ecom-danger); cursor: pointer; opacity: .65; transition: opacity var(--ecom-fast); }
.ecom-cart-line button:hover { opacity: 1; }
.ecom-cart-total { padding: 0 18px; }
.ecom-cart-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 18px; }
.ecom-cart-buttons a:first-child { background: var(--ecom-text); }
.ecom-cart-buttons a:first-child:hover { background: #1e293b; }

/* ── Checkout / Order / Track ───────────────────────── */
.ecom-checkout,
.ecom-order-detail,
.ecom-track { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.ecom-checkout-form,
.ecom-order-card,
.ecom-track-form { border: 1.5px solid var(--ecom-card-border); border-radius: var(--ecom-card-radius); background: var(--ecom-card-bg); padding: 24px; }
.ecom-checkout-form h3,
.ecom-order-card h3 { margin: 0 0 20px; font-weight: 900; font-size: 17px; }
.ecom-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ecom-checkout label,
.ecom-track label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ecom-text-2); }
.ecom-checkout textarea { min-height: 92px; resize: vertical; }
.ecom-checkout .full { grid-column: 1/-1; }

/* ── Footer ─────────────────────────────────────────── */
.ecom-footer { background: var(--ecom-footer-bg); color: var(--ecom-footer-text); }
.ecom-service-strip {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px; padding: 36px 0;
  border-bottom: 1px solid var(--ecom-footer-border);
}
.ecom-service-strip div { display: grid; grid-template-columns: 48px 1fr; gap: 3px 12px; align-items: center; }
.ecom-service-strip i {
  grid-row: span 2; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--ecom-radius);
  background: rgba(255,255,255,.1); font-size: 18px;
}
.ecom-service-strip strong { color: var(--ecom-footer-head); font-size: 14px; }
.ecom-service-strip span { color: var(--ecom-footer-text); font-size: 12px; }
.ecom-footer-main {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 36px; padding: 40px 0;
  border-bottom: 1px solid var(--ecom-footer-border);
}
.ecom-footer h4 { margin: 0 0 14px; font-weight: 900; color: var(--ecom-footer-head); font-size: 16px; }
.ecom-footer h5 { margin: 0 0 14px; font-weight: 800; color: var(--ecom-footer-head); font-size: 14px; letter-spacing: .02em; }
.ecom-footer p { color: var(--ecom-footer-text); font-size: 14px; margin: 0 0 14px; max-width: 280px; line-height: 1.7; }
.ecom-footer a { display: block; color: var(--ecom-footer-text); font-size: 14px; margin-bottom: 10px; transition: color var(--ecom-fast), padding-left var(--ecom-fast); }
.ecom-footer a:hover { color: #fff; padding-left: 4px; }
.ecom-footer-social { display: flex; gap: 8px; margin-top: 18px; }
.ecom-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--ecom-radius);
  background: rgba(255,255,255,.1); color: var(--ecom-footer-head);
  font-size: 14px; margin: 0; padding: 0;
  transition: background var(--ecom-mid), transform var(--ecom-fast);
}
.ecom-footer-social a:hover { background: var(--ecom-primary); transform: translateY(-2px); padding-left: 0; }
.ecom-footer-newsletter { margin-top: 14px; }
.ecom-footer-newsletter p { margin-bottom: 10px; font-size: 13px; }
.ecom-footer-newsletter form { display: flex; max-width: 300px; }
.ecom-footer-newsletter input {
  flex: 1; height: 40px;
  border: 1px solid rgba(255,255,255,.15); border-right: 0;
  border-radius: var(--ecom-radius) 0 0 var(--ecom-radius);
  padding: 0 12px; background: rgba(255,255,255,.07); color: #fff; font-size: 13px; outline: none;
}
.ecom-footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.ecom-footer-newsletter button {
  height: 40px; padding: 0 14px; border: 0;
  border-radius: 0 var(--ecom-radius) var(--ecom-radius) 0;
  background: var(--ecom-primary); color: #fff; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background var(--ecom-mid);
}
.ecom-footer-newsletter button:hover { background: var(--ecom-primary-dark); }
.ecom-footer-policy {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0;
}
.ecom-footer-policy a {
  font-size: 12px; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.ecom-footer-policy a:hover { color: #fff; }
.ecom-footer-policy-sep { color: rgba(255,255,255,.25); font-size: 11px; }
.ecom-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 13px; color: var(--ecom-footer-text);
}
.ecom-footer-payments { display: flex; gap: 8px; align-items: center; }
.ecom-footer-payments span {
  display: inline-flex; align-items: center; padding: 3px 8px;
  background: rgba(255,255,255,.1); border-radius: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--ecom-footer-head); letter-spacing: .05em;
}

/* ── Alerts & Utilities ─────────────────────────────── */
.ecom-alert {
  margin-top: 18px; padding: 13px 16px; border-radius: var(--ecom-radius);
  background: var(--ecom-success-light); color: #065f46;
  font-weight: 600; border-left: 4px solid var(--ecom-success);
}
.ecom-alert-danger { background: var(--ecom-danger-light); color: #991b1b; border-left-color: var(--ecom-danger); }
.ecom-empty {
  grid-column: 1/-1; padding: 48px;
  border: 1.5px dashed var(--ecom-border); border-radius: var(--ecom-radius);
  text-align: center; color: var(--ecom-muted);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .ecom-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ecom-category-grid, .ecom-brand-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ecom-hero-grid { grid-template-columns: 240px 1fr; }
  .ecom-hero-products { grid-column: 1/-1; grid-template-columns: repeat(3,1fr); }
  .ecom-footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .ecom-footer-main > div:last-child { display: none; }
}
@media (max-width: 900px) {
  .ecom-header { position: relative; }
  .ecom-mainbar { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; }
  .ecom-actions { justify-content: space-between; width: 100%; }
  .ecom-nav .ecom-container { overflow-x: auto; }
  .ecom-category-button { min-width: 200px; }
  .ecom-category-menu { display: none !important; }
  .ecom-hero-grid,
  .ecom-shop-layout,
  .ecom-product-detail,
  .ecom-cart-page,
  .ecom-checkout,
  .ecom-order-detail,
  .ecom-track { grid-template-columns: 1fr; }
  .ecom-hero-grid { grid-template-columns: 1fr; }
  .ecom-hero-copy h1 { font-size: 36px; }
  .ecom-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ecom-category-grid, .ecom-brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ecom-service-strip, .ecom-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ecom-summary, .ecom-detail-media, .ecom-filter { position: static; }
  .ecom-hero-products { grid-template-columns: 1fr; grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .ecom-container { width: min(100% - 16px, 1320px); }
  .ecom-topbar .ecom-container { justify-content: center; flex-wrap: wrap; padding: 8px 0; gap: 10px; }
  .ecom-hero { padding: 20px 0; }
  .ecom-hero-copy h1 { font-size: 28px; }
  .ecom-product-grid,
  .ecom-brand-grid,
  .ecom-service-strip,
  .ecom-footer-main,
  .ecom-form-grid,
  .ecom-hero-products { grid-template-columns: 1fr; }
  .ecom-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ecom-cart-row { grid-template-columns: 70px 1fr; }
  .ecom-cart-row > strong,
  .ecom-cart-row .ecom-cart-remove,
  .ecom-cart-row .ecom-cart-update { grid-column: 2; }
  .ecom-detail-media img { height: 280px; }
  .ecom-cart-buttons { grid-template-columns: 1fr; }
  .ecom-hero-actions a { width: 100%; justify-content: center; }
  .ecom-footer-newsletter form { max-width: 100%; }
  .ecom-footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================================================
   THEME OVERRIDES  —  body.ecom-theme-{name}
================================================================ */

/* ── THEME: Grocery (Fresh Green Market) ─────────────────── */
.ecom-theme-grocery {
  --ecom-primary:           #16a34a;
  --ecom-primary-dark:      #15803d;
  --ecom-primary-light:     #dcfce7;
  --ecom-primary-rgb:       22, 163, 74;
  --ecom-accent:            #f97316;
  --ecom-accent-dark:       #ea580c;
  --ecom-soft:              #f0fdf4;
  --ecom-surface:           #f7fdf9;
  --ecom-topbar-bg:         #14532d;
  --ecom-topbar-link:       #86efac;
  --ecom-footer-bg:         #052e16;
  --ecom-hero-bg:           linear-gradient(135deg,#f0fdf4 0%,#ffffff 50%,#fef9c3 100%);
  --ecom-catbtn-bg:         #16a34a;
  --ecom-card-hover-shadow: 0 8px 24px rgba(22,163,74,.14);
  --ecom-nav-border:        #bbf7d0;
}
.ecom-theme-grocery .ecom-hero-badge { background: rgba(22,163,74,.12); color: #15803d; border-color: rgba(22,163,74,.25); }

/* ── THEME: Organic (Earthy / Natural) ───────────────────── */
.ecom-theme-organic {
  --ecom-primary:           #65a30d;
  --ecom-primary-dark:      #4d7c0f;
  --ecom-primary-light:     #ecfccb;
  --ecom-primary-rgb:       101, 163, 13;
  --ecom-accent:            #d97706;
  --ecom-accent-dark:       #b45309;
  --ecom-soft:              #fefce8;
  --ecom-surface:           #fefce8;
  --ecom-bg:                #fffbf0;
  --ecom-border:            #e8e0c0;
  --ecom-topbar-bg:         #1c1a0e;
  --ecom-topbar-link:       #bef264;
  --ecom-footer-bg:         #0f0e07;
  --ecom-hero-bg:           linear-gradient(135deg,#f7fee7 0%,#fefce8 50%,#fef3c7 100%);
  --ecom-catbtn-bg:         #4d7c0f;
  --ecom-card-hover-shadow: 0 8px 24px rgba(101,163,13,.14);
  --ecom-font-display:      'Playfair Display', Georgia, serif;
}
.ecom-theme-organic .ecom-hero-copy h1,
.ecom-theme-organic .ecom-section-head h2,
.ecom-theme-organic .ecom-page-head h1,
.ecom-theme-organic .ecom-detail-info h1 { font-family: 'Playfair Display', Georgia, serif; }
.ecom-theme-organic .ecom-hero-badge { background: rgba(101,163,13,.12); color: #4d7c0f; border-color: rgba(101,163,13,.25); }

/* ── THEME: Restaurant (Warm Red / Food) ─────────────────── */
.ecom-theme-restaurant {
  --ecom-primary:           #dc2626;
  --ecom-primary-dark:      #b91c1c;
  --ecom-primary-light:     #fee2e2;
  --ecom-primary-rgb:       220, 38, 38;
  --ecom-accent:            #f97316;
  --ecom-accent-dark:       #ea580c;
  --ecom-soft:              #fff1f2;
  --ecom-surface:           #fff5f5;
  --ecom-topbar-bg:         #7f1d1d;
  --ecom-topbar-link:       #fca5a5;
  --ecom-footer-bg:         #450a0a;
  --ecom-hero-bg:           linear-gradient(135deg,#fff1f2 0%,#ffffff 50%,#fff7ed 100%);
  --ecom-catbtn-bg:         #dc2626;
  --ecom-card-hover-shadow: 0 8px 24px rgba(220,38,38,.14);
  --ecom-nav-border:        #fecdd3;
}
.ecom-theme-restaurant .ecom-hero-badge { background: rgba(220,38,38,.1); color: #dc2626; border-color: rgba(220,38,38,.2); }
.ecom-theme-restaurant .ecom-service-strip i { background: rgba(249,115,22,.18); }

/* ── THEME: Pharmacy (Clinical Blue / Healthcare) ─────────── */
.ecom-theme-pharmacy {
  --ecom-primary:           #0284c7;
  --ecom-primary-dark:      #0369a1;
  --ecom-primary-light:     #e0f2fe;
  --ecom-primary-rgb:       2, 132, 199;
  --ecom-accent:            #10b981;
  --ecom-accent-dark:       #059669;
  --ecom-soft:              #f0f9ff;
  --ecom-surface:           #f0f9ff;
  --ecom-topbar-bg:         #0c4a6e;
  --ecom-topbar-link:       #7dd3fc;
  --ecom-footer-bg:         #082f49;
  --ecom-hero-bg:           linear-gradient(135deg,#f0f9ff 0%,#ffffff 60%,#ecfdf5 100%);
  --ecom-catbtn-bg:         #0284c7;
  --ecom-card-hover-shadow: 0 8px 24px rgba(2,132,199,.14);
  --ecom-nav-border:        #bae6fd;
}
.ecom-theme-pharmacy .ecom-header { border-bottom: 2.5px solid var(--ecom-primary); }
.ecom-theme-pharmacy .ecom-hero-badge { background: rgba(2,132,199,.1); color: #0284c7; border-color: rgba(2,132,199,.2); }
.ecom-theme-pharmacy .ecom-brand-mark { background: linear-gradient(135deg,#0284c7,#10b981); }
.ecom-theme-pharmacy .ecom-service-strip i { background: rgba(16,185,129,.15); }

/* ── THEME: Brand / Luxe (Dark Gold — Premium Dark Mode) ───── */
.ecom-theme-brand {
  --ecom-primary:           #d4a017;
  --ecom-primary-dark:      #b38914;
  --ecom-primary-light:     #2d2a1b;
  --ecom-primary-rgb:       212, 160, 23;
  --ecom-accent:            #7c3aed;
  --ecom-accent-dark:       #6d28d9;
  --ecom-danger:            #f87171;
  --ecom-danger-light:      #2d1515;
  --ecom-success-light:     #142d14;
  --ecom-bg:                #0f0f10;
  --ecom-soft:              #1a1a1e;
  --ecom-surface:           #1a1a1e;
  --ecom-text:              #f1f1f0;
  --ecom-text-2:            #c8c8c0;
  --ecom-muted:             #a0a090;
  --ecom-subtle:            #6b6b60;
  --ecom-border:            #2e2e2a;
  --ecom-border-strong:     #3e3e38;
  --ecom-topbar-bg:         #070708;
  --ecom-topbar-text:       #a0a090;
  --ecom-topbar-link:       #c0c0a8;
  --ecom-header-bg:         #0f0f10;
  --ecom-header-shadow:     0 1px 0 #2e2e2a;
  --ecom-nav-bg:            #0f0f10;
  --ecom-nav-border:        #2e2e2a;
  --ecom-catbtn-bg:         #d4a017;
  --ecom-catbtn-color:      #0f0f10;
  --ecom-card-bg:           #18181b;
  --ecom-card-border:       #2e2e2a;
  --ecom-card-hover-shadow: 0 8px 32px rgba(212,160,23,.22);
  --ecom-input-bg:          #1a1a1e;
  --ecom-input-border:      #3e3e38;
  --ecom-footer-bg:         #070708;
  --ecom-footer-head:       #f1f1f0;
  --ecom-footer-text:       #7a7a6a;
  --ecom-footer-border:     rgba(255,255,255,.06);
  --ecom-hero-bg:           linear-gradient(135deg,#14120e 0%,#0f0f10 50%,#120a1a 100%);
  --ecom-hero-border:       #2e2e2a;
  --ecom-shadow-sm:         0 1px 6px rgba(0,0,0,.4);
  --ecom-shadow:            0 4px 18px rgba(0,0,0,.5);
  --ecom-shadow-lg:         0 12px 40px rgba(0,0,0,.6);
  --ecom-font-display:      'Playfair Display', Georgia, serif;
}
.ecom-theme-brand .ecom-hero-copy h1,
.ecom-theme-brand .ecom-section-head h2,
.ecom-theme-brand .ecom-page-head h1,
.ecom-theme-brand .ecom-detail-info h1 { font-family: 'Playfair Display', Georgia, serif; color: #f1f1f0; }
.ecom-theme-brand .ecom-hero-badge { background: rgba(212,160,23,.15); color: #d4a017; border-color: rgba(212,160,23,.3); }
.ecom-theme-brand .ecom-topbar { border-bottom: 1px solid #1e1e1a; }
.ecom-theme-brand .ecom-brand-mark { background: linear-gradient(135deg,#d4a017,#b38914); }
.ecom-theme-brand .ecom-product-price strong,
.ecom-theme-brand .ecom-detail-price strong,
.ecom-theme-brand .ecom-hero-products strong,
.ecom-theme-brand .ecom-summary div:last-of-type { color: #d4a017; }
.ecom-theme-brand .ecom-section-head a,
.ecom-theme-brand .ecom-back { color: #d4a017; }
.ecom-theme-brand a:hover { color: #d4a017; }
.ecom-theme-brand .ecom-cart-buttons a:first-child { background: #2e2e2a; }
.ecom-theme-brand .ecom-cart-buttons a:first-child:hover { background: #3e3e38; }
.ecom-theme-brand .ecom-product-actions button { background: #2e2e2a; color: #a0a090; }
.ecom-theme-brand .ecom-product-actions button:hover { background: #d4a017; color: #0f0f10; }
.ecom-theme-brand .ecom-search-results { background: #18181b; border-color: #2e2e2a; }
.ecom-theme-brand .ecom-search-results a:hover { background: #1a1a1e; }
.ecom-theme-brand .ecom-service-strip i { background: rgba(212,160,23,.15); color: #d4a017; }
.ecom-theme-brand .ecom-category-menu { background: #18181b; border-color: #2e2e2a; }
.ecom-theme-brand .ecom-category-menu a { color: #c8c8c0; border-bottom-color: #2e2e2a; }
.ecom-theme-brand .ecom-category-menu a:hover { background: #1a1a1e; color: #d4a017; }
.ecom-theme-brand .ecom-hero-cats { background: #18181b; border-color: #2e2e2a; }
.ecom-theme-brand .ecom-hero-cats a { border-bottom-color: #2e2e2a; color: #c8c8c0; }
.ecom-theme-brand .ecom-hero-cats a:hover { background: #1a1a1e; color: #d4a017; }
.ecom-theme-brand .ecom-hero-cats small { background: #2e2e2a; }

/* ── THEME: Gadgets (Dark Tech / Electric Purple) ─────────── */
.ecom-theme-gadgets {
  --ecom-primary:           #7c3aed;
  --ecom-primary-dark:      #6d28d9;
  --ecom-primary-light:     #1e1a2e;
  --ecom-primary-rgb:       124, 58, 237;
  --ecom-accent:            #06b6d4;
  --ecom-accent-dark:       #0891b2;
  --ecom-danger:            #f87171;
  --ecom-danger-light:      #1f0e0e;
  --ecom-success-light:     #0e1f0e;
  --ecom-bg:                #030712;
  --ecom-soft:              #0e1120;
  --ecom-surface:           #0e1120;
  --ecom-text:              #e2e8f0;
  --ecom-text-2:            #94a3b8;
  --ecom-muted:             #64748b;
  --ecom-subtle:            #475569;
  --ecom-border:            #1e293b;
  --ecom-border-strong:     #334155;
  --ecom-topbar-bg:         #020617;
  --ecom-topbar-text:       #64748b;
  --ecom-topbar-link:       #94a3b8;
  --ecom-header-bg:         #030712;
  --ecom-header-shadow:     0 1px 0 #1e293b;
  --ecom-nav-bg:            #030712;
  --ecom-nav-border:        #1e293b;
  --ecom-catbtn-bg:         #7c3aed;
  --ecom-catbtn-color:      #ffffff;
  --ecom-card-bg:           #0e1120;
  --ecom-card-border:       #1e293b;
  --ecom-card-hover-shadow: 0 8px 32px rgba(124,58,237,.25);
  --ecom-input-bg:          #0e1120;
  --ecom-input-border:      #334155;
  --ecom-footer-bg:         #020617;
  --ecom-footer-head:       #e2e8f0;
  --ecom-footer-text:       #475569;
  --ecom-footer-border:     rgba(255,255,255,.06);
  --ecom-hero-bg:           linear-gradient(135deg,#0e1120 0%,#030712 40%,#130d1e 100%);
  --ecom-hero-border:       #1e293b;
  --ecom-shadow-sm:         0 1px 6px rgba(0,0,0,.5);
  --ecom-shadow:            0 4px 18px rgba(0,0,0,.6);
  --ecom-shadow-lg:         0 12px 40px rgba(0,0,0,.7);
}
.ecom-theme-gadgets .ecom-topbar { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.ecom-theme-gadgets .ecom-brand-mark { background: linear-gradient(135deg,#7c3aed,#06b6d4); }
.ecom-theme-gadgets .ecom-category-button { letter-spacing: .05em; text-transform: uppercase; font-size: 12px; }
.ecom-theme-gadgets .ecom-hero-badge { background: rgba(124,58,237,.2); color: #a78bfa; border-color: rgba(124,58,237,.35); }
.ecom-theme-gadgets .ecom-product-card:hover { border-color: #7c3aed; box-shadow: 0 0 0 1px rgba(124,58,237,.4), 0 8px 32px rgba(124,58,237,.22); }
.ecom-theme-gadgets .ecom-nav .ecom-container > a { text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.ecom-theme-gadgets .ecom-search button { background: var(--ecom-accent); color: #030712; }
.ecom-theme-gadgets .ecom-search button:hover { background: var(--ecom-accent-dark); }
.ecom-theme-gadgets .ecom-service-strip i { background: rgba(124,58,237,.18); color: #a78bfa; }
.ecom-theme-gadgets .ecom-cart-toggle { background: #0e1120; border-color: #1e293b; color: #e2e8f0; }
.ecom-theme-gadgets .ecom-actions > a:hover { background: #0e1120; color: var(--ecom-primary); }
.ecom-theme-gadgets .ecom-search-results { background: #0e1120; border-color: #1e293b; }
.ecom-theme-gadgets .ecom-search-results a:hover { background: #030712; }
.ecom-theme-gadgets .ecom-category-menu { background: #0e1120; border-color: #1e293b; }
.ecom-theme-gadgets .ecom-category-menu a { color: #94a3b8; border-bottom-color: #1e293b; }
.ecom-theme-gadgets .ecom-category-menu a:hover { background: #030712; color: #a78bfa; }
.ecom-theme-gadgets .ecom-hero-cats { background: #0e1120; border-color: #1e293b; }
.ecom-theme-gadgets .ecom-hero-cats a { border-bottom-color: #1e293b; color: #94a3b8; }
.ecom-theme-gadgets .ecom-hero-cats a:hover { background: #030712; color: #a78bfa; }
.ecom-theme-gadgets .ecom-hero-cats small { background: #1e293b; }
.ecom-theme-gadgets .ecom-product-price strong,
.ecom-theme-gadgets .ecom-detail-price strong,
.ecom-theme-gadgets .ecom-hero-products strong,
.ecom-theme-gadgets .ecom-summary div:last-of-type { color: #a78bfa; }
.ecom-theme-gadgets .ecom-section-head a,
.ecom-theme-gadgets .ecom-back { color: #a78bfa; }
.ecom-theme-gadgets a:hover { color: #a78bfa; }
.ecom-theme-gadgets .ecom-cart-buttons a:first-child { background: #1e293b; }
.ecom-theme-gadgets .ecom-cart-buttons a:first-child:hover { background: #334155; }
.ecom-theme-gadgets .ecom-product-actions button { background: #1e293b; color: #64748b; }
.ecom-theme-gadgets .ecom-product-actions button:hover { background: #7c3aed; color: #fff; }

/* ================================================================
   ACCOUNT PAGES
================================================================ */

/* ── Form label+input stacked pattern ───────────────── */
.ecom-form-grid label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ecom-text-2);
  letter-spacing: .01em;
}
.ecom-form-grid label > input,
.ecom-form-grid label > textarea,
.ecom-form-grid label > select {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 42px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  padding: 8px 12px;
  background: var(--ecom-input-bg);
  color: var(--ecom-text);
  font-size: 15px;
  font-weight: 400;
  transition: border-color var(--ecom-fast), box-shadow var(--ecom-fast);
}
.ecom-form-grid label > input:focus,
.ecom-form-grid label > textarea:focus,
.ecom-form-grid label > select:focus { border-color: var(--ecom-primary); box-shadow: 0 0 0 3px rgba(var(--ecom-primary-rgb),.1); outline: none; }
.ecom-form-grid label > input:disabled { background: var(--ecom-soft); opacity: .7; cursor: not-allowed; }
.ecom-form-grid label > textarea { min-height: 88px; resize: vertical; }
.ecom-form-grid .full { grid-column: 1/-1; }

/* ── Account Layout ─────────────────────────────────── */
.ecom-account-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar card */
.ecom-account-sidebar {
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  overflow: hidden;
  position: sticky;
  top: 92px;
}
.ecom-account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--ecom-border);
  background: var(--ecom-soft);
}
.ecom-account-avatar {
  width: 46px; height: 46px;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ecom-account-user strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ecom-account-user span { display: block; font-size: 12px; color: var(--ecom-muted); margin-top: 2px; word-break: break-all; }
.ecom-account-nav { padding: 6px 0; }
.ecom-account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ecom-text-2);
  border-left: 3px solid transparent;
  transition: background var(--ecom-fast), color var(--ecom-fast), border-color var(--ecom-fast);
}
.ecom-account-nav a:hover { background: var(--ecom-soft); color: var(--ecom-primary); border-left-color: var(--ecom-primary); }
.ecom-account-nav a.ecom-nav-active { color: var(--ecom-primary); border-left-color: var(--ecom-primary); background: rgba(var(--ecom-primary-rgb),.06); font-weight: 700; }
.ecom-account-nav a i { width: 16px; text-align: center; opacity: .7; font-size: 13px; }
.ecom-account-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--ecom-danger);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--ecom-border);
  transition: background var(--ecom-fast);
  text-align: left;
}
.ecom-account-logout:hover { background: var(--ecom-danger-light); }
.ecom-account-logout i { width: 16px; text-align: center; opacity: .8; }

/* Main content area */
.ecom-account-main { display: grid; gap: 20px; }
.ecom-account-card {
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  overflow: hidden;
}
.ecom-account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ecom-border);
  background: var(--ecom-soft);
}
.ecom-account-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}
.ecom-account-card-head h2 i { color: var(--ecom-primary); font-size: 14px; }
.ecom-account-card-body { padding: 22px; }
.ecom-account-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ecom-border);
  flex-wrap: wrap;
}

/* ── Address Items ──────────────────────────────────── */
.ecom-address-cards { display: grid; gap: 10px; margin-bottom: 22px; }
.ecom-address-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  background: var(--ecom-bg);
  transition: border-color var(--ecom-fast);
}
.ecom-address-item.is-default { border-color: var(--ecom-primary); background: rgba(var(--ecom-primary-rgb),.03); }
.ecom-address-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ecom-address-label-row strong { font-weight: 800; font-size: 14px; }
.ecom-default-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-primary-light);
  color: var(--ecom-primary);
}
.ecom-address-item p { margin: 0; font-size: 13px; color: var(--ecom-muted); line-height: 1.65; }
.ecom-address-item-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.ecom-address-item-actions a,
.ecom-address-item-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius-sm);
  background: var(--ecom-bg);
  color: var(--ecom-text-2);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background var(--ecom-fast), border-color var(--ecom-fast), color var(--ecom-fast);
}
.ecom-address-item-actions a:hover,
.ecom-address-item-actions button:hover { border-color: var(--ecom-primary); color: var(--ecom-primary); background: var(--ecom-soft); }
.ecom-address-item-actions .btn-danger-sm:hover { border-color: var(--ecom-danger); color: var(--ecom-danger); background: var(--ecom-danger-light); }

/* Add address section heading */
.ecom-subsection-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 12px;
  margin-bottom: 16px;
  border-top: 1.5px solid var(--ecom-border);
}
.ecom-subsection-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.ecom-subsection-head i { color: var(--ecom-primary); }

/* ── Dashboard Order List ───────────────────────────── */
.ecom-dash-orders { display: grid; gap: 8px; }
.ecom-dash-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  transition: border-color var(--ecom-fast), box-shadow var(--ecom-fast);
}
.ecom-dash-order:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-shadow-sm); }
.ecom-dash-order-ref { font-weight: 700; font-size: 14px; color: var(--ecom-primary); }
.ecom-dash-order-ref:hover { text-decoration: underline; color: var(--ecom-primary-dark); }
.ecom-dash-order-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.ecom-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ecom-radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--ecom-soft); color: var(--ecom-muted);
}
.ecom-status-paid   { background: #dcfce7; color: #166534; }
.ecom-status-pending { background: #fef9c3; color: #854d0e; }
.ecom-status-cancelled { background: #fee2e2; color: #991b1b; }
.ecom-status-processing { background: #dbeafe; color: #1e40af; }
.ecom-dash-order-amount { font-size: 16px; font-weight: 800; color: var(--ecom-primary); flex-shrink: 0; }
.ecom-dash-order-date { font-size: 12px; color: var(--ecom-muted); margin-top: 2px; }

/* ── Auth Pages (Login / Register) ─────────────────── */
.ecom-auth-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.ecom-auth-card {
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius-lg);
  background: var(--ecom-card-bg);
  overflow: hidden;
  box-shadow: var(--ecom-shadow);
}
.ecom-auth-head {
  text-align: center;
  padding: 32px 28px 22px;
  background: var(--ecom-soft);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-auth-icon {
  width: 56px; height: 56px;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-primary);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.ecom-auth-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ecom-auth-head p { margin: 0; color: var(--ecom-muted); font-size: 14px; }
.ecom-auth-body { padding: 28px; }
.ecom-auth-body .ecom-form-grid { grid-template-columns: 1fr; }
.ecom-auth-body .ecom-primary { width: 100%; margin-top: 18px; min-height: 50px; font-size: 16px; }
.ecom-auth-footer {
  text-align: center;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--ecom-border);
  font-size: 14px;
  color: var(--ecom-muted);
}
.ecom-auth-footer a { color: var(--ecom-primary); font-weight: 700; }
.ecom-auth-footer a:hover { text-decoration: underline; }

/* ── Responsive account pages ───────────────────────── */
@media (max-width: 900px) {
  .ecom-account-layout { grid-template-columns: 1fr; }
  .ecom-account-sidebar { position: static; }
  .ecom-account-nav { display: flex; flex-wrap: wrap; gap: 0; padding: 0; }
  .ecom-account-nav a { flex: 1; min-width: 120px; border-left: 0; border-bottom: 3px solid transparent; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .ecom-account-nav a.ecom-nav-active { border-bottom-color: var(--ecom-primary); border-left-color: transparent; }
}
@media (max-width: 560px) {
  .ecom-auth-wrap { max-width: 100%; }
  .ecom-auth-body { padding: 20px; }
  .ecom-account-card-body { padding: 16px; }
  .ecom-dash-order { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   ORDER VIEWS  (order.blade, account/order.blade, track.blade)
================================================================ */

/* ── Order Card ─────────────────────────────────────── */
.ecom-order-card {
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-card-radius);
  background: var(--ecom-card-bg);
  padding: 20px;
}
.ecom-order-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ecom-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecom-order-card h2 i { color: var(--ecom-primary); font-size: 14px; }

/* ── Order Banner (post-checkout success) ───────────── */
.ecom-order-banner {
  background: linear-gradient(135deg, var(--ecom-success-light) 0%, #fff 100%);
  border-bottom: 2px solid var(--ecom-success);
  padding: 28px 0;
  text-align: center;
}
.ecom-order-banner-icon {
  width: 56px; height: 56px;
  border-radius: var(--ecom-radius-full);
  background: var(--ecom-success);
  color: #fff;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.ecom-order-banner h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: #065f46; }
.ecom-order-banner p { margin: 0; color: #047857; font-size: 15px; }
.ecom-order-banner .ecom-ref {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 16px;
  background: rgba(22,163,74,.1);
  border-radius: var(--ecom-radius-full);
  font-weight: 800;
  font-size: 15px;
  color: #065f46;
  letter-spacing: .04em;
}

/* ── Order Status Badges Row ────────────────────────── */
.ecom-order-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ecom-order-status-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--ecom-radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  background: var(--ecom-soft);
  color: var(--ecom-muted);
}
.ecom-order-status-label.sale-pending   { background: #fef9c3; color: #854d0e; }
.ecom-order-status-label.sale-processing{ background: #dbeafe; color: #1e40af; }
.ecom-order-status-label.sale-completed { background: #dcfce7; color: #166534; }
.ecom-order-status-label.sale-cancelled { background: #fee2e2; color: #991b1b; }
.ecom-order-status-label.sale-returned  { background: #f3e8ff; color: #6b21a8; }
.ecom-order-status-label.pay-pending    { background: #fef9c3; color: #854d0e; }
.ecom-order-status-label.pay-paid       { background: #dcfce7; color: #166534; }
.ecom-order-status-label.pay-partial    { background: #ffedd5; color: #9a3412; }
.ecom-order-status-label.pay-due        { background: #fee2e2; color: #991b1b; }
.ecom-order-status-label.del-pending    { background: #fef9c3; color: #854d0e; }
.ecom-order-status-label.del-shipped    { background: #dbeafe; color: #1e40af; }
.ecom-order-status-label.del-delivered  { background: #dcfce7; color: #166534; }
.ecom-order-status-label.del-cancelled  { background: #fee2e2; color: #991b1b; }

/* ── Inline Actions ─────────────────────────────────── */
.ecom-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ── Order Line ─────────────────────────────────────── */
/* Already exists as .ecom-order-line but ensure it works standalone */
.ecom-order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ecom-border);
  font-size: 14px;
}
.ecom-order-line:last-child { border-bottom: 0; }
.ecom-order-line span { color: var(--ecom-text-2); }
.ecom-order-line strong { font-weight: 800; white-space: nowrap; }

/* ── Order Items Table ──────────────────────────────── */
.ecom-order-items { display: grid; gap: 0; }
.ecom-order-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-order-item:last-child { border-bottom: 0; }
.ecom-order-item img { width: 54px; height: 50px; object-fit: contain; background: var(--ecom-soft); border-radius: var(--ecom-radius-sm); }
.ecom-order-item-name { font-weight: 700; font-size: 14px; }
.ecom-order-item-meta { font-size: 12px; color: var(--ecom-muted); margin-top: 3px; }
.ecom-order-item-price { font-weight: 800; font-size: 15px; color: var(--ecom-primary); white-space: nowrap; }

/* ── Order Totals ───────────────────────────────────── */
.ecom-order-totals { margin-top: 4px; }
.ecom-order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-order-total-row:last-child { border-bottom: 0; font-size: 16px; font-weight: 800; }
.ecom-order-total-row span { color: var(--ecom-muted); }
.ecom-order-total-row strong { color: var(--ecom-text); }
.ecom-order-total-row.grand strong { color: var(--ecom-primary); }

/* ── Return Item form ───────────────────────────────── */
.ecom-return-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ecom-border);
  font-size: 14px;
}
.ecom-return-item input[type="number"] {
  width: 80px; min-height: 36px;
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  padding: 4px 8px;
  background: var(--ecom-input-bg);
  color: var(--ecom-text);
  text-align: center;
}

/* ── Tracking Timeline ──────────────────────────────── */
.ecom-tracking-timeline { padding: 4px 0; }
.ecom-tracking-event {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ecom-border);
  position: relative;
}
.ecom-tracking-event:last-child { border-bottom: 0; }
.ecom-tracking-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ecom-primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.ecom-tracking-status { font-weight: 700; font-size: 13px; }
.ecom-tracking-desc { font-size: 13px; color: var(--ecom-muted); margin-top: 2px; }
.ecom-tracking-time { font-size: 11px; color: var(--ecom-subtle); margin-top: 2px; }

/* ── Track Form page ────────────────────────────────── */
.ecom-track-wrap { max-width: 540px; margin: 0 auto; }
.ecom-track-result { display: grid; gap: 20px; margin-top: 32px; }

/* ── Responsive 2-column utility ───────────────────── */
.ecom-order-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) {
  .ecom-order-2col { grid-template-columns: 1fr; }
}

/* ── Order Detail Layout ────────────────────────────── */
.ecom-order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.ecom-order-stack { display: grid; gap: 20px; }

@media (max-width: 900px) {
  .ecom-order-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ecom-order-item { grid-template-columns: 44px 1fr; }
  .ecom-order-item-price { grid-column: 2; }
}

/* =====================================================
   THEME-SPECIFIC STRUCTURAL LAYOUTS
   Each theme section below adds structural components
   beyond color — different headers, navigation patterns,
   hero layouts, and home page section arrangements.
===================================================== */

/* ── GROCERY THEME ─────────────────────────────────── */

/* Announcement bar */
.ecom-grocery-announce {
  background: var(--ecom-topbar-bg);
  color: var(--ecom-topbar-text);
  text-align: center;
  font-size: 13px;
  padding: 6px 16px;
}

/* Header */
.ecom-grocery-header { border-bottom: 2px solid var(--ecom-primary); }

/* Main bar: logo left, wide search center, actions right */
.ecom-grocery-mainbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.ecom-grocery-search { display: flex; flex: 1; }
.ecom-grocery-search select { border-radius: var(--ecom-radius-sm) 0 0 var(--ecom-radius-sm); cursor: pointer; }

/* Header actions */
.ecom-grocery-header-actions { display: flex; align-items: center; gap: 12px; }
.ecom-grocery-account-btn {
  display: flex; flex-direction: column; align-items: center;
  font-size: 13px; color: var(--ecom-text-2); gap: 2px;
}
.ecom-grocery-account-btn i { font-size: 18px; }

/* Cart button */
.ecom-grocery-cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--ecom-primary); color: #fff;
  border: none; border-radius: var(--ecom-radius-sm);
  padding: 8px 16px; cursor: pointer; font-weight: 600;
}
.ecom-grocery-cart-btn i { font-size: 18px; }
.ecom-grocery-cart-btn div { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.ecom-grocery-cart-btn span { font-size: 11px; opacity: .8; font-weight: 400; }
.ecom-grocery-cart-btn strong { font-size: 13px; }

/* Category ribbon */
.ecom-grocery-ribbon {
  background: var(--ecom-surface);
  border-top: 1px solid var(--ecom-border);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-grocery-ribbon-inner {
  display: flex; align-items: center; gap: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.ecom-grocery-ribbon-inner::-webkit-scrollbar { display: none; }

.ecom-grocery-all-cats {
  flex-shrink: 0; background: var(--ecom-catbtn-bg); color: var(--ecom-catbtn-color);
  border: none; padding: 10px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; border-right: 1px solid rgba(255,255,255,.15);
}

/* Category pills in ribbon */
.ecom-grocery-pills { display: flex; align-items: center; gap: 0; overflow-x: auto; }
.ecom-grocery-pill {
  padding: 10px 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--ecom-text-2); border-right: 1px solid var(--ecom-border);
  transition: background var(--ecom-fast), color var(--ecom-fast);
}
.ecom-grocery-pill:hover { background: var(--ecom-primary-light); color: var(--ecom-primary); }
.ecom-grocery-pill-deals { color: var(--ecom-accent); font-weight: 700; }

/* Grocery hero */
.ecom-grocery-hero {
  background: var(--ecom-hero-bg);
  padding: 40px 0;
}
.ecom-grocery-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ecom-grocery-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ecom-accent); color: #fff;
  padding: 4px 12px; border-radius: var(--ecom-radius-full); font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
}
.ecom-grocery-hero-copy h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 14px; }
.ecom-grocery-hero-copy p { font-size: 15px; color: var(--ecom-text-2); margin-bottom: 24px; }
.ecom-grocery-hero-products {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ecom-grocery-hero-item {
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); padding: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: box-shadow var(--ecom-mid);
}
.ecom-grocery-hero-item:hover { box-shadow: var(--ecom-card-hover-shadow); }
.ecom-grocery-hero-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--ecom-radius-sm); }
.ecom-grocery-hero-item span { font-size: 12px; color: var(--ecom-text-2); }
.ecom-grocery-hero-item strong { font-size: 13px; font-weight: 700; color: var(--ecom-primary); }

/* Grocery category tiles */
.ecom-grocery-cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.ecom-grocery-cat-tile {
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; transition: box-shadow var(--ecom-mid), border-color var(--ecom-mid);
}
.ecom-grocery-cat-tile:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-shadow-sm); }
.ecom-grocery-cat-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ecom-soft); }
.ecom-grocery-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ecom-grocery-cat-tile span { font-size: 13px; font-weight: 600; color: var(--ecom-text); }
.ecom-grocery-cat-tile small { font-size: 11px; color: var(--ecom-muted); }

@media (max-width: 768px) {
  .ecom-grocery-hero-inner { grid-template-columns: 1fr; }
  .ecom-grocery-mainbar { grid-template-columns: 1fr auto; }
  .ecom-grocery-search { display: none; }
}

/* ── RESTAURANT THEME ──────────────────────────────── */

.ecom-restaurant-header { border-bottom: none; }

/* Single bar: logo + toggle + search + actions */
.ecom-restaurant-mainbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.ecom-restaurant-brand { font-size: 1.2rem; }
.ecom-restaurant-brand .ecom-brand-mark { background: var(--ecom-primary); color: #fff; }

/* Delivery/Pickup toggle */
.ecom-restaurant-mode-toggle {
  display: flex; border: 1px solid var(--ecom-border); border-radius: var(--ecom-radius-full);
  overflow: hidden; flex-shrink: 0;
}
.ecom-restaurant-mode-toggle button {
  background: none; border: none; padding: 7px 14px; font-size: 13px;
  font-weight: 600; cursor: pointer; color: var(--ecom-muted);
  display: flex; align-items: center; gap: 5px; transition: all var(--ecom-fast);
}
.ecom-restaurant-mode-toggle button.active {
  background: var(--ecom-primary); color: #fff;
}

.ecom-restaurant-search { width: 100%; }

/* Right side */
.ecom-restaurant-header-right { display: flex; align-items: center; gap: 12px; }
.ecom-restaurant-nav-link { font-size: 13px; font-weight: 600; color: var(--ecom-text-2); }
.ecom-restaurant-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ecom-primary); color: #fff;
  border: none; border-radius: var(--ecom-radius-sm);
  padding: 8px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.ecom-restaurant-cart-btn [data-cart-count] {
  background: var(--ecom-accent); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* Category tabs bar */
.ecom-restaurant-tabs-bar {
  background: var(--ecom-nav-bg);
  border-top: 1px solid var(--ecom-border);
  border-bottom: 3px solid var(--ecom-primary);
  position: sticky; top: 0; z-index: 100;
}
.ecom-restaurant-tabs {
  display: flex; align-items: center; overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.ecom-restaurant-tabs::-webkit-scrollbar { display: none; }
.ecom-restaurant-tabs a {
  padding: 12px 18px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--ecom-text-2); border-bottom: 3px solid transparent;
  margin-bottom: -3px; transition: all var(--ecom-fast);
  display: flex; align-items: center; gap: 6px;
}
.ecom-restaurant-tabs a:hover,
.ecom-restaurant-tabs a.active { color: var(--ecom-primary); border-bottom-color: var(--ecom-primary); }
.ecom-restaurant-tab-special { color: var(--ecom-accent) !important; }

/* Restaurant hero */
.ecom-restaurant-hero {
  background: var(--ecom-hero-bg);
  padding: 48px 0;
}
.ecom-restaurant-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ecom-restaurant-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ecom-primary); color: #fff;
  padding: 5px 14px; border-radius: var(--ecom-radius-full);
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.ecom-restaurant-hero-copy h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 14px; }
.ecom-restaurant-hero-copy p { font-size: 15px; color: var(--ecom-text-2); margin-bottom: 24px; }

/* Showcase items */
.ecom-restaurant-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ecom-restaurant-showcase-item {
  background: var(--ecom-card-bg); border-radius: var(--ecom-radius);
  overflow: hidden; box-shadow: var(--ecom-shadow-sm);
  transition: transform var(--ecom-mid), box-shadow var(--ecom-mid);
}
.ecom-restaurant-showcase-item:hover { transform: translateY(-4px); box-shadow: var(--ecom-card-hover-shadow); }
.ecom-restaurant-showcase-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ecom-restaurant-showcase-info {
  padding: 10px 12px; display: flex; justify-content: space-between; align-items: center;
}
.ecom-restaurant-showcase-info span { font-size: 13px; font-weight: 600; }
.ecom-restaurant-showcase-info strong { color: var(--ecom-primary); font-size: 14px; }

/* Restaurant menu grid (larger cards) */
.ecom-restaurant-menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}

/* Restaurant footer */
.ecom-restaurant-footer .ecom-service-strip { display: none; }
.ecom-restaurant-footer-inner {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 40px; align-items: start; padding: 32px 0;
}
.ecom-restaurant-footer-brand { display: flex; align-items: center; gap: 16px; }
.ecom-restaurant-footer-brand .ecom-brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ecom-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ecom-restaurant-footer-brand strong { display: block; font-size: 15px; }
.ecom-restaurant-footer-brand span { font-size: 13px; color: var(--ecom-footer-text); }
.ecom-restaurant-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ecom-restaurant-footer-links a { font-size: 13px; color: var(--ecom-footer-text); }
.ecom-restaurant-footer-contact { display: flex; flex-direction: column; gap: 10px; }
.ecom-restaurant-footer-contact a { font-size: 13px; color: var(--ecom-footer-text); display: flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .ecom-restaurant-mainbar { grid-template-columns: 1fr auto; }
  .ecom-restaurant-mode-toggle, .ecom-restaurant-search { display: none; }
  .ecom-restaurant-hero-inner { grid-template-columns: 1fr; }
  .ecom-restaurant-footer-inner { grid-template-columns: 1fr; }
}

/* ── PHARMACY THEME ────────────────────────────────── */

/* Trust bar */
.ecom-pharmacy-trust-bar {
  background: var(--ecom-primary);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 0;
}
.ecom-pharmacy-trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.ecom-pharmacy-trust-inner span { display: flex; align-items: center; gap: 5px; }
.ecom-pharmacy-trust-phone { margin-left: auto; }

/* Brand: medical cross icon */
.ecom-pharmacy-cross {
  background: var(--ecom-primary) !important;
  color: #fff !important; font-size: 14px !important;
}

/* Header bottom border */
.ecom-pharmacy-header { border-bottom: 2px solid var(--ecom-primary); }
.ecom-pharmacy-mainbar { padding: 14px 0; }

/* Medical nav */
.ecom-pharmacy-nav { background: var(--ecom-surface); border-top: 1px solid var(--ecom-border); }

/* Pharmacy hero */
.ecom-pharmacy-hero { background: var(--ecom-hero-bg); }
.ecom-pharmacy-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; padding: 48px 0;
}
.ecom-pharmacy-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ecom-accent); color: var(--ecom-accent);
  padding: 4px 12px; border-radius: var(--ecom-radius-full);
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.ecom-pharmacy-hero-copy h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.ecom-pharmacy-hero-copy p { color: var(--ecom-text-2); margin-bottom: 20px; }
.ecom-pharmacy-hero-trust {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px;
}
.ecom-pharmacy-hero-trust span {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ecom-primary); font-weight: 600;
}
.ecom-pharmacy-hero-products {
  display: flex; flex-direction: column; gap: 12px;
}
.ecom-pharmacy-featured-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); padding: 12px;
  transition: box-shadow var(--ecom-mid);
}
.ecom-pharmacy-featured-item:hover { box-shadow: var(--ecom-card-hover-shadow); }
.ecom-pharmacy-featured-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--ecom-radius-sm); }
.ecom-pharmacy-featured-item div { flex: 1; }
.ecom-pharmacy-featured-item span { display: block; font-size: 13px; font-weight: 600; }
.ecom-pharmacy-featured-item strong { color: var(--ecom-primary); font-size: 14px; }

/* Pharmacy category grid (with medical icons) */
.ecom-pharmacy-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.ecom-pharmacy-cat-card {
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; transition: all var(--ecom-mid);
}
.ecom-pharmacy-cat-card:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-shadow-sm); }
.ecom-pharmacy-cat-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ecom-primary-light); color: var(--ecom-primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ecom-pharmacy-cat-card span { font-size: 13px; font-weight: 600; }
.ecom-pharmacy-cat-card small { font-size: 11px; color: var(--ecom-muted); }

@media (max-width: 768px) {
  .ecom-pharmacy-hero-inner { grid-template-columns: 1fr; }
  .ecom-pharmacy-trust-phone { margin-left: 0; }
}

/* ── ORGANIC THEME ─────────────────────────────────── */

/* Minimal header — no topbar, centered brand */
.ecom-organic-header {
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-organic-mainbar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 14px 0;
}

/* Left nav */
.ecom-organic-left-nav { display: flex; align-items: center; gap: 24px; }
.ecom-organic-left-nav a { font-size: 14px; font-weight: 500; color: var(--ecom-text-2); }
.ecom-organic-left-nav a:hover { color: var(--ecom-primary); }

/* Centered brand */
.ecom-organic-brand {
  justify-content: center !important;
  font-family: var(--ecom-font-display);
  font-size: 1.3rem !important;
}
.ecom-organic-brand .ecom-brand-mark { background: var(--ecom-primary); color: #fff; }

/* Right actions */
.ecom-organic-right-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
}
.ecom-organic-right-actions a {
  font-size: 16px; color: var(--ecom-text); padding: 4px;
}
.ecom-organic-cart-btn {
  position: relative; background: none; border: none;
  font-size: 16px; cursor: pointer; color: var(--ecom-text); padding: 4px;
}
.ecom-organic-cart-btn [data-cart-count] {
  position: absolute; top: -4px; right: -8px;
  background: var(--ecom-primary); color: #fff;
  font-size: 10px; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.ecom-organic-search-form { position: relative; display: flex; align-items: center; }
.ecom-organic-search-toggle { background: none; border: none; font-size: 16px; cursor: pointer; padding: 4px; }

/* Organic hero — full-width editorial */
.ecom-organic-hero {
  min-height: 480px; position: relative;
  background: linear-gradient(135deg, var(--ecom-primary-light) 0%, var(--ecom-soft) 50%, #f5f0e8 100%);
  display: flex; align-items: center;
}
.ecom-organic-hero-overlay { width: 100%; }
.ecom-organic-hero-content { padding: 80px 0; max-width: 600px; }
.ecom-organic-hero-eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ecom-primary);
  margin-bottom: 16px;
}
.ecom-organic-hero-content h1 {
  font-family: var(--ecom-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; margin-bottom: 16px;
}
.ecom-organic-hero-content p { font-size: 16px; color: var(--ecom-text-2); margin-bottom: 28px; max-width: 480px; }

/* Story strip */
.ecom-organic-story-strip {
  background: var(--ecom-primary);
  color: #fff; padding: 24px 0;
}
.ecom-organic-story-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.ecom-organic-story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ecom-organic-story-item i { font-size: 24px; opacity: .8; }
.ecom-organic-story-item strong { font-size: 14px; font-weight: 700; }
.ecom-organic-story-item span { font-size: 12px; opacity: .75; }

/* Section head with subtitle */
.ecom-organic-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.ecom-organic-section-head h2 { margin: 0; font-family: var(--ecom-font-display); }
.ecom-organic-section-head p { color: var(--ecom-muted); font-size: 14px; flex: 1 0 100%; margin: 0; }
.ecom-organic-section-head a { margin-left: auto; }

/* Organic product grid — slightly fewer columns, larger cards */
.ecom-organic-product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Organic category row */
.ecom-organic-cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.ecom-organic-cat-card {
  border-radius: var(--ecom-radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 3/4;
}
.ecom-organic-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ecom-organic-cat-card:hover img { transform: scale(1.04); }
.ecom-organic-cat-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  padding: 24px 16px 16px; color: #fff;
}
.ecom-organic-cat-label span { display: block; font-weight: 700; font-size: 14px; }
.ecom-organic-cat-label small { font-size: 12px; opacity: .8; }

/* Organic footer certifications */
.ecom-organic-cert-strip {
  background: var(--ecom-primary-light);
  border-bottom: 1px solid var(--ecom-border); padding: 12px 0;
}
.ecom-organic-cert-inner {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ecom-primary);
}
.ecom-organic-cert-inner span { display: flex; align-items: center; gap: 6px; }

.ecom-organic-footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 48px 0 32px;
}
.ecom-organic-footer-brand .ecom-brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ecom-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}

@media (max-width: 900px) {
  .ecom-organic-footer-main { grid-template-columns: 1fr 1fr; }
  .ecom-organic-story-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ecom-organic-mainbar { grid-template-columns: auto 1fr; }
  .ecom-organic-left-nav { display: none; }
  .ecom-organic-brand { justify-content: flex-start !important; }
}

/* ── BRAND / LUXURY THEME ──────────────────────────── */

/* Header: centered wordmark, no topbar */
.ecom-brand-header {
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-brand-mainbar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 18px 0;
}

/* Left + right nav */
.ecom-brand-left-nav { display: flex; align-items: center; gap: 28px; }
.ecom-brand-left-nav a { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ecom-text-2); }
.ecom-brand-left-nav a:hover { color: var(--ecom-primary); }

.ecom-brand-right-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
}

/* Centered wordmark */
.ecom-brand-wordmark {
  font-family: var(--ecom-font-display) !important;
  font-size: 1.5rem !important; font-weight: 700 !important;
  letter-spacing: .06em; text-transform: uppercase;
  text-align: center; white-space: nowrap;
}
.ecom-brand-wordmark .ecom-brand-mark { display: none !important; }

/* Icon-only buttons */
.ecom-brand-icon-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--ecom-text); padding: 6px;
  position: relative; display: flex; align-items: center;
  transition: color var(--ecom-fast);
}
.ecom-brand-icon-btn:hover { color: var(--ecom-primary); }
.ecom-brand-cart-btn [data-cart-count] {
  position: absolute; top: -2px; right: -6px;
  background: var(--ecom-primary); color: #fff;
  font-size: 10px; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Expandable search bar */
.ecom-brand-search-bar {
  border-top: 1px solid var(--ecom-border);
  padding: 12px 0; background: var(--ecom-surface);
}
.ecom-brand-search-bar .ecom-container { display: flex; gap: 12px; align-items: center; }
.ecom-brand-search-form { flex: 1; }
.ecom-brand-search-close { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--ecom-muted); }

/* Brand hero */
.ecom-brand-hero { background: var(--ecom-hero-bg); padding: 60px 0; }
.ecom-brand-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ecom-brand-hero-eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ecom-primary); margin-bottom: 16px;
}
.ecom-brand-hero-copy h1 {
  font-family: var(--ecom-font-display);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 16px;
}
.ecom-brand-hero-copy p { font-size: 16px; color: var(--ecom-text-2); margin-bottom: 28px; line-height: 1.7; }

/* Featured hero item */
.ecom-brand-hero-feature {
  display: block; border-radius: var(--ecom-radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 3/4;
}
.ecom-brand-hero-feature img { width: 100%; height: 100%; object-fit: cover; }
.ecom-brand-hero-feature-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 32px 20px 20px; color: #fff;
}
.ecom-brand-hero-feature-info span { display: block; font-size: 14px; margin-bottom: 4px; }
.ecom-brand-hero-feature-info strong { font-size: 18px; }

/* Brand product grid — larger, fewer columns */
.ecom-brand-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

/* Section head */
.ecom-brand-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; border-bottom: 1px solid var(--ecom-border); padding-bottom: 12px;
}
.ecom-brand-section-head h2 { font-family: var(--ecom-font-display); margin: 0; }
.ecom-brand-section-head a { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }

/* Category showcase — editorial 2-row grid */
.ecom-brand-cat-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ecom-brand-cat-card {
  border-radius: var(--ecom-radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 3/4;
}
.ecom-brand-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ecom-brand-cat-card:hover img { transform: scale(1.05); }
.ecom-brand-cat-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 28px 16px 16px; color: #fff;
}
.ecom-brand-cat-label span { display: block; font-family: var(--ecom-font-display); font-size: 15px; font-weight: 700; }
.ecom-brand-cat-label small { font-size: 12px; opacity: .75; }

/* Brand footer */
.ecom-brand-footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 32px;
}
.ecom-brand-wordmark-sm {
  display: block; font-family: var(--ecom-font-display);
  font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 12px; color: var(--ecom-footer-head);
}

@media (max-width: 900px) {
  .ecom-brand-cat-showcase { grid-template-columns: repeat(2, 1fr); }
  .ecom-brand-footer-inner { grid-template-columns: 1fr 1fr; }
  .ecom-brand-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ecom-brand-mainbar { grid-template-columns: auto 1fr; }
  .ecom-brand-left-nav { display: none; }
  .ecom-brand-wordmark { text-align: left; }
}

/* ── GADGETS THEME ─────────────────────────────────── */

/* Deals topbar */
.ecom-gadgets-topbar {
  background: var(--ecom-topbar-bg);
  color: var(--ecom-topbar-text);
  font-size: 12px; padding: 6px 0;
}
.ecom-gadgets-topbar-inner {
  display: flex; align-items: center; gap: 16px;
}
.ecom-gadgets-deal-badge {
  background: var(--ecom-primary); color: #fff;
  padding: 3px 10px; border-radius: var(--ecom-radius-full);
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ecom-gadgets-topbar-links { margin-left: auto; display: flex; gap: 16px; }
.ecom-gadgets-topbar-links a { color: var(--ecom-topbar-link); font-size: 12px; }

/* Tech header */
.ecom-gadgets-header { border-bottom: none; }
.ecom-gadgets-mainbar { padding: 12px 0; }
.ecom-gadgets-brand .ecom-brand-mark { background: var(--ecom-primary); color: #fff; }
.ecom-gadgets-search input { background: var(--ecom-surface); }

/* Tech nav */
.ecom-gadgets-nav {
  border-top: 1px solid var(--ecom-border);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-gadgets-cat-btn {
  flex-shrink: 0; background: var(--ecom-catbtn-bg); color: var(--ecom-catbtn-color);
  border: none; padding: 10px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em;
}

.ecom-gadgets-device-links { display: flex; align-items: center; overflow-x: auto; gap: 0; flex: 1; }
.ecom-gadgets-device-link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ecom-text-2); white-space: nowrap;
  border-right: 1px solid var(--ecom-border);
  transition: color var(--ecom-fast), background var(--ecom-fast);
}
.ecom-gadgets-device-link:hover { color: var(--ecom-primary); background: var(--ecom-primary-light); }
.ecom-gadgets-deal-link {
  padding: 10px 14px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ecom-accent); display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}

/* Gadgets hero (dark-ish) */
.ecom-gadgets-hero {
  background: var(--ecom-hero-bg);
  padding: 48px 0;
}
.ecom-gadgets-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.ecom-gadgets-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ecom-primary); color: #fff;
  padding: 4px 12px; border-radius: var(--ecom-radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.ecom-gadgets-hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: -.01em;
}
.ecom-gadgets-hero-copy p { color: var(--ecom-text-2); margin-bottom: 20px; }
.ecom-gadgets-hero-specs {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.ecom-gadgets-hero-specs span {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ecom-primary); font-weight: 700;
}

.ecom-gadgets-hero-products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ecom-gadgets-hero-item {
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); overflow: hidden;
  transition: box-shadow var(--ecom-mid), transform var(--ecom-mid);
}
.ecom-gadgets-hero-item:hover { transform: translateY(-4px); box-shadow: var(--ecom-card-hover-shadow); }
.ecom-gadgets-hero-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ecom-gadgets-hero-item-info { padding: 8px 10px; }
.ecom-gadgets-hero-item-info span { display: block; font-size: 11px; color: var(--ecom-text-2); }
.ecom-gadgets-hero-item-info strong { font-size: 13px; color: var(--ecom-primary); }

/* Device category icon grid */
.ecom-gadgets-cats-section { background: var(--ecom-surface); }
.ecom-gadgets-cat-icons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px;
}
.ecom-gadgets-cat-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 8px; text-align: center;
  background: var(--ecom-card-bg); border: 1px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius); cursor: pointer;
  transition: all var(--ecom-mid);
}
.ecom-gadgets-cat-icon-item:hover { border-color: var(--ecom-primary); box-shadow: var(--ecom-shadow-sm); }
.ecom-gadgets-cat-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--ecom-radius-sm);
  background: var(--ecom-primary-light); color: var(--ecom-primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ecom-gadgets-cat-icon-item span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Deals section highlight */
.ecom-gadgets-deals-section { background: var(--ecom-band-bg, var(--ecom-soft)); }

@media (max-width: 900px) {
  .ecom-gadgets-hero-inner { grid-template-columns: 1fr; }
  .ecom-gadgets-hero-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ecom-gadgets-topbar-inner { justify-content: center; }
  .ecom-gadgets-device-links { display: none; }
}

/* =====================================================
   BABYFOOD THEME — Color Variables
   Soft mint green + coral, warm cream backgrounds,
   large rounded corners, nurturing & playful feel.
===================================================== */
.ecom-theme-babyfood {
  --ecom-primary:           #5cb87a;
  --ecom-primary-dark:      #45a064;
  --ecom-primary-light:     #e8f7ee;
  --ecom-primary-rgb:       92, 184, 122;
  --ecom-accent:            #ff7043;
  --ecom-accent-dark:       #e64a19;
  --ecom-danger:            #e53935;
  --ecom-danger-light:      #fef2f2;
  --ecom-success:           #43a047;
  --ecom-success-light:     #f1f8f1;
  --ecom-bg:                #fffdf9;
  --ecom-soft:              #f0faf4;
  --ecom-surface:           #fdf8f3;
  --ecom-text:              #2d3a2e;
  --ecom-text-2:            #4a5e4c;
  --ecom-muted:             #7a917c;
  --ecom-subtle:            #a8bfaa;
  --ecom-border:            #deeedd;
  --ecom-border-strong:     #b8d4bc;
  --ecom-topbar-bg:         #2e7d32;
  --ecom-topbar-text:       #c8e6c9;
  --ecom-topbar-link:       #a5d6a7;
  --ecom-header-bg:         #ffffff;
  --ecom-header-shadow:     0 2px 16px rgba(45,58,46,.07);
  --ecom-nav-bg:            #ffffff;
  --ecom-nav-border:        #deeedd;
  --ecom-catbtn-bg:         #5cb87a;
  --ecom-catbtn-color:      #ffffff;
  --ecom-hero-bg:           linear-gradient(135deg,#e8f7ee 0%,#fffdf9 55%,#fff0eb 100%);
  --ecom-card-bg:           #ffffff;
  --ecom-card-border:       #e2eed9;
  --ecom-card-radius:       16px;
  --ecom-card-hover-shadow: 0 8px 32px rgba(92,184,122,.18);
  --ecom-footer-bg:         #1a3d1e;
  --ecom-footer-border:     rgba(255,255,255,.08);
  --ecom-footer-text:       #9dcca3;
  --ecom-footer-head:       #e8f5e9;
  --ecom-input-bg:          #ffffff;
  --ecom-input-border:      #b8d4bc;
  --ecom-shadow-xs:         0 1px 3px rgba(45,58,46,.06);
  --ecom-shadow-sm:         0 2px 10px rgba(45,58,46,.09);
  --ecom-shadow:            0 4px 20px rgba(45,58,46,.1);
  --ecom-shadow-lg:         0 12px 48px rgba(45,58,46,.14);
  --ecom-radius-sm:         10px;
  --ecom-radius:            16px;
  --ecom-radius-lg:         24px;
  --ecom-radius-full:       9999px;
  --ecom-font:              'Inter','Nunito','Segoe UI',system-ui,sans-serif;
  --ecom-font-display:      'Inter','Nunito','Segoe UI',system-ui,sans-serif;
}

/* =====================================================
   BABYFOOD THEME — Structural Layout Components
===================================================== */

/* ── Topbar ──────────────────────────────────────── */
.ecom-babyfood-topbar {
  background: var(--ecom-topbar-bg);
  color: var(--ecom-topbar-text);
  font-size: 12.5px;
  padding: 7px 0;
}
.ecom-babyfood-topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ecom-babyfood-topbar-left { display: flex; align-items: center; gap: 16px; }
.ecom-babyfood-topbar-left a,
.ecom-babyfood-topbar-left span { color: var(--ecom-topbar-text); font-size: 12.5px; display:flex; align-items:center; gap:5px; }
.ecom-babyfood-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ecom-babyfood-topbar-right a {
  color: var(--ecom-topbar-link);
  font-size: 12.5px;
  display: flex; align-items: center; gap: 5px;
  transition: color var(--ecom-fast);
}
.ecom-babyfood-topbar-right a:hover { color: #fff; }
.ecom-babyfood-topbar-right .ecom-babyfood-cart-count {
  background: var(--ecom-accent);
  color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Header ─────────────────────────────────────── */
.ecom-babyfood-header {
  background: var(--ecom-header-bg);
  box-shadow: var(--ecom-header-shadow);
  position: sticky; top: 0; z-index: 200;
}
.ecom-babyfood-mainbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.ecom-babyfood-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.ecom-babyfood-brand-mark {
  width: 42px; height: 42px;
  background: var(--ecom-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.ecom-babyfood-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ecom-text);
  line-height: 1;
}
.ecom-babyfood-brand-tagline {
  font-size: 11px;
  color: var(--ecom-muted);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}
.ecom-babyfood-header-actions {
  display: flex; align-items: center; gap: 10px;
}
.ecom-babyfood-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ecom-soft); border: none; cursor: pointer;
  font-size: 16px; color: var(--ecom-text-2);
  position: relative; transition: all var(--ecom-fast);
}
.ecom-babyfood-icon-btn:hover { background: var(--ecom-primary-light); color: var(--ecom-primary); }
.ecom-babyfood-icon-btn .ecom-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--ecom-accent); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.ecom-babyfood-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ecom-accent); color: #fff;
  border: none; border-radius: var(--ecom-radius-full);
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background var(--ecom-fast);
}
.ecom-babyfood-cart-btn:hover { background: var(--ecom-accent-dark); }
.ecom-babyfood-cart-btn [data-cart-count] {
  background: rgba(255,255,255,.25);
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* ── Navigation ─────────────────────────────────── */
.ecom-babyfood-nav {
  border-top: 1px solid var(--ecom-border);
  background: var(--ecom-nav-bg);
}
.ecom-babyfood-nav-inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.ecom-babyfood-nav-inner::-webkit-scrollbar { display: none; }
.ecom-babyfood-nav-link {
  padding: 11px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ecom-text-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--ecom-fast);
  display: flex; align-items: center; gap: 5px;
}
.ecom-babyfood-nav-link:hover,
.ecom-babyfood-nav-link.active {
  color: var(--ecom-primary);
  border-bottom-color: var(--ecom-primary);
}
.ecom-babyfood-nav-link.highlight {
  color: var(--ecom-accent);
  font-weight: 700;
}
.ecom-babyfood-nav-link.highlight:hover { color: var(--ecom-accent-dark); border-bottom-color: var(--ecom-accent); }

/* ── Hero Slider ─────────────────────────────────── */
.ecom-babyfood-hero {
  position: relative;
  overflow: hidden;
  background: var(--ecom-hero-bg);
}
.ecom-babyfood-slides {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.ecom-babyfood-slide {
  min-width: 100%;
  padding: 56px 0;
}
.ecom-babyfood-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ecom-babyfood-slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ecom-accent);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--ecom-radius-full);
  margin-bottom: 18px;
}
.ecom-babyfood-slide h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.2;
  color: var(--ecom-text); margin-bottom: 14px;
}
.ecom-babyfood-slide p {
  font-size: 15px; color: var(--ecom-text-2);
  line-height: 1.7; margin-bottom: 28px; max-width: 440px;
}
.ecom-babyfood-slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ecom-babyfood-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ecom-accent); color: #fff;
  padding: 12px 28px; border-radius: var(--ecom-radius-full);
  font-size: 14px; font-weight: 700;
  transition: background var(--ecom-fast), transform var(--ecom-fast);
  box-shadow: 0 4px 16px rgba(255,112,67,.3);
}
.ecom-babyfood-hero-cta:hover { background: var(--ecom-accent-dark); transform: translateY(-2px); color:#fff; }
.ecom-babyfood-hero-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ecom-primary);
  border: 2px solid var(--ecom-primary);
  padding: 10px 24px; border-radius: var(--ecom-radius-full);
  font-size: 14px; font-weight: 700;
  transition: all var(--ecom-fast);
}
.ecom-babyfood-hero-cta-outline:hover {
  background: var(--ecom-primary); color: #fff;
}
/* Hero image area */
.ecom-babyfood-hero-image {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.ecom-babyfood-hero-image-wrap {
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(92,184,122,.12);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.ecom-babyfood-hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.ecom-babyfood-hero-image-wrap.coral {
  background: rgba(255,112,67,.1);
}
.ecom-babyfood-hero-image-wrap.lavender {
  background: rgba(149,117,205,.1);
}
/* Floating trust bubbles on hero */
.ecom-babyfood-hero-bubble {
  position: absolute;
  background: #fff;
  border-radius: var(--ecom-radius);
  padding: 10px 14px;
  box-shadow: var(--ecom-shadow);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.ecom-babyfood-hero-bubble i { color: var(--ecom-primary); font-size: 16px; }
.ecom-babyfood-hero-bubble.top-right { top: 20px; right: -20px; }
.ecom-babyfood-hero-bubble.bottom-left { bottom: 30px; left: -20px; }
/* Slider dots */
.ecom-babyfood-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 16px 0 24px;
}
.ecom-babyfood-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ecom-border-strong); border: none; cursor: pointer;
  transition: all var(--ecom-mid); padding: 0;
}
.ecom-babyfood-dot.active {
  background: var(--ecom-primary);
  width: 24px; border-radius: var(--ecom-radius-full);
}

/* ── Age-Based Category Section ──────────────────── */
.ecom-babyfood-age-section {
  padding: 56px 0 48px;
  background: var(--ecom-bg);
}
.ecom-babyfood-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.ecom-babyfood-section-head .ecom-babyfood-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ecom-accent);
  margin-bottom: 8px;
}
.ecom-babyfood-section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--ecom-text);
  margin: 0 0 8px;
}
.ecom-babyfood-section-head p {
  color: var(--ecom-muted); font-size: 14px; max-width: 480px; margin: 0 auto;
}
/* Age circles row */
.ecom-babyfood-age-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ecom-babyfood-age-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; text-decoration: none;
  transition: transform var(--ecom-mid);
}
.ecom-babyfood-age-card:hover { transform: translateY(-6px); }
.ecom-babyfood-age-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ecom-border);
  background: var(--ecom-soft);
  transition: border-color var(--ecom-mid), box-shadow var(--ecom-mid);
  position: relative;
}
.ecom-babyfood-age-card:hover .ecom-babyfood-age-circle {
  border-color: var(--ecom-primary);
  box-shadow: 0 0 0 4px var(--ecom-primary-light);
}
.ecom-babyfood-age-circle img {
  width: 100%; height: 100%; object-fit: cover;
}
.ecom-babyfood-age-circle-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.ecom-babyfood-age-label {
  text-align: center;
}
.ecom-babyfood-age-label span {
  display: block; font-size: 13px; font-weight: 700; color: var(--ecom-text);
}
.ecom-babyfood-age-label small {
  font-size: 11px; color: var(--ecom-muted);
}

/* ── Tabbed Products Section ─────────────────────── */
.ecom-babyfood-products-section {
  padding: 48px 0;
  background: var(--ecom-surface);
}
.ecom-babyfood-tabs-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
}
.ecom-babyfood-tab-list {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ecom-babyfood-tab-btn {
  padding: 8px 20px;
  border: 2px solid var(--ecom-border);
  background: #fff; color: var(--ecom-text-2);
  font-size: 13px; font-weight: 600;
  border-radius: var(--ecom-radius-full);
  cursor: pointer; transition: all var(--ecom-fast);
}
.ecom-babyfood-tab-btn:hover {
  border-color: var(--ecom-primary); color: var(--ecom-primary);
}
.ecom-babyfood-tab-btn.active {
  background: var(--ecom-primary); border-color: var(--ecom-primary);
  color: #fff; box-shadow: 0 4px 12px rgba(92,184,122,.3);
}
.ecom-babyfood-tab-panel { display: none; }
.ecom-babyfood-tab-panel.active { display: block; }

/* ── Why Choose Us ───────────────────────────────── */
.ecom-babyfood-why-section {
  padding: 56px 0;
  background: var(--ecom-primary);
  position: relative;
  overflow: hidden;
}
.ecom-babyfood-why-section::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.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.ecom-babyfood-why-section .ecom-babyfood-section-head h2 { color: #fff; }
.ecom-babyfood-why-section .ecom-babyfood-section-head p { color: rgba(255,255,255,.8); }
.ecom-babyfood-why-section .ecom-babyfood-eyebrow { color: rgba(255,255,255,.7) !important; }
.ecom-babyfood-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.ecom-babyfood-why-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border-radius: var(--ecom-radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: background var(--ecom-mid), transform var(--ecom-mid);
}
.ecom-babyfood-why-card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-4px);
}
.ecom-babyfood-why-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; margin: 0 auto 16px;
}
.ecom-babyfood-why-card h3 {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.ecom-babyfood-why-card p {
  font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0;
}

/* ── Promotional Banner ──────────────────────────── */
.ecom-babyfood-promo-banner {
  padding: 40px 0;
  background: var(--ecom-bg);
}
.ecom-babyfood-promo-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.ecom-babyfood-promo-card {
  border-radius: var(--ecom-radius-lg);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.ecom-babyfood-promo-card.green {
  background: linear-gradient(135deg, #e8f7ee 0%, #c8e6c9 100%);
}
.ecom-babyfood-promo-card.coral {
  background: linear-gradient(135deg, #fff0eb 0%, #ffccbc 100%);
}
.ecom-babyfood-promo-card span {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ecom-primary); margin-bottom: 8px; display: block;
}
.ecom-babyfood-promo-card.coral span { color: var(--ecom-accent); }
.ecom-babyfood-promo-card h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--ecom-text);
  margin-bottom: 8px; line-height: 1.3;
}
.ecom-babyfood-promo-card p {
  font-size: 13px; color: var(--ecom-text-2); margin-bottom: 20px;
}
.ecom-babyfood-promo-card a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--ecom-primary); text-decoration: none;
}
.ecom-babyfood-promo-card.coral a { color: var(--ecom-accent); }
.ecom-babyfood-promo-card-img {
  position: absolute; right: 24px; bottom: 0;
  width: 130px; opacity: .18;
  font-size: 80px; color: var(--ecom-primary);
  display: flex; align-items: flex-end;
}

/* ── Testimonials ────────────────────────────────── */
.ecom-babyfood-testimonials {
  padding: 56px 0;
  background: var(--ecom-soft);
}
.ecom-babyfood-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ecom-babyfood-testimonial-card {
  background: #fff;
  border-radius: var(--ecom-radius-lg);
  padding: 28px;
  box-shadow: var(--ecom-shadow-sm);
  position: relative;
}
.ecom-babyfood-testimonial-card::before {
  content: '\201C';
  position: absolute; top: 16px; left: 22px;
  font-size: 60px; line-height: 1;
  color: var(--ecom-primary-light); font-family: Georgia, serif;
}
.ecom-babyfood-stars {
  display: flex; gap: 3px; margin-bottom: 12px; margin-top: 12px;
}
.ecom-babyfood-stars i { color: #fbbf24; font-size: 14px; }
.ecom-babyfood-testimonial-card p {
  font-size: 14px; line-height: 1.7; color: var(--ecom-text-2);
  margin-bottom: 20px; font-style: italic;
}
.ecom-babyfood-reviewer {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--ecom-border); padding-top: 16px;
}
.ecom-babyfood-reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ecom-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--ecom-primary);
  flex-shrink: 0;
}
.ecom-babyfood-reviewer-name { font-size: 13px; font-weight: 700; color: var(--ecom-text); }
.ecom-babyfood-reviewer-meta { font-size: 11px; color: var(--ecom-muted); }

/* Social proof bar */
.ecom-babyfood-social-proof {
  background: var(--ecom-accent);
  padding: 16px 0; color: #fff;
}
.ecom-babyfood-proof-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.ecom-babyfood-proof-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ecom-babyfood-proof-stat strong { font-size: 1.4rem; font-weight: 800; }
.ecom-babyfood-proof-stat span { font-size: 12px; opacity: .85; }

/* ── FAQ Section ─────────────────────────────────── */
.ecom-babyfood-faq {
  padding: 56px 0;
  background: var(--ecom-bg);
}
.ecom-babyfood-faq-wrap { max-width: 720px; margin: 0 auto; }
.ecom-babyfood-faq-item {
  border: 1px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow var(--ecom-mid);
}
.ecom-babyfood-faq-item:hover { box-shadow: var(--ecom-shadow-sm); }
.ecom-babyfood-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ecom-text);
  user-select: none;
}
.ecom-babyfood-faq-q i { color: var(--ecom-primary); transition: transform var(--ecom-fast); flex-shrink: 0; }
.ecom-babyfood-faq-item.open .ecom-babyfood-faq-q i { transform: rotate(45deg); }
.ecom-babyfood-faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 13.5px; color: var(--ecom-text-2); line-height: 1.7;
}
.ecom-babyfood-faq-item.open .ecom-babyfood-faq-a { display: block; }

/* ── Newsletter ──────────────────────────────────── */
.ecom-babyfood-newsletter {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--ecom-primary-light) 0%, var(--ecom-soft) 100%);
  text-align: center;
}
.ecom-babyfood-newsletter h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800; color: var(--ecom-text); margin-bottom: 8px;
}
.ecom-babyfood-newsletter p { color: var(--ecom-text-2); margin-bottom: 24px; font-size: 14px; }
.ecom-babyfood-newsletter-form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
}
.ecom-babyfood-newsletter-form input {
  flex: 1; padding: 12px 18px;
  border: 2px solid var(--ecom-border); border-radius: var(--ecom-radius-full);
  font-size: 14px; background: #fff; color: var(--ecom-text);
  outline: none; transition: border-color var(--ecom-fast);
}
.ecom-babyfood-newsletter-form input:focus { border-color: var(--ecom-primary); }
.ecom-babyfood-newsletter-form button {
  padding: 12px 24px;
  background: var(--ecom-accent); color: #fff;
  border: none; border-radius: var(--ecom-radius-full);
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background var(--ecom-fast);
}
.ecom-babyfood-newsletter-form button:hover { background: var(--ecom-accent-dark); }

/* ── Footer ──────────────────────────────────────── */
.ecom-babyfood-footer { background: var(--ecom-footer-bg); }
.ecom-babyfood-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--ecom-footer-border);
}
.ecom-babyfood-footer-brand-col .ecom-babyfood-footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.ecom-babyfood-footer-logo .ecom-babyfood-brand-mark {
  width: 36px; height: 36px; font-size: 16px;
}
.ecom-babyfood-footer-logo strong {
  font-size: 1.1rem; font-weight: 800; color: var(--ecom-footer-head);
}
.ecom-babyfood-footer-brand-col p {
  font-size: 13px; color: var(--ecom-footer-text); line-height: 1.7; margin-bottom: 18px;
}
.ecom-babyfood-footer-col h5 {
  font-size: 13px; font-weight: 700; color: var(--ecom-footer-head);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 16px;
}
.ecom-babyfood-footer-col a {
  display: block; font-size: 13px; color: var(--ecom-footer-text);
  margin-bottom: 9px; transition: color var(--ecom-fast);
}
.ecom-babyfood-footer-col a:hover { color: #fff; }
.ecom-babyfood-footer-col .ecom-babyfood-footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ecom-footer-text); margin-bottom: 10px;
}
.ecom-babyfood-footer-col .ecom-babyfood-footer-contact-item i {
  color: var(--ecom-primary); margin-top: 2px; flex-shrink: 0;
}
.ecom-babyfood-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.ecom-babyfood-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--ecom-footer-text); font-size: 14px;
  transition: background var(--ecom-fast), color var(--ecom-fast);
}
.ecom-babyfood-footer-social a:hover { background: var(--ecom-primary); color: #fff; }
.ecom-babyfood-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  font-size: 12px; color: var(--ecom-footer-text);
}
.ecom-babyfood-footer-payments { display: flex; gap: 6px; }
.ecom-babyfood-footer-payments span {
  background: rgba(255,255,255,.1); color: var(--ecom-footer-text);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}

/* ── Babyfood Product Card ───────────────────────── */
.ecom-babyfood-product-card {
  background: var(--ecom-card-bg);
  border: 1.5px solid var(--ecom-card-border);
  border-radius: var(--ecom-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--ecom-mid), transform var(--ecom-mid), border-color var(--ecom-mid);
  position: relative;
  display: flex; flex-direction: column;
}
.ecom-babyfood-product-card:hover {
  box-shadow: var(--ecom-card-hover-shadow);
  transform: translateY(-4px);
  border-color: var(--ecom-primary);
}
.ecom-babyfood-card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ecom-soft);
}
.ecom-babyfood-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ecom-babyfood-product-card:hover .ecom-babyfood-card-media img { transform: scale(1.06); }
.ecom-babyfood-card-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--ecom-accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--ecom-radius-full);
}
.ecom-babyfood-card-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ecom-muted);
  box-shadow: var(--ecom-shadow-xs);
  transition: color var(--ecom-fast), transform var(--ecom-fast);
}
.ecom-babyfood-card-wishlist:hover { color: #e53935; transform: scale(1.15); }
.ecom-babyfood-card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}
.ecom-babyfood-card-name {
  font-size: 13.5px; font-weight: 700; color: var(--ecom-text);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ecom-babyfood-card-meta {
  font-size: 11px; color: var(--ecom-muted); margin-bottom: 8px;
}
.ecom-babyfood-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.ecom-babyfood-card-rating i { color: #fbbf24; font-size: 12px; }
.ecom-babyfood-card-rating span { font-size: 11px; color: var(--ecom-muted); }
.ecom-babyfood-card-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 12px; margin-top: auto;
}
.ecom-babyfood-card-price strong {
  font-size: 15px; font-weight: 800; color: var(--ecom-primary);
}
.ecom-babyfood-card-price del { font-size: 12px; color: var(--ecom-muted); }
.ecom-babyfood-card-form {
  display: flex; gap: 8px; align-items: center;
}
.ecom-babyfood-card-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--ecom-border); border-radius: var(--ecom-radius-full);
  overflow: hidden; flex-shrink: 0;
}
.ecom-babyfood-card-stepper button {
  width: 28px; height: 28px; background: var(--ecom-soft); border: none;
  cursor: pointer; font-size: 13px; color: var(--ecom-text-2);
  transition: background var(--ecom-fast);
}
.ecom-babyfood-card-stepper button:hover { background: var(--ecom-primary-light); color: var(--ecom-primary); }
.ecom-babyfood-card-stepper input {
  width: 32px; text-align: center; border: none; border-left: 1.5px solid var(--ecom-border);
  border-right: 1.5px solid var(--ecom-border); font-size: 13px; font-weight: 600;
  background: #fff; color: var(--ecom-text); padding: 4px 0;
}
.ecom-babyfood-card-stepper input:focus { outline: none; }
.ecom-babyfood-card-add {
  flex: 1; padding: 8px 12px;
  background: var(--ecom-accent); color: #fff;
  border: none; border-radius: var(--ecom-radius-full);
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--ecom-fast);
}
.ecom-babyfood-card-add:hover { background: var(--ecom-accent-dark); }

/* ── Benefits (Why Baby Bites) ───────────────────── */
.ecom-babyfood-benefits-section {
  padding: 64px 0;
  background: var(--ecom-soft);
}
.ecom-babyfood-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.ecom-babyfood-benefit-card {
  background: #fff;
  border-radius: var(--ecom-radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--ecom-shadow-xs);
  transition: box-shadow var(--ecom-fast), transform var(--ecom-fast);
}
.ecom-babyfood-benefit-card:hover {
  box-shadow: var(--ecom-shadow);
  transform: translateY(-4px);
}
.ecom-babyfood-benefit-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.ecom-babyfood-benefit-card h4 {
  font-size: 15px; font-weight: 800;
  color: var(--ecom-text); margin-bottom: 10px;
}
.ecom-babyfood-benefit-card p { font-size: 13px; color: var(--ecom-muted); line-height: 1.6; margin: 0; }

/* ── Why We Are Better ───────────────────────────── */
.ecom-babyfood-better-section { padding: 64px 0; background: #fff; }
.ecom-babyfood-better-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.ecom-babyfood-better-card {
  border-radius: var(--ecom-radius);
  overflow: hidden;
  border: 1.5px solid var(--ecom-border);
  background: #fff;
  box-shadow: var(--ecom-shadow-xs);
  transition: box-shadow var(--ecom-fast), transform var(--ecom-fast);
}
.ecom-babyfood-better-card:hover { box-shadow: var(--ecom-shadow); transform: translateY(-4px); }
.ecom-babyfood-better-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ecom-babyfood-better-img img { width: 100%; height: 100%; object-fit: cover; }
.ecom-babyfood-better-body { padding: 18px 16px; }
.ecom-babyfood-better-body h4 { font-size: 14px; font-weight: 800; color: var(--ecom-text); margin-bottom: 8px; }
.ecom-babyfood-better-body p  { font-size: 12px; color: var(--ecom-muted); line-height: 1.6; margin: 0; }

/* ── What Makes Us Different ─────────────────────── */
.ecom-babyfood-diff-section { padding: 64px 0; background: var(--ecom-surface); }
.ecom-babyfood-diff-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
}
.ecom-babyfood-diff-col { flex: 1; max-width: 340px; }
.ecom-babyfood-diff-img-wrap {
  position: relative;
  border-radius: var(--ecom-radius);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3/2;
  background: var(--ecom-soft);
  display: flex; align-items: center; justify-content: center;
}
.ecom-babyfood-diff-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.ecom-babyfood-diff-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--ecom-primary); opacity: .4;
}
.ecom-babyfood-diff-img-placeholder.theirs { color: #aaa; }
.ecom-babyfood-diff-label-badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  padding: 4px 18px; border-radius: var(--ecom-radius-full);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.our-badge  { background: var(--ecom-primary); color: #fff; }
.their-badge { background: #ccc; color: #444; }
.ecom-babyfood-diff-list { list-style: none; padding: 0; margin: 0; }
.ecom-babyfood-diff-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--ecom-border);
  font-size: 13px; color: var(--ecom-text-2); line-height: 1.5;
}
.ecom-babyfood-diff-list li:last-child { border-bottom: none; }
.ecom-babyfood-diff-list li .fa-check { color: var(--ecom-success); flex-shrink: 0; margin-top: 3px; }
.ecom-babyfood-diff-list li .fa-times  { color: var(--ecom-danger);  flex-shrink: 0; margin-top: 3px; }
.ecom-babyfood-diff-list.theirs li { color: var(--ecom-muted); }
.ecom-babyfood-diff-vs {
  display: flex; align-items: center; padding-top: 100px; flex-shrink: 0;
}
.ecom-babyfood-diff-vs-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ecom-accent);
  color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,112,67,.35);
}

/* ── Homemade CTA Banner ─────────────────────────── */
.ecom-babyfood-homemade-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, #fff8f0 0%, #fffdf9 100%);
  overflow: hidden;
}
.ecom-babyfood-homemade-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.ecom-babyfood-homemade-img-col {
  flex: 0 0 340px;
  position: relative;
}
.ecom-babyfood-homemade-img-col img {
  width: 100%;
  border-radius: var(--ecom-radius-lg);
  box-shadow: var(--ecom-shadow-lg);
}
.ecom-babyfood-homemade-placeholder {
  width: 100%; height: 280px;
  border-radius: var(--ecom-radius-lg);
  background: var(--ecom-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--ecom-primary); opacity: .3;
}
.ecom-babyfood-rainbow {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 140px; height: 140px;
  border: 14px solid var(--ecom-accent);
  border-radius: 50%;
  opacity: .15;
  pointer-events: none;
}
.ecom-babyfood-homemade-text-col { flex: 1; }
.ecom-babyfood-homemade-text-col h2 {
  font-size: 2rem; font-weight: 900; color: var(--ecom-text); line-height: 1.25; margin-bottom: 14px;
}
.ecom-babyfood-homemade-text-col p { font-size: 14px; color: var(--ecom-text-2); line-height: 1.7; margin-bottom: 0; }

/* ── Blog / Tips ─────────────────────────────────── */
.ecom-babyfood-blog-section { padding: 64px 0; background: #fffdf9; }
.ecom-babyfood-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.ecom-babyfood-blog-card {
  border-radius: var(--ecom-radius);
  overflow: hidden;
  border: 1.5px solid var(--ecom-border);
  background: #fff;
  box-shadow: var(--ecom-shadow-xs);
  transition: box-shadow var(--ecom-fast), transform var(--ecom-fast);
  display: flex; flex-direction: column;
}
.ecom-babyfood-blog-card:hover { box-shadow: var(--ecom-shadow); transform: translateY(-4px); }
.ecom-babyfood-blog-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ecom-babyfood-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ecom-babyfood-blog-body { padding: 20px 18px; display: flex; flex-direction: column; flex: 1; }
.ecom-babyfood-blog-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ecom-primary); margin-bottom: 8px; display: block;
}
.ecom-babyfood-blog-body h4 {
  font-size: 14px; font-weight: 800; color: var(--ecom-text);
  line-height: 1.45; margin-bottom: 10px;
}
.ecom-babyfood-blog-body p { font-size: 12.5px; color: var(--ecom-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.ecom-babyfood-blog-read {
  font-size: 12px; font-weight: 700; color: var(--ecom-accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.ecom-babyfood-blog-read:hover { color: var(--ecom-accent-dark); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .ecom-babyfood-why-grid { grid-template-columns: repeat(2, 1fr); }
  .ecom-babyfood-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .ecom-babyfood-better-grid { grid-template-columns: repeat(2, 1fr); }
  .ecom-babyfood-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ecom-babyfood-slide-inner { grid-template-columns: 1fr; }
  .ecom-babyfood-hero-image { display: none; }
  .ecom-babyfood-testimonial-grid { grid-template-columns: 1fr; }
  .ecom-babyfood-promo-inner { grid-template-columns: 1fr; }
  .ecom-babyfood-mainbar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .ecom-babyfood-proof-inner { gap: 24px; }
  .ecom-babyfood-diff-inner { flex-direction: column; align-items: center; }
  .ecom-babyfood-diff-col { max-width: 100%; width: 100%; }
  .ecom-babyfood-diff-vs { padding-top: 0; }
  .ecom-babyfood-homemade-inner { flex-direction: column; }
  .ecom-babyfood-homemade-img-col { flex: none; width: 100%; max-width: 380px; }
  .ecom-babyfood-blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ecom-babyfood-why-grid { grid-template-columns: 1fr; }
  .ecom-babyfood-benefits-grid { grid-template-columns: 1fr; }
  .ecom-babyfood-better-grid { grid-template-columns: repeat(2, 1fr); }
  .ecom-babyfood-footer-top { grid-template-columns: 1fr; }
  .ecom-babyfood-newsletter-form { flex-direction: column; }
  .ecom-babyfood-age-circle { width: 80px; height: 80px; }
}

/* =====================================================
   TOM SELECT — Theme Override
   Makes Tom Select dropdowns match the storefront
   input style (border-radius, colours, focus ring).
===================================================== */
.ts-wrapper { width: 100%; margin-top: 6px; }
.ts-wrapper.single .ts-control,
.ts-wrapper.multi  .ts-control {
  display:        flex !important;
  align-items:    center !important;
  min-height:     42px !important;
  padding:        8px 36px 8px 12px !important;
  border:         1.5px solid var(--ecom-input-border) !important;
  border-radius:  var(--ecom-radius-sm, 8px) !important;
  background:     var(--ecom-input-bg, #fff) !important;
  color:          var(--ecom-text, #0f172a) !important;
  font:           inherit !important;
  font-size:      14px !important;
  cursor:         pointer !important;
  box-shadow:     none !important;
  line-height:    1.5 !important;
}
.ts-wrapper.focus .ts-control,
.ts-wrapper.single.input-active .ts-control {
  border-color: var(--ecom-primary) !important;
  outline:      2px solid var(--ecom-primary) !important;
  outline-offset: 2px !important;
  box-shadow:   none !important;
}
/* caret arrow */
.ts-wrapper.single .ts-control::after {
  content:          '';
  position:         absolute;
  right:            12px;
  top:              50%;
  transform:        translateY(-50%);
  width:            0; height: 0;
  border-left:      5px solid transparent;
  border-right:     5px solid transparent;
  border-top:       5px solid var(--ecom-muted, #64748b);
  pointer-events:   none;
}
.ts-wrapper .ts-control input {
  flex:         1 !important;
  border:       none !important;
  outline:      none !important;
  background:   transparent !important;
  font:         inherit !important;
  font-size:    14px !important;
  color:        var(--ecom-text) !important;
  padding:      0 !important;
  margin:       0 !important;
  min-width:    50px !important;
}
/* placeholder */
.ts-wrapper .ts-control .placeholder {
  color: var(--ecom-subtle, #94a3b8) !important;
  font-size: 14px !important;
}
/* Dropdown */
.ts-dropdown {
  border:         1.5px solid var(--ecom-border, #e2e8f0) !important;
  border-radius:  var(--ecom-radius-sm, 8px) !important;
  box-shadow:     var(--ecom-shadow, 0 4px 18px rgba(15,23,42,.09)) !important;
  background:     var(--ecom-card-bg, #fff) !important;
  margin-top:     4px !important;
  padding:        4px 0 !important;
  z-index:        500 !important;
  font-size:      14px !important;
}
.ts-dropdown .ts-dropdown-content {
  max-height: 240px !important;
  overflow-y: auto !important;
}
.ts-dropdown [data-selectable] {
  padding:    9px 14px !important;
  color:      var(--ecom-text, #0f172a) !important;
  cursor:     pointer !important;
  transition: background var(--ecom-fast, .12s), color var(--ecom-fast, .12s) !important;
}
.ts-dropdown [data-selectable]:hover,
.ts-dropdown [data-selectable].active {
  background: var(--ecom-primary-light, #dbeafe) !important;
  color:      var(--ecom-primary, #2563eb) !important;
}
.ts-dropdown [data-selectable].selected {
  background: var(--ecom-primary, #2563eb) !important;
  color:      #fff !important;
}
/* Search input inside dropdown */
.ts-dropdown .ts-dropdown-header,
.ts-wrapper .ts-control input[type=text] { min-width: 40px !important; }
/* "No results" message */
.ecom-ts-empty {
  padding: 10px 14px;
  color:   var(--ecom-muted, #64748b);
  font-size: 13px;
}
/* Option item */
.ecom-ts-opt { padding: 0; }
/* Remove default Tom Select spinner / loading style conflict */
.ts-wrapper.loading .ts-control::after { border: none; }
/* Disabled state */
.ts-wrapper.disabled .ts-control {
  opacity: .6 !important;
  cursor:  not-allowed !important;
}

/* =====================================================
   CHECKOUT — ADDRESS SECTION CARDS
===================================================== */
.ecom-addr-card {
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius-lg);
  background: var(--ecom-card-bg);
  margin-bottom: 24px;
  overflow: hidden;
}
.ecom-addr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ecom-surface);
  border-bottom: 1px solid var(--ecom-border);
}
.ecom-addr-card-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecom-addr-card-head h2 i { color: var(--ecom-primary); }
.ecom-addr-card-body { padding: 20px; }

/* Sub-section label (Contact / Address) */
.ecom-addr-sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ecom-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ecom-addr-sub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ecom-border);
}
.ecom-addr-sub-label + .ecom-form-grid { margin-bottom: 0; }

.ecom-addr-spacer { height: 18px; }

/* Same-as-billing toggle */
.ecom-same-billing-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ecom-text-2);
  cursor: pointer;
  user-select: none;
}
.ecom-same-billing-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--ecom-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Saved-address picker row */
.ecom-saved-addr-row {
  background: var(--ecom-soft);
  border-bottom: 1px solid var(--ecom-border);
  padding: 12px 20px;
}
.ecom-saved-addr-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ecom-text-2);
  margin: 0;
}

/* =====================================================
   MFS PAYMENT GATEWAYS — Checkout UI
   bKash · Rocket · Nagad
===================================================== */

/* Payment method list spacing */
.ecom-mfs-method-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ecom-mfs-radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ecom-mfs-radio-name  { font-size: 15px; }
.ecom-mfs-radio-sub   { font-size: 12px; color: var(--ecom-muted); }

/* Panel container */
.ecom-mfs-panel {
  border: 1.5px solid var(--ecom-border);
  border-radius: var(--ecom-radius);
  overflow: hidden;
  margin: 12px 0 20px;
  box-shadow: var(--ecom-shadow-sm);
}

/* Coloured header */
.ecom-mfs-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: #fff;
}
.ecom-mfs-gateway-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
}
.ecom-mfs-gateway-type {
  font-size: 12px;
  background: rgba(255,255,255,.2);
  padding: 2px 8px;
  border-radius: var(--ecom-radius-full);
}

/* Body */
.ecom-mfs-panel-body { padding: 16px; background: var(--ecom-card-bg); }

/* Payment number row */
.ecom-mfs-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ecom-muted);
}
.ecom-mfs-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ecom-text);
  letter-spacing: .05em;
}
.ecom-mfs-copy-btn {
  background: var(--ecom-soft);
  border: 1px solid var(--ecom-border);
  border-radius: var(--ecom-radius-sm);
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ecom-text-2);
  transition: background var(--ecom-fast);
}
.ecom-mfs-copy-btn:hover { background: var(--ecom-primary-light); color: var(--ecom-primary); }

/* Amount breakdown box */
.ecom-mfs-amount-box {
  background: var(--ecom-surface);
  border: 1px solid var(--ecom-border);
  border-radius: var(--ecom-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.ecom-mfs-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ecom-text-2);
  padding: 3px 0;
}
.ecom-mfs-charge-row { color: var(--ecom-muted); }
.ecom-mfs-total-row {
  border-top: 1px dashed var(--ecom-border);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 15px;
}

/* Step-by-step instructions */
.ecom-mfs-steps {
  background: var(--ecom-soft);
  border-radius: var(--ecom-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.ecom-mfs-steps-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ecom-muted);
  margin-bottom: 8px;
}
.ecom-mfs-steps ol {
  margin: 0;
  padding-left: 18px;
}
.ecom-mfs-steps ol li {
  font-size: 13px;
  color: var(--ecom-text-2);
  line-height: 1.7;
}

/* TxnID input */
.ecom-mfs-txn-wrap { margin-top: 4px; }
.ecom-mfs-txn-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ecom-text);
  margin-bottom: 6px;
}
.ecom-mfs-txn-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--ecom-border);
  border-radius: var(--ecom-radius-sm);
  background: var(--ecom-input-bg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ecom-text);
  transition: border-color var(--ecom-fast);
}
.ecom-mfs-txn-input:focus {
  border-color: var(--ecom-primary);
  outline: 2px solid var(--ecom-primary);
  outline-offset: 2px;
}
.ecom-mfs-txn-wrap small {
  display: block;
  font-size: 12px;
  color: var(--ecom-muted);
  margin-top: 5px;
}
/* Storefront blog */
.ecom-blog-hero {
    padding: 64px 0 58px;
    background: var(--ecom-soft);
    border-bottom: 1px solid var(--ecom-border);
    text-align: center;
}
.ecom-blog-hero span {
    display: block;
    margin-bottom: 10px;
    color: var(--ecom-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ecom-blog-hero h1 {
    max-width: 780px;
    margin: 0 auto 12px;
    color: var(--ecom-text);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}
.ecom-blog-hero p { max-width: 650px; margin: 0 auto; color: var(--ecom-muted); font-size: 16px; }
.ecom-blog-page { background: #fff; }
.ecom-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: start;
}
.ecom-blog-main,
.ecom-blog-sidebar,
.ecom-blog-card,
.ecom-blog-widget { min-width: 0; max-width: 100%; }
.ecom-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ecom-blog-card {
    overflow: hidden;
    border: 1px solid var(--ecom-border);
    border-radius: var(--ecom-radius);
    background: var(--ecom-card-bg);
    box-shadow: var(--ecom-shadow);
}
.ecom-blog-card-image { position: relative; display: block; height: 245px; overflow: hidden; background: var(--ecom-soft); }
.ecom-blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ecom-blog-card:hover .ecom-blog-card-image img { transform: scale(1.035); }
.ecom-blog-card-image > span { display: grid; height: 100%; place-items: center; color: var(--ecom-muted); font-size: 48px; }
.ecom-blog-card-image > b {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ecom-primary);
    color: var(--ecom-primary-contrast, #fff);
    font-size: 11px;
}
.ecom-blog-card-body { padding: 22px; }
.ecom-blog-meta { display: flex; flex-wrap: wrap; gap: 13px; color: var(--ecom-muted); font-size: 12px; }
.ecom-blog-meta i { color: var(--ecom-primary); margin-right: 4px; }
.ecom-blog-card h2 { margin: 13px 0 10px; font-size: 20px; line-height: 1.35; }
.ecom-blog-card h2 a { color: var(--ecom-text); }
.ecom-blog-card p { min-height: 66px; margin: 0 0 18px; color: var(--ecom-muted); font-size: 14px; line-height: 1.6; }
.ecom-blog-read-more { color: var(--ecom-primary) !important; font-size: 13px; font-weight: 800; }
.ecom-blog-read-more i { margin-left: 4px; transition: transform .2s ease; }
.ecom-blog-read-more:hover i { transform: translateX(3px); }
.ecom-blog-sidebar { position: sticky; top: 20px; display: grid; gap: 22px; }
.ecom-blog-widget {
    padding: 22px;
    border: 1px solid var(--ecom-border);
    border-radius: var(--ecom-radius);
    background: var(--ecom-card-bg);
}
.ecom-blog-widget h3 { margin: 0 0 17px; color: var(--ecom-text); font-size: 17px; }
.ecom-blog-search { display: flex; }
.ecom-blog-search input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 0 13px;
    border: 1px solid var(--ecom-border);
    border-radius: 6px 0 0 6px;
    outline: 0;
    font: inherit;
}
.ecom-blog-search button {
    width: 44px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--ecom-primary);
    color: var(--ecom-primary-contrast, #fff);
}
.ecom-blog-category-list { display: grid; }
.ecom-blog-category-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ecom-border);
    color: var(--ecom-text-2);
    font-size: 14px;
}
.ecom-blog-category-list a:last-child { border: 0; }
.ecom-blog-category-list a.active,
.ecom-blog-category-list a:hover { color: var(--ecom-primary); }
.ecom-blog-category-list b {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--ecom-soft);
    font-size: 11px;
}
.ecom-blog-recent-list { display: grid; gap: 15px; }
.ecom-blog-recent-list > a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.ecom-blog-recent-list img,
.ecom-blog-recent-placeholder { width: 72px; height: 58px; border-radius: 6px; object-fit: cover; }
.ecom-blog-recent-placeholder { display: grid; place-items: center; background: var(--ecom-soft); color: var(--ecom-muted); }
.ecom-blog-recent-list strong { display: block; color: var(--ecom-text); font-size: 13px; line-height: 1.35; }
.ecom-blog-recent-list small { display: block; margin-top: 5px; color: var(--ecom-muted); font-size: 11px; }
.ecom-blog-results-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 14px 17px;
    border-radius: 7px;
    background: var(--ecom-soft);
    color: var(--ecom-text);
}
.ecom-blog-results-head a { color: var(--ecom-primary); }
.ecom-blog-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    border: 1px dashed var(--ecom-border);
    border-radius: var(--ecom-radius);
    text-align: center;
}
.ecom-blog-empty i { color: var(--ecom-muted); font-size: 45px; }
.ecom-blog-empty h2 { margin: 15px 0 8px; color: var(--ecom-text); }
.ecom-blog-empty p { color: var(--ecom-muted); }
.ecom-blog-single-head { padding: 68px 0 55px; background: var(--ecom-soft); text-align: center; }
.ecom-blog-single-category {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--ecom-primary);
    color: var(--ecom-primary-contrast, #fff) !important;
    font-size: 12px;
    font-weight: 800;
}
.ecom-blog-single-head h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--ecom-text);
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.12;
}
.ecom-blog-single-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--ecom-muted); font-size: 13px; }
.ecom-blog-single-meta i { margin-right: 5px; color: var(--ecom-primary); }
.ecom-blog-single-layout { padding-top: 55px; padding-bottom: 75px; }
.ecom-blog-featured-image { width: 100%; max-height: 560px; margin-bottom: 30px; border-radius: var(--ecom-radius); object-fit: cover; }
.ecom-blog-lead {
    margin: 0 0 28px;
    padding: 20px 24px;
    border-left: 4px solid var(--ecom-primary);
    background: var(--ecom-soft);
    color: var(--ecom-text);
    font-size: 18px;
    line-height: 1.7;
}
.ecom-blog-content { color: var(--ecom-text-2); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.ecom-blog-content h2,
.ecom-blog-content h3,
.ecom-blog-content h4 { margin: 32px 0 13px; color: var(--ecom-text); line-height: 1.3; }
.ecom-blog-content h2 { font-size: 1.75rem; }
.ecom-blog-content h3 { font-size: 1.35rem; }
.ecom-blog-content p,
.ecom-blog-content ul,
.ecom-blog-content ol { margin-bottom: 20px; }
.ecom-blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ecom-blog-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--ecom-primary);
    background: var(--ecom-soft);
    color: var(--ecom-text);
    font-size: 18px;
}
.ecom-blog-content a { color: var(--ecom-primary); text-decoration: underline; }
.ecom-blog-post-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--ecom-border);
}
.ecom-blog-post-footer a { color: var(--ecom-primary); font-weight: 700; }
.ecom-blog-related { margin-top: 65px; }
.ecom-blog-related > h2 { margin: 0 0 25px; color: var(--ecom-text); font-size: 28px; }
.ecom-blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ecom-blog-related-grid .ecom-blog-card-image { height: 150px; }
.ecom-blog-related-grid .ecom-blog-card-body { padding: 16px; }
.ecom-blog-related-grid .ecom-blog-card h2 { font-size: 15px; }
.ecom-blog-related-grid .ecom-blog-card p { display: none; }

@media (max-width: 900px) {
    .ecom-blog-layout { grid-template-columns: 1fr; }
    .ecom-blog-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ecom-blog-sidebar .ecom-blog-widget:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .ecom-blog-page,
    .ecom-blog-single { overflow-x: hidden; }
    .ecom-blog-hero,
    .ecom-blog-single-head { padding: 42px 0 36px; }
    .ecom-blog-hero h1,
    .ecom-blog-hero p,
    .ecom-blog-single-head h1,
    .ecom-blog-card h2,
    .ecom-blog-card p,
    .ecom-blog-widget {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .ecom-blog-layout { width: min(100% - 28px, 100%); gap: 28px; }
    .ecom-blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .ecom-blog-card-image { height: 220px; }
    .ecom-blog-sidebar { grid-template-columns: 1fr; }
    .ecom-blog-sidebar .ecom-blog-widget:last-child { grid-column: auto; }
    .ecom-blog-single-layout { padding-top: 32px; }
    .ecom-blog-single-meta { gap: 9px 14px; }
    .ecom-blog-post-footer { flex-direction: column; }
    .ecom-blog-related-grid { grid-template-columns: 1fr; }
    .ecom-blog-related-grid .ecom-blog-card-image { height: 210px; }
}
