/* =====================================================
   NATUREBASKET – STOREFRONT (supermarket experience)
   Loaded AFTER style.css. Everything new is prefixed nb-
   ===================================================== */

:root {
  --nb-green: #1a6b3a;
  --nb-green-d: #0f4d28;
  --nb-green-l: #e8f5ee;
  --nb-orange: #ff7a18;
  --nb-yellow: #ffb800;
  --nb-ink: #172b21;
  --nb-card: #fff;
  --nb-line: #e8ece9;
  --nb-max: 1280px;
}

html { scroll-behavior: smooth; }
body { background: #f4f7f5; color: var(--nb-ink); padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; }
button { font-family: inherit; }

/* ── HEADER ── */
header.nb-header {
  background: linear-gradient(135deg, #0f4d28 0%, #1a6b3a 55%, #2d9b56 100%);
  padding: 10px 14px;
  position: sticky; top: 0; z-index: 120;
  box-shadow: 0 4px 18px rgba(15,77,40,.28);
}
.nb-header-in {
  max-width: var(--nb-max); margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo actions" "search search";
  align-items: center; gap: 10px 12px;
}
.nb-header .logo { grid-area: logo; text-decoration: none; }
.nb-header .header-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; justify-self: end; }
.nb-search { grid-area: search; position: relative; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 0 12px; height: 46px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.nb-search:focus-within { box-shadow: 0 0 0 3px rgba(255,184,0,.55); }
.nb-search-ic { color: var(--nb-green); font-size: 15px; }
.nb-search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 14px 'DM Sans', sans-serif; padding: 0 10px; color: var(--nb-ink); min-width: 0; -webkit-appearance: none; appearance: none; }
.nb-search input::-webkit-search-cancel-button { display: none; }
.nb-search-clear { display: none; align-items: center; justify-content: center; border: 0; background: none; color: #9aa6a0; font-size: 17px; cursor: pointer; padding: 4px; }
.nb-hbtn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 12px; padding: 0 13px; height: 42px; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .15s; }
.nb-hbtn:hover { background: rgba(255,255,255,.25); }
.store-switch { height: 42px; display: inline-flex; align-items: center; gap: 6px; }
.cart-btn { height: 42px; padding: 0 14px; gap: 9px; border-radius: 12px; }
.cart-btn > i { font-size: 17px; }
.nb-cart-lbl { display: none; flex-direction: column; text-align: left; line-height: 1.1; }
.nb-cart-lbl small { font-size: 10px; font-weight: 600; opacity: .75; }
.nb-cart-lbl b { font-size: 13px; }
.nb-hide-sm { display: none; }
.logo-text h1 { font-size: 19px; }
@media (min-width: 560px) { .nb-cart-lbl { display: flex; } .nb-hide-sm { display: inline-flex; } }
@media (min-width: 900px) {
  .nb-header-in { grid-template-columns: auto minmax(280px, 560px) auto; grid-template-areas: "logo search actions"; justify-content: space-between; }
}

/* ── LAYOUT ── */
main { padding-bottom: 120px; }
.nb-view { display: none; max-width: var(--nb-max); margin: 0 auto; padding: 0 14px; }
.nb-view.active { display: block; animation: nbFade .25s ease; }
@keyframes nbFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nb-section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 2px 10px; }
.nb-section-head.tight { padding-top: 18px; }
.nb-section-head h2 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--nb-green-d); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.nb-section-head h2 i { font-size: 16px; color: var(--nb-orange); }
.nb-section-head h2 small { font: 500 12px 'DM Sans', sans-serif; color: var(--muted); }

