/* ============================================================
   KS GADGETS - storefront design system (customer site only)
   Loaded after styles.css. Mobile-first.
   ============================================================ */

body { background: var(--bg); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 16px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo nav" "search search search";
  align-items: center; gap: 8px 12px;
}
.menu-btn {
  grid-area: menu; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 19px;
}
.logo { grid-area: logo; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo .logo-word { font-size: 21px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo .logo-word b { color: var(--brand); }
.logo .logo-tag { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { grid-area: search; display: flex; position: relative; }
.search input {
  border-radius: 99px; padding: 10px 46px 10px 18px; background: #f2f4f8; border-color: transparent;
}
.search input:focus { background: #fff; }
.search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 99px; border: none;
  background: var(--brand); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--brand-ink); }
.nav-links { grid-area: nav; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.nav-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 12px; line-height: 1.2;
}
.nav-item:hover { background: #f2f4f8; text-decoration: none; }
.nav-item .ic { font-size: 18px; }
.basket-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 99px; margin-left: 6px;
}
.basket-link:hover { background: var(--brand-ink); text-decoration: none; }
.basket-count {
  background: var(--accent); color: var(--accent-ink); border-radius: 99px;
  font-size: 12px; font-weight: 800; padding: 1px 8px;
}
@media (min-width: 768px) {
  .site-inner { grid-template-columns: auto auto 1fr auto; grid-template-areas: "menu logo search nav"; padding: 12px 24px; }
  .search { max-width: 560px; margin: 0 auto; width: 100%; }
  .menu-btn { display: none; }
}
@media (max-width: 380px) {
  .nav-item { padding: 8px 5px; font-size: 10.5px; }
  .basket-link span.lbl { font-size: 12px; }
  .basket-link { padding: 9px 10px; }
}

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 20px 16px 72px; }
@media (min-width: 768px) { main { padding: 28px 24px 80px; } }
.layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .layout { grid-template-columns: 230px 1fr; gap: 28px; } }

.page-title { font-size: 24px; font-weight: 800; margin: 4px 0 16px; }

