/* Bit Space — Shop (ecommerce catalogue, cart and checkout).
   Loaded after assets/css/ui.css, so it follows the same flat, enterprise palette. */

:root {
  --shop-ink: #0f172a;
  --shop-line: #dbe3ed;
  --shop-line-soft: #eef2f7;
  --shop-muted: #64748b;
  --shop-blue: #1d4ed8;
  --shop-blue-dark: #1e40af;
  --shop-tint: #eff6ff;
}

.shop-main {
  /* The shared site header (ui.css) is position:fixed — a 34px info bar plus
     a 96px nav on desktop — so the page needs a top offset matching it.
     Without this the hero starts at y=0 and the "Bit Space Shop" kicker and
     the search bar slide underneath the navbar. product.html also uses
     .shop-main and gets the same fix. */
  padding: 130px 0 90px;
}
/* Below 1024px the info bar is hidden, so the header is just the 96px nav. */
@media (max-width: 1023px) {
  .shop-main { padding-top: 96px; }
}
/* ui.css shrinks the nav to 86px at <=900px and 80px at <=640px. */
@media (max-width: 900px) {
  .shop-main { padding-top: 86px; }
}

.shop-wrap {
  /* Cap the content at 1220px and keep a small screen gutter. This used to
     read `padding: 0 max(5%, calc((100% - 1220px) / 2))` alongside
     max-width:1220 + margin:0 auto, which centres twice: the padding resolved
     against the full-width parent, so on a 1440px screen it added 105px of
     padding inside an already-centred 1220px box and squeezed the product
     grid down to 732px. */
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Visually hidden, still read by screen readers and search engines. */
.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;
}

/* ---------- Hero ---------- */
.shop-hero {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--shop-line);
  background: #fff;
}
.shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shop-blue);
  margin-bottom: 12px;
}
.shop-meta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--shop-muted);
}
.shop-meta-row strong { color: var(--shop-ink); }
.shop-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #fbfdff;
}
.shop-meta-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f7a54;
}

/* ---------- "Track your order" link on the shop page ---------- */
.shop-track-link {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--shop-muted);
}
.shop-track-link a {
  color: var(--shop-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.3);
  padding-bottom: 1px;
  white-space: nowrap;
}
.shop-track-link a:hover { border-bottom-color: var(--shop-blue); }
.shop-track-link a span { display: inline-block; transition: transform 0.15s; }
.shop-track-link a:hover span { transform: translateX(3px); }

/* ---------- Search ---------- */
.shop-home-heading {
  margin: 38px auto 0;
  text-align: center;
}
.shop-home-heading h2 {
  color: var(--shop-ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.shop-home-heading p {
  margin-top: 10px;
  color: var(--shop-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.shop-search-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px; margin-left: auto; margin-right: auto; justify-content: center; padding: 10px; background: #f1f5f9; border-radius: 14px;
}
.shop-search {
  position: relative;
  flex: 1 1 320px;
}
.shop-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--shop-muted);
}
.shop-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--shop-ink);
  background: #fff;
  border: 1px solid #64748b;
  border-radius: 12px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}
.shop-search input:focus {
  outline: none;
  border-color: var(--shop-blue);
}
.shop-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--shop-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
}
.shop-search button:hover { color: var(--shop-blue); }
.shop-search-row { position: relative; z-index: 70; }
/* The suggestion dropdown lives inside the hero, which the shared chrome
   styles lock to z-index:1 — without this boost the sections after the hero
   (product grid, filters) paint over the open dropdown. */
.shop-hero { z-index: 5; }

