﻿:root {
  --bg: #eaeded;
  --surface: #ffffff;
  --text: #0f1111;
  --muted: #565959;
  --border: #d5d9d9;
  --primary: #1a365d;
  --primary-ink: #ffffff;
  --accent: #d69e2e;
  --accent-ink: #111;
  --header-bg: #131921;
  --nav-bg: #232f3e;
  --link: #007185;
  --danger: #b12704;
  --ok: #067d62;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 17, 17, 0.12);
  --shadow-md: 0 4px 12px rgba(15, 17, 17, 0.1);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
  --max: 1600px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.45;
  font-size: 14px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link, var(--primary)); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--link, var(--primary)) 75%, #000); text-decoration: underline; }
.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: clamp(12px, 1.6vw, 24px);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* â€”â€” Header (marketplace density) â€”â€” */
.site-header {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.header-top {
  background: var(--header-bg, #131921);
  color: #fff;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  gap: .75rem 1.1rem;
  align-items: center;
  padding: .55rem 0;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none !important; flex-shrink: 0;
  color: #fff !important;
  padding: .2rem .35rem;
  border: 1px solid transparent;
  border-radius: 2px;
}
.brand:hover { border-color: rgba(255,255,255,.45); text-decoration: none !important; color: #fff !important; }
.brand-mark {
  height: 36px !important; width: 36px !important;
  flex-shrink: 0; border-radius: 8px;
  filter: none !important;
  background: transparent;
}
.brand-wordmark {
  display: flex; flex-direction: column; line-height: 1.05;
  font-weight: 800; letter-spacing: .02em;
}
.brand-lead {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); opacity: .95;
}
.brand-tail {
  font-size: 1.2rem; font-weight: 800; color: #fff;
  letter-spacing: .04em; text-transform: uppercase;
}
.header-search {
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px transparent;
}
.header-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.header-search .search-cat {
  border: 0; outline: 0;
  background: #f3f3f3;
  color: #555;
  font: inherit; font-size: .78rem;
  padding: 0 .55rem;
  border-right: 1px solid #cdcdcd;
  max-width: 130px;
  cursor: pointer;
}
.header-search input {
  flex: 1; border: 0; outline: 0;
  padding: 0 .85rem; font: inherit; font-size: 15px;
  min-width: 0; background: #fff; color: var(--text);
}
.header-search button {
  border: 0; width: 46px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.header-search button:hover { filter: brightness(0.95); }

.header-actions {
  display: flex; gap: .1rem .75rem; align-items: center;
}
.action-link {
  color: #fff !important; text-decoration: none !important;
  display: flex; flex-direction: column; line-height: 1.15;
  padding: .3rem .35rem; border: 1px solid transparent; border-radius: 2px;
}
.action-link:hover { border-color: rgba(255,255,255,.55); }
.action-label { font-size: .7rem; opacity: .92; white-space: nowrap; }
.action-strong { font-size: .88rem; font-weight: 700; white-space: nowrap; }

.cart-link {
  display: flex; align-items: flex-end; gap: .3rem;
  color: #fff !important; text-decoration: none !important;
  padding: .2rem .35rem; border: 1px solid transparent; border-radius: 2px;
  font-weight: 700;
}
.cart-link:hover { border-color: rgba(255,255,255,.55); }
.cart-icon { position: relative; display: inline-block; }
.cart-badge {
  position: absolute; top: -6px; left: 14px;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.cart-text { font-size: .92rem; padding-bottom: 2px; }

.cat-bar {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,.06);
}
.cat-bar-inner {
  display: flex; flex-wrap: wrap; gap: .1rem 1rem;
  align-items: center; padding: .4rem 0;
}
.cat-bar a {
  color: #fff !important; text-decoration: none !important;
  font-size: .86rem; font-weight: 500; opacity: .96;
  padding: .2rem 0;
}
.cat-bar a:hover { text-decoration: underline !important; opacity: 1; }
.cat-all {
  font-weight: 700 !important;
  display: inline-flex; align-items: center; gap: .35rem;
}
.cat-all svg { opacity: .9; }

/* â€”â€” Buttons â€”â€” */
.btn {
  border: 0; border-radius: 20px; padding: .55rem 1.15rem;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--primary); color: var(--primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); color: var(--primary-ink); }
.btn-accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000);
}
.btn-accent:hover { filter: brightness(0.97); color: var(--accent-ink); }
.btn-ghost {
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: #f7fafa; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

main { padding-bottom: 2.5rem; min-height: 50vh; }
.flash {
  width: min(var(--max), 100%);
  margin: .85rem auto 0;
  padding: .7rem clamp(12px, 1.6vw, 24px);
  box-sizing: border-box;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff;
}
.flash-success { border-color: #bbe5d5; background: #eff8f4; color: var(--ok); }
.flash-error { border-color: #f5c2c0; background: #fff5f5; color: var(--danger); }
.flash-info { border-color: #c9d7ee; background: #f3f7fc; color: var(--primary); }

/* â€”â€” Home: featured deals strip â€”â€” */
.home-banner {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1rem auto .75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 72%, var(--accent)) 100%);
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.home-banner h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  margin: 0 0 .25rem; font-weight: 700; line-height: 1.2;
}
.home-banner p { margin: 0; opacity: .95; max-width: 34rem; font-size: .98rem; }
.home-banner .btn { background: var(--accent); color: var(--accent-ink); }
.home-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

.section-head {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1.15rem auto .55rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.section-head h2, .section-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.section-title {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1.15rem auto .55rem;
}
.section-head a { font-size: .9rem; font-weight: 600; }

.deals-row {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: .65rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scroll-snap-type: x mandatory;
}
.deals-row .product-card { scroll-snap-align: start; min-width: 168px; }

.cat-icon-strip {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem;
  box-shadow: var(--shadow);
}
.cat-icon {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  text-decoration: none !important; color: inherit !important;
  padding: .5rem .35rem; border-radius: 6px;
}
.cat-icon:hover { background: #f7fafa; }
.cat-icon-mark {
  width: 56px; height: 56px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary); font-size: 1.35rem; font-weight: 800;
}
.cat-icon span { font-size: .82rem; font-weight: 600; text-align: center; }
.cat-icon small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.page-head {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1.1rem auto .75rem;
}
.page-head h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 .2rem;
}
.page-head p { color: var(--muted); margin: 0; }

.grid-products {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.grid-products.solo { width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box; margin: 0 auto 1.5rem; }

/* â€”â€” Shop layout: left filters + grid â€”â€” */
.shop-layout {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.15rem;
  align-items: start;
}
.shop-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.shop-filters h2 {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 700;
}
.filter-group {
  border-top: 1px solid var(--border);
  padding: .75rem 0 .15rem;
}
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h3 {
  margin: 0 0 .5rem;
  font-size: .84rem;
  font-weight: 700;
}
.filter-check {
  display: flex; align-items: flex-start; gap: .45rem;
  margin: .28rem 0; font-size: .86rem; cursor: pointer;
}
.filter-check input { margin-top: .2rem; }
.filter-price {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .35rem; align-items: center;
}
.filter-price input {
  width: 100%; border: 1px solid var(--border); border-radius: 4px;
  padding: .4rem .45rem; font: inherit; font-size: .85rem;
}
.filter-actions { display: flex; flex-direction: column; gap: .4rem; margin-top: .85rem; }
.shop-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.shop-results-bar {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: .85rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}
.shop-results-bar h1 { font-size: 1.2rem; margin: 0; font-family: var(--display); }
.shop-results-bar p { margin: 0; color: var(--muted); font-size: .88rem; }

/* â€”â€” Product cards â€”â€” */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card-link { color: inherit; text-decoration: none !important; display: block; flex: 1; }
.product-card .thumb {
  aspect-ratio: 1; background: #fff; display: grid; place-items: center;
  padding: .65rem; position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.deal-badge {
  position: absolute; left: .5rem; top: .5rem; z-index: 1;
  background: #cc0c39; color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .2rem .4rem; border-radius: 2px;
  line-height: 1.2;
}
.product-card .body {
  padding: .55rem .7rem .25rem;
  display: flex; flex-direction: column; gap: .22rem;
}
.product-card .sku { color: var(--muted); font-size: .72rem; }
.product-card .title {
  font-size: .9rem; font-weight: 500; margin: 0;
  line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.product-card .price { font-weight: 800; font-size: 1.2rem; color: #0f1111; display: block; }
.product-card .list-price {
  font-size: .8rem; color: var(--muted); text-decoration: line-through;
}
.card-actions { padding: .3rem .7rem .85rem; margin-top: auto; }
.card-actions .btn { border-radius: 20px; padding: .4rem .75rem; font-size: .85rem; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .12rem .4rem; border-radius: 2px; width: fit-content;
}
.badge-in { color: var(--ok); background: transparent; padding: 0; }
.badge-low { color: #b45309; background: transparent; padding: 0; }
.badge-out { color: var(--danger); background: transparent; padding: 0; }

/* â€”â€” Panels / forms â€”â€” */
.panel, .form-card {
  width: min(720px, calc(100% - 2rem));
  margin: 1.25rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.wide-panel { width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box; }
.form-row { margin-bottom: .85rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .28rem; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: .6rem .7rem; font: inherit; background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td {
  padding: .7rem .55rem; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
}
table.data th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  background: #f7f8f8;
}

/* â€”â€” Product detail â€”â€” */
.product-layout {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1.15rem auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product-layout .gallery {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; min-height: 360px; display: grid; place-items: center;
  box-shadow: var(--shadow); position: relative;
}
.product-buy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.product-buy .breadcrumb { font-size: .85rem; margin-bottom: .35rem; }
.product-buy h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: .25rem 0 .5rem;
  line-height: 1.25;
  font-weight: 700;
}
.product-buy .price-lg { font-size: 1.55rem; font-weight: 700; margin: .65rem 0; }
.product-buy .list-price { color: var(--muted); text-decoration: line-through; font-size: .95rem; margin-left: .4rem; font-weight: 500; }
.qty-row { display: flex; gap: .55rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.qty-row select, .qty-row input {
  width: 5.5rem; border: 1px solid var(--border); border-radius: 6px; padding: .5rem; font: inherit; background: #fff;
}
.product-desc {
  margin-top: 1.15rem; white-space: pre-wrap;
  border-top: 1px solid var(--border); padding-top: 1rem;
  color: var(--text); font-size: .95rem; line-height: 1.55;
}

/* â€”â€” Cart â€”â€” */
.cart-layout {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 1.15rem auto 2rem;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1rem;
  align-items: start;
}
.cart-main, .cart-summary, .cart-saved {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-main { padding: 1rem 1.15rem 1.25rem; }
.cart-main h1 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 .15rem;
  font-weight: 700;
}
.cart-subcount { color: var(--muted); margin: 0 0 .85rem; font-size: .9rem; }
.cart-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.cart-line {
  display: grid;
  grid-template-columns: 28px 120px 1fr auto;
  gap: .75rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.cart-line-check { margin-top: .5rem; }
.cart-thumb {
  width: 120px; height: 120px;
  background: #fff; border: 1px solid #eee; border-radius: 2px;
  display: grid; place-items: center; overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cart-line-title {
  font-size: 1.02rem; font-weight: 600; color: var(--link, var(--primary));
  text-decoration: none !important; line-height: 1.3;
}
.cart-line-title:hover { color: var(--danger); text-decoration: underline !important; }
.cart-line-meta { color: var(--muted); font-size: .85rem; }
.cart-line-price {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  text-align: right; white-space: nowrap;
}
.cart-line-controls {
  display: flex; flex-wrap: wrap; gap: .15rem .55rem; align-items: center;
  margin-top: .4rem;
}
.cart-qty {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #f0f2f2; border: 1px solid #d5d9d9;
  border-radius: 8px; padding: .2rem .45rem .2rem .55rem;
}
.cart-qty label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cart-qty select {
  border: 0; background: transparent; font: inherit; font-size: .9rem;
  font-weight: 600; padding: .2rem; cursor: pointer; outline: 0;
}
.cart-pipe { color: #ddd; font-size: .85rem; }
.cart-remove, .cart-link-action {
  background: none; border: 0; color: var(--link, var(--primary)); cursor: pointer;
  font: inherit; font-size: .85rem; padding: .15rem 0;
  text-decoration: none;
}
.cart-remove:hover, .cart-link-action:hover { color: var(--danger); text-decoration: underline; }

.cart-summary {
  padding: 1.1rem 1.15rem 1.25rem;
  position: sticky; top: calc(var(--header-h) + 42px);
}
.cart-summary h2 { margin: 0 0 .65rem; font-size: 1.05rem; font-weight: 700; }
.cart-summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-bottom: .4rem; font-size: .95rem;
}
.cart-summary-row.total {
  margin-top: .65rem; padding-top: .65rem;
  border-top: 1px solid var(--border);
  font-size: 1.15rem; font-weight: 700;
}
.cart-summary .btn {
  width: 100%; margin-top: .9rem; padding: .65rem 1rem;
  font-size: .95rem; border-radius: 8px;
}
.cart-summary-note {
  margin: .75rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.4;
}
.cart-saved {
  width: min(var(--max), 100%); padding-inline: clamp(12px, 1.6vw, 24px); box-sizing: border-box;
  margin: 0 auto 2rem;
  padding: 1rem 1.15rem;
  grid-column: 1 / -1;
}
.cart-saved h2 { margin: 0 0 .85rem; font-size: 1.15rem; }

/* â€”â€” Pagination â€”â€” */
.pagination {
  margin: 1rem 0 0;
}
.pagination-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 .65rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text) !important;
  text-decoration: none !important; font-weight: 600; font-size: .9rem;
}
.page-btn:hover { background: #f7fafa; }
.page-btn.is-current {
  background: var(--primary); color: var(--primary-ink) !important;
  border-color: var(--primary);
}
.page-btn.is-disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { padding: 0 .25rem; color: var(--muted); }

/* â€”â€” Footer â€”â€” */
.site-footer {
  margin-top: 2.5rem;
  background: color-mix(in srgb, var(--header-bg) 88%, var(--primary));
  color: #e8eef7;
  padding: 2.25rem 0 1.25rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.75rem;
}
.footer-brand p { margin: .5rem 0 0; opacity: .85; font-size: .92rem; max-width: 22rem; }
.footer-email { margin: .55rem 0 0; }
.footer-email a { display: inline !important; text-decoration: underline !important; text-underline-offset: 2px; }
.site-footer a {
  color: #d7e3f4 !important; text-decoration: none !important;
  display: block; margin: .28rem 0; font-size: .9rem;
}
.site-footer a:hover { text-decoration: underline !important; }
.site-footer h3 {
  margin: 0 0 .55rem; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .07em; opacity: .75; font-weight: 700;
}
.footer-bottom {
  margin-top: 1.75rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; opacity: .8;
}

/* â€”â€” Admin â€”â€” */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f3f4f6; }
.admin-nav {
  background: #0f172a; color: #e2e8f0; padding: 1.35rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.admin-brand {
  font-weight: 800; font-size: 1rem; margin-bottom: 1.15rem;
  padding: 0 .6rem; letter-spacing: -.01em;
}
.admin-nav a {
  display: block; color: #cbd5e1; text-decoration: none;
  padding: .55rem .7rem; border-radius: 8px; font-weight: 500; font-size: .92rem;
}
.admin-nav a:hover, .admin-nav a.active {
  background: color-mix(in srgb, var(--primary) 70%, #1e293b);
  color: #fff;
}
.admin-nav .admin-meta {
  margin-top: auto; padding: 1rem .6rem 0;
  font-size: .8rem; opacity: .65; border-top: 1px solid rgba(255,255,255,.08);
}
.admin-main { padding: 1.5rem 1.75rem; }
.admin-main h1 { margin: 0 0 1rem; font-size: 1.45rem; font-family: var(--display); }
.admin-toolbar {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.admin-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: 1rem;
}
.admin-filters input, .admin-filters select {
  padding: .55rem .7rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: #fff; min-width: 200px;
}
.admin-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1rem 1.15rem; box-shadow: var(--shadow);
}
.admin-bulk { margin-bottom: 1rem; }
.admin-bulk-bar {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center;
  justify-content: space-between; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: .75rem 1rem; margin-bottom: .75rem;
  box-shadow: var(--shadow);
}
.admin-bulk-left { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.admin-bulk-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-check-label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none;
}
.admin-bulk-count { color: #6b7280; font-size: .88rem; }
.admin-offer-panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1rem 1.15rem; margin-bottom: .85rem; box-shadow: var(--shadow);
}
.admin-offer-head {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: baseline;
  margin-bottom: .85rem;
}
.admin-offer-hint { color: #6b7280; font-size: .86rem; }
.admin-offer-grid {
  display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 1rem 1.5rem;
  align-items: start;
}
.admin-offer-scope { display: flex; flex-direction: column; gap: .45rem; }
.admin-radio {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; cursor: pointer;
}
.admin-offer-tools {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
}
.admin-offer-row { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.admin-offer-panel input[type="number"],
.admin-offer-scope select {
  padding: .5rem .65rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: #fff; min-width: 110px;
}
.btn-danger {
  background: #b91c1c; color: #fff; border-color: #b91c1c;
}
.btn-danger:hover { filter: brightness(1.05); }
.col-check { width: 2.25rem; text-align: center; }
.admin-sale-price { font-weight: 700; color: #b45309; margin-right: .35rem; }
.admin-list-price {
  text-decoration: line-through; color: #9ca3af; font-size: .88rem;
}
.admin-offer-badge {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: .75rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px;
}
.row-on-sale td { background: #fffbeb; }
.admin-table-note { margin: .75rem 0 0; color: #6b7280; font-size: .85rem; }
.muted { color: #9ca3af; }
@media (max-width: 800px) {
  .admin-offer-grid { grid-template-columns: 1fr; }
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  background: #fff; border-radius: 12px; padding: 1.1rem 1.15rem;
  border: 1px solid #e5e7eb; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.65rem; margin-bottom: .15rem; }
.stat span { color: #6b7280; font-size: .88rem; }

@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search"; }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-self: end; }
  .header-search { grid-area: search; }
  .action-label { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .cat-icon-strip, .stat-grid, .footer-grid, .product-layout { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav .admin-meta { width: 100%; margin-top: .5rem; }
}
@media (max-width: 560px) {
  .cat-icon-strip, .grid-products, .stat-grid, .footer-grid, .form-grid, .product-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 88px 1fr; }
  .cart-line-check, .cart-line-price { display: none; }
  .cart-thumb { width: 88px; height: 88px; }
  .header-actions .action-link:nth-child(2) { display: none; }
   .brand-mark { height: 30px !important; width: 30px !important; } .brand-tail { font-size: 1.05rem; }
  .header-search .search-cat { max-width: 96px; font-size: .7rem; }
}


/* ---- Ratings / reviews ---- */
.stars { display: inline-flex; align-items: center; gap: 1px; line-height: 1; }
.stars .star { color: #d5d9d9; font-size: .95rem; }
.stars .star.on, .stars .star.half { color: #de7921; }
.stars-sm .star { font-size: .85rem; }
.stars-md .star { font-size: 1.05rem; }
.stars-count { margin-left: .35rem; color: #007185; font-size: .8rem; font-weight: 500; }
.product-card .stars { margin: .2rem 0 .15rem; }
.review-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .85rem; }
.review-item { border-top: 1px solid var(--border); padding-top: .85rem; }
.review-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.review-date { color: var(--muted); font-size: .8rem; }
.review-title { font-weight: 700; margin-bottom: .2rem; }
.review-body { margin: 0; color: #0f1111; line-height: 1.45; }
.reviews-summary { margin: 0 0 .5rem; }
