/* ============================================================
   Planter Pots — Design System
   Premium, minimal, eco-friendly D2C storefront
   ============================================================ */

:root {
  /* Palette */
  --green-900: #143528;
  --green-700: #1f4d3a;
  --green-600: #276046;
  --green-500: #35855f;
  --green-100: #e8f2ec;
  --beige-100: #f3ede2;
  --beige-200: #e9e0d0;
  --off-white: #f7f6f1;
  --white: #ffffff;
  --charcoal: #26302b;
  --muted: #6b756f;
  --line: #e5e3db;
  --danger: #c0392b;
  --sale: #b5473a;
  --gold: #c79a3b;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Radius & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20,53,40,.05), 0 2px 8px rgba(20,53,40,.04);
  --shadow-md: 0 6px 24px rgba(20,53,40,.08);
  --shadow-lg: 0 16px 48px rgba(20,53,40,.12);

  --container: 1240px;
  --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: all .18s ease; line-height: 1;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); border-color: var(--line); }
.btn-light:hover { border-color: var(--green-700); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.badge { display:inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--green-500); color: #fff; }
.badge-soft { background: var(--green-100); color: var(--green-700); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--green-900); color: #eddfae; font-size: 13px; text-align: center;
  overflow: hidden;
}
.announce-track { display: flex; gap: 48px; padding: 9px 0; justify-content: center; flex-wrap: wrap; }
.announce span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(247,246,241,.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--green-900); display:flex; align-items:center; gap:8px; white-space:nowrap; }
.logo .leaf { width: 26px; height: 26px; color: var(--green-600); }
.nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--charcoal); position: relative; padding: 6px 0; }
.nav a:hover, .nav a.active { color: var(--green-700); }
.nav a::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--green-600); transform:scaleX(0); transition:transform .2s; transform-origin:left; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--r-pill); background: transparent; border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--charcoal); position: relative; }
.icon-btn:hover { background: var(--green-100); color: var(--green-700); }
.icon-btn svg { width: 21px; height: 21px; }
.count-dot { position: absolute; top: 4px; right: 4px; background: var(--green-700); color:#fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.menu-toggle { display: none; }

/* Dropdown mega for categories */
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px; min-width: 240px; opacity: 0; visibility: hidden; transition: all .18s; }
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.drop a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.drop a::after { display:none; }
.drop a:hover { background: var(--green-100); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(120deg, var(--green-100), var(--beige-100)); border-radius: var(--r-lg); overflow: hidden; margin: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 20px; }
.hero-content { padding: 64px 56px; }
.hero-content .eyebrow { color: var(--green-600); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.hero-content p.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-media { min-height: 420px; background-size: cover; background-position: center; }
.hero-media.placeholder { background: linear-gradient(160deg, var(--green-500), var(--green-900)); position: relative; }
.hero-media.placeholder::after { content: '🪴'; font-size: 120px; position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; opacity:.9; }

/* ---------- Section headings ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head .link { color: var(--green-700); font-weight: 600; font-size: 14px; display:inline-flex; align-items:center; gap:4px; }
.sec-head p { color: var(--muted); margin: 4px 0 0; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 16px; text-align: center; transition: all .18s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card .thumb { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: var(--r-pill); background: var(--green-100); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cat-card .thumb img { width:100%; height:100%; object-fit:cover; border-radius:var(--r-pill); }
.cat-card h3 { font-size: 15px; font-family: var(--font-sans); font-weight: 600; margin: 0; color: var(--charcoal); }
.cat-card small { color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card .media { position: relative; aspect-ratio: 1/1; background: var(--beige-100); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .media .ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:52px; background:linear-gradient(160deg,var(--green-100),var(--beige-200)); }
.product-card .flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.product-card .wish { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); border: 0; display: flex; align-items: center; justify-content: center; color: var(--charcoal); }
.product-card .wish.active, .product-card .wish:hover { color: var(--sale); }
.product-card .wish svg { width: 18px; height: 18px; }
.product-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product-card .title { font-size: 15px; font-weight: 600; color: var(--charcoal); line-height: 1.35; }
.product-card .rating { font-size: 12px; color: var(--gold); }
.product-card .rating .cnt { color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-row .price { font-size: 17px; font-weight: 700; color: var(--green-900); }
.price-row .mrp { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price-row .off { font-size: 12px; color: var(--sale); font-weight: 700; }
.product-card .add { margin-top: 10px; }

/* ---------- Feature / why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.why-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-card .ico svg { width: 24px; height: 24px; }
.why-card h3 { font-family: var(--font-sans); font-size: 17px; margin-bottom: 6px; }
.why-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- Brand story ---------- */
.story { background: var(--green-900); color: #eef3ee; border-radius: var(--r-lg); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; }
.story-content { padding: 56px; }
.story-content h2 { color: #fff; }
.story-content .eyebrow { color: #a9d0bb; letter-spacing:.1em; text-transform:uppercase; font-size:13px; font-weight:600; }
.story-content p { color: #cadbd0; }
.story-media { background: linear-gradient(150deg, var(--green-500), var(--green-700)); min-height: 340px; background-size: cover; background-position:center; display:flex; align-items:center; justify-content:center; font-size:110px; }

/* ---------- Rooms ---------- */
.room-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.room-card { border-radius: var(--r-md); padding: 28px 14px; text-align: center; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--charcoal); transition: all .18s; }
.room-card:hover { background: var(--green-700); color: #fff; transform: translateY(-3px); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.review-card .stars { color: var(--gold); margin-bottom: 8px; }
.review-card .name { font-weight: 600; margin-top: 12px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--beige-100), var(--green-100)); border-radius: var(--r-lg); padding: 48px; text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 18px auto 0; }
.newsletter input { flex: 1; padding: 14px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 15px; }

/* ---------- Instagram gallery ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-grid .cell { aspect-ratio: 1/1; border-radius: var(--r-sm); background: linear-gradient(160deg,var(--green-100),var(--beige-200)); display:flex; align-items:center; justify-content:center; font-size:32px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #cadbd0; margin-top: 64px; padding: 56px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; color: #b7cabd; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .social { display: flex; gap: 10px; margin-top: 14px; }
.footer .social a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer .social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- Flash / toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .25s ease; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.chip { display:inline-block; padding:6px 12px; border-radius:var(--r-pill); background:#fff; border:1px solid var(--line); font-size:13px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 40px 28px; }
  .hero-media { min-height: 240px; order: -1; }
  .story-grid { grid-template-columns: 1fr; }
  .story-content { padding: 36px 28px; }
  .why-grid, .review-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer { padding-bottom: 90px; }
  .newsletter { padding: 32px 20px; }
  .newsletter form { flex-direction: column; }
  .newsletter input, .newsletter .btn { width: 100%; }
  .sec-head { flex-direction: column; align-items: flex-start; }

  /* bottom nav visible on mobile */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around; box-shadow: 0 -4px 20px rgba(20,53,40,.06);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); padding: 6px 10px; flex: 1; position: relative; }
  .bottom-nav a.active { color: var(--green-700); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .count-dot { top: 0; right: 18px; }
  body { padding-bottom: 64px; }
}

/* ============================================================
   Components: search overlay, mobile menu, drawers, forms
   ============================================================ */
.chev { width: 14px; height: 14px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20,53,40,.35); backdrop-filter: blur(4px); }
.search-overlay[hidden] { display: none; }
.search-panel { background: #fff; max-width: 720px; margin: 8vh auto 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-form svg { width: 22px; height: 22px; color: var(--muted); }
.search-form input { flex: 1; border: 0; outline: none; font-size: 18px; padding: 6px 0; background: transparent; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--off-white); }
.search-results a:hover { background: var(--off-white); }
.search-results img, .search-results .sr-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--beige-100); display:flex;align-items:center;justify-content:center; }
.search-results .sr-name { font-weight: 600; font-size: 15px; }
.search-results .sr-price { color: var(--green-700); font-weight: 600; font-size: 14px; margin-left: auto; }
.search-empty { padding: 28px 20px; text-align: center; color: var(--muted); }

