/* ============================================================
   GANGA NURSERY ONLINE — MOBILE FIRST CSS
   Theme: Botanical Luxury · Earthy Greens · Indian Warmth
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary:     #2D6A4F;
  --primary-dk:  #1B4332;
  --primary-lt:  #52B788;
  --accent:      #F4A261;
  --accent-dk:   #E76F51;
  --bg:          #FAFAF7;
  --bg-card:     #FFFFFF;
  --bg-surface:  #F0F7F1;
  --text:        #1a2e1f;
  --text-mid:    #4a6352;
  --text-light:  #8aa894;
  --border:      #d4e8da;
  --shadow-sm:   0 2px 8px rgba(45,106,79,.08);
  --shadow-md:   0 4px 20px rgba(45,106,79,.12);
  --shadow-lg:   0 8px 40px rgba(45,106,79,.18);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:   'DM Sans', -apple-system, sans-serif;
  --nav-h:       66px;
  --header-h:    56px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }

/* --- Transitions --- */
.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.slide-up { animation: slideUp .3s cubic-bezier(.32,1,.56,1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.slide-left { animation: slideLeft .2s ease; }
@keyframes slideLeft { to { transform: translateX(-100%); opacity: 0; } }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-content {
  padding-top: calc(var(--header-h) + var(--safe-top));
  min-height: 100vh;
}
.page-content.no-padding { padding-top: 0; }
.bottom-spacer { height: 32px; }

/* ============================================================
   INSTALL BANNER
   ============================================================ */
.install-banner {
  position: fixed;
  top: var(--safe-top);
  left: 0; right: 0;
  z-index: 200;
  background: var(--primary-dk);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}
.install-banner-actions { display: flex; gap: 8px; }
.btn-install {
  background: var(--accent);
  color: white;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}
.btn-dismiss { color: rgba(255,255,255,.6); font-size: 18px; line-height: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: fixed;
  top: var(--safe-top);
  left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 100%;
}
.header-logo { display: flex; align-items: center; gap: 8px; }
.logo-leaf { font-size: 24px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dk);
  letter-spacing: -0.3px;
}
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-mid);
  transition: background .15s;
}
.icon-btn:active { background: var(--bg-surface); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-icon-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--accent-dk);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ============================================================
   LOCATION BAR
   ============================================================ */
.location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 0;
}
.location-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-surface);
  padding: 7px 12px;
  border-radius: 20px;
}
.location-selector svg { color: var(--primary); }
.header-notification {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-mid);
}

/* ============================================================
   HERO SEARCH
   ============================================================ */
