/* ===== Storefront design (Toolsvilla-style marketplace layout, Gramshree green brand) ===== */
:root {
  --g-900: #0b3a22; --g-800: #0f4a2b; --g-700: #15803d; --g-600: #16a34a; --g-50: #ecf6ef; --g-100: #d6ecdc;
  --amber: #f5b400; --amber-600: #e09e00; --amber-50: #fff7e0;
  --ink: #1c1917; --ink-2: #44403c; --muted: #6b7280; --line: #e7e5e4; --line-2: #f1f0ee; --bg: #f5f6f4;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,16,.05), 0 2px 8px rgba(16,24,16,.05); --shadow-lg: 0 12px 30px rgba(16,24,16,.12);
  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --bs-body-color: var(--ink); --bs-link-color: var(--g-700); --bs-link-color-rgb: 21,128,61; --bs-link-hover-color: var(--g-800);
}
body { background: var(--bg); font-size: .93rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 992px) { .wrap { padding: 0 24px; } }

/* ---------- Top strip + header ---------- */
.top-strip { background: var(--amber); color: #1f1300; font-size: .78rem; }
.top-strip .wrap { display: flex; align-items: center; gap: 14px; min-height: 30px; }
.top-strip b { font-weight: 800; }
.top-strip .sep { width: 1px; height: 14px; background: rgba(0,0,0,.35); }
.top-strip a { color: #1f1300; font-weight: 600; }
.top-strip a:hover { text-decoration: underline; }
.site-header { background: var(--g-900); color: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.logo .mark { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--g-700); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.logo .name { line-height: 1.05; font-size: 1.05rem; } .logo .name small { display: block; font-weight: 600; font-size: .66rem; color: #b9d8c3; letter-spacing: .06em; text-transform: uppercase; }
.logo:hover { color: #fff; }
/* Uploaded shop logo (Settings > Store): on a white tile so any logo colours read on the green header. */
.logo .logo-img { height: 50px; padding: 3px 8px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.logo .logo-img img { width: auto; height: auto; max-height: 44px; max-width: 220px; object-fit: contain; display: block; }
/* Auto-fit by shape (width / height from the upload): wide logos get width, square / tall ones get height. */
.logo .logo-img.wide img { max-width: 260px; max-height: 42px; }
.logo .logo-img.square, .logo .logo-img.tall { padding: 3px; min-width: 50px; }
.logo .logo-img.tall img { max-height: 46px; max-width: 50px; }
/* Light (white) logo: straight on the green header, no tile. */
.logo .logo-img.bare { background: none; padding: 0; height: auto; }
.logo .logo-img.bare img { max-height: 62px; } /* stacked / square logos get more height so their lettering reads */
.logo .logo-img.bare.wide img { max-height: 48px; max-width: 270px; }
.hdr-search { flex: 1; max-width: 760px; margin: 0 auto; }
.hdr-search form { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 4px; }
.hdr-search input { flex: 1; border: 0; outline: 0; padding: 8px 10px; font-size: .95rem; min-width: 0; color: var(--ink); background: transparent; }
.hdr-search .sbtn { width: 38px; height: 34px; border: 0; border-radius: 8px; background: var(--g-900); color: #fff; display: grid; place-items: center; margin-left: 4px; }
.hdr-search .sbtn:hover { background: var(--g-700); }
.hdr-links { display: flex; align-items: center; gap: 22px; }
.hdr-link { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .74rem; position: relative; }
.hdr-link i { font-size: 1.2rem; } .hdr-link:hover { color: var(--amber); }
.hdr-link .count { position: absolute; top: -6px; right: -8px; background: var(--amber); color: #1f1300; font-weight: 800; font-size: .66rem; border-radius: 999px; padding: 1px 6px; }
.menu-btn { background: transparent; border: 0; color: #fff; font-size: 1.3rem; padding: 4px; }
.mob-search { display: none; padding: 0 16px 12px; }
@media (max-width: 991.98px) {
  .site-header .wrap { min-height: 60px; gap: 12px; }
  .hdr-search.desk { display: none; }
  .mob-search { display: block; }
  .logo .mark { width: 36px; height: 36px; } .logo .name { font-size: .95rem; }
  .logo .logo-img { height: 42px; padding: 3px 6px; } .logo .logo-img img { max-height: 36px; max-width: 150px; }
  .logo .logo-img.wide img { max-width: 180px; max-height: 34px; } .logo .logo-img.bare img { max-height: 52px; }
  .logo .logo-img.bare.wide img { max-height: 40px; max-width: 190px; }
  .hdr-links { gap: 16px; margin-left: auto; } .hdr-link span.lbl { display: none; }
}
.flash-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; background: var(--g-900); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; animation: toast 4s forwards; }
.flash-toast a { color: var(--amber); margin-left: 8px; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }

/* ---------- Category menu (home sidebar + offcanvas) ---------- */
.cat-menu { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; }
.cat-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--ink-2); font-size: .88rem; }
.cat-menu a:hover { background: var(--g-50); color: var(--g-800); }
.cat-menu .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; flex: none; overflow: hidden; }
.cat-menu .ic img { width: 100%; height: 100%; object-fit: cover; } .cat-menu .ic .material-symbols-rounded { font-size: 19px; }
.cat-menu .chev { margin-left: auto; font-size: .7rem; color: #a8a29e; }
.cat-menu .meta { margin-left: auto; font-size: .7rem; color: var(--muted); }
.cat-menu hr { margin: 6px 14px; border-color: var(--line); }
.offcanvas .tree-group { font-weight: 700; font-size: .85rem; padding: 10px 16px 4px; }
.offcanvas .tree a.sub { padding-left: 54px; font-size: .84rem; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
@media (max-width: 991.98px) { .hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 12px; } .hero-grid .cat-menu { display: none; } }
.banner-frame { aspect-ratio: 16 / 6; overflow: hidden; background: var(--g-50); border-radius: var(--radius); }
.banner-frame .carousel-item { height: 100%; } .banner-frame .carousel-item > a { display: block; height: 100%; }
.banner-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Website look (Admin > Home layout): full-width banner area (no category menu beside it). */
.hero-grid.hero-full { grid-template-columns: minmax(0, 1fr); }
.hero-grid.hero-full .banner-frame { aspect-ratio: 16 / 5; }
@media (max-width: 767.98px) { .hero-grid.hero-full .banner-frame { aspect-ratio: 16 / 7; } }
.welcome { border-radius: var(--radius); padding: 40px 36px; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(40rem 20rem at 85% 30%, rgba(245,180,0,.35), transparent 60%), linear-gradient(120deg, var(--g-900), var(--g-700)); }
.welcome h1 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 18ch; }
.welcome .btn { align-self: flex-start; }
.carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }
.trust div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-right: 1px solid var(--line-2); }
.trust div:last-child { border-right: 0; }
.trust i { font-size: 1.35rem; color: var(--g-900); width: 26px; text-align: center; }
.trust b { display: block; font-size: .84rem; } .trust small { color: var(--muted); font-size: .74rem; }
@media (max-width: 991.98px) { .trust { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; } }

/* ---------- Section heads ---------- */
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.3rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.pill-btn { margin-left: auto; border: 1px solid var(--g-900); color: var(--g-900); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: #fff; }
.pill-btn:hover { background: var(--g-900); color: #fff; }

/* ---------- Shop by category ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 12px 18px; text-align: center; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--g-800); }
.cat-card .big { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); overflow: hidden; }
.cat-card .big img { width: 100%; height: 100%; object-fit: cover; } .cat-card .big .material-symbols-rounded { font-size: 46px; }
.cat-card .t { font-size: .92rem; font-weight: 600; line-height: 1.3; }
/* Round category icons in one sliding row (Website look: circles). */
.cat-circles { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cat-circle { scroll-snap-align: start; text-align: center; color: var(--ink); }
.cat-circle .big { width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--g-700); box-shadow: var(--shadow); overflow: hidden; border: 3px solid var(--g-50); transition: transform .15s, border-color .15s; }
.cat-circle .big img { width: 100%; height: 100%; object-fit: cover; } .cat-circle .big .material-symbols-rounded { font-size: 40px; }
.cat-circle:hover .big { transform: translateY(-2px); border-color: var(--g-700); } .cat-circle:hover { color: var(--g-800); }
.cat-circle .t { font-size: .82rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .cat-circles { grid-auto-columns: 84px; gap: 10px; } .cat-circle .big { width: 70px; height: 70px; } .cat-circle .big .material-symbols-rounded { font-size: 32px; } .cat-circle .t { font-size: .74rem; } }
/* Compact category chips (Website look: chips). */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--ink); font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); }
.cat-chip .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; overflow: hidden; flex: none; }
.cat-chip .ic img { width: 100%; height: 100%; object-fit: cover; } .cat-chip .ic .material-symbols-rounded { font-size: 18px; }
.cat-chip:hover { border-color: var(--g-700); color: var(--g-800); }
@media (max-width: 575.98px) { .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .cat-chip { flex: none; } }

/* Category blocks: sub-category cards with a pastel corner (like Toolsvilla) */
.grp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grp-card { position: relative; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px 20px 18px; display: flex; flex-direction: column; min-height: 210px; color: var(--ink); }
.grp-card::after { content: ""; position: absolute; top: -26px; right: -26px; width: 96px; height: 96px; border-radius: 28px; background: var(--tint); opacity: .55; }
.grp-card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--tone); position: relative; z-index: 1; overflow: hidden; }
.grp-card .ic img { width: 100%; height: 100%; object-fit: cover; } .grp-card .ic .material-symbols-rounded { font-size: 30px; }
.grp-card h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 6px; }
.grp-card p { color: var(--muted); font-size: .82rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grp-card .go { margin-top: auto; color: var(--tone); font-weight: 600; font-size: .88rem; }
.grp-card:hover { box-shadow: var(--shadow-lg); } .grp-card:hover .go { text-decoration: underline; }
.tint-0 { --tint: #e3f4e8; --tone: #15803d; } .tint-1 { --tint: #fff1c7; --tone: #b45309; } .tint-2 { --tint: #fde4dc; --tone: #c2410c; }
.tint-3 { --tint: #e8e4fb; --tone: #5b21b6; } .tint-4 { --tint: #dcecfb; --tone: #1d4ed8; } .tint-5 { --tint: #d9f2ef; --tone: #0f766e; }
.promo-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; box-shadow: var(--shadow); }
.promo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.p-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.p-row > * { scroll-snap-align: start; }
@media (max-width: 575.98px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .p-row { grid-auto-columns: 46%; gap: 10px; } }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.p-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.p-card .img { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; }
.p-card .img .ph { color: #c7c3bf; font-size: 3rem; }
/* Offer sticker as a corner flag (top right), "Made in India" chip bottom left, rating bottom right. */
.p-card .flag { position: absolute; right: -4px; top: -12px; max-width: 64px; padding: 5px 6px 12px; color: #fff; font-size: .62rem; font-weight: 800; line-height: 1.1; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.p-card .mii { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .68rem; font-weight: 600; color: var(--ink-2); }
.p-card .mii .tri { width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(#ff9933 0 33%, #fff 33% 66%, #138808 66%); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.p-card .chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scrollbar-width: thin; }
.p-card .chips span { flex: none; background: #eef0f2; color: var(--ink-2); font-size: .72rem; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.p-card .rate { position: absolute; right: 0; bottom: 0; background: var(--g-900); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.p-card .nm { color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-card .nm:hover { color: var(--g-700); }
.p-card .meta { color: var(--muted); font-size: .76rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .meta a { color: var(--g-700); }
.p-card .price { margin-top: 10px; font-weight: 800; font-size: 1.08rem; }
.p-card .price s { color: #9ca3af; font-weight: 400; font-size: .8rem; margin-left: 6px; }
.p-card .save { font-size: .76rem; color: var(--ink-2); font-weight: 600; } .p-card .save b { color: var(--g-600); font-weight: 700; }
.p-card .note { font-size: .72rem; margin-top: 4px; } .p-card .note.bulk { color: var(--g-700); font-weight: 600; } .p-card .note.out { color: #dc2626; font-weight: 600; }
.p-card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.p-card .acts form { display: contents; }
.btn-cart { border: 1px solid var(--g-900); color: var(--g-900); background: #fff; border-radius: 7px; font-weight: 600; font-size: .82rem; padding: 6px 4px; white-space: nowrap; }
.btn-cart:hover { background: var(--g-50); }
.btn-buy { border: 1px solid var(--g-900); background: var(--g-900); color: #fff; border-radius: 7px; font-weight: 600; font-size: .82rem; padding: 6px 4px; white-space: nowrap; }
.btn-buy:hover { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.p-card .acts .full { grid-column: 1 / -1; text-align: center; }

/* ---------- Listing ---------- */
.crumbs { font-size: .84rem; color: var(--muted); padding: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--g-700); } .crumbs i { font-size: .6rem; color: #a8a29e; }
.type-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.type-chip { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; color: var(--ink-2); font-size: .86rem; font-weight: 600; min-width: 140px; text-align: center; display: flex; align-items: center; gap: 8px; justify-content: center; }
.type-chip .material-symbols-rounded { font-size: 20px; color: var(--g-700); }
.type-chip:hover, .type-chip.on { border-color: var(--g-700); color: var(--g-800); background: var(--g-50); }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: sticky; top: 92px; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 4px 0 10px; }
.filters a.opt { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-size: .86rem; }
.filters a.opt:hover { background: var(--g-50); } .filters a.opt.on { background: var(--g-900); color: #fff; }
.filters hr { border-color: var(--line); margin: 12px 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; }
.list-head h1 { font-size: 1.3rem; font-weight: 700; margin: 0; } .list-head .cnt { color: var(--muted); font-size: .85rem; }
.list-head select { width: auto; margin-left: auto; border-radius: 8px; font-size: .85rem; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--g-900); color: #fff; border-color: var(--g-900); }
.empty-box { background: #fff; border-radius: var(--radius); padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-box i { font-size: 2.5rem; color: #c7c3bf; margin-bottom: 12px; }

/* ---------- Product page ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
@media (max-width: 991.98px) { .pd-grid { grid-template-columns: minmax(0, 1fr); } }
.pd-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 92px; }
@media (max-width: 991.98px) { .pd-gallery { position: static; } }
.pd-gallery .main { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery .main .ph { font-size: 5rem; color: #c7c3bf; }
.pd-gallery .ribbon { position: absolute; left: -16px; top: 0; background: var(--g-900); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 18px 5px 14px; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.pd-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; flex: none; }
.pd-thumbs img.on, .pd-thumbs img:hover { border-color: var(--g-700); }
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1199.98px) { .pd-top { grid-template-columns: minmax(0, 1fr); } }
.pd-info .brand { font-size: .88rem; color: var(--ink-2); } .pd-info .brand a { font-weight: 700; }
.pd-info h1 { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 6px 0; }
.pd-info .rate { background: var(--g-900); color: #fff; font-weight: 700; padding: 2px 9px; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.pd-info .sku { font-size: .84rem; color: var(--muted); }
.pd-info .price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.pd-info .price-line .now { font-size: 1.9rem; font-weight: 800; }
.pd-info .price-line s { color: #9ca3af; }
.off-tag { background: var(--g-600); color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 10px; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); }
.pd-trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.pd-trust div { background: var(--g-50); border-radius: 10px; padding: 12px 6px; text-align: center; font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.pd-trust i { display: block; font-size: 1.3rem; color: var(--g-800); margin-bottom: 6px; }
@media (max-width: 575.98px) { .pd-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; position: sticky; top: 92px; }
@media (max-width: 1199.98px) { .buy-box { position: static; } }
.buy-box .now { font-size: 1.6rem; font-weight: 800; } .buy-box .now small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.buy-box .mrp { color: var(--muted); font-size: .85rem; } .buy-box .mrp s { margin-right: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d6d3d1; border-radius: 8px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 1.1rem; font-weight: 700; }
.qty button:hover { background: var(--g-50); }
.qty input { width: 52px; height: 36px; border: 0; border-left: 1px solid #d6d3d1; border-right: 1px solid #d6d3d1; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-amber { background: var(--amber); border: 0; color: #1f1300; font-weight: 700; border-radius: 8px; padding: 10px; }
.btn-amber:hover { background: var(--amber-600); color: #1f1300; }
.btn-dark-g { background: var(--g-900); border: 0; color: #fff; font-weight: 700; border-radius: 8px; padding: 10px; }
.btn-dark-g:hover { background: var(--g-700); color: #fff; }
.opt-chip { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: .85rem; background: #fff; cursor: pointer; }
.btn-check:checked + .opt-chip { border-color: var(--g-700); background: var(--g-50); color: var(--g-800); }
.btn-check:disabled + .opt-chip { opacity: .45; text-decoration: line-through; }
.pd-section { background: #fff; border-radius: var(--radius); padding: 20px; margin-top: 16px; border: 1px solid var(--line); }
.pd-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.pd-desc { white-space: pre-line; color: var(--ink-2); line-height: 1.7; }

/* ---------- Ratings & reviews ---------- */
.rating-pill { background: var(--g-700); color: #fff; font-weight: 700; }
.rating-pill.low { background: #ff9f00; } .rating-pill.bad { background: #ef4444; }
.rating-big { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.rating-bar { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.rating-bar > div { height: 100%; background: var(--g-700); }
.star-input { direction: rtl; display: inline-flex; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 2rem; color: #ced4da; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #ff9f00; }

/* ---------- Generic pages (cart, checkout, account, login, policies) ---------- */
.btn-brand { background: var(--g-900); color: #fff; font-weight: 700; border: 0; }
.btn-brand:hover { background: var(--g-700); color: #fff; }
.btn-warning { --bs-btn-bg: var(--amber); --bs-btn-border-color: var(--amber); --bs-btn-hover-bg: var(--amber-600); --bs-btn-hover-border-color: var(--amber-600); }
.bg-white.rounded, .card { border-radius: var(--radius) !important; }
.card { border-color: var(--line); box-shadow: var(--shadow); }
.form-control:focus, .form-select:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--g-900); color: #b9d0c0; margin-top: 48px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.site-footer a { color: #d9e7dd; } .site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 8px; font-size: .86rem; }
.site-footer .logo .mark { background: var(--amber); color: var(--g-900); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff !important; border-radius: 10px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); }
.app-badge i { font-size: 1.5rem; } .app-badge small { display: block; font-size: .65rem; opacity: .8; line-height: 1; } .app-badge b { line-height: 1.1; }
.pay-icons i { font-size: 1.8rem; margin-right: 8px; color: #d9e7dd; }
@media (max-width: 767.98px) {
  .filters { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .filters h3, .filters hr { display: none; }
  .filters a.opt { flex: none; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; padding: 5px 12px; }
  .filters a.opt span + span { display: none; }
}
@media (max-width: 575.98px) {
  .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-card { padding: 14px 6px 12px; } .cat-card .big { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; }
  .cat-card .big .material-symbols-rounded { font-size: 30px; } .cat-card .t { font-size: .78rem; }
  .grp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grp-card { padding: 14px; min-height: 0; } .grp-card .ic { width: 42px; height: 42px; } .grp-card .ic .material-symbols-rounded { font-size: 24px; }
  .grp-card h3 { font-size: .88rem; margin-top: 12px; } .grp-card p { display: none; } .grp-card .go { font-size: .8rem; }
  .sec { margin-top: 22px; } .sec-head h2 { font-size: 1.1rem; }
  .welcome { padding: 28px 22px; min-height: 0; }
}

/* Home sidebar: hovering a main category opens its groups + sub-categories over the banner (desktop only). */
.hero-grid .cat-menu { position: relative; z-index: 20; }
.cm-item .fly { display: none; position: absolute; left: 100%; top: 0; min-height: 100%; width: min(880px, calc(100vw - 340px)); max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-lg); padding: 18px 22px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 22px; align-content: start; }
.cm-item:hover > a, .cm-item:focus-within > a { background: var(--g-50); color: var(--g-800); }
@media (hover: hover) and (min-width: 992px) { .cm-item:hover .fly, .cm-item:focus-within .fly { display: grid; } }
.cat-menu .fly a { display: block; padding: 3px 0; font-size: .84rem; color: var(--ink-2); }
.cat-menu .fly a:hover { background: none; color: var(--g-700); text-decoration: underline; }
.cat-menu .fly .fly-head { font-weight: 700; color: var(--ink); font-size: .88rem; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cat-menu .fly .fly-more { color: var(--g-700); font-weight: 600; }

/* 3D category pictures sit inside their tile (uploaded photos still fill it). */
img.emoji { object-fit: contain !important; padding: 14%; }
.cat-menu .ic img.emoji { padding: 8%; }
.type-chip .ti { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.type-chip .ti img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; } .type-chip .ti img.emoji { padding: 0; }
.cm-item .fly { min-height: 0; gap: 10px 22px; }
@media (min-width: 992px) {
  .hero-grid { align-items: stretch; }
  .hero-grid .cat-menu a { padding: 6px 14px; font-size: .86rem; }
  /* The banner (8:3, as Admin > Home banners asks) sets the row height; the category list fits beside it and
     the rest is one tap away under "All Categories". cm-list is not positioned, so hover fly-outs aren't clipped. */
  .hero-grid .cat-menu { contain: size; display: flex; flex-direction: column; }
  .hero-grid .cm-list { flex: 1; min-height: 0; overflow: hidden; }
  .hero-grid .welcome { min-height: 340px; }
}
.per { font-size: .62em; font-weight: 500; color: var(--muted); }
/* Option values (Color / Size / Weight) */
.attr-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 14px; font-weight: 600; font-size: .86rem; color: var(--ink); }
.attr-chip.swatch { padding: 4px; display: flex; flex-direction: column; align-items: center; width: 74px; font-size: .74rem; }
.attr-chip.swatch img { width: 60px; height: 60px; object-fit: contain; }
.attr-chip.on { border-color: var(--g-700); background: var(--g-50); box-shadow: 0 0 0 1px var(--g-700); }
.attr-chip.dim:not(.on) { color: #9ca3af; border-style: dashed; } .attr-chip.dim img { opacity: .45; }
.attr-chip:disabled { text-decoration: line-through; opacity: .5; }

/* Full-screen product photos */
.photo-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: rgba(0,0,0,.9); }
.photo-viewer img { max-width: 100%; max-height: 100dvh; object-fit: contain; cursor: zoom-in; transition: transform .2s; touch-action: pinch-zoom; user-select: none; }
.photo-viewer img.zoom { transform: scale(2.5); cursor: zoom-out; }
.photo-viewer button { position: fixed; z-index: 2; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.photo-viewer button:hover { background: rgba(255,255,255,.3); }
.photo-viewer .pv-close { top: 16px; right: 16px; font-size: 1.2rem; }
.photo-viewer .pv-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.photo-viewer .pv-next { right: 16px; top: 50%; transform: translateY(-50%); }
.photo-viewer .pv-count { position: fixed; top: 26px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* Product videos */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.vid-grid video, .vid-grid iframe, .yt-lite { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; display: block; }
.vid-grid figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.yt-lite { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; }
.hls-lite .play { background: rgba(22,101,52,.92); }
.yt-lite .play, .vid-thumb span { position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: rgba(220,0,0,.9); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.vid-thumb { position: relative; width: 64px; height: 64px; flex: none; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #111; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; }
.vid-thumb span { width: 30px; height: 22px; border-radius: 6px; font-size: .75rem; }

/* Loading bar for in-page navigation */
.nav-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--amber); z-index: 3000; box-shadow: 0 0 8px rgba(245,180,0,.7); }
.nav-bar.run { animation: navbar 2s ease-out forwards; }
.nav-bar.done { width: 100% !important; animation: none; transition: width .2s; }
@keyframes navbar { from { width: 0; } to { width: 85%; } }

/* Product page notes (real buyers, delivery estimate) */
.pd-notes { display: grid; gap: 8px; margin-top: 14px; }
.pd-notes .note { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .9rem; color: var(--ink); }
.pd-notes .note i { font-size: 1.05rem; width: 20px; text-align: center; }
.pd-notes .hot { background: #fff1e6; } .pd-notes .hot i { color: #ea580c; }
.pd-notes .eta { background: var(--g-50); } .pd-notes .eta i { color: var(--g-700); }

/* Preloader: only appears if the page takes more than ~0.2 s (fast pages never flash it) */
.preloader { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; background: #fff; opacity: 0; animation: pl-in .2s .2s forwards; transition: opacity .35s; }
.preloader.gone { opacity: 0 !important; animation: none; pointer-events: none; }
.preloader .ring { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.preloader .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--g-50); border-top-color: var(--g-700); border-right-color: var(--amber); animation: pl-spin .9s linear infinite; }
.preloader .ring i { font-size: 2rem; color: var(--g-700); animation: pl-grow 1.2s ease-in-out infinite; }
.preloader .name { margin-top: 14px; font-weight: 800; color: var(--g-900); letter-spacing: .02em; text-align: center; }
.preloader .name small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
@keyframes pl-in { to { opacity: 1; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-grow { 50% { transform: scale(1.18) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .preloader .ring::before, .preloader .ring i { animation: none; } }
.pin-check { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pin-check label { display: block; margin-bottom: 6px; }
.pin-check input { max-width: 180px; letter-spacing: .08em; }

/* ---------- My account ---------- */
.acct-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: 16px; color: #fff;
  background: radial-gradient(30rem 14rem at 90% 10%, rgba(245,180,0,.3), transparent 60%), linear-gradient(120deg, var(--g-900), var(--g-700)); }
.acct-hero .avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--g-800); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex: none; }
.acct-hero .who { flex: 1; min-width: 200px; }
.acct-hero h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.acct-hero .meta { font-size: .86rem; opacity: .85; overflow-wrap: anywhere; } .acct-hero .dot { margin: 0 8px; }
.acct-hero .stats { display: flex; gap: 10px; }
.acct-hero .stats a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 8px 14px; color: #fff; text-align: center; min-width: 84px; }
.acct-hero .stats a:hover { background: rgba(255,255,255,.2); }
.acct-hero .stats b { display: block; font-size: 1.1rem; } .acct-hero .stats span { font-size: .72rem; opacity: .85; }
.acct-nudge { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--amber-50); border: 1px solid #f6d77a; color: var(--ink); }
.acct-nudge i:first-child { color: #b45309; font-size: 1.2rem; }
.acct-nudge b { margin-right: 6px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 991.98px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } .acct-grid aside { order: -1; } }
.acct-grid aside { display: grid; gap: 14px; }
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.acct-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.acct-card h2 i { color: var(--g-700); }
.acct-card.wallet { background: linear-gradient(135deg, #0f4a2b, #15803d); color: #fff; border: 0; }
.acct-card.wallet h2 i { color: var(--amber); } .acct-card.wallet .bal { font-size: 1.5rem; font-weight: 800; }
.acct-card.wallet .tx { border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; }
.acct-card.refer { background: var(--amber-50); border-color: #f6d77a; } .acct-card.refer h2 i { color: #b45309; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .status { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef0f2; color: var(--ink-2); }
.order-card .s-confirmed { background: #e0f2fe; color: #075985; } .order-card .s-shipped { background: #ede9fe; color: #5b21b6; }
.order-card .s-delivered { background: var(--g-50); color: var(--g-800); } .order-card .s-cancelled { background: #fee2e2; color: #991b1b; }
.order-card .s-pending { background: var(--amber-50); color: #92400e; }
.tracker { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 14px 0 6px; counter-reset: s; }
.tracker li { position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 18px; }
.tracker li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #d6d3d1; z-index: 1; }
.tracker li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: #e7e5e4; }
.tracker li:first-child::before { display: none; }
.tracker li.done { color: var(--g-800); font-weight: 600; } .tracker li.done span { background: var(--g-700); } .tracker li.done::before { background: var(--g-700); }
.tracker li.now span { box-shadow: 0 0 0 4px rgba(21,128,61,.2); }
.order-card .items { display: grid; gap: 8px; margin: 10px 0; }
.order-card .item { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.order-card .item:hover .nm { color: var(--g-700); }
.order-card .thumb { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; color: #c7c3bf; background: #fafaf9; }
.order-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-card .nm { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.order-card footer { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.share-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.share-row .sh { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .95rem; }
.share-row .sh:hover { border-color: currentColor; }
.share-row .wa { color: #128c4b; } .share-row .fb { color: #1877f2; } .share-row .cp, .share-row .more { color: var(--g-800); }
.pay-choice { display: grid; gap: 8px; }
.pay-choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.pay-choice label:has(input:checked) { border-color: var(--g-700); background: var(--g-50); }
.pay-choice label.disabled { opacity: .5; cursor: not-allowed; }
.pay-choice input { margin-top: 4px; accent-color: var(--g-700); }
.pay-choice b { display: block; } .pay-choice small { color: var(--muted); }

/* ---------- Login ---------- */
.auth-card { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--g-900), var(--g-700)); color: #fff; padding: 36px 32px; }
.auth-side h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 28px 0 22px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li > i { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: var(--amber); display: grid; place-items: center; }
.auth-side li b { display: block; font-size: .95rem; } .auth-side li span { color: #cfe6d6; font-size: .84rem; line-height: 1.35; }
.auth-art { position: absolute; right: -24px; bottom: -28px; font-size: 9rem; color: rgba(255,255,255,.07); }
.auth-main { padding: 40px 36px; }
.btn-google { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.btn-google:hover { border-color: var(--g-700); background: var(--g-50); color: var(--ink); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-main .form-control { border-radius: 10px; }
.auth-main .form-control:focus { border-color: var(--g-700); box-shadow: 0 0 0 .2rem rgba(21,128,61,.15); }
@media (max-width: 767.98px) {
  .auth-card { grid-template-columns: 1fr; border-radius: 14px; }
  .auth-side { padding: 22px 20px; } .auth-side h2 { font-size: 1.1rem; margin: 16px 0 0; } .auth-side ul, .auth-art { display: none; }
  .auth-main { padding: 24px 20px; }
}
/* Checkout extras */
.save-tag { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: var(--g-600); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.offer-chip { border: 1px dashed var(--g-700); background: var(--g-50); color: var(--g-800); border-radius: 8px; padding: 4px 10px; font-size: .78rem; text-align: left; }
.offer-chip b { font-family: ui-monospace, monospace; margin-right: 4px; }
.offer-chip:hover { background: var(--g-100); }
.sum-card .pay-final { background: var(--g-50); margin: 6px -8px 0; padding: 8px !important; border-radius: 8px; font-size: 1.05rem; color: var(--g-900); }
.sum-card .save-line { color: var(--g-700); font-weight: 700; text-align: center; margin-top: 8px; }
@media (min-width: 992px) { .sum-card { position: sticky; top: 92px; } }
/* Order placed celebration (checkout) */
.placed-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(255,255,255,.97); display: grid; place-items: center; padding: 16px; cursor: pointer; }
.placed-overlay[hidden] { display: none; }
.placed-overlay canvas { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.placed-card { max-width: 420px; width: 100%; text-align: center; cursor: default; position: relative; }
.placed-check { width: 128px; height: 128px; margin: 0 auto 22px; border-radius: 50%; background: var(--g-700); color: #fff; display: grid; place-items: center;
  font-size: 4.2rem; box-shadow: 0 0 0 10px rgba(21,128,61,.15), 0 14px 40px rgba(21,128,61,.35); animation: placed-pop .9s cubic-bezier(.2,1.6,.4,1) both; }
.placed-check i { animation: placed-tick .5s .35s ease-out both; }
.placed-card h2 { font-weight: 800; font-size: 1.7rem; animation: placed-up .6s .3s both; }
.placed-card p { color: var(--ink-2); animation: placed-up .6s .4s both; }
.placed-thanks { color: var(--g-700) !important; font-weight: 700; }
@keyframes placed-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes placed-tick { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes placed-up { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .placed-check, .placed-check i, .placed-card h2, .placed-card p { animation: none; } }

/* Policy pages (Admin > Content) */
.policy h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.25rem; }
.policy li { margin-bottom: .35rem; }

/* Instant search suggestions (header search box) */
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); z-index: 1060; max-height: min(60vh, 380px); overflow-y: auto; padding: 4px; text-align: left; font-size: .85rem; line-height: 1.25; }
.sugg a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.sugg a:hover, .sugg a.hl { background: #eef7f0; }
.sugg b { color: var(--g-900); }
.sugg .s-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 4px 6px; border-bottom: 1px solid #eef1ec; margin-bottom: 2px; scrollbar-width: none; }
.sugg .s-cat { flex: none; gap: 5px; padding: 3px 10px; border: 1px solid #d7e6da; border-radius: 999px; font-size: .78rem; white-space: nowrap; }
.sugg .s-cat i { color: var(--g-700); font-size: .7rem; }
.sugg .s-prod .t small { color: #6b7280; font-size: .72rem; }
.sugg .s-prod .ph { width: 34px; height: 34px; flex: none; border-radius: 6px; background: #f3f6f2; display: grid; place-items: center; overflow: hidden; color: #9aa79c; font-size: .8rem; }
.sugg .s-prod .ph img { width: 100%; height: 100%; object-fit: contain; }
.sugg .s-prod .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sugg .s-prod .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg .s-prod .pr { font-weight: 700; white-space: nowrap; }
.sugg .s-prod .pr s { color: #9ca3af; font-weight: 400; font-size: .72rem; }
.sugg .s-all { border-top: 1px solid #eef1ec; margin-top: 2px; color: var(--g-900); font-weight: 600; justify-content: center; font-size: .8rem; }
.sugg .s-none { padding: 8px 10px; color: #6b7280; }
@media (max-width: 575px) { .sugg { max-height: 50vh; } .sugg .s-prod .t small, .sugg .s-prod .pr s { display: none; } }

/* Home page product feed (Website look > Product feed below) */
.feed { scroll-margin-top: 150px; margin-top: 28px; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px 16px 0 0;
  background: radial-gradient(30rem 10rem at 90% 0%, rgba(245,180,0,.28), transparent 70%), linear-gradient(120deg, var(--g-900), var(--g-700)); color: #fff; }
.feed-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.feed-head small { color: rgba(255,255,255,.75); font-size: .82rem; }
.feed-head .pill-btn { background: #fff; color: var(--g-800); border-color: #fff; white-space: nowrap; }
.feed-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px; margin-bottom: 14px; background: #fff; border-radius: 0 0 16px 16px; box-shadow: var(--shadow); }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 15px; font-size: .86rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.feed-tabs button i { color: var(--g-600); font-size: .8rem; }
.feed-tabs button:hover { border-color: var(--g-600); color: var(--g-800); }
.feed-tabs button.on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.feed-tabs button.on i { color: #fcd34d; }
.feed-grid.dense { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.feed-grid.dense .p-card { padding: 10px; }
.feed-grid.dense .p-card .chips, .feed-grid.dense .p-card .meta { display: none; }
.feed-grid.dense .p-card .nm { font-size: .88rem; }
.feed-grid > .p-card { animation: feed-in .35s ease both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(8px); } }
.p-card.sk { pointer-events: none; animation: none; }
.p-card.sk .img, .p-card.sk i { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--line-2) 25%, #fafaf9 50%, var(--line-2) 75%) 0 0 / 200% 100%; animation: feed-sk 1.2s linear infinite; }
.p-card.sk i { height: 12px; margin-top: 8px; }
.p-card.sk i.s { width: 55%; height: 16px; }
@keyframes feed-sk { to { background-position: -200% 0; } }
.feed-foot { text-align: center; padding: 22px 0 10px; }
.feed-sentinel { height: 1px; }
.feed-loading { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 5px; }
.feed-loading[hidden], .feed-more[hidden], .feed-end[hidden] { display: none !important; }
.feed-loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--g-600); animation: feed-dot 1s infinite ease-in-out; }
.feed-loading span:nth-child(2) { animation-delay: .15s; } .feed-loading span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes feed-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.feed-end { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 575.98px) {
  .feed-head { padding: 14px; } .feed-head h2 { font-size: 1.1rem; }
  .feed-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feed-grid.dense .p-card .chips { display: none; }
}
@media (prefers-reduced-motion: reduce) { .feed-grid > .p-card, .p-card.sk .img, .p-card.sk i, .feed-loading span { animation: none; } }

/* ---------- Add to cart joy (site/assets/shop-fx.js) ---------- */
.fx-fly { position: fixed; z-index: 3000; object-fit: contain; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.fx-bit { position: fixed; z-index: 3001; width: 8px; height: 5px; border-radius: 2px; pointer-events: none; animation: fx-bit .95s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes fx-bit { to { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--r)); opacity: 0; } }
.hdr-link.fx-bounce i { animation: fx-bounce .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes fx-bounce { 0% { transform: scale(1); } 30% { transform: scale(1.45) rotate(-10deg); } 60% { transform: scale(.9) rotate(6deg); } 100% { transform: scale(1); } }
.hdr-link .count.pop { animation: fx-pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes fx-pop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
.btn.fx-adding { pointer-events: none; opacity: .75; }
.btn.fx-added { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.btn.fx-added i { animation: fx-bounce .6s; }
.fx-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2500; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  background: linear-gradient(120deg, var(--g-900), var(--g-700)); color: #fff; padding: 8px 10px 8px 8px; border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.28);
  animation: fx-toast-in .45s cubic-bezier(.3,1.5,.5,1); }
.fx-toast.out { animation: fx-toast-out .35s forwards; }
@keyframes fx-toast-in { from { transform: translate(-50%, 40px) scale(.85); opacity: 0; } }
@keyframes fx-toast-out { to { transform: translate(-50%, 30px); opacity: 0; } }
.fx-toast-pic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--g-700); }
.fx-toast-pic img { width: 100%; height: 100%; object-fit: contain; }
.fx-toast-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fx-toast-txt small { color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.fx-yay { display: inline-block; animation: fx-yay 1s ease-in-out 2; }
@keyframes fx-yay { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg) scale(1.25); } 75% { transform: rotate(14deg) scale(1.15); } }
.fx-toast a { background: var(--amber); color: #1f1300; font-weight: 800; border-radius: 999px; padding: 6px 12px; white-space: nowrap; font-size: .85rem; }

/* ---------- Empty cart: sad puppy ---------- */
.sad-pup { width: min(280px, 80vw); height: auto; display: block; margin: 0 auto; }
.sad-pup .pup { animation: pup-breathe 3.2s ease-in-out infinite; transform-origin: 74px 170px; }
.sad-pup .head { animation: pup-head 4s ease-in-out infinite; transform-origin: 110px 120px; }
.sad-pup .ear.l { animation: pup-ear-l 4s ease-in-out infinite; transform-origin: 86px 76px; }
.sad-pup .ear.r { animation: pup-ear-r 4s ease-in-out infinite; transform-origin: 134px 76px; }
.sad-pup .tail { animation: pup-tail 1.6s ease-in-out infinite; transform-origin: 44px 138px; }
.sad-pup .eyes { animation: pup-blink 4.5s infinite; transform-origin: 110px 92px; }
.sad-pup .tear { animation: pup-tear 3s ease-in infinite; }
.sad-pup .basket { animation: pup-basket 4s ease-in-out infinite; transform-origin: 185px 168px; }
@keyframes pup-breathe { 50% { transform: scaleY(1.025); } }
@keyframes pup-head { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-6deg) translateY(2px); } 70% { transform: rotate(3deg); } }
@keyframes pup-ear-l { 50% { transform: rotate(6deg); } }
@keyframes pup-ear-r { 50% { transform: rotate(-6deg); } }
@keyframes pup-tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes pup-blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes pup-tear { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(26px); opacity: .9; } 100% { transform: translateY(32px); opacity: 0; } }
@keyframes pup-basket { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }

/* ---------- Festive sale (Admin > Festive sale) ---------- */
.fest-strip { background: linear-gradient(110deg, var(--f1), var(--f2) 55%, var(--f3)); color: #fff; position: relative; overflow: hidden; cursor: default; }
.fest-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 50%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 34px 22px; opacity: .6; animation: fest-glint 6s linear infinite; pointer-events: none; }
@keyframes fest-glint { to { background-position: 340px 0; } }
.fest-strip .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; position: relative; }
.fest-strip .em { font-size: 1.7rem; line-height: 1; animation: fest-em 2.4s ease-in-out infinite; }
@keyframes fest-em { 50% { transform: scale(1.15) rotate(-6deg); } }
.fest-strip .ft { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fest-strip .ft b { font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.fest-strip .ft small { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fest-count { margin-left: auto; display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.22); border-radius: 10px; padding: 3px 10px; line-height: 1.1; }
.fest-count small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.fest-count b { font-variant-numeric: tabular-nums; font-size: .95rem; }
.fest-cta { background: #fff; color: var(--f1); font-weight: 800; border-radius: 999px; padding: 7px 14px; white-space: nowrap; font-size: .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: fest-cta 2s ease-in-out infinite; }
.fest-cta:hover { color: var(--f1); transform: translateY(-1px); }
@keyframes fest-cta { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.2); } }
.diyas { gap: 6px; }
.diya { width: 34px; height: 29px; filter: drop-shadow(0 0 6px rgba(253,224,71,.7)); }
.diya .fl { transform-origin: 20px 18px; animation: diya-flicker .9s ease-in-out infinite alternate; }
.diya:nth-child(2) .fl { animation-delay: .35s; }
@keyframes diya-flicker { from { transform: scale(1, 1) skewX(0); } to { transform: scale(.88, 1.12) skewX(4deg); } }
.site-header.has-lights { padding-bottom: 6px; }
.fest-lights { position: absolute; left: 0; right: 0; bottom: -8px; height: 16px; display: flex; justify-content: space-between; padding: 0 6px; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% -40%, transparent 60%, rgba(255,255,255,.35) 61%, transparent 64%) 0 0 / 36px 14px repeat-x; }
.fest-lights i { width: 7px; height: 10px; border-radius: 50% 50% 45% 45%; margin-top: 4px; background: #facc15; box-shadow: 0 0 8px 2px currentColor; color: #facc15; animation: fest-bulb 1.4s ease-in-out infinite; }
.fest-lights i:nth-child(4n+1) { background: #ef4444; color: #ef4444; animation-delay: .2s; }
.fest-lights i:nth-child(4n+2) { background: #22c55e; color: #22c55e; animation-delay: .5s; }
.fest-lights i:nth-child(4n+3) { background: #38bdf8; color: #38bdf8; animation-delay: .8s; }
@media (max-width: 767.98px) { .fest-lights i:nth-child(n+21) { display: none; } }
@keyframes fest-bulb { 50% { opacity: .35; box-shadow: none; } }
.fx-canvas { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.fest-sec .sec-head h2::before { content: attr(data-em); margin-right: 8px; }
.fest-sec { background: linear-gradient(110deg, color-mix(in srgb, var(--f1) 12%, #fff), color-mix(in srgb, var(--f3) 14%, #fff)); border-radius: 18px; padding: 16px; margin-top: 18px; }
@media (max-width: 575.98px) {
  .fest-strip .wrap { gap: 8px; flex-wrap: wrap; }
  .fest-strip .ft { flex: 1 1 60%; }
  .fest-strip .ft small { white-space: normal; }
  .fest-count { margin-left: 0; flex-direction: row; gap: 6px; padding: 3px 8px; }
  .fest-cta { margin-left: auto; padding: 6px 12px; }
  .fx-toast-txt small { max-width: 38vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sad-pup *, .fest-strip *, .fest-strip::before, .fest-lights i, .diya .fl, .fx-yay { animation: none !important; }
}