/* ---------- Live search suggestions ---------- */
.shop-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
  overscroll-behavior: contain;
}
.shop-search-suggest .ssg-head {
  padding: 12px 16px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.shop-search-suggest .ssg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  text-decoration: none;
  color: var(--shop-ink);
  cursor: pointer;
}
.shop-search-suggest .ssg-item:hover,
.shop-search-suggest .ssg-item.is-active { background: #f1f5f9; }
.shop-search-suggest .ssg-thumb {
  width: 44px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}
.shop-search-suggest .ssg-cat-icon {
  width: 44px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--indigo-soft, #eef2ff);
  color: var(--indigo, #4f46e5);
  font-size: 0.95rem;
}
.shop-search-suggest .ssg-body { flex: 1; min-width: 0; display: block; }
.shop-search-suggest .ssg-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--shop-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-search-suggest .ssg-cat {
  display: block;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--shop-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-search-suggest .ssg-price {
  flex: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--shop-blue);
  white-space: nowrap;
}
.shop-search-suggest .ssg-price.enq {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--shop-muted);
}
.shop-search-suggest .ssg-empty { padding: 14px 16px; font-size: 0.9rem; color: var(--shop-muted); }
.shop-search-suggest .ssg-foot {
  display: block;
  padding: 11px 16px;
  border-top: 1px solid #eef2f7;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--shop-blue);
  text-decoration: none;
}
.shop-search-suggest .ssg-foot:hover { background: #f8fafc; }
@media (max-width: 640px) {
  .shop-search-suggest { max-height: 300px; }
  .shop-search-suggest .ssg-thumb,
  .shop-search-suggest .ssg-cat-icon { width: 38px; height: 30px; }
}

/* ---------- Layout ---------- */
.shop-section { padding: 10px 0 0; }
.shop-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

/* ---------- Sidebar filters ---------- */
.shop-filters {
  position: sticky;
  top: 140px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 16px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-head h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--shop-ink);
}
.filter-reset {
  border: 0;
  background: none;
  padding: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--shop-blue);
  cursor: pointer;
}
.filter-reset:hover { text-decoration: underline; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--shop-line-soft); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h3 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--shop-muted);
  margin-bottom: 10px;
}
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.filter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  color: #334155;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.filter-list button:hover { background: var(--shop-tint); color: var(--shop-blue); }
.filter-list button.active {
  background: var(--shop-tint);
  color: var(--shop-blue);
  font-weight: 700;
}
.filter-list .count {
  font-size: 0.7rem;
  color: var(--shop-muted);
  font-variant-numeric: tabular-nums;
}
.filter-list button.active .count { color: var(--shop-blue); }

/* ---------- Toolbar ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--shop-line);
}
.shop-count { font-size: 0.85rem; color: var(--shop-muted); }
.shop-count strong { color: var(--shop-ink); }
.shop-toolbar-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shop-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--shop-muted);
}
.shop-field select {
  font: inherit;
  font-size: 0.82rem;
  color: var(--shop-ink);
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  appearance: none;
  cursor: pointer;
}
.shop-field select:focus { outline: none; border-color: var(--shop-blue); }

/* Active filter chips */
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; }
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--shop-line);
  background: var(--shop-tint);
  color: var(--shop-blue);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.shop-chip button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* ---------- Product grid ---------- */
.product-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: #b9c8e4; transform: translateY(-2px); }
.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.product-card-link:focus-visible {
  outline: 3px solid var(--shop-blue);
  outline-offset: -4px;
}
.product-thumb {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--shop-line-soft);
  background: #f4f7fd;
  color: #33415c;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}