/* Mobile slide menu */
.mobile-menu { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.4); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 84%; max-width: 340px; background: #fff; padding: 18px 20px; overflow-y: auto; animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(-100%); } }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mm-nav a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--off-white); }
.mm-divider { margin-top: 16px; padding: 8px 4px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Breadcrumbs */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 20px 0 4px; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { width: 14px; height: 14px; }

/* Page header */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 68ch; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; position: sticky; top: 90px; }
.filter-group { border-bottom: 1px solid var(--off-white); padding: 14px 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-family: var(--font-sans); font-size: 14px; margin: 0 0 10px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filter-group input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar select { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-size: 14px; }
.filter-toggle { display: none; }
.price-inputs { display: flex; gap: 8px; align-items: center; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; padding: 0 10px; }
.pagination a:hover { border-color: var(--green-700); }
.pagination .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 24px 0 40px; align-items: start; }
.gallery-main { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; background: var(--beige-100); border: 1px solid var(--line); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main .ph { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:90px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--beige-100); padding: 0; }
.gallery-thumbs button.active { border-color: var(--green-700); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin-bottom: 8px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 12px 0; }
.pdp-price .now { font-size: 28px; font-weight: 700; color: var(--green-900); }
.pdp-price .was { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { color: var(--sale); font-weight: 700; }
.variant-group { margin: 16px 0; }
.variant-group .label { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-options button { padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; }
.variant-options button.active { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: #fff; font-size: 20px; color: var(--green-700); }
.qty input { width: 48px; text-align: center; border: 0; font-size: 16px; font-weight: 600; }
.pdp-actions { display: flex; gap: 12px; margin: 8px 0 20px; }
.pdp-meta { display: grid; gap: 10px; margin: 20px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.pdp-meta .row { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.trust-row .t { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.trust-row svg { width: 20px; height: 20px; color: var(--green-600); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--off-white); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 32px 0 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 12px 4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--green-900); border-bottom-color: var(--green-700); }
.tab-panel { display: none; } .tab-panel.active { display: block; }
.faq-item { border-bottom: 1px solid var(--off-white); }
.faq-item summary { padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; display:flex; justify-content:space-between; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { padding-bottom: 14px; color: var(--muted); margin: 0; }

/* Sticky mobile add-to-cart */
.sticky-atc { display: none; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding: 24px 0 40px; }
.cart-item { display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.cart-item .thumb { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--beige-100); flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-size:36px; }
.cart-item .info { flex: 1; }
.cart-item .name { font-weight: 600; }
.cart-item .line-price { font-weight: 700; color: var(--green-900); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; text-transform: uppercase; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
.form-label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .em { font-size: 64px; }

/* Auth cards */
.auth-wrap { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.auth-wrap h1 { font-size: 1.8rem; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: #fdecec; color: #b3261e; }
.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-info { background: #eef5fb; color: #1c5a86; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 24px 0 40px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; position: sticky; top: 90px; }
.account-nav a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.account-nav a.active, .account-nav a:hover { background: var(--green-100); color: var(--green-700); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.stat .val { font-size: 24px; font-weight: 700; color: var(--green-900); }
.stat .lbl { color: var(--muted); font-size: 13px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--off-white); font-size: 14px; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.status-pill { padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--green-100); color: var(--green-700); }
.status-pill.pending { background:#fff3e0;color:#b26a00; }
.status-pill.cancelled,.status-pill.failed { background:#fdecec;color:#b3261e; }
.status-pill.delivered,.status-pill.paid { background:#e6f4ea;color:#1e7e34; }

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .search-panel { margin: 0; border-radius: 0; height: 100%; }
  .search-results { max-height: none; }
  /* sticky add to cart on mobile PDP */
  .sticky-atc { display: flex; position: fixed; bottom: 64px; left: 0; right: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -4px 20px rgba(20,53,40,.08); }
  .sticky-atc .price { font-weight: 700; font-size: 18px; align-self: center; white-space: nowrap; }
  .sticky-atc .btn { flex: 1; }
}

/* Policy / long-form content */
.policy-content h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.policy-content p { color: var(--muted); }
.policy-content ul { color: var(--muted); padding-left: 20px; }

/* ============================================================
   Footer — clean, organized (desktop + mobile)
   ============================================================ */
.footer-brand .footer-tagline { max-width: 34ch; color: #b7cabd; }
.footer-col h4 { color: #fff; }
.footer-contact .footer-address {
  font-style: normal;
  color: #b7cabd;
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 14px;
}
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b7cabd;
  padding: 4px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.footer-contact-line:hover { color: #fff; }
.footer-contact-line .fc-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #7fc0a0;
}
.footer-contact-line .fc-ico svg { width: 16px; height: 16px; display: block; }

/* Safety net: no inline SVG in the footer may grow unbounded */
.footer svg { max-width: 22px; max-height: 22px; }
.footer .social a { flex: 0 0 auto; }
.footer .social svg { width: 18px; height: 18px; }
.footer .logo .leaf svg { width: 22px; height: 22px; }
.footer-pay { color: #93a89b; }

/* ============================================================
   Global overflow & mobile hardening
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
* { min-width: 0; }
img, svg, video { max-width: 100%; }

/* Prevent iOS auto-zoom on focus: inputs must be >= 16px */
input, select, textarea { font-size: 16px; }

/* Long words / links never blow out layout */
.title, .cart-item .name, .breadcrumb, .footer a, .sr-name { overflow-wrap: anywhere; }

/* Consistent container padding on small screens */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }

  /* Footer stacks cleanly */
  .footer { padding: 40px 0 90px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }

  /* Hero: tighter, centered, no overflow */
  .hero { margin: 16px 0; border-radius: var(--r-md); }
  .hero-content { padding: 28px 20px; text-align: center; }
  .hero-content p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 0; }

  /* Section headings + links align */
  .sec-head { gap: 6px; }
  .sec-head .link { align-self: flex-start; }

  /* Product cards: readable on 2-col mobile */
  .product-grid, .product-grid.cols-3 { gap: 12px; }
  .product-card .body { padding: 12px 12px 14px; gap: 5px; }
  .product-card .title { font-size: 14px; }
  .price-row .price { font-size: 15px; }
  .price-row .mrp { font-size: 12px; }
  .product-card .add { padding: 10px 12px; font-size: 14px; }

  /* Category cards */
  .cat-card { padding: 18px 12px; }
  .cat-card .thumb { width: 56px; height: 56px; font-size: 26px; }

  /* Buttons full-width where it matters, comfortable tap targets */
  .btn { padding: 12px 20px; }
  .btn-lg { padding: 14px 22px; }

  /* Newsletter */
  .newsletter h2 { font-size: 1.5rem; }

  /* Reviews / why cards spacing */
  .why-card, .review-card { padding: 20px; }

  /* PDP tweaks */
  .pdp { gap: 20px; }
  .pdp-actions { flex-direction: column; }
  .pdp-actions .btn { width: 100%; }

  /* Tables scroll instead of breaking layout */
  .data-table, .spec-table { display: block; overflow-x: auto; }

  /* Toast sits above bottom nav */
  .toast-wrap { bottom: 80px; }

  /* On product pages the sticky add-to-cart sits above the bottom nav,
     so give the page extra clearance to avoid hidden content. */
  body.has-sticky-atc { padding-bottom: 132px; }
}

/* Tablet refinements */
@media (min-width: 641px) and (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-contact { grid-column: auto; }
}

/* Nicer focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* Smooth, consistent card hover only on devices that support hover */
@media (hover: none) {
  .product-card:hover, .cat-card:hover, .room-card:hover { transform: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   GLOBAL ICON SIZE GUARD (bulletproof)
   Any inline SVG used as an icon defaults to 1.25em and can
   never blow up to the SVG default 300x150, even if a specific
   rule is missing or a stale stylesheet is cached.
   ============================================================ */
svg:not([width]):not([height]) { width: 1.25em; height: 1.25em; }
button svg, a svg, .icon-btn svg, summary svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* FAQ accordion chevron — keep small and aligned */
.faq-item summary { align-items: center; gap: 12px; }
.faq-item summary svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }

/* Footer contact icons — hard cap regardless of markup */
.footer-contact-line svg { width: 16px; height: 16px; flex: 0 0 16px; }
.footer .social svg { width: 18px; height: 18px; }
.footer svg { max-width: 24px; max-height: 24px; }

/* ============================================================
   Variable product: color swatches, size pills, states
   ============================================================ */
.variant-group .label { display: flex; gap: 6px; align-items: baseline; }
.variant-group .variant-selected { color: var(--muted); font-weight: 500; }

/* Color swatches */
.variant-options.swatches { gap: 10px; }
.variant-options.swatches .swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500;
}
.variant-options.swatches .swatch.active { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.swatch-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); background: #ccc; flex: 0 0 20px;
  box-shadow: inset 0 0 0 2px #fff;
}

/* Unavailable combinations */
.variant-options button.unavailable {
  opacity: .4; text-decoration: line-through; cursor: not-allowed;
}
.variant-options button.unavailable .swatch-dot { filter: grayscale(1); }

.variant-unavailable { color: var(--sale); font-size: 13px; margin: 8px 0 0; font-weight: 500; }

/* Disabled add/buy buttons look muted */
.pdp-actions .btn:disabled, .sticky-atc .btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
  .variant-options.swatches .swatch { padding: 6px 12px 6px 7px; font-size: 13px; }
  .swatch-dot { width: 18px; height: 18px; flex-basis: 18px; }
}

/* ============================================================
   PDP enhancements: highlights, specs, estimator, chips
   ============================================================ */
.pdp-short { color: var(--muted); margin: 4px 0 12px; }
.pdp-subhead { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin: 0 0 10px; color: var(--charcoal); }
.pdp-price .tax-note { font-size: 12px; display: inline-block; margin-left: 4px; }

/* Key highlights */
.pdp-highlights { margin: 18px 0; }
.pdp-highlights ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pdp-highlights li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--charcoal); }
.pdp-highlights li svg { width: 16px; height: 16px; color: var(--green-600); flex: 0 0 16px; margin-top: 3px; }

/* Quick meta rows */
.pdp-meta { display: grid; gap: 8px; margin: 16px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.pdp-meta .row { display: flex; gap: 12px; font-size: 14px; }
.pdp-meta .row strong { min-width: 120px; color: var(--charcoal); font-weight: 600; }
.pdp-meta .row span { color: var(--muted); }

/* Delivery / COD estimator */
.delivery-estimator { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0; background: #fff; }
.delivery-estimator .label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.delivery-estimator .label svg { width: 18px; height: 18px; color: var(--green-600); }
.delivery-estimator .pin-row { display: flex; gap: 8px; }
.delivery-estimator .pin-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.delivery-estimator .pin-result { font-size: 13px; margin: 10px 0 0; }
.delivery-estimator .pin-result.ok { color: var(--green-700); }
.delivery-estimator .pin-result.err { color: var(--sale); }

/* Suitable plant chips */
.pdp-section { margin: 28px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Spec groups */
.spec-group-title { font-family: var(--font-sans); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 6px; }
.spec-group-title:first-child { margin-top: 0; }

/* Policy links inside description */
.pdp-policy-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--off-white); }
.pdp-policy-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green-700); font-weight: 500; }
.pdp-policy-links svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .pdp-meta .row strong { min-width: 104px; }
  .delivery-estimator .pin-row { flex-direction: row; }
}