/* ── HERO ── */
#view-home .hero { padding: 14px 0 0; }
#view-home .hero-slide { min-height: 150px; border-radius: 20px; }
.nb-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.nb-perk { background: #fff; border: 1px solid var(--nb-line); border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.nb-perk b { display: block; font-size: 12px; line-height: 1.2; }
.nb-perk small { display: none; font-size: 11px; color: var(--muted); }
.nb-perk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; color: #fff; }
.nb-perk-ic.bolt { background: linear-gradient(135deg, var(--nb-orange), var(--nb-yellow)); }
.nb-perk-ic.leaf { background: linear-gradient(135deg, #1a6b3a, #3fbf72); }
.nb-perk-ic.truck { background: linear-gradient(135deg, #2563eb, #60a5fa); }
@media (min-width: 640px) { .nb-perk small { display: block; } .nb-perk b { font-size: 13px; } .nb-perk { padding: 12px 14px; } }

/* ── CATEGORY RAIL ── */
.nb-cats { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nb-cats::-webkit-scrollbar, .nb-rail::-webkit-scrollbar, .nb-subbar::-webkit-scrollbar { display: none; }
.nb-cat { flex: 0 0 auto; width: 92px; text-decoration: none; text-align: center; scroll-snap-align: start; }
.nb-cat-img { width: 80px; height: 80px; margin: 0 auto 7px; border-radius: 24px; background: linear-gradient(135deg, #f1f8f3, #dff0e5); display: grid; place-items: center; overflow: hidden; border: 2px solid transparent; box-shadow: 0 3px 10px rgba(26,107,58,.10); transition: transform .18s, box-shadow .18s, border-color .18s; }
.nb-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.nb-cat-img .nb-emoji { font-size: 34px; }
.nb-cat-img.all { background: linear-gradient(135deg, var(--nb-green), #2d9b56); color: #fff; font-size: 28px; }
.nb-cat:hover .nb-cat-img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(26,107,58,.2); }
.nb-cat.active .nb-cat-img { border-color: var(--nb-orange); box-shadow: 0 6px 16px rgba(255,122,24,.28); }
.nb-cat-name { display: block; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--nb-ink); }
.nb-cat.active .nb-cat-name { color: var(--nb-orange); }
.nb-cat-count { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
@media (min-width: 900px) { .nb-cat { width: 108px; } .nb-cat-img { width: 94px; height: 94px; border-radius: 28px; } .nb-cats { flex-wrap: wrap; overflow: visible; } }

/* ── LIST HEADER / TOOLBAR ── */
.nb-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 2px 10px; position: sticky; top: 116px; z-index: 50; background: #f4f7f5; }
@media (min-width: 900px) { .nb-list-head { top: 66px; } }
.nb-list-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.items-header-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--nb-green-l); color: var(--nb-green); display: grid; place-items: center; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.items-header-icon img { width: 100%; height: 100%; object-fit: cover; }
.nb-list-title h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--nb-green-d); line-height: 1.15; }
.nb-list-title span#itemsSubtitle { font-size: 12px; color: var(--muted); }
.nb-toolbar { display: flex; gap: 8px; }
.nb-sort { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--nb-line); border-radius: 12px; padding: 0 10px; height: 40px; color: var(--nb-green); }
.nb-sort select { border: 0; background: transparent; outline: 0; font: 600 12.5px 'DM Sans', sans-serif; color: var(--nb-ink); cursor: pointer; max-width: 150px; }
.nb-filter-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--nb-green); background: #fff; color: var(--nb-green); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.nb-filter-btn:active { background: var(--nb-green-l); }
.nb-filter-count { background: var(--nb-orange); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; align-items: center; justify-content: center; font-size: 10.5px; }

.nb-subbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.nb-subchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 22px; background: #fff; border: 1.5px solid var(--nb-line); font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--nb-ink); }
.nb-subchip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.nb-subchip i { font-style: normal; }
.nb-subchip em { font-style: normal; font-size: 10.5px; color: var(--muted); background: #f1f4f2; border-radius: 9px; padding: 1px 7px; }
.nb-subchip.active { background: var(--nb-green); border-color: var(--nb-green); color: #fff; }
.nb-subchip.active em { background: rgba(255,255,255,.22); color: #fff; }
.nb-active-filters { display: none; gap: 8px; flex-wrap: wrap; padding: 0 2px 8px; }
.nb-fchip { border: 0; background: #fff4e6; color: #b45309; border-radius: 16px; padding: 6px 12px; font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }

/* ── PRODUCT GRID & CARD ── */
.nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .nb-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px) { .nb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .nb-grid { grid-template-columns: repeat(5, 1fr); } }

.nb-card { background: var(--nb-card); border-radius: 18px; border: 1px solid var(--nb-line); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.nb-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23,43,33,.12); }
.nb-card.in-cart { border-color: #8fd1a8; box-shadow: 0 0 0 1px #8fd1a8; }
.nb-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.92; background: radial-gradient(circle at 50% 40%, #fff 0%, #f1f7f3 100%); text-decoration: none; }
.nb-img { width: 78%; height: 78%; object-fit: contain; transition: transform .25s; }
.nb-card:hover .nb-img { transform: scale(1.06); }
.nb-emoji { font-size: 56px; line-height: 1; }

.nb-badge15 { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--nb-orange), var(--nb-yellow)); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; padding: 4px 9px 4px 6px; border-radius: 4px 12px 12px 4px; box-shadow: 0 3px 8px rgba(255,122,24,.35); text-shadow: 0 1px 1px rgba(0,0,0,.18); overflow: hidden; }
.nb-badge15 i { font-size: 10px; animation: nbZap 1.8s infinite; }
.nb-badge15 b { font-size: 12px; font-weight: 900; margin-right: -1px; }
.nb-badge15::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: nbShine 3.2s infinite; }
@keyframes nbShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes nbZap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-8deg); } }
.nb-badge15.big { top: 14px; left: 14px; font-size: 12px; padding: 6px 13px 6px 9px; }
.nb-badge15.big b { font-size: 16px; }
.nb-badge15.mini { position: static; font-size: 8.5px; padding: 2px 7px 2px 5px; margin-left: 6px; vertical-align: middle; box-shadow: none; }
.nb-badge15.mini b { font-size: 10px; }
.nb-tag-low { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fee2e2; color: #b91c1c; font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 10px; }

.nb-card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; }
.nb-card-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--nb-green); font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-card-name { font-weight: 700; font-size: 13.5px; line-height: 1.28; text-decoration: none; color: var(--nb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.56em; }
.nb-card-tamil { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-card-unit { display: inline-block; align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 600; color: #5b6b62; background: #f1f4f2; border-radius: 8px; padding: 2px 8px; }
.nb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.nb-price { font-weight: 800; font-size: 16px; color: var(--nb-ink); line-height: 1; }
.nb-price small { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-left: 1px; }

.nb-add { border: 1.5px solid var(--nb-green); background: #fff; color: var(--nb-green); font-weight: 800; font-size: 12.5px; letter-spacing: .5px; border-radius: 10px; min-width: 66px; height: 34px; padding: 0 14px; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.nb-add:hover { background: var(--nb-green); color: #fff; }
.nb-add:active { transform: scale(.95); }
.nb-add:disabled { border-color: #d1d5db; color: #9ca3af; background: #f3f4f6; cursor: not-allowed; font-size: 10.5px; letter-spacing: 0; }
.nb-add.big { height: 50px; min-width: 190px; font-size: 15px; border: 0; color: #fff; background: linear-gradient(135deg, var(--nb-green), #2d9b56); box-shadow: 0 6px 16px rgba(26,107,58,.3); }
.nb-add.big:hover { filter: brightness(1.06); }
.nb-add.big:disabled { box-shadow: none; background: #e5e7eb; color: #9ca3af; }

.nb-stepper { display: inline-flex; align-items: center; background: var(--nb-green); border-radius: 10px; height: 34px; overflow: hidden; }
.nb-stepper button { width: 31px; height: 100%; border: 0; background: transparent; color: #fff; font-size: 11px; cursor: pointer; }
.nb-stepper button:active { background: rgba(255,255,255,.2); }
.nb-stepper span { min-width: 26px; text-align: center; color: #fff; font-weight: 800; font-size: 13px; }
.nb-stepper.big { height: 50px; border-radius: 14px; }
.nb-stepper.big button { width: 52px; font-size: 14px; }
.nb-stepper.big span { min-width: 54px; font-size: 17px; }

/* rail (horizontal scroll) */
.nb-rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nb-card.rail { flex: 0 0 150px; scroll-snap-align: start; }
.nb-card.rail .nb-card-name { font-size: 12.5px; }
.nb-card.rail .nb-price { font-size: 14.5px; }
.nb-card.rail .nb-card-foot { flex-wrap: wrap; }
.nb-card.rail .nb-add { min-width: 0; padding: 0 12px; height: 31px; }
.nb-card.rail .nb-stepper { height: 31px; }
.nb-card.rail .nb-stepper button { width: 27px; }
@media (min-width: 640px) { .nb-card.rail { flex-basis: 178px; } }

/* skeleton + sentinel */
.nb-skel { border-radius: 18px; aspect-ratio: 1 / 1.35; background: linear-gradient(100deg, #eaf0ec 30%, #f7faf8 50%, #eaf0ec 70%); background-size: 200% 100%; animation: nbSkel 1.2s infinite linear; }
@keyframes nbSkel { to { background-position: -200% 0; } }
.nb-sentinel { min-height: 40px; }
.nb-loadmore, .nb-end { text-align: center; padding: 22px 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.nb-end i { color: var(--nb-green); margin-right: 5px; }
.nb-dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--nb-green); margin: 0 2px; animation: nbDot 1s infinite ease-in-out; }
.nb-dots i:nth-child(2) { animation-delay: .15s; } .nb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nbDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.nb-empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed #cfe0d5; border-radius: 20px; padding: 42px 20px; }
.nb-empty > i { font-size: 44px; color: #b9d7c4; margin-bottom: 12px; }
.nb-empty h4 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--nb-green-d); margin-bottom: 4px; }
.nb-empty p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ── BUTTONS ── */
.nb-primary-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: 0; border-radius: 14px; padding: 15px; background: linear-gradient(135deg, var(--nb-green), #2d9b56); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(26,107,58,.3); transition: transform .1s, filter .15s; }
.nb-primary-btn:hover { filter: brightness(1.06); }
.nb-primary-btn:active { transform: scale(.98); }
.nb-primary-btn.small { width: auto; display: inline-flex; padding: 11px 22px; font-size: 13.5px; }
.nb-ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--nb-line); background: #fff; color: var(--nb-green); font-weight: 700; font-size: 13.5px; border-radius: 14px; padding: 0 18px; height: 50px; cursor: pointer; text-decoration: none; }
.nb-ghost-btn:hover { border-color: var(--nb-green); }

/* ── PRODUCT DETAIL ── */
.nb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 2px 4px; font-size: 12px; color: var(--muted); }
.nb-crumbs a { text-decoration: none; color: var(--nb-green); font-weight: 600; }
.nb-crumbs i { font-size: 8px; }
.nb-crumbs span { color: var(--nb-ink); font-weight: 600; }
.nb-pd { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 12px 0 4px; }
@media (min-width: 820px) { .nb-pd { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 34px; align-items: start; } .nb-pd-media { position: sticky; top: 84px; } }
.nb-pd-media { position: relative; background: radial-gradient(circle at 50% 38%, #fff, #eaf3ed); border: 1px solid var(--nb-line); border-radius: 26px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.nb-pd-img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.12)); }
.nb-pd-media .nb-emoji { font-size: 120px; }
.nb-pd-cat { display: inline-flex; align-items: center; gap: 6px; background: var(--nb-green-l); color: var(--nb-green); border-radius: 14px; padding: 5px 12px; font-size: 12px; font-weight: 700; text-decoration: none; }
.nb-pd-info h1 { font-family: 'Playfair Display', serif; font-size: 28px; line-height: 1.15; margin: 10px 0 2px; color: var(--nb-ink); }
.nb-pd-tamil { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.nb-pd-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.nb-pd-price b { font-size: 32px; font-weight: 800; color: var(--nb-green-d); }
.nb-pd-price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.nb-pd-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 12px; }
.nb-pd-stock.ok { background: #e8f7ee; color: #15803d; } .nb-pd-stock.low { background: #fff4e0; color: #b45309; } .nb-pd-stock.out { background: #fee2e2; color: #b91c1c; }
.nb-pd-eta { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff7ea, #fff0d6); border: 1px solid #ffd9a0; }
.nb-pd-eta b { display: block; font-size: 14px; color: #9a3d00; } .nb-pd-eta small { font-size: 12px; color: #a8610f; }
.nb-eta-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--nb-orange), var(--nb-yellow)); box-shadow: 0 4px 10px rgba(255,122,24,.35); flex-shrink: 0; }
.nb-pd-buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; align-items: center; }
.nb-pd-buy .nb-act { display: block; }
.nb-accs { display: flex; flex-direction: column; gap: 10px; }
.nb-acc { background: #fff; border: 1px solid var(--nb-line); border-radius: 16px; overflow: hidden; }
.nb-acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14px; }
.nb-acc summary::-webkit-details-marker { display: none; }
.nb-acc summary > i:first-child { color: var(--nb-green); width: 18px; text-align: center; }
.nb-acc-chev { margin-left: auto; font-size: 11px; color: var(--muted); transition: transform .2s; }
.nb-acc[open] .nb-acc-chev { transform: rotate(180deg); }
.nb-acc[open] summary { border-bottom: 1px solid var(--nb-line); background: #fafcfb; }
.nb-acc-body { padding: 14px 16px 16px; font-size: 13.5px; line-height: 1.65; color: #4b5b52; }

/* ── PAGE HEADINGS (cart / checkout) ── */
.nb-page-head { padding: 16px 2px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.nb-page-head h2 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--nb-green-d); display: flex; align-items: center; gap: 10px; order: 2; width: 100%; }
.nb-page-head h2 i { color: var(--nb-orange); font-size: 20px; }
.nb-page-head h2 small { font: 600 13px 'DM Sans', sans-serif; color: var(--muted); }
.nb-back { text-decoration: none; font-weight: 700; font-size: 13px; color: var(--nb-green); display: inline-flex; align-items: center; gap: 7px; order: 1; }
.nb-steps { display: flex; gap: 6px; order: 3; font-size: 11.5px; font-weight: 700; }
.nb-steps span { padding: 4px 11px; border-radius: 12px; background: #e9efeb; color: var(--muted); }
.nb-steps .done { background: var(--nb-green-l); color: var(--nb-green); } .nb-steps .on { background: var(--nb-green); color: #fff; }

.nb-card-box { background: #fff; border: 1px solid var(--nb-line); border-radius: 20px; padding: 16px; box-shadow: 0 2px 10px rgba(23,43,33,.04); }
.nb-cart-layout, .nb-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 10px; align-items: start; }
@media (min-width: 900px) {
  .nb-cart-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .nb-checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .nb-cart-side, .nb-checkout-side { position: sticky; top: 84px; }
}
.nb-eta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 12px; background: linear-gradient(135deg, #fff7ea, #fff0d6); border: 1px solid #ffd9a0; }
.nb-eta > i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--nb-orange), var(--nb-yellow)); flex-shrink: 0; }
.nb-eta b { display: block; font-size: 14px; color: #9a3d00; } .nb-eta span { font-size: 12px; color: #a8610f; }
.nb-free-bar { background: #fff; border: 1px solid var(--nb-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.nb-free-txt { font-size: 13px; margin-bottom: 8px; color: #4b5b52; } .nb-free-txt i { color: var(--nb-orange); margin-right: 6px; } .nb-free-txt.ok i { color: #16a34a; }
.nb-free-track { height: 8px; background: #edf2ef; border-radius: 6px; overflow: hidden; }
.nb-free-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--nb-orange), var(--nb-yellow)); border-radius: 6px; transition: width .4s; }

#cartItemsList { padding: 4px 16px; }
#cartItemsList .nb-empty { border: 0; padding: 36px 10px; }
.nb-crow { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--nb-line); }
.nb-crow:last-child { border-bottom: 0; }
.nb-crow-img { width: 74px; height: 74px; border-radius: 16px; background: #f1f7f3; display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.nb-crow-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.nb-crow-img .nb-emoji { font-size: 34px; }
.nb-crow-name { font-weight: 700; font-size: 14.5px; text-decoration: none; display: block; line-height: 1.25; }
.nb-crow-unit { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.nb-crow-ctrl { display: flex; align-items: center; gap: 10px; }
.nb-crow-qtylbl { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nb-crow-del { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #fde0e0; background: #fff6f6; color: #dc2626; cursor: pointer; }
.nb-crow-total { font-weight: 800; font-size: 15px; align-self: start; padding-top: 2px; }

.nb-bill h4, .nb-form-sec h4 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--nb-green-d); margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.nb-bill h4 i { color: var(--nb-orange); }
.nb-bill-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; color: #4b5b52; }
.nb-bill-row b { color: var(--nb-ink); }
.nb-bill-row.good, .nb-bill-row.good b { color: #059669; } .nb-bill-row.pts, .nb-bill-row.pts b { color: #7c3aed; }
.nb-bill-row.total { border-top: 1.5px dashed var(--nb-line); margin-top: 6px; padding-top: 12px; font-size: 16px; font-weight: 800; color: var(--nb-ink); }
.nb-bill-row.total b { font-size: 21px; color: var(--nb-green); }
.delivery-free { color: #16a34a; font-weight: 800; }
.nb-saved { background: #ecfdf5; color: #047857; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; margin: 8px 0 4px; }
.nb-bill .nb-primary-btn { margin-top: 12px; }
.nb-secure { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.nb-secure i { color: var(--nb-green); }
#cartCheckoutBtn { margin-top: 14px; }

/* ── CHECKOUT FORM ── */
.nb-form-sec { margin-bottom: 14px; }
.nb-form-sec h4 .nb-num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--nb-green); color: #fff; font: 800 13px 'DM Sans', sans-serif; }
.nb-checkout-form .input-group.half { width: calc(50% - 6px); }
.nb-checkout-form .input-group.half { vertical-align: top; }
.nb-checkout-form .input-group.half + .input-group.half { margin-left: 4px; }
.nb-checkout-form .name-input { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: #fafcfb; border: 1.5px solid var(--nb-line); }
.nb-checkout-form .name-input:focus { background: #fff; border-color: var(--nb-green); }
.nb-checkout-form .input-group label { font-size: 12.5px; color: #4b5b52; }
.nb-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.nb-type-grid .delivery-type-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--nb-line); background: #fff; color: #5b6b62; font-weight: 700; font-size: 12px; cursor: pointer; transition: all .15s; flex: none; position: relative; overflow: hidden; }
.nb-type-grid .delivery-type-btn i { font-size: 20px; }
.nb-type-grid .delivery-type-btn::after { display: none; }
.nb-type-grid .delivery-type-btn.active { background: var(--nb-green-l); border-color: var(--nb-green); color: var(--nb-green); box-shadow: 0 0 0 2px rgba(26,107,58,.12); }
#dtPickupPoint.active { background: #eaf2ff; border-color: #3b82f6; color: #2563eb; box-shadow: 0 0 0 2px rgba(59,130,246,.14); }
.detect-loc-btn { white-space: nowrap; border-radius: 12px; }
.store-pickup-card { background: var(--nb-green-l); border: 1.5px solid #bfe3cb; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.nb-pay-note { display: flex; align-items: center; gap: 9px; background: #f4f7f5; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: #4b5b52; margin: 6px 0 12px; }
.nb-pay-note i { color: var(--nb-green); }
.nb-pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.nb-pay-opt { display: flex; align-items: center; gap: 9px; background: #f4f7f5; border: 1.5px solid #e2e8e4; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; color: #4b5b52; cursor: pointer; transition: border-color .15s, background .15s; }
.nb-pay-opt input { accent-color: var(--nb-green); margin: 0; }
.nb-pay-opt i { color: var(--nb-green); }
.nb-pay-opt.active { border-color: var(--nb-green); background: #ecfdf5; }
.nb-checkout-side .order-btn { border-radius: 14px; }
.nb-checkout-side .track-order-btn { margin-top: 10px; }
.nb-ck-items { max-height: 220px; overflow-y: auto; margin: 0 -4px 10px; padding: 0 4px; border-bottom: 1px dashed var(--nb-line); }
.nb-ck-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.nb-ck-img { width: 36px; height: 36px; border-radius: 10px; background: #f1f7f3; display: grid; place-items: center; overflow: hidden; font-size: 18px; }
.nb-ck-img img { width: 100%; height: 100%; object-fit: contain; }
.nb-ck-name { font-weight: 600; line-height: 1.2; } .nb-ck-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 1px; }
.nb-checkout-side .total-row { padding: 12px 0 4px; }

/* ── STICKY CART BAR + BOTTOM NAV ── */
.nb-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 140; display: none; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 16px; padding: 12px 16px; cursor: pointer; background: linear-gradient(135deg, #0f4d28, #1a6b3a 55%, #2d9b56); color: #fff; box-shadow: 0 10px 28px rgba(15,77,40,.45); font-family: 'DM Sans', sans-serif; transform: translateY(0); }
.nb-cartbar.visible { display: flex; animation: nbUp .3s ease; }
@keyframes nbUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nb-cartbar-l { display: flex; align-items: center; gap: 12px; } .nb-cartbar-l > i { font-size: 20px; }
.nb-cartbar-l b { display: block; font-size: 13px; text-align: left; } .nb-cartbar-l em { font-style: normal; font-weight: 800; font-size: 16px; display: block; text-align: left; }
.nb-cartbar-r { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
body[data-view="cart"] .nb-cartbar, body[data-view="checkout"] .nb-cartbar { display: none !important; }
.nb-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: flex; background: #fff; border-top: 1px solid var(--nb-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.nb-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; text-decoration: none; color: #7a8a82; font-size: 10.5px; font-weight: 700; position: relative; }
.nb-bottomnav a i { font-size: 18px; }
.nb-bottomnav a.active { color: var(--nb-green); }
.nb-nav-badge { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: 10px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
body[data-view="checkout"] .nb-bottomnav { display: none; }
body[data-view="checkout"] main { padding-bottom: 40px; }
@media (min-width: 900px) {
  .nb-bottomnav { display: none; }
  .nb-cartbar { left: auto; right: 24px; bottom: 24px; width: 340px; }
  main { padding-bottom: 100px; }
}
.toast { bottom: 150px; }

/* ── FILTER SHEET ── */
.nb-sheet-ov { position: fixed; inset: 0; background: rgba(10,25,16,.5); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nb-sheet-ov.open { opacity: 1; pointer-events: auto; }
.nb-sheet { position: fixed; z-index: 310; left: 0; right: 0; bottom: 0; max-height: 86vh; background: #fff; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.nb-sheet.open { transform: none; }
.nb-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--nb-line); }
.nb-sheet-head h3 { font-size: 17px; display: flex; gap: 9px; align-items: center; color: var(--nb-green-d); }
.nb-sheet-head button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f4f2; cursor: pointer; }
.nb-sheet-body { padding: 6px 18px 10px; overflow-y: auto; }
.nb-fgroup { padding: 12px 0; border-bottom: 1px solid #f0f3f1; } .nb-fgroup:last-child { border-bottom: 0; }
.nb-fgroup h5 { font-size: 13px; margin-bottom: 10px; color: #4b5b52; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nb-fgroup > .nb-chips:first-of-type, #fCats { margin-top: 0; }
.nb-chips button { border: 1.5px solid var(--nb-line); background: #fff; border-radius: 18px; padding: 7px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--nb-ink); }
.nb-chips button.active { background: var(--nb-green); border-color: var(--nb-green); color: #fff; }
.nb-price-inputs { display: flex; align-items: center; gap: 10px; }
.nb-price-inputs input { flex: 1; min-width: 0; border: 1.5px solid var(--nb-line); border-radius: 12px; padding: 11px 12px; font: 600 14px 'DM Sans', sans-serif; outline: 0; }
.nb-price-inputs input:focus { border-color: var(--nb-green); }
.nb-price-inputs span { color: var(--muted); font-size: 12px; }
.nb-switch { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nb-switch input { display: none; }
.nb-slider { width: 44px; height: 26px; border-radius: 14px; background: #d6ddd9; position: relative; transition: background .2s; flex-shrink: 0; }
.nb-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.nb-switch input:checked + .nb-slider { background: var(--nb-green); } .nb-switch input:checked + .nb-slider::after { transform: translateX(18px); }
.nb-sheet-foot { display: flex; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nb-line); }
.nb-sheet-foot .nb-ghost-btn { height: 48px; } .nb-sheet-foot .nb-primary-btn { flex: 1; height: 48px; padding: 0; }

/* group options popup */
.nb-gpop-sub { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nb-gpop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── MOBILE TWEAKS ── */
@media (max-width: 480px) {
  .nb-view { padding: 0 10px; }
  .nb-crow { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .nb-crow-img { width: 64px; height: 64px; }
  .nb-crow-qtylbl { display: none; }
  .nb-pd-info h1 { font-size: 24px; }
  .nb-add.big { min-width: 0; flex: 1; }
  .nb-pd-buy .nb-act { flex: 1; } .nb-pd-buy .nb-ghost-btn { height: 50px; }
  .nb-checkout-form .input-group.half { width: 100%; display: block; margin-left: 0 !important; }
  .nb-sort select { max-width: 124px; }
}

/* grid children must be allowed to shrink so rails scroll inside their own box */
.nb-cart-main, .nb-cart-side, .nb-checkout-form, .nb-checkout-side, .nb-pd-info, .nb-pd-media { min-width: 0; }
.nb-view { overflow-x: clip; }
@media (max-width: 819px) { .nb-pd-media { aspect-ratio: 1 / .8; } .nb-pd-media .nb-emoji { font-size: 96px; } }

@media (min-width: 900px) { .nb-cart-layout.empty { grid-template-columns: minmax(0, 1fr); } }

/* ═══ IMAGE UPGRADE: bigger, rounder, interactive product & category images ═══ */
.nb-grid { gap: 14px; }
.nb-card { border-radius: 22px; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .2s; }
.nb-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(23,43,33,.16); border-color: #cfe7d8; }
.nb-card:active { transform: translateY(-2px) scale(.985); }
.nb-card-media { margin: 8px 8px 0; border-radius: 18px; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #eef6f1 70%, #e3f0e8 100%); transition: box-shadow .28s, background .28s; }
.nb-card-media::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.nb-card:hover .nb-card-media::before { transform: translateX(120%); }
.nb-card:hover .nb-card-media { box-shadow: inset 0 0 0 2px rgba(26,107,58,.12), 0 8px 18px rgba(26,107,58,.12); }
.nb-img { width: 90%; height: 90%; border-radius: 16px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.10));
  transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .3s; }
.nb-card:hover .nb-img { transform: scale(1.12) rotate(-1.5deg); filter: drop-shadow(0 14px 16px rgba(0,0,0,.18)); }
.nb-card-media:active .nb-img { transform: scale(.94); transition-duration: .1s; }
.nb-card-media .nb-emoji { transition: transform .4s cubic-bezier(.2,.8,.2,1); font-size: 72px; }
.nb-card:hover .nb-card-media .nb-emoji { transform: scale(1.15) rotate(-4deg); }
.nb-badge15 { top: 10px; left: 10px; }
.nb-tag-low { z-index: 2; }

/* categories */
.nb-cats { gap: 16px; padding: 8px 4px 12px; }
.nb-cat { width: 108px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nb-cat-img { position: relative; width: 100px; height: 100px; border-radius: 30px; margin-bottom: 9px; border-width: 3px;
  box-shadow: 0 6px 16px rgba(26,107,58,.14); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .2s; }
.nb-cat-img img { border-radius: inherit; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.nb-cat-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.nb-cat:hover .nb-cat-img { transform: translateY(-6px) scale(1.06); box-shadow: 0 14px 26px rgba(26,107,58,.26); }
.nb-cat:hover .nb-cat-img img { transform: scale(1.14); }
.nb-cat:hover .nb-cat-img::after { transform: translateX(120%); }
.nb-cat:active .nb-cat-img { transform: scale(.93); transition-duration: .1s; }
.nb-cat.active .nb-cat-img { border-color: var(--nb-orange); box-shadow: 0 0 0 4px rgba(255,122,24,.18), 0 10px 22px rgba(255,122,24,.30); transform: translateY(-3px); }
.nb-cat-img .nb-emoji { font-size: 44px; }
.nb-cat-name { font-size: 12.5px; transition: color .2s; }
.nb-cat:hover .nb-cat-name { color: var(--nb-green); }
@media (min-width: 900px) { .nb-cat { width: 128px; } .nb-cat-img { width: 120px; height: 120px; border-radius: 34px; } .nb-cat-img .nb-emoji { font-size: 54px; } }

/* product detail image */
.nb-pd-media { border-radius: 30px; cursor: zoom-in; transition: box-shadow .3s; }
.nb-pd-media:hover { box-shadow: 0 18px 40px rgba(23,43,33,.16); }
.nb-pd-img { width: 88%; height: 88%; border-radius: 22px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.nb-pd-media:hover .nb-pd-img { transform: scale(1.08); }
.nb-pd-media:active .nb-pd-img { transform: scale(.97); }

/* cart thumbnails */
.nb-crow { grid-template-columns: 88px 1fr auto; }
.nb-crow-img { width: 88px; height: 88px; border-radius: 22px; transition: transform .25s, box-shadow .25s; }
.nb-crow-img:hover { transform: scale(1.06); box-shadow: 0 8px 18px rgba(23,43,33,.15); }
.nb-crow-img:active { transform: scale(.95); }
.nb-crow-img img { border-radius: 16px; transition: transform .3s; }
.nb-crow-img:hover img { transform: scale(1.1); }

/* click ripple */
.nb-ripple { position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; background: rgba(26,107,58,.28); transform: scale(0); opacity: 1; animation: nbRipple .65s ease-out forwards; }
@keyframes nbRipple { to { transform: scale(1); opacity: 0; } }
.nb-cat-img { overflow: hidden; }

/* card entrance */
@keyframes nbPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.nb-grid .nb-card { animation: nbPop .45s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .nb-card, .nb-card *, .nb-cat *, .nb-grid .nb-card { animation: none !important; transition: none !important; } }

/* ── product page: variants / pack sizes ── */
.nb-pv { margin: 0 0 18px; }
.nb-pv:empty { display: none; }
.nb-pv-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--nb-ink); margin-bottom: 10px; }
.nb-pv-title > i { color: var(--nb-green); }
.nb-pv-title small { color: var(--muted); font-weight: 600; font-size: 12px; }
.nb-pv-list { display: flex; flex-direction: column; gap: 8px; }
.nb-pv-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--nb-line); border-radius: 16px; padding: 10px 14px 10px 10px; }
.nb-pv-img { width: 56px; height: 56px; border-radius: 12px; background: radial-gradient(circle at 50% 38%, #fff, #eaf3ed); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.nb-pv-img img { width: 100%; height: 100%; object-fit: contain; }
.nb-pv-img .nb-emoji { font-size: 28px; }
.nb-pv-body { flex: 1; min-width: 0; }
.nb-pv-name { font-weight: 700; font-size: 14px; color: var(--nb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-pv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.nb-pv-meta b { color: var(--nb-ink); font-weight: 700; }
.nb-pv-price { font-size: 17px; font-weight: 800; color: var(--nb-green-d); white-space: nowrap; }

/* ── PACK-SIZE (VARIANT) CARDS ── */
.nb-pv-hint { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; padding: 8px 12px; border-radius: 12px; background: #f4faf6; border: 1px dashed #cfe5d6; color: #4b5b52; font-size: 12px; line-height: 1.4; }
.nb-pv-hint i { color: var(--nb-orange); flex-shrink: 0; }
.nb-vc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; padding-top: 6px; }
.nb-vc { position: relative; display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0; background: #fff; border: 1.5px solid var(--nb-line); border-radius: 20px; box-shadow: 0 2px 10px rgba(23,43,33,.05); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.nb-vc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,43,33,.10); }
.nb-vc.in-bag { border-color: var(--nb-green); background: linear-gradient(160deg, #f3fbf6 0%, #ffffff 70%); box-shadow: 0 6px 18px rgba(26,107,58,.14); }
.nb-vc.best:not(.in-bag) { border-color: #ffd9a0; }
.nb-vc-ribbon { position: absolute; top: -10px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .2px; background: linear-gradient(135deg, var(--nb-orange), var(--nb-yellow)); box-shadow: 0 4px 10px rgba(255,122,24,.35); }
.nb-vc-top { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; }
.nb-vc-img { width: 100%; aspect-ratio: 4 / 3; flex-shrink: 0; border-radius: 18px 18px 0 0; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #fff, #e6f2ea); border-bottom: 1px solid var(--nb-line); }
.nb-vc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-vc-img .nb-emoji { font-size: 56px; }
.nb-vc-info { min-width: 0; flex: 1; padding: 12px 14px 0; }
.nb-vc-name { font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--nb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.nb-vc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nb-vc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 10px; background: var(--nb-green-l); color: var(--nb-green); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.nb-vc-chip i { font-size: 10px; }
.nb-vc-chip.save { background: #fff4e0; color: #b45309; }
.nb-vc-per { margin-top: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.nb-vc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 14px 14px; padding-top: 12px; border-top: 1px dashed var(--nb-line); }
.nb-vc-price { font-size: 22px; font-weight: 800; color: var(--nb-green-d); white-space: nowrap; line-height: 1; }
.nb-vc-act { display: flex; justify-content: flex-end; flex-shrink: 0; }
.nb-vc-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d9b56); box-shadow: 0 4px 12px rgba(26,107,58,.28); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.nb-vc-add:hover { box-shadow: 0 6px 16px rgba(26,107,58,.38); }
.nb-vc-add:active { transform: scale(.96); }
.nb-vc-add:disabled { background: #e5e9e6; color: #8a978f; box-shadow: none; cursor: not-allowed; }
.nb-vc-step { height: 40px; border-radius: 12px; }
.nb-vc-step button { width: 38px; font-size: 12px; }
.nb-vc-step span { min-width: 34px; font-size: 15px; }
.nb-vc-bagtag { display: inline-flex; align-items: center; gap: 6px; margin: -6px 14px 12px; font-size: 11.5px; font-weight: 700; color: var(--nb-green); }
.nb-vs-wrap:empty { display: none; }
.nb-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; color: #fff; font-size: 13px; background: linear-gradient(135deg, #0f4d28, #1a6b3a 60%, #2d9b56); box-shadow: 0 8px 20px rgba(15,77,40,.25); }
.nb-vs > i { font-size: 16px; }
.nb-vs > span { flex: 1 1 160px; min-width: 0; line-height: 1.4; }
.nb-vs strong { font-size: 17px; font-weight: 800; }
.nb-vs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.nb-vs a:hover { background: rgba(255,255,255,.28); }
.nb-crow-pack { display: inline-flex; align-items: center; gap: 5px; margin: 3px 0 1px; padding: 2px 9px; border-radius: 9px; background: var(--nb-green-l); color: var(--nb-green); font-size: 11.5px; font-weight: 700; }
.nb-crow-pack i { font-size: 10px; }

/* phones: one card per row, roomier touch targets */
@media (max-width: 539px) {
  .nb-vc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nb-vc { border-radius: 18px; }
  .nb-vc-top { flex-direction: row; align-items: stretch; }
  .nb-vc-img { width: 118px; min-height: 118px; aspect-ratio: auto; border-radius: 18px 0 0 0; border-bottom: 0; border-right: 1px solid var(--nb-line); }
  .nb-vc-info { padding: 12px; align-self: center; }
  .nb-vc-img .nb-emoji { font-size: 40px; }
  .nb-vc-price { font-size: 20px; }
  .nb-vc-add { height: 42px; padding: 0 18px; }
  .nb-vc-step { height: 42px; }
  .nb-vc-step button { width: 42px; }
  .nb-vs { padding: 12px; }
  .nb-vs a { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 340px) {
  .nb-vc-foot { flex-direction: column; align-items: stretch; }
  .nb-vc-act, .nb-vc-add, .nb-vc-step { width: 100%; justify-content: center; }
  .nb-vc-step button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .nb-vc, .nb-vc * { transition: none !important; } }