.product-thumb.t-teal { background: #f0faf6; color: #0f6b4b; }
.product-thumb.t-amber { background: #fdf7ea; color: #8a5306; }
.product-thumb.t-rose { background: #fdf1f4; color: #9c1c40; }
.product-thumb.t-indigo { background: #f2f5ff; color: #24388a; }
.product-thumb .thumb-ph { display: block; }
.product-thumb .product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f4f7fd;
}
.product-thumb .product-img.is-broken { display: none; }

.product-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 14px 0;
  flex: 1;
}
.product-cat {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--shop-ink);
}
.product-desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--shop-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sku {
  font-size: 0.7rem;
  color: var(--shop-muted);
  font-variant-numeric: tabular-nums;
}
.product-sku span { color: #475569; font-weight: 600; }
.badge-avail {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid transparent;
}
.badge-in { background: #e9f7f0; color: #0f7a54; border-color: #c6e9d8; }
.badge-low { background: #fdf4e3; color: #a35a06; border-color: #f3e0bc; }
.badge-out { background: #fdecef; color: #a3183a; border-color: #f6d3db; }

.product-foot {
  margin-top: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--shop-line-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 9px;
}
.product-price {
  grid-column: 1 / -1;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--shop-ink);
  font-variant-numeric: tabular-nums;
}
.product-price small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--shop-muted); letter-spacing: 0.04em; }
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--shop-blue);
  background: var(--shop-blue);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-add:hover { background: var(--shop-blue-dark); border-color: var(--shop-blue-dark); }
.product-actions {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.product-actions .btn-add { justify-content: center; padding-right: 7px; padding-left: 7px; }
.product-foot > .btn-whatsapp { grid-column: 1 / -1; }
.btn-whatsapp {
  position: relative;
  z-index: 2;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: #128c5e;
  border-color: #128c5e;
}
.btn-whatsapp:hover { background: #0e7350; border-color: #0e7350; }
.btn-whatsapp svg { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; }
.btn-add.is-out {
  background: #fff;
  color: var(--shop-blue);
}
.btn-add.is-out:hover { background: var(--shop-tint); }
.price-enquiry { font-size: 0.84rem; font-weight: 700; color: var(--shop-blue); }
.btn-enquire { text-decoration: none; background: #fff; color: var(--shop-blue); }
.btn-enquire:hover { background: var(--shop-tint); border-color: var(--shop-blue); color: var(--shop-blue); }

.shop-empty {
  border: 1px dashed var(--shop-line);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
  color: var(--shop-muted);
  font-size: 0.9rem;
}
.shop-empty strong { display: block; margin-bottom: 6px; color: var(--shop-ink); font-size: 1rem; }

.shop-more { display: flex; justify-content: center; margin-top: 30px; }
.btn-more {
  border: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-more:hover { border-color: var(--shop-blue); color: var(--shop-blue); }

/* ---------- Ordering info ---------- */
.shop-info { padding: 70px 0 0; }
.shop-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shop-info-card {
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  padding: 22px 20px;
  background: #fff;
}
.shop-info-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--shop-ink);
  margin-bottom: 8px;
}
.shop-info-card p { font-size: 0.83rem; line-height: 1.7; color: var(--shop-muted); }
.shop-note {
  margin-top: 18px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--shop-muted);
  border-left: 3px solid var(--shop-line);
  padding-left: 14px;
}

/* ---------- Image credits ---------- */
.shop-credits {
  margin-top: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 16px;
}
.shop-credits summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--shop-ink);
}
.shop-credits summary:focus-visible { outline: 2px solid var(--shop-blue); outline-offset: 3px; }
.shop-credits-note {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--shop-muted);
}
.shop-credits-list {
  margin-top: 10px;
  padding-left: 18px;
  columns: 2;
  column-gap: 28px;
  list-style: disc;
}
.shop-credits-list li {
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--shop-muted);
  margin-bottom: 6px;
  break-inside: avoid;
}
.shop-credits-list a { color: var(--shop-blue); text-decoration: underline; }
.shop-credits-list a:focus-visible { outline: 2px solid var(--shop-blue); outline-offset: 2px; }
@media (max-width: 640px) { .shop-credits-list { columns: 1; } }

/* ---------- Cart button ---------- */
.cart-fab {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--shop-blue);
  border-radius: 8px;
  background: var(--shop-blue);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-fab:hover { background: var(--shop-blue-dark); border-color: var(--shop-blue-dark); }