/* ---------- Category navigation ---------- */
.cat-panel { display: none; }
@media (min-width: 900px) {
  .cat-panel { display: block; position: sticky; top: 88px; align-self: start; }
  .cat-panel .card { padding: 14px; }
}
.cat-panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 8px 10px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: 14px; transition: background .12s;
}
.cat-list a:hover { background: #f2f4f8; text-decoration: none; }
.cat-list a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

.chip-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-bar::-webkit-scrollbar { display: none; }
.chip-bar a {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.chip-bar a:hover { text-decoration: none; border-color: #cfd6e1; }
.chip-bar a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (min-width: 900px) { .chip-bar { display: none; } }

/* ---------- Drawer (mobile menu) ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); z-index: 90; opacity: 0; transition: opacity .2s; }
.drawer-back.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(310px, 84vw); z-index: 91;
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-102%); transition: transform .22s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head .logo-word { font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.drawer-close { border: none; background: #f2f4f8; border-radius: 10px; width: 36px; height: 36px; font-size: 16px; }
.drawer-section { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 16px 18px 6px; }
.drawer a.d-link { display: flex; align-items: center; gap: 11px; padding: 12px 18px; color: var(--ink); font-weight: 500; font-size: 15px; }
.drawer a.d-link:hover { background: #f2f4f8; text-decoration: none; }
.drawer a.d-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  border-radius: 20px; overflow: hidden; position: relative; color: #fff;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(245, 180, 0, .28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(56, 161, 105, .35), transparent 60%),
    linear-gradient(120deg, #0b3d26 0%, #0f5132 55%, #14693f 100%);
  padding: 44px 26px 48px;
  margin-bottom: 26px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(75deg, transparent 45%, #000 95%);
  -webkit-mask-image: linear-gradient(75deg, transparent 45%, #000 95%);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #ffd75e; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; padding: 6px 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 6vw, 50px); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 12px; }
.hero h1 .hl { color: #ffd75e; }
.hero p.sub { font-size: clamp(15px, 2.4vw, 18px); color: #d7e8de; max-width: 540px; margin: 0 0 26px; }
.hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-hero { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; font-weight: 700; }
.btn-hero.solid { background: var(--accent); border: none; color: var(--accent-ink); box-shadow: 0 8px 24px -6px rgba(245, 180, 0, .5); }
.btn-hero.solid:hover { background: #ffc41f; }
.btn-hero.ghost { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-hero.ghost:hover { background: rgba(255, 255, 255, .18); }
@media (min-width: 768px) { .hero { padding: 64px 56px 68px; } }

/* ---------- Feature strip ---------- */
.feature-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 34px;
}
@media (min-width: 768px) { .feature-strip { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.feature {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.feature .f-ic {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 17px;
}
.feature .f-t { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.feature .f-s { font-size: 11.5px; color: var(--muted); }

/* ---------- Section headers ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 16px; }
.section-head h2 { font-size: 21px; font-weight: 800; margin: 0; }
.section-head a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 38px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.cat-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d5dbe5; }
.cat-card .cc-ic {
  width: 46px; height: 46px; border-radius: 13px; font-size: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #f3fbf6);
}
.cat-card .cc-name { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.25; }
.cat-card .cc-sub { font-size: 12px; color: var(--muted); }

/* ---------- Product rail (featured) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 250px); gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #d8dee8; border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: transparent; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d5dbe5; }
.product-img {
  aspect-ratio: 4 / 3; background: linear-gradient(140deg, #f4f6f9, #e9edf3);
  display: flex; align-items: center; justify-content: center; font-size: 40px; color: #aab4c4; overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-img img { transform: scale(1.045); }
.img-badge { position: absolute; top: 9px; left: 9px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.img-badge.out { background: var(--ink); color: #fff; }
.img-badge.low { background: var(--warn-soft); color: var(--warn-ink); }
.product-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; line-height: 1.3; font-size: 13.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-name:hover { color: var(--brand); text-decoration: none; }
.price-row { display: flex; align-items: baseline; gap: 5px; }
.price { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price small, .per { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.rules { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 10.5px; font-weight: 700; padding: 2.5px 8px; border-radius: 6px; background: #f2f4f8; color: #5a6679; letter-spacing: .02em; }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.stock-line { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.stock-line .dot { width: 7px; height: 7px; border-radius: 99px; flex: 0 0 7px; }
.stock-ok { color: var(--ok); } .stock-ok .dot { background: var(--ok); }
.stock-low { color: var(--warn-ink); } .stock-low .dot { background: #eab308; }
.stock-out { color: var(--danger); } .stock-out .dot { background: var(--danger); }

/* quantity stepper */
.qty-row { display: flex; gap: 8px; margin-top: auto; align-items: stretch; flex-wrap: wrap; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.stepper button {
  width: 30px; border: none; background: #f7f8fa; color: var(--ink); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; touch-action: manipulation;
}
.stepper button:hover { background: #eceff4; }
.stepper button:disabled { opacity: .35; }
.stepper input {
  width: 46px; border: none; border-radius: 0; text-align: center; padding: 8px 2px; font-weight: 700; font-size: 14px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.add-btn {
  flex: 1 1 88px; min-width: 88px; border: none; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 9px 8px; transition: background .15s, transform .1s; min-height: 40px;
}
.add-btn:hover { background: var(--brand-ink); }
.add-btn:active { transform: scale(.97); }
.add-btn:disabled { background: #c6cdd8; cursor: not-allowed; }
.add-btn.added { background: var(--ok); }
.qty-msg { font-size: 11.5px; min-height: 15px; color: var(--danger); font-weight: 600; }

/* ---------- Product detail page ---------- */
.pd-wrap { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 880px) { .pd-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.pd-gallery {
  background: linear-gradient(140deg, #f4f6f9, #e9edf3); border: 1px solid var(--line); border-radius: 20px;
  aspect-ratio: 1 / 1; max-height: 520px; width: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 84px; color: #aab4c4; overflow: hidden;
  position: sticky; top: 92px;
}
.pd-gallery img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { font-size: clamp(21px, 3.4vw, 28px); font-weight: 800; margin: 0 0 6px; line-height: 1.18; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pd-meta b { color: var(--ink); font-weight: 600; }
.pd-price-box { display: flex; align-items: baseline; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pd-price-box .price { font-size: 32px; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rule-pill { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 14px; font-size: 12.5px; }
.rule-pill b { display: block; font-size: 15px; letter-spacing: -.01em; }
.rule-pill span { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.pd-buy { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.pd-buy .qty-row { margin-top: 0; }
.pd-buy .stepper input { width: 64px; padding: 11px 2px; font-size: 16px; }
.pd-buy .stepper button { width: 40px; font-size: 17px; }
.pd-buy .add-btn { font-size: 15px; min-height: 48px; }
.fulfil-options { display: grid; gap: 9px; margin-bottom: 18px; }
.fulfil-opt { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; font-size: 13px; }
.fulfil-opt .fo-ic { font-size: 19px; line-height: 1.2; }
.fulfil-opt b { display: block; font-size: 13.5px; }
.fulfil-opt span { color: var(--muted); }
.pd-desc h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Checkout / option tiles ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.45fr 1fr; gap: 24px; } }
.option-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .option-tiles { grid-template-columns: 1fr 1fr; } }
.tile { border: 2px solid var(--line); border-radius: 14px; padding: 15px; cursor: pointer; background: #fff; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.tile:hover { border-color: #c8d0dc; }
.tile.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(15, 81, 50, .1); }
.tile .t-title { font-weight: 700; font-size: 15px; }
.tile .t-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.summary-sticky { position: sticky; top: 92px; }

/* ---------- Footer ---------- */
footer.site { background: #0d1424; color: #94a3b8; margin-top: 56px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 44px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; } }
.footer-brand .logo-word { font-size: 21px; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.footer-brand .logo-word b { color: #4ade80; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin: 10px 0 0; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-col a, .footer-col div { display: block; color: #94a3b8; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 12.5px; color: #64748b; }
.pay-icons { display: flex; gap: 7px; }
.pay-icons span { background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: #cbd5e1; }

/* ---------- Skeletons & loading ---------- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel { position: relative; overflow: hidden; background: #e9edf3; border-radius: 8px; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  background-size: 400px 100%; animation: shimmer 1.3s infinite linear;
}
.skel-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.skel-card .skel-img { aspect-ratio: 4/3; border-radius: 0; }
.skel-card .skel-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 99px; animation: spin .7s linear infinite; display: inline-block; vertical-align: -4px;
}
.spinner.dark { border-color: #d4dae4; border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Misc / responsive guards ---------- */
img { max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline li::before { background: var(--brand); }
.empty .big { font-size: 46px; }
@media (max-width: 640px) {
  .card { padding: 16px; }
  td, th { padding: 8px 7px; font-size: 13px; }
}

/* ============================================================
   Mobile-first commerce app refresh
   ============================================================ */
.topline {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 7px 14px;
  background: #111827;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  scrollbar-width: none;
}
.topline::-webkit-scrollbar { display: none; }
.topline span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.topline span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 2px 0;
  border-radius: 999px;
  background: var(--accent);
}

header.site {
  top: 0;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .86);
}
.site-inner {
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "menu logo nav" "search search search";
  gap: 10px;
  padding: 12px 14px 10px;
}
.menu-btn {
  width: auto;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.logo .logo-word {
  font-size: 20px;
  letter-spacing: -.02em;
}
.logo .logo-tag { display: none; }
.search input {
  min-height: 46px;
  padding: 12px 58px 12px 16px;
  border: 1px solid transparent;
  background: #eef2f3;
}
.search button {
  right: 6px;
  width: 46px;
  height: 34px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-links {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  justify-content: space-around;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, .52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-item, .basket-link {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 9px 8px;
  border-radius: 18px;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}
.nav-item .ic { display: none; }
.basket-link {
  color: #fff !important;
  background: var(--brand);
  gap: 6px;
}
.basket-count {
  padding: 1px 7px;
  background: #fff;
  color: var(--brand);
}

main {
  max-width: 1180px;
  padding: 18px 14px 108px;
}
.page-title {
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.drawer {
  width: min(380px, 92vw);
  border-radius: 0 28px 28px 0;
}
.drawer-head { padding: 18px; }
.drawer-close {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.drawer a.d-link {
  min-height: 48px;
  font-weight: 650;
}

.hero {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow-md);
}
.hero::after, .hero .eyebrow { display: none; }
.hero h1 {
  max-width: 560px;
  font-size: clamp(34px, 12vw, 64px);
  letter-spacing: -.045em;
}
.hero h1 .hl { color: var(--brand); }
.hero p.sub {
  max-width: 620px;
  color: var(--muted);
}
.btn-hero.solid {
  background: var(--brand);
  color: #fff;
}
.btn-hero.ghost {
  background: #f3f5f6;
  border-color: transparent;
  color: var(--ink);
}

.feature-strip {
  grid-template-columns: 1fr;
  gap: 8px;
}
.feature {
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  background: #eef2f3;
}
.feature .f-ic {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.cat-grid { grid-template-columns: 1fr 1fr; }
.cat-card {
  min-height: 112px;
  border-radius: 22px;
  box-shadow: none;
}
.cat-card .cc-ic {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 0;
}

.chip-bar {
  position: sticky;
  top: 110px;
  z-index: 20;
  margin: -2px -14px 12px;
  padding: 8px 14px 12px;
  background: linear-gradient(180deg, rgba(245,247,248,.96), rgba(245,247,248,.86));
  backdrop-filter: blur(10px);
}
.chip-bar a {
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .07);
}
.chip-bar a.active {
  background: var(--ink);
  color: #fff;
}

.grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.product-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  border-radius: 24px;
  box-shadow: none;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-img {
  height: 100%;
  min-height: 170px;
  aspect-ratio: auto;
  border-radius: 0;
  background: #eef2f3;
  font-size: 0;
}
.product-img::before, .pd-gallery::before, .thumb::before {
  content: "";
  width: 42px;
  height: 56px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 35%),
    linear-gradient(135deg, #d9e1e5, #b8c5cc);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
}
.product-img:has(img)::before, .pd-gallery:has(img)::before, .thumb:has(img)::before { display: none; }
.product-img img { object-fit: cover; }
.product-body { padding: 14px; }
.product-name {
  min-height: auto;
  font-size: 15px;
  font-weight: 800;
}
.price { font-size: 21px; }
.chip {
  border-radius: 999px;
  background: #eef2f3;
}
.qty-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.stepper {
  border-radius: 16px;
}
.stepper button {
  width: 36px;
  background: #eef2f3;
}
.stepper input {
  width: 48px;
  min-height: 40px;
}
.add-btn {
  min-height: 42px;
  border-radius: 16px;
}
.add-btn.added {
  background: #0f7a4f;
  animation: addPulse .34s ease;
}
@keyframes addPulse {
  0% { transform: scale(.96); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.pd-wrap { gap: 18px; }
.pd-gallery {
  position: relative;
  top: auto;
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  background: #eef2f3;
  font-size: 0;
}
.pd-buy {
  position: sticky;
  bottom: 92px;
  z-index: 30;
  border-radius: 24px;
  box-shadow: 0 18px 50px -28px rgba(15, 23, 42, .6);
}
.rule-pill { border-radius: 16px; }
.fulfil-opt {
  border-radius: 18px;
}
.fulfil-opt .fo-ic { display: none; }

.checkout-grid {
  gap: 14px;
}
.option-tiles {
  grid-template-columns: 1fr;
}
.tile {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 20px;
  box-shadow: none;
}
.tile.selected {
  border-color: rgba(11, 107, 69, .5);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 107, 69, .22);
}
.summary-sticky {
  position: sticky;
  bottom: 92px;
  top: auto;
  z-index: 25;
  box-shadow: 0 18px 50px -28px rgba(15, 23, 42, .6);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .product-card { display: flex; }
  .product-img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) {
  .site-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search nav";
    padding: 14px 24px;
  }
  .logo .logo-tag { display: block; }
  .nav-links {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }
  .nav-item {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--ink);
  }
  .basket-link {
    flex: 0 0 auto;
    padding: 10px 16px;
  }
  main { padding: 30px 24px 84px; }
  .feature-strip { grid-template-columns: repeat(4, 1fr); }
  .option-tiles { grid-template-columns: 1fr 1fr; }
  .summary-sticky {
    top: 92px;
    bottom: auto;
  }
}

@media (min-width: 900px) {
  .chip-bar { display: none; }
  .layout { grid-template-columns: 220px 1fr; }
}

/* ============================================================
   Elegant storefront refinement
   ============================================================ */
.topline {
  gap: 18px;
  padding: 8px 14px;
  background: #101611;
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  font-weight: 800;
}

.topline span + span::before {
  background: rgba(200, 139, 36, .95);
}

header.site {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(17, 23, 20, .08);
  box-shadow: 0 1px 0 rgba(17, 23, 20, .03);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.site-inner {
  max-width: 1220px;
}

.logo .logo-word {
  color: #111714;
  font-size: 19px;
  font-weight: 900;
}

.menu-btn,
.search button {
  position: relative;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.menu-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-color: rgba(17, 23, 20, .1);
  background: rgba(255, 255, 255, .84);
}

.menu-btn::before {
  content: "";
  width: 18px;
  height: 12px;
  background:
    linear-gradient(#111714, #111714) 0 0 / 18px 2px no-repeat,
    linear-gradient(#111714, #111714) 0 5px / 14px 2px no-repeat,
    linear-gradient(#111714, #111714) 0 10px / 18px 2px no-repeat;
}

.search input {
  min-height: 48px;
  padding-right: 58px;
  border-color: rgba(17, 23, 20, .08);
  background: rgba(240, 243, 241, .92);
}

.search input:focus {
  background: #fff;
}

.search button {
  position: absolute;
  width: 38px;
  height: 38px;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: #111714;
  border-radius: 50%;
}

.search button::before,
.search button::after {
  content: "";
  position: absolute;
  display: block;
}

.search button::before {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  left: 50%;
  top: 48%;
  transform: translate(-58%, -58%);
}

.search button::after {
  width: 8px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  left: 22px;
  top: 24px;
  transform: rotate(45deg);
}

.support-case-list {
  display: grid;
  gap: 12px;
}

.support-case-card {
  padding: 14px;
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-case-card .order-number {
  color: var(--ink);
  font-weight: 900;
}

.reply-composer {
  padding: 14px;
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 16px;
  background: #f8faf8;
}

.payment-proof-focus {
  border-color: rgba(12, 118, 83, .18);
  background: linear-gradient(180deg, #f8fffb, #fff);
}

.nav-links {
  position: fixed;
  inset: auto 12px max(10px, env(safe-area-inset-bottom)) 12px;
  bottom: 10px;
  border-color: rgba(17, 23, 20, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 58px -28px rgba(17, 23, 20, .58);
}

.nav-item,
.basket-link {
  border-radius: 16px;
  font-weight: 800;
}

.nav-item:hover {
  background: #f0f3f1;
  color: var(--ink);
}

.basket-link {
  background: #111714;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

main {
  max-width: 1220px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 30px 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
}

.hero h1 .hl {
  color: var(--brand);
}

.hero p.sub {
  max-width: 620px;
  margin: 0;
  color: #52615a;
  font-size: 16px;
  line-height: 1.6;
}

.hero .hero-ctas {
  gap: 10px;
}

.btn-hero {
  min-height: 48px;
  border-radius: 14px;
}

.btn-hero.solid {
  background: #111714;
  color: #fff;
}

.btn-hero.ghost {
  background: #fff;
  border: 1px solid rgba(17, 23, 20, .1);
  color: var(--ink);
}

.feature-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.feature {
  min-height: 84px;
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}

.feature .f-ic {
  background: #101611;
  color: #fff;
  font-size: 10px;
}

.feature .f-t {
  color: var(--ink);
  font-weight: 850;
}

.section-head {
  margin-top: 26px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 900;
}

.cat-card {
  min-height: 104px;
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 18px;
  background: #fff;
}

.cat-card:hover {
  border-color: rgba(10, 95, 69, .26);
  box-shadow: 0 16px 36px -30px rgba(10, 95, 69, .65);
  transform: translateY(-2px);
}

.cat-card .cc-ic {
  width: 28px;
  height: 3px;
  background: var(--accent);
}

.chip-bar {
  top: 112px;
}

.chip-bar a {
  border-radius: 999px;
  font-weight: 800;
}

.cat-panel .card {
  border-radius: 18px;
}

.cat-list a {
  border-radius: 12px;
}

.product-card {
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: rgba(10, 95, 69, .24);
  box-shadow: 0 18px 46px -34px rgba(10, 95, 69, .6);
}

.product-img {
  min-height: 158px;
  padding: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f1f4f2);
}

.product-img::before,
.pd-gallery::before,
.thumb::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), transparent 38%),
    linear-gradient(145deg, #e4ebe6, #cdd8d1);
}

.product-img img,
.pd-gallery img,
.thumb img {
  object-fit: contain;
}

.product-card:hover .product-img img {
  transform: scale(1.025);
}

.product-body {
  gap: 7px;
  padding: 14px;
}

.product-name {
  color: #17201b;
  font-size: 14.5px;
  font-weight: 850;
}

.price {
  color: #111714;
  font-size: 20px;
  font-weight: 900;
}

.per {
  color: #6b756f;
}

.rules {
  gap: 5px;
}

.chip {
  border-radius: 999px;
  background: #f0f3f1;
  color: #52615a;
  font-weight: 850;
}

.stock-line {
  font-weight: 760;
}

.qty-row {
  grid-template-columns: minmax(0, auto) minmax(82px, 1fr);
  gap: 8px;
}

.stepper {
  border-width: 1px;
  border-radius: 13px;
}

.stepper button {
  background: #f4f6f4;
}

.stepper input {
  min-height: 40px;
}

.add-btn {
  border-radius: 13px;
  background: var(--brand);
  font-weight: 850;
}

.add-btn:hover {
  background: var(--brand-ink);
}

.pd-gallery {
  border: 1px solid rgba(17, 23, 20, .08);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.pd-buy {
  border-radius: 20px;
}

.tile {
  min-height: 96px;
  background: #fff;
}

.tile:hover {
  border-color: rgba(10, 95, 69, .26);
  transform: translateY(-1px);
}

.tile.selected {
  border-color: rgba(10, 95, 69, .58);
  background: #f3faf7;
}

.summary-sticky {
  border-color: rgba(17, 23, 20, .08);
  background: rgba(255, 255, 255, .96);
}

footer.site {
  background: #101611;
}

@media (min-width: 640px) {
  .product-card {
    border-radius: 18px;
  }

  .product-img {
    min-height: 0;
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 50px 0 28px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero p.sub {
    font-size: 17px;
  }

  .feature-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-links {
    position: static;
    inset: auto;
    box-shadow: none;
  }

  .nav-item:hover {
    background: rgba(10, 95, 69, .08);
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 36px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .product-img {
    min-height: 164px;
  }
}

table .product-img {
  min-height: 0;
  padding: 0;
  background: #f0f3f1;
}

table .product-img img {
  object-fit: cover;
}

.home-products-head {
  margin-top: 30px;
}

.home-product-list {
  align-items: stretch;
}

.home-view-all {
  display: flex;
  justify-content: center;
  padding: 22px 0 8px;
}

.home-view-all .btn {
  min-width: min(240px, 100%);
  min-height: 48px;
  border-radius: 14px;
}

.product-img:has(.product-img-fallback)::before,
.pd-gallery:has(.product-img-fallback)::before {
  display: none;
}

.product-img-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 14px;
  color: #24302a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.product-img:has(.product-img-fallback) {
  background:
    linear-gradient(150deg, rgba(255,255,255,.88), rgba(240,243,241,.68)),
    radial-gradient(circle at 82% 18%, rgba(200,139,36,.22), transparent 32%),
    linear-gradient(135deg, #eef3ef, #dce5df);
}

.pd-gallery .product-img-fallback {
  width: min(280px, 72%);
  min-height: auto;
  padding: 22px;
  border: 1px solid rgba(17, 23, 20, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 38px -30px rgba(17, 23, 20, .48);
  font-size: 13px;
}

@media (max-width: 767px) {
  header.site {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topline {
    gap: 10px;
    padding-inline: 10px;
    font-size: 9.5px;
  }

  .topline span:nth-child(n+4) {
    display: none;
  }

  .topline span + span::before {
    margin-right: 9px;
  }
}


/* ============================================================
   Support thread chat composer (customer app)
   ============================================================ */

/* Keep the sticky composer clear of the floating bottom nav */
.chat-composer {
  bottom: 84px;
}

@media (min-width: 768px) {
  .chat-composer {
    bottom: 12px;
  }
}