.hero-search {
  padding: 12px 16px 4px;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrapper.full { flex: 1; }
.search-icon {
  position: absolute;
  left: 14px;
  width: 18px; height: 18px;
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 13px 16px 13px 44px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color: var(--text-light); }
.search-input:focus {
  border-color: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
  background: white;
}
.clear-search {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  font-size: 16px;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-carousel {
  margin: 12px 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo-slide {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}
.promo-text { flex: 1; }
.promo-tag {
  background: rgba(255,255,255,.2);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}
.promo-text h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
}
.promo-text p {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  margin-bottom: 14px;
}
.btn-promo {
  background: white;
  color: var(--primary-dk);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}
.promo-image { font-size: 64px; opacity: .6; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 20px 0 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-scroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 72px;
  transition: all .15s;
  border: 1.5px solid transparent;
}
.category-chip:active { transform: scale(.95); border-color: var(--primary-lt); }
.cat-emoji { font-size: 26px; }
.cat-label { font-size: 11px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }

/* ============================================================
   PRODUCT CARDS — HORIZONTAL SCROLL
   ============================================================ */
.products-scroll {
  display: flex;
  gap: 14px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.product-card:active { transform: scale(.97); box-shadow: var(--shadow-md); }
.product-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.plant-emoji { font-size: 64px; }
.wishlist-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #e74c3c;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.wishlist-btn-sm {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.stock-badge {
  position: absolute;
  bottom: 8px; left: 8px;
  background: var(--accent-dk);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.product-info { padding: 10px 12px 12px; }
.product-nursery { font-size: 10px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.product-sci { font-size: 11px; color: var(--text-light); font-style: italic; margin: 2px 0 8px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dk);
  font-family: var(--font-display);
}
.btn-add-cart {
  width: 30px; height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 8px rgba(45,106,79,.3);
}
.btn-add-cart:active { background: var(--primary-dk); transform: scale(.9); }

/* ============================================================
   PRODUCT CARDS — GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
}
.products-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.product-card-grid {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.product-card-grid:active { transform: scale(.97); }
.product-img-grid {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative;
}
.product-info-grid {
  padding: 10px 10px 12px;
}
.product-info-grid h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

/* ============================================================
   NURSERY CARDS
   ============================================================ */
.nursery-section { background: var(--bg-surface); padding: 20px 0; margin: 16px 0 0; }
.nursery-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}
.nursery-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.nursery-card:active { transform: scale(.98); }
.nursery-avatar {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.nursery-info { flex: 1; }
.nursery-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.nursery-info p { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.nursery-rating { display: flex; align-items: center; gap: 4px; }
.stars { color: #f5a623; font-size: 12px; }
.nursery-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: 20px;
}

/* ============================================================
   CARE GUIDE BANNER
   ============================================================ */
.care-guide-section { padding: 16px; }
.care-guide-banner {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 60%, #52B788 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.care-guide-text h3 { font-family: var(--font-display); font-size: 20px; color: white; margin-bottom: 6px; }
.care-guide-text p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.care-guide-leaves { font-size: 40px; opacity: .6; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.page-header.sticky {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.page-header.dark-header { background: var(--primary-dk); border-color: transparent; }
.page-header.dark-header .page-title { color: white; }
.page-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}
.back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-mid);
  background: var(--bg-surface);
}
.back-btn.white { color: white; background: rgba(255,255,255,.15); }
.back-btn-float {
  position: absolute;
  top: calc(16px + var(--safe-top));
  left: 16px;
  z-index: 10;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.share-btn-float {
  position: absolute;
  top: calc(16px + var(--safe-top));
  right: 16px;
  z-index: 10;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.cart-item-count { font-size: 12px; color: var(--text-light); font-weight: 500; }
.dashboard-badge {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.filter-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  background: var(--bg-surface);
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  transition: all .15s;
}
.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.results-count {
  padding: 0 16px 10px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}
.popular-searches { padding: 16px; }
.popular-searches h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.popular-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-mid);
}

/* ============================================================
   FILTERS SHEET
   ============================================================ */
.active-filters {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
}
.active-filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--primary-lt);
  color: var(--primary);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.radio-group, .price-range-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-btn {
  background: var(--bg-surface);
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  text-transform: capitalize;
  transition: all .15s;
}
.radio-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.load-more-wrap { display: flex; justify-content: center; padding: 20px; }
.btn-load-more {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  color: var(--primary);
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { background: var(--bg); }
.product-hero {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-hero-emoji { font-size: 120px; }
.product-detail-card {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
  position: relative;
  padding: 24px 20px 0;
  min-height: 60vh;
}
.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.product-category-tag {
  background: var(--bg-surface);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}
.product-detail-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}
.product-detail-sci {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.product-detail-price { text-align: right; }
.price-main {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dk);
  display: block;
}
.price-per { font-size: 12px; color: var(--text-light); }

.nursery-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.nursery-avatar-sm {
  width: 40px; height: 40px;
  background: var(--bg-surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
}
.nursery-label { font-size: 10px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nursery-name-detail { font-size: 14px; font-weight: 600; color: var(--text); }
.nursery-rating-sm { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--primary); }

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.stock-dot.green { background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.15); }
.stock-dot.orange { background: #f39c12; box-shadow: 0 0 0 3px rgba(243,156,18,.15); }

.product-desc { margin-bottom: 16px; }
.product-desc h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.product-desc p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

.care-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.care-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}

.qty-section { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qty-section label { font-size: 14px; font-weight: 600; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.qty-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
  transition: background .15s;
}
.qty-btn:active { background: var(--border); }
.qty-display { min-width: 40px; text-align: center; font-size: 16px; font-weight: 600; }

.product-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.product-actions .btn-primary { flex: 1; }
.product-actions .btn-whatsapp { width: auto; padding: 0 16px; }

.reviews-section { padding-bottom: 24px; }
.reviews-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.review-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.review-score {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-dk);
}
.stars-display { color: #f5a623; font-size: 18px; }
.review-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.reviewer-name { font-size: 13px; font-weight: 600; }
.review-stars { color: #f5a623; font-size: 13px; }
.review-card p { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 6px; }
.review-date { font-size: 11px; color: var(--text-light); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-items { padding: 0 16px; }
.cart-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.cart-item-info { flex: 1; }
.cart-item-nursery { font-size: 10px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cart-item-name { font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
.cart-item-price { font-size: 14px; font-weight: 600; color: var(--primary-dk); display: block; margin-bottom: 8px; }
.cart-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
}
.qty-btn-sm {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-total { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.item-total-price { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.remove-btn { font-size: 16px; opacity: .5; }

.delivery-option-card, .coupon-card, .order-summary {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.delivery-option-card h4, .coupon-card h4, .order-summary h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  transition: border-color .15s;
  cursor: pointer;
}
.delivery-opt.selected { border-color: var(--primary); background: rgba(45,106,79,.04); }
.delivery-opt-info { flex: 1; }
.delivery-opt-name { font-size: 14px; font-weight: 600; display: block; }
.delivery-opt-time { font-size: 12px; color: var(--text-light); }
.delivery-opt-price { font-size: 14px; font-weight: 600; color: var(--primary-dk); }

.coupon-input-row { display: flex; gap: 8px; }
.coupon-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn-apply {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.coupon-success { font-size: 12px; color: #27ae60; font-weight: 600; margin-top: 8px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border: none; }
.summary-row.discount { color: #27ae60; }
.summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding-top: 10px;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-steps {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-surface);
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}
.step.active { color: var(--primary); }
.step.done { color: var(--primary-lt); }
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.step.active .step-num { background: var(--primary); color: white; }
.step.done .step-num { background: var(--primary-lt); color: white; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
}
.step-line.active { background: var(--primary-lt); }

.checkout-step-content { padding: 16px 16px 8px; }
.form-section { margin-bottom: 16px; }
.form-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--primary-lt); background: white; }
.form-row { display: flex; gap: 12px; }
.form-group.half { flex: 1; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.payment-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .15s;
}
.payment-opt.selected { border-color: var(--primary); background: rgba(45,106,79,.04); }
.payment-opt-icon { font-size: 26px; width: 36px; text-align: center; }
.payment-opt-info { flex: 1; }
.payment-opt-info strong { font-size: 15px; display: block; margin-bottom: 2px; }
.payment-opt-info p { font-size: 12px; color: var(--text-light); }
.payment-opt-check { color: var(--primary); font-size: 18px; font-weight: 700; }

.order-success {
  text-align: center;
  padding: 40px 24px;
}
.success-animation { margin-bottom: 20px; }
.success-circle { font-size: 80px; display: block; margin-bottom: 8px; animation: popIn .5s cubic-bezier(.36,2,.56,.9); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.success-leaves { font-size: 32px; }
.order-success h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.order-success p { color: var(--text-mid); margin-bottom: 20px; }
.order-id-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 0 auto 16px;
  max-width: 220px;
}
.order-id-box p { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.order-id-box strong { font-family: var(--font-display); font-size: 22px; color: var(--primary-dk); }
.delivery-eta { font-size: 14px; color: var(--text-mid); margin-bottom: 24px; }
.order-success .btn-primary { margin-bottom: 10px; }

/* ============================================================
   ORDERS PAGE
   ============================================================ */
.orders-list { padding: 0 16px; }
.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.order-id { font-size: 14px; font-weight: 700; display: block; }
.order-date { font-size: 12px; color: var(--text-light); }
.order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}
.order-status.delivered { background: rgba(39,174,96,.12); color: #27ae60; }
.order-status.processing { background: rgba(243,156,18,.12); color: #f39c12; }
.order-status.confirmed { background: rgba(45,106,79,.12); color: var(--primary); }
.order-status.pending { background: rgba(52,73,94,.1); color: var(--text-mid); }
.order-items-preview { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.order-item-thumb {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.more-items { font-size: 12px; color: var(--text-light); font-weight: 600; }
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.order-card-footer span { font-size: 15px; font-weight: 700; }
.btn-track {
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.profile-avatar {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  border: 3px solid rgba(255,255,255,.4);
}
.profile-info h2 { font-family: var(--font-display); font-size: 22px; color: white; }
.profile-info p { font-size: 14px; color: rgba(255,255,255,.7); }
.profile-login h2 { font-family: var(--font-display); font-size: 22px; color: white; }
.profile-login p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 14px; }

.profile-menu { padding: 16px; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.profile-menu-item:active { transform: scale(.98); }
.profile-menu-icon { font-size: 20px; }
.profile-menu-item svg { margin-left: auto; color: var(--text-light); }

.seller-cta {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.seller-cta-content h3 { font-family: var(--font-display); color: white; font-size: 18px; margin-bottom: 6px; }
.seller-cta-content p { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 14px; }

/* ============================================================
   SELLER DASHBOARD
   ============================================================ */
.seller-auth {
  padding: 40px 20px;
  text-align: center;
}
.seller-logo { font-size: 60px; margin-bottom: 16px; }
.seller-auth h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; }
.seller-auth p { color: var(--text-mid); margin-bottom: 24px; }
.tab-toggle {
  display: flex;
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: all .2s;
}
.tab-toggle button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.terms-text { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.stat-card {
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-card.green { background: rgba(45,106,79,.1); }
.stat-card.orange { background: rgba(244,162,97,.1); }
.stat-card.blue { background: rgba(52,152,219,.1); }
.stat-card.purple { background: rgba(155,89,182,.1); }
.stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-light); font-weight: 500; margin-top: 4px; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}
.quick-action-btn {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.quick-action-btn span:first-child { font-size: 22px; }

.seller-section-content { padding: 16px; }
.seller-section-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.image-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color .2s;
}
.image-upload-zone:active { border-color: var(--primary-lt); }
.upload-placeholder span { font-size: 40px; display: block; margin-bottom: 8px; }
.upload-placeholder p { font-size: 14px; font-weight: 500; color: var(--text-mid); }
.upload-placeholder small { font-size: 12px; color: var(--text-light); }
.image-preview { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }

.seller-order-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.seller-order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.order-items-text { font-size: 12px; color: var(--text-light); margin: 4px 0 10px; }
.seller-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-action-btns { display: flex; gap: 6px; }
.btn-sm-accept {
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.btn-sm-wa {
  background: #25D366;
  color: white;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.inv-img {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.inv-info { flex: 1; }
.inv-info h4 { font-size: 14px; font-weight: 600; }
.inv-info p { font-size: 12px; color: var(--text-light); }
.inv-actions { display: flex; gap: 6px; }
.btn-icon-edit, .btn-icon-del {
  width: 32px; height: 32px;
  background: var(--bg-surface);
  border-radius: 8px;
  font-size: 14px;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0;
}
.blog-img {
  width: 100px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.blog-info { padding: 14px; }
.blog-tag {
  background: var(--bg-surface);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}
.blog-info h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.blog-info p { font-size: 12px; color: var(--text-mid); line-height: 1.5; margin-bottom: 6px; }
.blog-read-time { font-size: 11px; color: var(--text-light); font-weight: 500; }

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 0 calc(8px + var(--safe-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 4px 0;
  color: var(--text-light);
  transition: color .15s;
}
.nav-tab.active { color: var(--primary); }
.nav-tab svg { width: 22px; height: 22px; transition: transform .2s; }
.nav-tab.active svg { transform: scale(1.1); }
.nav-tab span { font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.cart-nav-icon { position: relative; }
.cart-badge-nav {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent-dk);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg);
}

/* ============================================================
   MODALS / BOTTOM SHEETS
   ============================================================ */
.modal-overlay, .bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.bottom-modal, .bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  max-height: 85vh;
  overflow-y: auto;
}
.bottom-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px auto 20px;
}
.bottom-modal h3, .bottom-sheet h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.location-list { display: flex; flex-direction: column; gap: 4px; }
.location-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
  text-align: left;
}
.location-item:active, .location-item.active { background: var(--bg-surface); color: var(--primary); }
.location-item span:last-child { margin-left: auto; color: var(--primary); font-weight: 700; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: var(--primary-dk);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 3px 12px rgba(45,106,79,.3);
}
.btn-primary:active { background: var(--primary-dk); transform: scale(.98); }
.btn-primary.full { width: 100%; }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
}
.btn-outline:active { background: rgba(255,255,255,.1); }

.btn-whatsapp {
  background: #25D366;
  color: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(37,211,102,.3);
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-whatsapp:active { background: #128C7E; transform: scale(.98); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 12px;
}
.empty-icon { font-size: 64px; margin-bottom: 8px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; }
.empty-state p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
[x-cloak] { display: none !important; }

/* ── Cart layout columns (base — stacked on mobile) ── */
.cart-page-layout { display: block; }
.cart-left  { }
.cart-right { }

/* ============================================================
   TABLET  (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  body { background: var(--bg); }

  /* ── Header ─────────────────────────────────────────────── */
  .app-header {
    left: 0; right: 0;
    max-width: 100%;
    transform: none;
  }
  .header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ── Bottom nav stretches full width ────────────────────── */
  .bottom-nav {
    left: 0; right: 0;
    max-width: 100%;
    transform: none;
    padding: 8px 60px calc(8px + var(--safe-bottom));
  }

  /* ── Overlays / modals ───────────────────────────────────── */
  .install-banner {
    left: 0; right: 0;
    max-width: 100%;
    transform: none;
  }
  .toast {
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
  }
  .bottom-modal, .bottom-sheet {
    width: 520px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  /* ── Page containers ────────────────────────────────────── */
  .page-content,
  #page-home, #page-search, #page-category,
  #page-product, #page-cart, #page-checkout, #page-orders,
  #page-profile, #page-seller, #page-blog {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg);
    box-shadow: none;
  }

  /* ── Promo banner ───────────────────────────────────────── */
  .promo-slide { min-height: 160px; }
  .promo-text h2 { font-size: 26px; }
  .promo-image { font-size: 80px; }

  /* ── Categories: allow wrapping ─────────────────────────── */
  .categories-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  /* ── Featured horizontal → 3-col grid ───────────────────── */
  .products-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    gap: 16px;
  }
  .product-card {
    min-width: auto;
    max-width: none;
    flex-shrink: 1;
  }
  .product-img-wrap { height: 160px; }

  /* ── Product grids: 3 columns ───────────────────────────── */
  .products-grid,
  .products-grid-2col {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* ── Nursery: 2-col grid ─────────────────────────────────── */
  .nursery-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Seller stats: 4 cols ───────────────────────────────── */
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ============================================================
   DESKTOP  (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {

  /* ── CSS custom properties override ─────────────────────── */
  :root {
    --header-h:  64px;
    --sidebar-w: 240px;
  }

  /* ── Body: offset for left sidebar, kill bottom-nav space ── */
  body {
    padding-left:   var(--sidebar-w);
    padding-bottom: 0;
    background: var(--bg);
  }

  /* ── Header: spans full viewport ───────────────────────── */
  .app-header {
    left: 0; right: 0;
    max-width: none;
    transform: none;
    height: var(--header-h);
  }
  .header-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 40px 0 calc(var(--sidebar-w) + 32px);
  }
  .logo-text { font-size: 20px; }

  /* ── Bottom nav → Left sidebar ──────────────────────────── */
  .bottom-nav {
    position: fixed;
    top:    var(--header-h);
    left:   0;
    right:  auto;
    bottom: 0;
    width:  var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 10px;
    border-top:   none;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    gap: 3px;
    box-shadow: none;
  }

  /* Nav tabs become horizontal rows */
  .nav-tab {
    flex:        none;
    flex-direction: row;
    justify-content: flex-start;
    gap:         12px;
    padding:     11px 14px;
    border-radius: var(--radius-md);
    width:       100%;
    color:       var(--text-mid);
    font-size:   14px;
  }
  .nav-tab span {
    font-size:  14px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav-tab svg { width: 20px; height: 20px; }
  .nav-tab:hover    { background: var(--bg-surface); }
  .nav-tab.active   {
    background: var(--bg-surface);
    color:      var(--primary);
    font-weight: 600;
  }

  /* ── Page content ───────────────────────────────────────── */
  .page-content {
    max-width:   none;
    margin:      0;
    background:  var(--bg);
    box-shadow:  none;
    padding-top:   calc(var(--header-h) + 28px);
    padding-left:  40px;
    padding-right: 40px;
  }

  /* Each page: constrained max width, centred */
  #page-home, #page-search, #page-category,
  #page-product, #page-cart, #page-checkout, #page-orders,
  #page-profile, #page-seller, #page-blog {
    max-width:  1240px;
    margin:     0 auto;
    background: var(--bg);
    box-shadow: none;
  }

  /* ── Section spacings ──────────────────────────────────── */
  .section           { padding: 32px 0 0; }
  .section-header    { padding: 0 0 16px; }
  .section-title     { font-size: 22px; }
  .location-bar      { padding: 0 0 0; }
  .hero-search       { padding: 16px 0 8px; }
  .promo-carousel    { margin: 12px 0; }
  .care-guide-section { padding: 16px 0; }
  .cart-items        { padding: 0; }
  .orders-list       { padding: 0; }
  .profile-menu      { padding: 16px 0; }
  .seller-cta        { margin: 0 0 16px; }
  .stats-grid        { padding: 16px 0; }
  .quick-actions     { padding: 0 0 16px; }
  .seller-section-content { padding: 16px 0; }
  .page-header       { padding: 0 0 16px; }

  /* Sticky page headers respect desktop header height */
  .page-header.sticky {
    top:        var(--header-h);
    background: var(--bg);
  }

  /* ── Promo banner: desktop scale ───────────────────────── */
  .promo-slide       { min-height: 220px; padding: 40px 48px; }
  .promo-text h2     { font-size: 36px; }
  .promo-text p      { font-size: 15px; }
  .promo-image       { font-size: 120px; }

  /* ── Categories: wrap naturally ─────────────────────────── */
  .categories-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0;
    gap: 12px;
  }
  .category-chip { min-width: 88px; }

  /* ── Featured plants: 4-col grid ───────────────────────── */
  .products-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    gap: 20px;
    padding: 0;
  }
  .product-card {
    min-width: auto;
    max-width: none;
    flex-shrink: 1;
  }
  .product-img-wrap  { height: 180px; }
  .plant-emoji       { font-size: 80px; }

  /* ── Product grids: 4 columns ───────────────────────────── */
  .products-grid,
  .products-grid-2col {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
  }
  .product-img-grid  { height: 150px; font-size: 60px; }

  /* ── Nursery: 2-col grid ─────────────────────────────────── */
  .nursery-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
  .nursery-section   { padding: 32px 0; }

  /* ── Seller stats: 4 cols ───────────────────────────────── */
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }

  /* ── Product detail: 2-column hero + info ───────────────── */
  .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .product-hero {
    height: calc(100vh - var(--header-h));
    position: sticky;
    top: var(--header-h);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .product-detail-card {
    padding:       32px 40px 40px;
    border-radius: 0;
    margin-top:    0;
    min-height:    auto;
  }
  .back-btn-float {
    position: fixed;
    top:  calc(var(--header-h) + 16px);
    left: calc(var(--sidebar-w) + 16px);
  }
  .share-btn-float {
    position: fixed;
    top:   calc(var(--header-h) + 16px);
    right: 16px;
  }

  /* ── Cart: items left, summary right ───────────────────── */
  .cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
  }
  .cart-left  { display: flex; flex-direction: column; gap: 0; }
  .cart-right { position: sticky; top: calc(var(--header-h) + 12px); }

  /* ── Blog: 2-col grid ───────────────────────────────────── */
  .blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .blog-list-grid .blog-card { margin-bottom: 0; }

  /* ── Install banner ─────────────────────────────────────── */
  .install-banner {
    left: 0; right: 0;
    max-width: none;
    transform: none;
    padding: 10px 40px;
  }

  /* ── Toast: centred in content area ────────────────────── */
  .toast {
    left:      calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2);
    transform: translateX(-50%);
    bottom:    24px;
  }

  /* ── Modals: centred, rounded on all sides ──────────────── */
  .bottom-modal, .bottom-sheet {
    width:         540px;
    left:          calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2);
    right:         auto;
    transform:     translateX(-50%);
    bottom:        40px;
    border-radius: var(--radius-xl);
    padding:       8px 28px 28px;
  }

  /* ── Hover effects for desktop ──────────────────────────── */
  .product-card:hover         { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .product-card-grid:hover    { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .nursery-card:hover         { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .profile-menu-item:hover    { transform: translateX(3px); }
  .btn-primary:hover          { background: var(--primary-dk); box-shadow: 0 6px 18px rgba(45,106,79,.35); }
  .btn-add-cart:hover         { background: var(--primary-dk); transform: scale(1.1); }
}


/* ============================================================
   WIDE DESKTOP  (≥ 1440px)
   ============================================================ */
@media (min-width: 1440px) {
  :root { --sidebar-w: 260px; }

  .header-inner {
    padding-left: calc(var(--sidebar-w) + 48px);
    padding-right: 48px;
  }
  .page-content {
    padding-left:  48px;
    padding-right: 48px;
  }

  #page-home, #page-search, #page-category,
  #page-product, #page-cart, #page-checkout, #page-orders,
  #page-profile, #page-seller, #page-blog {
    max-width: 1440px;
  }

  /* 5-col product grids on wide screens */
  .products-grid,
  .products-grid-2col {
    grid-template-columns: repeat(5, 1fr);
  }
  .products-scroll {
    grid-template-columns: repeat(5, 1fr);
  }

  /* 3-col nursery */
  .nursery-scroll {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Bigger promo */
  .promo-slide   { min-height: 260px; padding: 48px 64px; }
  .promo-text h2 { font-size: 42px; }
  .promo-image   { font-size: 140px; }
}
