/* Home Fix Ups Hardware
   Brand: navy #1B2A5E, green #4E8B29, lime #8DC63F.
   Mobile first. Breakpoints at 640, 900 and 1200. */

:root {
  --navy: #1b2a5e;
  --navy-d: #12204a;
  --navy-l: #2f4283;
  --green: #4e8b29;
  --green-d: #3f7a22;
  --lime: #8dc63f;
  --lime-soft: #eef7dd;

  --ink: #16203c;
  --ink-2: #4a5578;
  --ink-3: #737f9c;
  --line: #dfe4ee;
  --line-2: #eef1f7;
  --bg: #f4f6fa;
  --card: #ffffff;
  --pale: #f1f5f9;

  --warn: #b45309;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --ok-bg: #f0f8e6;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(18, 32, 74, .07);
  --shadow-2: 0 4px 16px rgba(18, 32, 74, .10);
  --shadow-3: 0 12px 32px rgba(18, 32, 74, .16);

  --header-h: 56px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

/* Icons inherit this unless a component sets its own size. Without a default,
   an icon dropped into a new context renders at its natural size. */
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.22; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 12px; }

/* A grid item's automatic minimum size is its content, which lets wide content
   push a track past the viewport. Every layout grid opts out of that. */
.pdp > *, .listing > *, .cart-layout > *, .dash > *, .sec-split > *,
.home-top > *, .visit > *, .field-row > *, .post-grid > *, .grid > * { min-width: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--navy);
  color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip-link:focus { top: 8px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 650; letter-spacing: .01em; cursor: pointer;
  background: var(--green); color: #fff; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--green-d); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-d); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--pale); border-color: var(--navy-l); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f2c4c0; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */

.topbar {
  background: var(--navy-d); color: #cfd6e8; font-size: .78rem;
  display: none;
}
.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 34px; }
.topbar a { color: #cfd6e8; }
.topbar a:hover { color: #fff; }
.topbar .spacer { margin-left: auto; }
.topbar strong { color: var(--lime); font-weight: 650; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.masthead .wrap {
  display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: center;
  gap: .5rem; min-height: var(--header-h);
}
.masthead .brand-lockup { display: flex; align-items: center; gap: .25rem; min-width: 0; }

.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: .88rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.brand-text span {
  font-size: .52rem; font-weight: 700; letter-spacing: .28em; color: var(--green); text-transform: uppercase;
}

.head-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: none;
  color: var(--navy); font: inherit; font-size: .62rem; cursor: pointer; border-radius: var(--r-sm);
  text-decoration: none; position: relative;
}
.icon-btn:hover { background: var(--line-2); text-decoration: none; }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn .lbl { display: none; }
.badge-count[hidden] { display: none; }
.badge-count {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--green); color: #fff; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* search */
.search { display: flex; width: 100%; }
.search form { display: flex; width: 100%; border: 2px solid var(--navy); border-radius: var(--r); overflow: hidden; background: #fff; }
.search select {
  display: none; border: 0; border-right: 1px solid var(--line); background: var(--pale);
  font: inherit; font-size: .85rem; color: var(--ink-2); padding: 0 .5rem; max-width: 170px;
}
.search input {
  flex: 1; min-width: 0; border: 0; padding: 0 .7rem; font: inherit; font-size: .95rem; height: 40px; color: var(--ink);
}
.search input:focus { outline: none; }
.search button {
  border: 0; background: var(--navy); color: #fff; padding: 0 .9rem; cursor: pointer; display: grid; place-items: center;
}
.search button:hover { background: var(--navy-l); }
.search button .ico { width: 20px; height: 20px; }

.masthead [data-desktop-search] { display: none; }
.masthead [data-desktop-search] { display: none; }
.head-actions .icon-btn[data-desk-only] { display: none; }
.mobile-search { display: block; padding: 8px 0 10px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-search .wrap { padding-top: 0; }

/* suggestions */
.suggest {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); overflow: hidden;
}
.suggest a { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; color: var(--ink); }
.suggest a:hover, .suggest a.active { background: var(--lime-soft); text-decoration: none; }
.suggest img { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--pale); }
.suggest .s-title { font-size: .85rem; }
.suggest .s-price { margin-left: auto; font-weight: 700; font-size: .82rem; color: var(--navy); white-space: nowrap; }
.search-shell { position: relative; width: 100%; }

/* nav */
.mainnav { display: none; background: var(--navy); }
.mainnav .wrap { display: flex; align-items: stretch; gap: 2px; }
.mainnav a {
  display: inline-flex; align-items: center; gap: .4rem; padding: 0 .85rem; min-height: 42px;
  color: #dbe2f2; font-size: .875rem; font-weight: 600;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--navy-l); color: #fff; text-decoration: none; }
.mainnav .ico { width: 18px; height: 18px; }
.mainnav .nav-right { margin-left: auto; display: flex; }
.mainnav .nav-sell { color: var(--lime); font-weight: 700; }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; z-index: 70; left: 0; top: 100%; width: min(880px, 92vw); background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-3); padding: 1rem; display: none; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.has-mega[data-open="true"] .mega { display: grid; }
.mega h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: .35rem; }
.mega ul a { display: block; padding: .22rem 0; color: var(--ink-2); font-size: .85rem; min-height: 0; }
.mega ul a:hover { color: var(--navy); }

/* ---------- mobile drawer ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(18, 32, 74, .45); z-index: 90; opacity: 0;
  pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff;
  transform: translateX(-100%); transition: transform .22s ease; display: flex; flex-direction: column;
}
.drawer[data-open="true"] { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .75rem; background: var(--navy); color: #fff;
}
.drawer-head .btn-ghost { color: #fff; }
.drawer-body { overflow-y: auto; padding: .5rem 0 2rem; }
.drawer-sec { border-bottom: 1px solid var(--line-2); }
.drawer-sec > button {
  display: flex; width: 100%; align-items: center; gap: .6rem; padding: .8rem .9rem; border: 0;
  background: none; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; text-align: left;
}
.drawer-sec > button .ico { width: 22px; height: 22px; color: var(--green); }
.drawer-sec > button .chev { margin-left: auto; transition: transform .2s; color: var(--ink-3); }
.drawer-sec[data-open="true"] > button .chev { transform: rotate(90deg); }
.drawer-sec ul { display: none; padding: 0 .9rem .7rem 2.4rem; }
.drawer-sec[data-open="true"] ul { display: block; }
.drawer-sec ul a { display: block; padding: .45rem 0; color: var(--ink-2); font-size: .9rem; }
.drawer-links { padding: .5rem .9rem; }
.drawer-links a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; color: var(--ink); }
.drawer-links .ico { width: 20px; height: 20px; color: var(--ink-3); }

/* ---------- bottom nav (mobile) ---------- */

.bottomnav {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; font-size: .62rem; color: var(--ink-3); position: relative; font-weight: 600;
}
.bottomnav a .ico { width: 22px; height: 22px; }
.bottomnav a[aria-current="page"] { color: var(--green); }
.bottomnav a:hover { text-decoration: none; }
body { padding-bottom: 58px; }

/* ---------- layout blocks ---------- */

main { display: block; }
.section { margin: 1.25rem 0; }
.section-head {
  display: flex; align-items: baseline; gap: .75rem; margin-bottom: .7rem;
}
.section-head h2 { margin: 0; font-size: 1.05rem; }
.section-head .more { margin-left: auto; font-size: .85rem; font-weight: 650; color: var(--green); }
.eyebrow {
  font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  margin-bottom: .3rem;
}

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: 1rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .8rem; color: var(--ink-3); padding: .7rem 0; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb span::after { content: "/"; margin-left: .3rem; color: var(--line); }
.breadcrumb span:last-child::after { content: ""; }

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: #fff; border-radius: var(--r-lg); padding: 1.25rem; margin-top: .75rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(141, 198, 63, .16);
}
.hero h1 { font-size: 1.45rem; margin-bottom: .4rem; color: #fff; }
.hero p { color: #ccd6ee; max-width: 46ch; margin-bottom: .9rem; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1rem; font-size: .8rem; color: #d8e1f4; }
.hero-points li { display: flex; align-items: center; gap: .35rem; }
.hero-points .ico { width: 16px; height: 16px; color: var(--lime); }

/* category tiles */
/* Column counts divide the eight sections evenly, so the strip never ends on
   a half empty row. Revisit these three if a section is added or retired. */
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cat-tile small { white-space: nowrap; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-align: center;
  color: var(--ink); font-size: .78rem; font-weight: 650; line-height: 1.2;
}
.cat-tile:hover { border-color: var(--green); box-shadow: var(--shadow-2); text-decoration: none; }
.cat-tile .ico { width: 30px; height: 30px; color: var(--green); }
.cat-tile small { display: block; font-weight: 500; color: var(--ink-3); font-size: .68rem; }

/* ---------- product cards ---------- */

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
/*
 * The rail shows a whole number of cards and ends flush with its container.
 * Percentage columns cannot do that, because the gaps are not part of the
 * percentage, so the row always ended mid card and the arrows, which page by
 * one track width, landed mid card too. Working the column width back out of
 * the track width and the gaps makes both land on a card edge.
 *
 * Below 900px there are no arrows, so a narrower column deliberately leaves
 * part of the next card showing: that peek is the only thing telling a thumb
 * the row scrolls.
 */
.rail {
  --rail-cols: 2.3;
  --rail-gap: .5rem;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
  gap: var(--rail-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }

.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; position: relative; transition: box-shadow .15s, border-color .15s;
}
.card:hover { border-color: #c6d0e4; box-shadow: var(--shadow-2); }
.card-title {
  order: -1; flex: none; font-size: .82rem; font-weight: 700; color: var(--green-d); line-height: 1.3;
  margin: 0; padding: .6rem .6rem .4rem; height: 3.1em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
a.card-title:hover { color: var(--navy); text-decoration: none; }
.card-media { position: relative; display: block; background: var(--pale); aspect-ratio: 1 / 1; }
.card-media > a { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: .5rem .6rem .6rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.card-shop { font-size: .7rem; color: var(--ink-3); display: flex; align-items: center; gap: .25rem; }
.card-shop .ico { width: 13px; height: 13px; flex: none; }
.card-shop a { color: var(--ink-3); }
.card-meta { font-size: .7rem; color: var(--ink-3); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.card-meta .ico { width: 13px; height: 13px; }
.card-foot { display: flex; align-items: flex-end; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.card-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.card-price b { font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.card-price .unit { font-size: .68rem; color: var(--ink-3); }
.card-price s { font-size: .72rem; color: var(--ink-3); }
.card-foot form { margin-left: auto; flex: none; }
.add-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.add-btn:hover { background: var(--green-d); }
.add-btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.add-btn .ico { width: 20px; height: 20px; }

/* list view */
.grid[data-view="list"] { grid-template-columns: 1fr; }
.grid[data-view="list"] .card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  grid-template-areas: "media title" "media body"; align-items: start;
}
.grid[data-view="list"] .card-media { grid-area: media; width: 132px; aspect-ratio: 1; align-self: stretch; }
.grid[data-view="list"] .card-title { grid-area: title; height: auto; padding: .75rem .9rem .2rem; }
.grid[data-view="list"] .card-body { grid-area: body; padding: 0 .9rem .75rem; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .42rem; border-radius: 4px;
  font-size: .66rem; font-weight: 750; letter-spacing: .02em; text-transform: uppercase;
}
.badge-off { background: var(--green); color: #fff; }
.badge-new { background: var(--lime-soft); color: var(--green-d); }
.badge-low { background: #fff4e5; color: var(--warn); }
.badge-out { background: #f2f4f8; color: var(--ink-3); }
.badge-verified { background: var(--lime-soft); color: var(--green-d); text-transform: none; }
.card-flags { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }

.wish-btn {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .94); display: grid; place-items: center;
  cursor: pointer; color: var(--ink-3); padding: 0;
}
.wish-btn:hover { color: var(--green); border-color: var(--green); }
.wish-btn .ico { width: 18px; height: 18px; }
.wish-btn[aria-pressed="true"] { color: var(--green); border-color: var(--green); background: var(--lime-soft); }
.wish-btn[aria-pressed="true"] .ico { fill: currentColor; }

.rating { display: inline-flex; align-items: center; gap: .12rem; color: #e8a33d; }
.rating .ico { width: 13px; height: 13px; }
.rating .count { color: var(--ink-3); font-size: .7rem; margin-left: .2rem; }

/* ---------- listing page ---------- */

.listing { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.listing-head h1 { font-size: 1.25rem; margin: 0; }
.listing-count { color: var(--ink-3); font-size: .85rem; }
.listing-tools { display: flex; gap: .4rem; margin-left: auto; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--pale);
  border: 1px solid var(--line); border-radius: var(--r); padding: .45rem .55rem; margin-bottom: .7rem;
}
.viewswitch { display: none; gap: .2rem; }
.viewswitch button {
  width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--r-sm); background: none;
  color: var(--ink-3); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.viewswitch button[aria-pressed="true"] { background: #fff; border-color: var(--line); color: var(--navy); }
.viewswitch .ico { width: 19px; height: 19px; }
.toolbar .select { min-height: 36px; }
.toolbar .pageof { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-2); }
.toolbar .pageof .now {
  min-width: 40px; height: 34px; display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 700;
}
.toolbar .pageof a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--navy); }
.cat-intro { color: var(--ink-2); font-size: .92rem; max-width: 78ch; margin-bottom: 1rem; }
.cat-intro p { margin-bottom: .6rem; }
.filters-head {
  font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: .9rem 0 .5rem;
  border-bottom: 3px solid var(--lime); margin: 0 1rem;
}
.filter-apply { display: flex; gap: .5rem; padding: .85rem 1rem; }
.filter-apply .btn { flex: 1; }
.select {
  min-height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font: inherit; font-size: .85rem; padding: 0 .6rem; color: var(--ink);
}

.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filter-group { border-bottom: 1px solid var(--line-2); padding: .85rem 1rem; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: .5rem; }
.filter-group label { display: flex; align-items: center; gap: .5rem; padding: .28rem 0; font-size: .87rem; cursor: pointer; }
.filter-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.filter-group .n { margin-left: auto; color: var(--ink-3); font-size: .76rem; }
.filter-links a { display: block; padding: .3rem 0; font-size: .87rem; color: var(--ink-2); }
.filter-links a[aria-current="true"] { color: var(--green); font-weight: 700; }
.price-row { display: flex; align-items: center; gap: .4rem; }
.price-row input { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2);
}
.chip a { color: var(--ink-3); font-weight: 700; line-height: 1; }
.chip-clear { color: var(--green); font-weight: 650; }

.filter-bar { display: flex; gap: .4rem; margin-bottom: .6rem; }
.filter-bar .btn { flex: 1; }

.listing-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.25rem 0 .5rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.listing-foot .showing { font-size: .85rem; color: var(--ink-2); }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-left: auto; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 .5rem; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: .87rem; font-weight: 600; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pagination .gap { border: 0; background: none; min-width: 20px; }
.pagination [aria-current="page"] { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .step { border-radius: 20px; padding: 0 .9rem; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty .ico { width: 46px; height: 46px; color: var(--line); margin-bottom: .5rem; }

/* ---------- product detail ---------- */

.pdp { display: grid; gap: 1rem; }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--pale); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .4rem; padding: .5rem; overflow-x: auto; }
.gallery-thumbs button {
  flex: none; width: 60px; height: 60px; border-radius: var(--r-sm); border: 2px solid var(--line);
  overflow: hidden; padding: 0; background: var(--pale); cursor: pointer;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; }
.buybox h1 { font-size: 1.15rem; margin-bottom: .4rem; }
.price-block { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin: .5rem 0; }
.price-now { font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.price-was { color: var(--ink-3); font-size: .95rem; }
.price-unit { color: var(--ink-3); font-size: .82rem; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .87rem; margin: .6rem 0; }
.kv .ico { width: 14px; height: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.qty button {
  width: 44px; border: 0; background: var(--pale); font-size: 1.15rem; font-weight: 700; color: var(--navy); cursor: pointer;
}
.qty button:hover { background: var(--line-2); }
.qty input {
  width: 58px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 1rem;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink);
}
.qty input:focus { outline: none; }

.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.buy-actions .btn-block { grid-column: span 2; }

.seller-card { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--line); border-radius: var(--r); margin-top: .9rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: .95rem; flex: none;
}
.avatar-lg { width: 60px; height: 60px; font-size: 1.3rem; }

.trust { display: grid; gap: .55rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.trust li { display: flex; gap: .55rem; font-size: .82rem; color: var(--ink-2); }
.trust .ico { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.trust b { color: var(--ink); font-weight: 650; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink-3); padding: .7rem .8rem;
  cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--green); }
.tab-panel { padding: 1rem 0; }
.tab-panel[hidden] { display: none; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table th, .spec-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { color: var(--ink-3); font-weight: 600; width: 42%; }

.review { border-bottom: 1px solid var(--line-2); padding: .8rem 0; display: flex; gap: .7rem; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.rating-summary { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; }
.rating-big { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1; }

.sticky-buy {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 58px; background: #fff;
  border-top: 1px solid var(--line); padding: .5rem 12px; display: none; gap: .5rem; align-items: center;
  box-shadow: 0 -4px 16px rgba(18, 32, 74, .08);
}
.sticky-buy[data-show="true"] { display: flex; }
.sticky-buy .sb-price { font-weight: 800; color: var(--navy); }
.sticky-buy .btn { margin-left: auto; }

/* ---------- forms ---------- */

.field { margin-bottom: .85rem; }
.field > label, .label {
  display: block; font-size: .82rem; font-weight: 650; color: var(--ink-2); margin-bottom: .3rem;
}
.field .hint { font-size: .76rem; color: var(--ink-3); margin-top: .25rem; }
.input, .textarea, select.input {
  width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.input:focus, .textarea:focus { border-color: var(--navy); outline: 2px solid rgba(27, 42, 94, .12); outline-offset: 0; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field-row { display: grid; gap: .85rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: grid; place-items: center; padding: 0 .7rem; background: var(--pale); border: 1px solid var(--line);
  border-right: 0; border-radius: var(--r) 0 0 var(--r); color: var(--ink-3); font-size: .87rem; font-weight: 650;
}
.input-prefix .input { border-radius: 0 var(--r) var(--r) 0; }

.alert { padding: .7rem .9rem; border-radius: var(--r); font-size: .88rem; margin-bottom: .9rem; border: 1px solid; }
.alert-error { background: var(--danger-bg); border-color: #f2c4c0; color: var(--danger); }
.alert-ok { background: var(--ok-bg); border-color: #cfe6b0; color: var(--green-d); }
.alert-info { background: #eef3ff; border-color: #cfdcff; color: var(--navy); }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; list-style: disc; }

.auth-shell { max-width: 460px; margin: 1.5rem auto; }
.auth-shell .panel-pad { padding: 1.25rem; }
.auth-switch { text-align: center; font-size: .88rem; color: var(--ink-3); margin-top: .9rem; }
.demo-note { background: var(--pale); border: 1px dashed var(--line); border-radius: var(--r); padding: .6rem .8rem; font-size: .8rem; color: var(--ink-2); }
.demo-note code { background: #fff; padding: .05rem .3rem; border-radius: 4px; border: 1px solid var(--line); }

.radio-cards { display: grid; gap: .5rem; }
.radio-card {
  display: flex; gap: .6rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line);
  border-radius: var(--r); cursor: pointer; background: #fff;
}
.radio-card:has(input:checked) { border-color: var(--green); background: var(--ok-bg); }
.radio-card input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green); }
.radio-card b { display: block; font-size: .92rem; }
.radio-card small { color: var(--ink-3); font-size: .78rem; }

/* ---------- cart and checkout ---------- */

.cart-layout { display: grid; gap: 1rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--pale); }
.cart-line-title { font-size: .9rem; font-weight: 600; }
.cart-line-foot { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.cart-line-foot .qty { transform: scale(.9); transform-origin: left; }
.line-total { margin-left: auto; font-weight: 800; color: var(--navy); }

.totals { font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; padding: .35rem 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem; font-size: 1.1rem; font-weight: 800; color: var(--navy); }

.order-status {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; text-transform: capitalize;
}
.status-pending { background: #fff4e5; color: var(--warn); }
.status-confirmed { background: #eef3ff; color: var(--navy); }
.status-shipped { background: var(--lime-soft); color: var(--green-d); }
.status-delivered { background: var(--ok-bg); color: var(--green-d); }
.status-cancelled { background: #f2f4f8; color: var(--ink-3); }

/* ---------- dashboard ---------- */

.dash { display: grid; gap: 1rem; align-items: start; }
.dash-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dash-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; color: var(--ink-2);
  font-size: .9rem; font-weight: 600; border-bottom: 1px solid var(--line-2);
}
.dash-nav a:last-child { border-bottom: 0; }
.dash-nav .ico { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.dash-signout {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .75rem 1rem;
  border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit; font-size: .9rem;
  font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer;
}
.dash-signout:hover { background: var(--pale); }
.dash-nav a[aria-current="page"] { background: var(--lime-soft); color: var(--green-d); }
.dash-nav a[aria-current="page"] .ico { color: var(--green); }
.dash-nav a:hover { background: var(--pale); text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; }
.stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.stat .value { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat .sub { font-size: .74rem; color: var(--ink-3); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--pale); }
table.data tr:last-child td { border-bottom: 0; }
table.data img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; background: var(--pale); }
.row-main { display: flex; align-items: center; gap: .6rem; }

.uploader {
  border: 2px dashed var(--line); border-radius: var(--r); padding: 1.1rem; text-align: center;
  background: var(--pale); cursor: pointer; display: block;
}
.uploader:hover { border-color: var(--green); background: var(--lime-soft); }
.uploader .ico { width: 30px; height: 30px; color: var(--ink-3); }
.uploader b { display: block; font-size: .9rem; margin-top: .3rem; }
.uploader small { color: var(--ink-3); font-size: .76rem; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .6rem; }
.preview-grid figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.preview-grid img { width: 100%; height: 100%; object-fit: cover; }

.spec-rows { display: grid; gap: .4rem; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .4rem; }
.spec-row .btn { min-height: 44px; padding: 0 .7rem; }

/* messages */
.thread-list a { display: flex; gap: .7rem; padding: .8rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.thread-list a:hover { background: var(--pale); text-decoration: none; }
.thread-list .unread { font-weight: 700; }
.msg-log { display: flex; flex-direction: column; gap: .5rem; padding: .9rem; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 78%; padding: .55rem .75rem; border-radius: 14px; font-size: .89rem; }
.msg-in { background: var(--pale); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-out { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg time { display: block; font-size: .66rem; opacity: .7; margin-top: .2rem; }
.msg-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */

/* ---------- footer ----------
   One block, so nothing later in the file can quietly override the columns.
   Four columns on desktop, two on a tablet, one on a phone. */

.footer { background: var(--navy-d); color: #b9c3dc; padding: 1.75rem 0 1rem; font-size: .87rem; }
.footer a { color: #b9c3dc; }
.footer a:hover { color: #fff; }
.footer h4 {
  color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .7rem;
}
.footer li { padding: .2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem 1.5rem; }

.footer-brand .brand { margin-bottom: .6rem; }
.footer-slogan { color: var(--lime); font-weight: 700; font-size: .92rem; letter-spacing: .04em; margin-bottom: .3rem; }
.footer-brand p { color: #97a3c2; font-size: .84rem; max-width: 34ch; margin-bottom: .8rem; }

.social { display: flex; gap: .4rem; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dbe2f2;
}
.social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.social .ico { width: 16px; height: 16px; }

.footer-find address { font-style: normal; color: #b9c3dc; margin-bottom: .5rem; line-height: 1.5; }
.footer-find address b { color: #fff; display: block; }
.footer-find .hours { display: block; color: #97a3c2; font-size: .8rem; margin-bottom: .7rem; }
.footer-find .line { display: flex; align-items: center; gap: .45rem; padding: .12rem 0; }
.footer-find .line .ico { width: 15px; height: 15px; color: var(--lime); }
.btn-directions { background: var(--green); margin-top: .7rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1.5rem; padding-top: .9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .78rem; color: #8b97b8;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.pay-strip { display: flex; flex-wrap: wrap; gap: .35rem; }
.pay-pill {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm); padding: .22rem .5rem; font-size: .72rem; color: #dbe2f2;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer-bottom .pay-strip { margin-left: auto; }
}

/* ---------- toast ---------- */

.toast-host { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: 70px; display: grid; gap: .4rem; pointer-events: none; }
.toast {
  background: var(--navy); color: #fff; padding: .7rem .9rem; border-radius: var(--r); font-size: .88rem;
  box-shadow: var(--shadow-3); display: flex; align-items: center; gap: .5rem; pointer-events: auto;
  animation: toast-in .22s ease;
}
.toast .ico { width: 18px; height: 18px; color: var(--lime); flex: none; }
.toast a { color: var(--lime); font-weight: 700; margin-left: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .rail { --rail-cols: 3.3; --rail-gap: .65rem; }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 1.75rem; }
  .hero h1 { font-size: 1.9rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .preview-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 900px) {
  .wrap { padding: 0 20px; }
  .topbar { display: block; }
  .mainnav { display: block; }
  .mobile-search { display: none; }
  .masthead [data-desktop-search] { display: block; }
  .head-actions .icon-btn[data-desk-only] { display: inline-flex; }
  .masthead #menuBtn { display: none !important; }
  .filters-head .close { display: none; }
  .toolbar [data-open-filters] { display: none !important; }
  .bottomnav { display: none; }
  body { padding-bottom: 0; }
  .sticky-buy { display: none !important; }
  .masthead .wrap { grid-template-columns: auto minmax(280px, 1fr) auto; gap: 1.5rem; min-height: 68px; }
  .search select { display: block; }
  .icon-btn .lbl { display: block; }
  .icon-btn { min-width: 58px; }
  .brand img { width: 42px; height: 38px; }
  .brand-text b { font-size: 1.15rem; }
  .brand-text span { font-size: .58rem; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { --rail-cols: 4; }
  .listing { grid-template-columns: 254px minmax(0, 1fr); }
  .viewswitch { display: flex; }
  .filter-bar { display: none; }
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); }
  .pdp-full { grid-column: 1 / -1; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .dash { grid-template-columns: 232px minmax(0, 1fr); }
  h1 { font-size: 1.75rem; }
  .toast-host { left: auto; right: 20px; bottom: 20px; width: 340px; }
}

@media (min-width: 1200px) {
  .cat-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .cat-tile { font-size: .74rem; padding: .8rem .25rem; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail { --rail-cols: 5; }
  .hero h1 { font-size: 2.15rem; }
}

@media print {
  .masthead, .mainnav, .topbar, .bottomnav, .footer, .mobile-search, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}

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

/* ---------- home page ---------- */

.home-top { display: grid; gap: .75rem; margin-top: .75rem; }
.hero { margin-top: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-inner { display: grid; gap: 1rem; align-items: center; position: relative; z-index: 1; }
.hero-art { display: none; }
.hero-art img { width: 100%; max-width: 320px; margin-left: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .28)); border-radius: var(--r-lg); }

.quick-access { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.quick-access h2 {
  margin: 0; background: var(--green); color: #fff; font-size: .92rem; padding: .7rem .9rem; letter-spacing: .01em;
}
.quick-access a {
  display: flex; align-items: center; gap: .5rem; padding: .62rem .9rem; font-size: .87rem;
  color: var(--ink-2); border-bottom: 1px solid var(--line-2); font-weight: 600;
}
.quick-access a:last-child { border-bottom: 0; }
.quick-access a:hover { background: var(--lime-soft); color: var(--green-d); text-decoration: none; }
.quick-access .ico { width: 18px; height: 18px; color: var(--green); }
.quick-access .n { margin-left: auto; color: var(--ink-3); font-size: .76rem; font-weight: 500; }

.sec-title {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 .8rem; padding-bottom: .45rem; position: relative;
}
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 84px; height: 3px; background: var(--lime);
}
.sec-title a { float: right; font-size: .8rem; font-weight: 650; color: var(--green); padding-top: .25rem; }

.sec-split { display: grid; gap: .5rem; }
.feature {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; padding: 1rem;
  background: var(--pale);
  border: 1px solid var(--line); border-radius: var(--r); min-height: 176px; position: relative; overflow: hidden;
}
.feature-icon { position: absolute; right: -10px; top: -8px; opacity: .12; color: var(--navy); }
.feature-icon .ico { width: 150px; height: 150px; stroke-width: 1.1; }
.feature .eyebrow { margin-bottom: 0; }
.feature b { font-size: 1.05rem; color: var(--navy); }
.feature p { font-size: .8rem; color: var(--ink-3); margin: .2rem 0 .6rem; max-width: 24ch; }

.trustbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.trustbar li {
  display: flex; gap: .6rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: .7rem;
}
.trustbar .ico { width: 22px; height: 22px; color: var(--green); flex: none; }
.trustbar b { display: block; font-size: .82rem; }
.trustbar small { color: var(--ink-3); font-size: .74rem; line-height: 1.35; display: block; }

.shop-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.shop-chip {
  display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: .65rem; color: var(--ink);
}
.shop-chip:hover { border-color: var(--green); text-decoration: none; }
.shop-chip b { display: block; font-size: .85rem; }
.shop-chip small { color: var(--ink-3); font-size: .72rem; }

.sell-cta {
  background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: .8rem;
}
.sell-cta h2 { color: #fff; font-size: 1.2rem; }
.sell-cta p { color: #ccd6ee; font-size: .9rem; max-width: 52ch; }
.sell-steps { display: grid; gap: .6rem; margin: .3rem 0 .2rem; }
.sell-steps li { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #dbe2f2; }
.sell-steps .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--navy-d);
  font-weight: 800; font-size: .78rem; display: grid; place-items: center; flex: none;
}

@media (min-width: 640px) {
  .trustbar { grid-template-columns: repeat(4, 1fr); }
  .shop-strip { grid-template-columns: repeat(5, 1fr); }
  .sec-split { grid-template-columns: 240px minmax(0, 1fr); }
  .feature-icon .ico { width: 120px; height: 120px; }
  .sell-cta { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 900px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 268px; }
  .quick-access { display: block; }
}

/* ---------- newsletter and footer contact ---------- */

.newsletter { background: var(--lime); color: var(--navy-d); margin-top: 2rem; padding: 1.1rem 0; }
.newsletter .wrap { display: grid; gap: .7rem; align-items: center; }
.newsletter h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.newsletter h2 .ico { width: 22px; height: 22px; }
.newsletter p { margin: 0; font-size: .87rem; }
.newsletter form { display: flex; gap: .4rem; }
.newsletter input {
  flex: 1; min-width: 0; min-height: 46px; border: 0; border-radius: var(--r); padding: 0 .8rem;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.newsletter .btn { background: var(--navy); }
.newsletter .btn:hover { background: var(--navy-d); }
.footer-contact {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 1rem 0 .5rem;
}
.footer-contact .ico { width: 24px; height: 24px; color: var(--lime); flex: none; }
.footer-contact b { display: block; color: #fff; font-size: .95rem; margin-bottom: .15rem; }
.footer-contact a { display: block; font-size: 1.02rem; font-weight: 650; padding: .12rem 0; }
.social { display: flex; gap: .5rem; margin-top: .9rem; justify-content: center; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dbe2f2;
}
.social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.social .ico { width: 17px; height: 17px; }
.to-top {
  position: fixed; right: 12px; bottom: 68px; z-index: 75; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; display: none; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-2);
}
.to-top[data-show="true"] { display: grid; }
.to-top .ico { width: 20px; height: 20px; transform: rotate(-90deg); }

@media (min-width: 640px) {
  .newsletter .wrap { grid-template-columns: auto 1fr minmax(300px, 420px); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .to-top { right: 20px; bottom: 20px; }
}

/* ---------- mobile filter sheet ---------- */

@media (max-width: 899px) {
  .filters {
    position: fixed; z-index: 110; inset: 0; border-radius: 0; overflow-y: auto;
    transform: translateY(100%); transition: transform .22s ease; padding-bottom: 5rem;
  }
  .filters[data-open="true"] { transform: none; }
  .filters-head { position: sticky; top: 0; background: #fff; z-index: 2; display: flex; align-items: center; }
  .filters-head .close { margin-left: auto; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: .2rem; }
  .filter-apply {
    position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: .75rem 1rem;
  }
}

/* ---------- content pages ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6rem; font-size: 1.1rem; }
.prose h3 { margin-top: 1.1rem; font-size: .95rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: .8rem; }
.prose li { padding: .15rem 0; }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer; padding: .85rem 0; font-weight: 650; color: var(--ink); list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--green); font-size: 1.2rem; font-weight: 700; }
.faq[open] summary::after { content: "\2013"; }
.faq p { padding-bottom: .85rem; margin: 0; color: var(--ink-2); font-size: .92rem; }
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 340px; align-items: start; } }

/* ---------- carousels ---------- */

.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); padding: 0;
}
.carousel-nav:hover { background: var(--green); border-color: var(--green); color: #fff; }
.carousel-nav[disabled] { opacity: .35; cursor: default; }
.carousel-nav[disabled]:hover { background: #fff; color: var(--navy); border-color: var(--line); }
.carousel-nav .ico { width: 20px; height: 20px; }
.carousel-nav.prev { left: -8px; transform: translateY(-50%) rotate(180deg); }
.carousel-nav.next { right: -8px; }
.carousel-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .6rem; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0;
  transition: width .2s, background .2s;
}
.carousel-dots button[aria-current="true"] { background: var(--green); width: 24px; border-radius: 5px; }

/* hero carousel */
.hero-carousel { height: 100%; }
.hero-carousel .carousel-track { grid-auto-columns: 100%; border-radius: var(--r-lg); height: 100%; }
.hero-slide {
  background: var(--navy);
  color: #fff; padding: 1.25rem 1.25rem 2.2rem; min-height: 268px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.hero-slide::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(141, 198, 63, .16);
}
.hero-slide:nth-child(even) { background: var(--green-d); }
.hero-slide-text { position: relative; z-index: 1; }
.hero-slide h2 {
  font-size: 1.6rem; line-height: 1.05; color: #fff; text-transform: uppercase; letter-spacing: -.01em;
  font-weight: 800; margin-bottom: .5rem;
}
.hero-slide p { color: #d3dcf0; font-size: .95rem; max-width: 46ch; margin-bottom: 1rem; }
.hero-slide .hero-art { display: none; }
.hero-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: .7rem; margin: 0; z-index: 3; }
.hero-carousel .carousel-nav {
  top: auto; bottom: .4rem; transform: none; width: 36px; height: 36px;
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none;
}
.hero-carousel .carousel-nav:hover { background: var(--lime); border-color: var(--lime); color: var(--navy-d); }
.hero-carousel .carousel-nav.prev { left: auto; right: 3.6rem; transform: rotate(180deg); }
.hero-carousel .carousel-nav.next { right: .9rem; }
.hero-carousel .carousel-dots button { background: rgba(255, 255, 255, .45); }
.hero-carousel .carousel-dots button[aria-current="true"] { background: var(--lime); }

/* the ticker of section links under the hero */
.ticker {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; position: relative;
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 46s linear infinite; }
.ticker a {
  display: flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; font-size: .8rem;
  font-weight: 650; color: var(--green-d); white-space: nowrap; border-right: 1px solid var(--line-2);
}
.ticker a:hover { color: var(--navy); text-decoration: none; }
.ticker a .ico { width: 15px; height: 15px; color: var(--lime); }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}

@media (min-width: 640px) {
  .hero-slide { padding: 1.9rem 2rem 2.4rem; min-height: 260px; }
  .hero-slide h2 { font-size: 2.1rem; }
  .hero-slide .hero-art { display: block; }
  .hero-slide .hero-art img { width: 100%; max-width: 260px; margin-left: auto; border-radius: var(--r-lg); }
}
@media (min-width: 900px) {
  .carousel-nav { display: grid; }
  .carousel:not(.hero-carousel) { padding: 0 6px; }
  .hero-slide h2 { font-size: 2.4rem; }
}

/* ---------- maps ---------- */

.map-frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--pale); aspect-ratio: 16 / 9;
}
/* Shown underneath the map, so a blocked or offline embed still reads as an address. */
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .3rem; padding: .9rem; text-align: center; background: var(--pale);
  color: var(--ink-2); font-size: .8rem; line-height: 1.35;
}
.map-fallback .ico { width: 26px; height: 26px; color: var(--green); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shop-head { display: flex; gap: .9rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-head .shop-map { width: 100%; aspect-ratio: 16 / 7; max-height: 170px; }
@media (min-width: 900px) {
  .shop-head .shop-map { width: 260px; aspect-ratio: 4 / 3; flex: none; }
}

/* ---------- stock status ---------- */

.badge-in { background: var(--ok-bg); color: var(--green-d); }
.stock-pill {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
}
.stock-pill .ico { width: 14px; height: 14px; }
.stock-in { background: var(--ok-bg); color: var(--green-d); }
.stock-low { background: #fff4e5; color: var(--warn); }
.stock-out { background: var(--danger-bg); color: var(--danger); }

.qty-sm button { width: 36px; font-size: 1rem; }
.qty-sm input { width: 62px; font-size: .92rem; }
.qty-sm .ico { width: 15px; height: 15px; }
.stock-table td { vertical-align: middle; }
.stock-table { min-width: 720px; }

.save-bar {
  position: sticky; bottom: 58px; z-index: 30; display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .9rem;
  margin-top: .8rem; box-shadow: 0 -4px 16px rgba(18, 32, 74, .08); font-size: .85rem; color: var(--ink-3);
}
.save-bar .btn { margin-left: auto; }

/* ---------- WhatsApp ---------- */

.btn-whatsapp { background: #1f8f4e; }
.btn-whatsapp:hover { background: #18773f; }
.wa-fab {
  position: fixed; z-index: 75; right: 12px; bottom: 116px; display: inline-flex; align-items: center; gap: .45rem;
  background: #1f8f4e; color: #fff; border-radius: 100px; padding: .6rem .9rem .6rem .7rem;
  box-shadow: var(--shadow-3); font-size: .85rem; font-weight: 700; text-decoration: none;
}
.wa-fab:hover { background: #18773f; color: #fff; text-decoration: none; }
.wa-fab .ico { width: 22px; height: 22px; }
.wa-fab span { display: none; }

/* ---------- store visit block ---------- */

.visit {
  display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem;
}
.visit address { font-style: normal; color: var(--ink-2); font-size: .92rem; margin-bottom: .5rem; }
.visit address b { display: block; color: var(--ink); font-size: 1rem; }
.visit .hours { display: flex; align-items: center; gap: .4rem; font-size: .86rem; color: var(--ink-3); }
.visit .hours .ico { width: 16px; height: 16px; color: var(--green); }
.visit p { font-size: .9rem; color: var(--ink-2); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.visit .map-frame { aspect-ratio: 16 / 10; max-height: 210px; }

/* ---------- guides ---------- */

.post-grid { display: grid; gap: .7rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; color: var(--ink);
}
.post-card:hover { border-color: var(--green); text-decoration: none; box-shadow: var(--shadow-2); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--pale); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { display: block; padding: .8rem .9rem 1rem; }
.post-body b { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: .3rem; color: var(--navy); }
.post-excerpt { display: block; font-size: .85rem; color: var(--ink-2); }
.post-meta { font-size: .78rem; color: var(--ink-3); margin-top: .5rem; display: flex; gap: .5rem; flex-wrap: wrap; }

.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; }
.article h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.article .lede { font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem; }
.article-body { max-width: 68ch; }
.article-body p { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 1rem; }
.article-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; background: var(--pale); }
.article-cover img { width: 100%; display: block; }
.byline { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 1rem; }

/* ---------- image chooser ---------- */

.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.image-tile {
  position: relative; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--pale);
}
.image-tile[data-main="true"] { border-color: var(--green); }
.image-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.image-tile .tile-bar {
  display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem; background: #fff;
  border-top: 1px solid var(--line-2); font-size: .74rem;
}
.image-tile .main-flag { color: var(--green-d); font-weight: 700; display: flex; align-items: center; gap: .25rem; }
.image-tile .main-flag .ico { width: 14px; height: 14px; }
.image-tile .tile-bar button { min-height: 30px; padding: 0 .5rem; font-size: .74rem; }
.image-tile label { display: flex; align-items: center; gap: .3rem; margin-left: auto; color: var(--danger); cursor: pointer; }

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .image-grid { grid-template-columns: repeat(4, 1fr); }
  .wa-fab span { display: inline; }
}
@media (min-width: 900px) {
  .visit { grid-template-columns: 1fr 320px; align-items: center; padding: 1.4rem; }
  .wa-fab { right: 20px; bottom: 74px; }
  .save-bar { bottom: 0; }
  .article { padding: 1.75rem; }
  .article h1 { font-size: 1.9rem; }
}

.topbar .slogan { color: var(--lime); font-weight: 700; letter-spacing: .04em; }

/* ---------- a shop with nothing listed yet ---------- */

.empty-shop { text-align: center; }
.empty-shop h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.empty-shop p { color: var(--ink-2); max-width: 60ch; margin: 0 auto .9rem; }
.empty-shop-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

/* ---------- missing photographs ---------- */

.no-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  width: 100%; height: 100%; min-height: 44px; background: var(--pale); color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: inherit; text-align: center; padding: .4rem;
}
.no-photo .ico { width: 26px; height: 26px; opacity: .55; }
.no-photo-code { font-size: .64rem; letter-spacing: .06em; font-weight: 650; }
.row-main .no-photo { width: 44px; height: 44px; border-radius: var(--r-sm); }
.row-main .no-photo .ico { width: 18px; height: 18px; }
.row-main .no-photo .no-photo-code { display: none; }
.gallery-main .no-photo { border: 0; border-radius: 0; }
.gallery-main .no-photo .ico { width: 54px; height: 54px; }
.gallery-main .no-photo-code { font-size: .8rem; }

/* ---------- stock movements ---------- */

.move { font-weight: 800; font-variant-numeric: tabular-nums; }
.move-in { color: var(--green-d); }
.move-out { color: var(--danger); }
.stock-head { display: flex; gap: .9rem; align-items: flex-start; flex-wrap: wrap; }
.stock-head-img { width: 84px; height: 84px; flex: none; border-radius: var(--r); overflow: hidden; background: var(--pale); }
.stock-head-img img { width: 100%; height: 100%; object-fit: cover; }
.move-form { display: grid; gap: .85rem; }
@media (min-width: 640px) { .move-form { grid-template-columns: repeat(3, 1fr); } }

/* ---------- reports ---------- */

.report-cols { display: grid; gap: 1rem; }
@media (min-width: 900px) { .report-cols { grid-template-columns: 1fr 1fr; } .report-cols > * { min-width: 0; } }

.bars { display: grid; gap: .3rem; }
.bar-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: .5rem; align-items: center; font-size: .8rem; }
.bar-label { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar-track { background: var(--pale); border-radius: 4px; height: 16px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.bar-value { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-count { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