.cart-fab.bump { animation: cart-bump 0.45s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.cart-fab svg { width: 19px; height: 19px; }
.cart-fab .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--shop-blue);
  font-size: 0.72rem;
  font-weight: 800;
}
@media (max-width: 640px) {
  .cart-fab { right: 16px; bottom: 82px; width: 52px; padding: 0; justify-content: center; font-size: 0; }
  .cart-fab .cart-count { position: absolute; top: -6px; right: -6px; font-size: 0.68rem; }
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 301;
  width: min(430px, 100%);
  background: #fff;
  border-left: 1px solid var(--shop-line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-drawer.open { transform: translateX(0); }
body.cart-open { overflow: hidden; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--shop-line);
}
.cart-head h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--shop-ink);
}
.cart-head .cart-head-sub { font-size: 0.75rem; color: var(--shop-muted); margin-top: 3px; }
.cart-close {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.cart-close:hover { border-color: var(--shop-blue); color: var(--shop-blue); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb info price"
    "thumb actions actions";
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--shop-line-soft);
}
.cart-item-thumb {
  grid-area: thumb;
  align-self: start;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--shop-line-soft);
  background: #f4f7fd;
  display: grid;
  place-items: center;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-thumb img.is-broken { display: none; }
.cart-item-thumb.t-teal { background: #f0faf6; }
.cart-item-thumb.t-amber { background: #fdf7ea; }
.cart-item-thumb.t-rose { background: #fdf1f4; }
.cart-item-thumb.t-indigo { background: #f2f5ff; }
.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 700; color: var(--shop-ink); line-height: 1.4; }
.cart-item-meta { font-size: 0.72rem; color: var(--shop-muted); margin-top: 3px; }
.cart-item-price { grid-area: price; font-size: 0.85rem; font-weight: 700; color: var(--shop-ink); text-align: right; font-variant-numeric: tabular-nums; }
.cart-item-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--shop-line); border-radius: 8px; overflow: hidden; }
.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #fff;
  color: #334155;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.qty button:hover { background: var(--shop-tint); color: var(--shop-blue); }
.qty span { min-width: 34px; text-align: center; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-remove {
  border: 0;
  background: none;
  padding: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a3183a;
  cursor: pointer;
}
.cart-remove:hover { text-decoration: underline; }
.cart-empty { padding: 56px 10px; text-align: center; color: var(--shop-muted); font-size: 0.88rem; }
.cart-empty svg { width: 34px; height: 34px; color: #b9c8e4; margin-bottom: 12px; }
.cart-foot { border-top: 1px solid var(--shop-line); padding: 18px 22px 22px; background: #fbfdff; }
.cart-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.83rem; color: var(--shop-muted); padding: 4px 0; }
.cart-row span:last-child { font-variant-numeric: tabular-nums; color: #334155; }
.cart-row.total { font-size: 1rem; font-weight: 800; color: var(--shop-ink); padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--shop-line); }
.cart-row.total span:last-child { color: var(--shop-ink); }
.btn-checkout {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--shop-blue);
  background: var(--shop-blue);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-checkout:hover { background: var(--shop-blue-dark); border-color: var(--shop-blue-dark); }
.btn-checkout[disabled] { background: #cbd5e1; border-color: #cbd5e1; cursor: not-allowed; }
.cart-foot-note { margin-top: 10px; font-size: 0.72rem; line-height: 1.6; color: var(--shop-muted); text-align: center; }

/* ---------- Checkout modal ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checkout-grid .modal-field.full { grid-column: 1 / -1; }
.pay-methods { display: grid; gap: 8px; margin-top: 4px; }
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pay-option:hover { border-color: #b9c8e4; }
.pay-option input { margin-top: 3px; accent-color: var(--shop-blue); }
.pay-option strong { display: block; font-size: 0.85rem; color: var(--shop-ink); }
.pay-option small { display: block; font-size: 0.73rem; color: var(--shop-muted); margin-top: 2px; line-height: 1.5; }
.pay-option:has(input:checked) { border-color: var(--shop-blue); background: var(--shop-tint); }
.checkout-summary {
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  padding: 14px 14px 12px;
  background: #fbfdff;
  margin-bottom: 16px;
  max-height: 250px;
  overflow-y: auto;
}
.checkout-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; padding: 3px 0; color: #334155; }
.checkout-line span:first-child { color: var(--shop-muted); }
.checkout-line-item { align-items: center; padding: 6px 0; }
.checkout-line-item .cli-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.checkout-line-item .cli-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--shop-line-soft);
  background: #f4f7fd;
}
.checkout-line-item .cli-thumb.is-broken { display: none; }
.checkout-line-item .cli-name { min-width: 0; }
.checkout-line.total { border-top: 1px solid var(--shop-line); margin-top: 8px; padding-top: 9px; font-weight: 800; color: var(--shop-ink); }
.checkout-line.total span:first-child { color: var(--shop-ink); }
.order-ref {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--shop-blue);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
/* Shown on the checkout confirmation so the customer can follow the order */
.modal-track-link {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid rgba(29, 78, 216, 0.35);
  background: #fff;
  color: var(--shop-blue);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.modal-track-link:hover { background: var(--shop-tint); border-color: var(--shop-blue); }
.modal-track-link span { display: inline-block; transition: transform 0.15s; }
.modal-track-link:hover span { transform: translateX(3px); }
.delivery-row { display: none; }
.delivery-row.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .filter-list { max-height: none; }
}
@media (max-width: 900px) {
  .shop-info-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-main { padding-top: 80px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .shop-toolbar { align-items: flex-start; }
}

/* Respect the HTML hidden attribute on elements that set their own display. */
.shop-more[hidden],
.cart-fab .cart-count[hidden],
.product-grid[hidden] { display: none !important; }

/* The radio-card labels live inside a .modal-field, so neutralise the base
   field-label styling that would otherwise add spacing and weight. */
.pay-methods label.pay-option { margin-bottom: 0; font-weight: inherit; }

/* Errors returned by the order API are shown inside the checkout modal. */
.checkout-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.5;
}


/* ============================================================
   Order tracking (track.html)
   A customer enters their reference plus the phone or email they
   used, and sees the status, the items and a short timeline.
   Shares the shop palette above so the two pages look like one.
   ============================================================ */

.tk-main {
  padding: 142px 0 90px;
  background: #f6f8fc;
}

.tk-wrap {
  /* One wrapper does both jobs: hold the page to the site's 1220px content
     column (the same one the nav pads itself to) and keep a gutter on small
     screens. The old rule padded by (100% - 900px) / 2 while also being
     max-width:900px + margin:auto, so on a wide screen it centred twice and
     squeezed the form down to 324px — narrower than a phone. */
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.tk-hero {
  padding: 30px 0 26px;
}
.tk-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--shop-ink);
  margin: 0 0 10px;
}
.tk-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--shop-muted);
  margin: 0;
  max-width: 62ch;
}

/* ---------- The lookup form ---------- */
.tk-lookup {
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.tk-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.tk-submit { grid-column: 1 / -1; justify-self: start; }
.tk-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-ink);
  margin-bottom: 7px;
}
.tk-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--shop-ink);
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tk-input:focus {
  border-color: var(--shop-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
.tk-input::placeholder { color: #94a3b8; }
.tk-btn {
  padding: 12px 22px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: var(--shop-blue);
  border: 1px solid var(--shop-blue);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.tk-btn:hover { background: var(--shop-blue-dark); border-color: var(--shop-blue-dark); }
.tk-btn[disabled] { background: #cbd5e1; border-color: #cbd5e1; cursor: wait; }
.tk-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--shop-muted);
}
.tk-error {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Result ---------- */
.tk-result {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  overflow: hidden;
}
.tk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--shop-line-soft);
}
.tk-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--shop-ink);
  letter-spacing: 0.01em;
}
.tk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tk-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.tk-pill-info   { background: var(--shop-tint); color: var(--shop-blue); border-color: #bfdbfe; }
.tk-pill-good   { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tk-pill-wait   { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tk-pill-bad    { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tk-when {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--shop-muted);
}

/* ---------- Steps ---------- */
.tk-steps {
  display: flex;
  gap: 0;
  padding: 24px 22px 6px;
}
.tk-step {
  position: relative;
  flex: 1;
  padding-top: 26px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--shop-muted);
}
.tk-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--shop-line);
  border-radius: 2px;
}
.tk-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px; height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--shop-line);
  box-sizing: border-box;
}
.tk-step:first-child::before { left: 50%; }
.tk-step:last-child::before { right: 50%; }
.tk-step.is-done { color: #047857; }
.tk-step.is-done::before { background: #34d399; }
.tk-step.is-done::after { border-color: #059669; background: #059669; }
.tk-step.is-current { color: var(--shop-blue); font-weight: 800; }
.tk-step.is-current::after { border-color: var(--shop-blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.16); }
.tk-steps.is-cancelled .tk-step { color: #b91c1c; opacity: 0.85; }
.tk-cancelled {
  margin: 0 22px 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
}

/* ---------- Body ---------- */
.tk-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  padding: 22px;
  border-top: 1px solid var(--shop-line-soft);
}
.tk-card {
  border: 1px solid var(--shop-line-soft);
  border-radius: 12px;
  padding: 16px;
}
.tk-card h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.tk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--shop-line-soft);
}
.tk-item:first-of-type { padding-top: 0; }
.tk-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.tk-thumb {
  flex: 0 0 auto;
  width: 54px; height: 40px;
  border-radius: 8px;
  background: var(--shop-tint);
  border: 1px solid var(--shop-line-soft);
  object-fit: cover;
  display: block;
}
.tk-thumb.is-broken { display: none; }
.tk-thumb-box {
  flex: 0 0 auto;
  width: 54px; height: 40px;
  border-radius: 8px;
  background: var(--shop-tint);
  border: 1px solid var(--shop-line-soft);
}
.tk-item-info { flex: 1 1 auto; min-width: 0; }
.tk-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--shop-ink);
  line-height: 1.35;
}
.tk-item-sub {
  font-size: 0.78rem;
  color: var(--shop-muted);
  margin-top: 2px;
}
.tk-item-amt {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--shop-ink);
  white-space: nowrap;
}
.tk-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--shop-muted);
}
.tk-row strong { color: var(--shop-ink); font-weight: 600; }
.tk-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--shop-line);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--shop-ink);
}
.tk-facts {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}
.tk-facts dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-muted);
  margin-top: 10px;
}
.tk-facts dt:first-child { margin-top: 0; }
.tk-facts dd { margin: 2px 0 0; color: var(--shop-ink); }
.tk-facts dd.is-empty { color: var(--shop-muted); font-style: italic; }

/* ---------- Timeline ---------- */
.tk-timeline-wrap {
  padding: 0 22px 22px;
}
.tk-timeline {
  margin: 0;
  padding: 16px;
  list-style: none;
  border: 1px solid var(--shop-line-soft);
  border-radius: 12px;
}
.tk-timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px solid var(--shop-line);
}
.tk-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tk-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--shop-blue);
}
.tk-timeline li:last-child::before { border-color: #059669; background: #059669; }
.tk-ev-label { font-size: 1.05rem; color: var(--shop-ink); font-weight: 600; }
.tk-ev-when { font-size: 0.79rem; color: var(--shop-muted); margin-top: 1px; }
.tk-h3-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

/* ---------- Actions ---------- */
.tk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 22px;
}
.tk-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-ink);
  transition: border-color 0.15s, background 0.15s;
}
.tk-link:hover { border-color: var(--shop-blue); background: var(--shop-tint); color: var(--shop-blue); }
.tk-link-wa { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.tk-link-wa:hover { background: #d1fae5; border-color: #34d399; color: #047857; }

@media (max-width: 860px) {
  .tk-form { grid-template-columns: 1fr; }
  .tk-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tk-steps { flex-direction: column; gap: 14px; padding-bottom: 20px; }
  .tk-step { text-align: left; padding-top: 0; padding-left: 24px; }
  .tk-step::before { top: 0; bottom: 0; left: 5px; right: auto; width: 3px; height: auto; }
  .tk-step::after { top: 1px; left: 0; margin-left: -0.5px; }
  .tk-step:first-child::before,
  .tk-step:last-child::before { left: 5px; right: auto; }
  .tk-when { margin-left: 0; width: 100%; }
}

/* ============================================================
   Hero carousel (landing page)
   ============================================================ */
.hero-carousel {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 160px 0 30px;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  width: 100%;
  min-height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  justify-content: center;
  text-align: center;
  min-height: 440px;
}
/* keep the existing hero-content styling working inside slides */
.hero-slide .hero-content { position: relative; z-index: 3; width: 100%; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-carousel .hero-slide h1 { width: 100%; max-width: 900px; margin-right: auto; margin-left: auto; text-align: center; font-size: clamp(2rem, 4vw, 3rem); }
.hero-carousel .hero-slide .hero-sub { width: 100%; max-width: 800px; margin-right: auto; margin-left: auto; text-align: center; font-size: 1rem; }
.hero-carousel .hero-slide .hero-badge { font-size: 0.75rem; margin-bottom: 1.25rem; }
.hero-carousel .hero-slide .hero-sub { margin-top: 1rem; }
.hero-carousel .hero-slide .hero-actions { justify-content: center; margin-top: 1.5rem; }
.hero-carousel .hero-slide .btn-primary { background: #fbbf24; border: none; color: #1a1714; font-weight: 700; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.hero-carousel .hero-slide .btn-primary:hover { background: #fcd34d; }
.hero-carousel .hero-slide .btn-secondary { background: #172554; border: none; color: #fff; font-weight: 700; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.hero-carousel .hero-slide .btn-secondary:hover { background: #1e3a8a; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.15s;
}
.hero-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 2%; }
.hero-next { right: 2%; }

.hero-dots-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.15s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }
.hero-dot:hover { background: rgba(255,255,255,0.6); }

@media (max-width: 640px) {
  .hero-carousel .hero-slide h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero-carousel .hero-slide .hero-sub { font-size: 0.95rem; }
  .hero-carousel .hero-slide .hero-actions { justify-content: center; }
  .hero-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
}

/* ============================================================
   Category showcase (landing page)
   ============================================================ */
.cat-showcase-head { margin-bottom: 24px; }
.cat-showcase-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--shop-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cat-showcase-lede { color: var(--shop-muted); font-size: 0.95rem; margin: 0; }
.cat-showcase-lede a { color: var(--shop-blue); font-weight: 600; text-decoration: none; }
.cat-showcase-lede a:hover { text-decoration: underline; }

.cat-showcase-grid {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cat-showcase-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.cat-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: var(--shop-blue);
}
.cat-showcase-card .csc-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f1f5f9;
}
.cat-showcase-card .csc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cat-showcase-card:hover .csc-img { transform: scale(1.06); }
.cat-showcase-card .csc-img-wrap.is-broken .csc-img { display: none; }
.cat-showcase-card .csc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.2) 100%);
  color: #fff;
}
.cat-showcase-card .csc-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.cat-showcase-card .csc-count {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.cat-showcase-card .csc-img-wrap.is-broken .csc-overlay {
  background: #f1f5f9;
  color: var(--shop-ink);
}
.cat-showcase-card .csc-img-wrap.is-broken .csc-name { color: var(--shop-ink); text-shadow: none; }
.cat-showcase-card .csc-img-wrap.is-broken .csc-count { color: var(--shop-muted); text-shadow: none; }
.cat-showcase-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--shop-muted);
  font-size: 0.95rem;
}
.cat-showcase-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--shop-muted);
}

@media (max-width: 640px) {
  .cat-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-showcase-card .csc-body { padding: 8px 10px 10px; }
  .cat-showcase-card .csc-name { font-size: 0.85rem; }
}
.cat-showcase-card .csc-overlay { align-items: center !important; text-align: center !important; }

.shop-search input::placeholder { color: #64748b; opacity: 1; }
