/* ═══════════════════════════════════════════════════════════════════════════
   PRICELY — Design System
   Aesthetic: Clean neutral commerce — scannable, trustworthy, category-agnostic
   Headings: Sora · Body: DM Sans
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --cream:         #f5f3ef;
  --cream-warm:    #edeae3;
  --white:         #ffffff;
  --ink:           #18120a;
  --ink-soft:      #36291a;
  --muted:         #6b6358;
  --border:        #ddd8ce;
  --border-light:  #eae6de;

  --teal:          #0a7ea4;
  --teal-bg:       #e8f6fb;
  --teal-dark:     #075e7a;
  --teal-text:     #054e66;

  --green:         #1a6e3a;
  --green-bg:      #e8f5ee;

  --red:           #b03535;
  --red-bg:        #fdf0f0;

  --font-display:  'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body:     'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --r-sm:   4px;
  --r:      8px;
  --r-lg:  12px;
  --sh-sm:  0 1px 3px rgba(24,18,10,.06), 0 1px 2px rgba(24,18,10,.04);
  --sh:     0 3px 12px rgba(24,18,10,.08), 0 1px 4px rgba(24,18,10,.05);
  --sh-lg:  0 8px 32px rgba(24,18,10,.11), 0 3px 8px rgba(24,18,10,.06);
  --trans:  150ms ease;

  --content: 1240px;
  --sidebar: 240px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body.public {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.public a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--trans);
}
body.public a:hover { color: var(--teal); }

body.public h1, body.public h2, body.public h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
}

/* ── Skip link (accessibility) ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-sm);
}

.site-nav {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted);
  flex-wrap: nowrap;
  overflow: hidden;
}

.site-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: .25rem;
}
.site-wordmark::after {
  content: '.';
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--border);
  font-weight: 400;
  flex-shrink: 0;
}

.site-nav .breadcrumb-link {
  color: var(--muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.site-nav .breadcrumb-link:hover { color: var(--ink) !important; }

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Language switcher ───────────────────────────────────────────────────── */
.lang-switcher {
  margin-left: auto;
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}

.lang-switcher a {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted) !important;
  text-decoration: none;
  padding: .2rem .5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all var(--trans);
}
.lang-switcher a:hover {
  color: var(--ink) !important;
  border-color: var(--ink);
  background: var(--cream);
}

/* ── Page container ──────────────────────────────────────────────────────── */
.page-container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.home-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.1;
}

.home-hero .hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Search form (shared: home, category, search page) ───────────────────── */
.search-form {
  margin-bottom: 2rem;
}

.home-hero .search-form {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-form form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.home-hero .search-form form {
  flex-wrap: nowrap;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 180px;
  padding: .7rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.search-form input[type="search"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,126,164,.12);
}

.search-form select {
  padding: .7rem .9rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  cursor: pointer;
  transition: border-color var(--trans);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2336291a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.2rem;
}
.search-form select:focus { border-color: var(--teal); }

.btn-search {
  padding: .7rem 1.4rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-search:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(10,126,164,.3);
  transform: translateY(-1px);
}
.btn-search:active { transform: translateY(0); }

/* ── Home category cards ─────────────────────────────────────────────────── */
.home-categories {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
}

.home-category-card a {
  display: block;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all var(--trans);
  box-shadow: var(--sh-sm);
}
.home-category-card a:hover {
  border-color: var(--teal);
  box-shadow: var(--sh);
  transform: translateY(-2px);
  color: var(--teal-dark) !important;
}

/* ── Home popular products ───────────────────────────────────────────────── */
.home-popular {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.home-popular-section {
  margin-bottom: 3rem;
}

.home-popular-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-popular-title a {
  color: inherit;
  text-decoration: none;
}

.home-popular-title a:hover {
  color: var(--teal-dark);
}

.home-popular .product-grid {
  grid-template-columns: repeat(5, 1fr);
}

/* ══════════════════════════════════════════════════════════════════════════
   CATEGORY PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.category-page-header {
  margin-bottom: 1.5rem;
}

.category-page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}

.category-description {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .75rem;
}

/* ── Subcategories ───────────────────────────────────────────────────────── */
.subcategories-section {
  margin-bottom: 2rem;
}

.subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}

.subcategories-list li a {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft) !important;
  transition: all var(--trans);
}
.subcategories-list li a:hover {
  background: var(--teal-bg);
  border-color: var(--teal);
  color: var(--teal-dark) !important;
}

/* ── Category layout: sidebar + content ─────────────────────────────────── */
.category-layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .category-layout { grid-template-columns: 1fr; }
}

/* ── Filter sidebar ──────────────────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  position: sticky;
  top: 76px;
}

/* Checkbox toggle — hidden on desktop, acts as mobile filter toggle */
.filter-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body .filter-toggle {
  display: none;
}

@media (max-width: 768px) {
  .filter-sidebar { position: static; }

  body .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    padding: .1rem 0;
    user-select: none;
  }
  .filter-toggle::after {
    content: '▾';
    font-size: 1rem;
    color: var(--muted);
    transition: transform var(--trans);
  }
  .filter-cb:checked + .filter-toggle::after {
    transform: rotate(-180deg);
  }

  .filter-sidebar form {
    display: none;
    margin-top: 1rem;
  }
  .filter-cb:checked ~ form {
    display: block;
  }
}

.filter-sidebar fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.filter-sidebar fieldset:last-of-type {
  margin-bottom: 1rem;
}

.filter-sidebar legend {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .6rem;
  margin-bottom: .5rem;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
}

.filter-sidebar label:not(.filter-toggle) {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: .2rem 0;
  line-height: 1.4;
}
.filter-sidebar label:not(.filter-toggle):hover { color: var(--ink); }

.filter-sidebar input[type="checkbox"] {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.filter-sidebar input[type="number"] {
  width: 100%;
  padding: .4rem .6rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--trans);
  margin-top: .25rem;
  display: block;
}
.filter-sidebar input[type="number"]:focus { border-color: var(--teal); }

.btn-filter-apply {
  width: 100%;
  padding: .6rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-bg);
  border: 1.5px solid var(--teal);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--trans);
}
.btn-filter-apply:hover {
  background: var(--teal);
  color: var(--white);
}

/* ── Sort bar ────────────────────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sort-bar select {
  padding: .4rem .8rem .4rem .6rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  cursor: pointer;
  transition: border-color var(--trans);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2336291a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 1.8rem;
}
.sort-bar select:focus { border-color: var(--teal); }

.btn-sort {
  padding: .4rem .85rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--trans);
}
.btn-sort:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ── Product grid ────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--border);
}

.product-card-img-wrap {
  aspect-ratio: 1;
  background: var(--white);
  overflow: hidden;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .5rem;
  transition: transform .3s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.04); }

.product-card-body {
  padding: .85rem 1rem 1rem;
}

.product-card h3 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .5rem;
}

/* Stretch link to cover entire card */
.product-card h3 a {
  color: var(--ink) !important;
}
.product-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.product-card h3 a:hover { color: var(--teal-dark) !important; }

.product-card-price {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-bg);
  padding: .2rem .55rem;
  border-radius: var(--r-sm);
}

/* ── Category no results ─────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft) !important;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all var(--trans);
}
.pagination a:hover {
  background: var(--teal-bg);
  border-color: var(--teal);
  color: var(--teal-dark) !important;
}

.pagination-label {
  font-size: .875rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.product-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.product-media {
  position: sticky;
  top: 80px;
}

.product-media-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.product-description {
  color: var(--ink-soft);
  font-size: .975rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── Prices table ────────────────────────────────────────────────────────── */
.prices-section { margin-bottom: 2rem; }

.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.prices-table th {
  padding: .7rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.prices-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--ink-soft);
}

.prices-table tr:last-child td { border-bottom: none; }

.prices-table tr.primary-price { background: var(--teal-bg); }
.prices-table tr.primary-price td { color: var(--ink); }

.prices-table tbody tr {
  position: relative;
  cursor: pointer;
}

.prices-table td a {
  font-weight: 600;
  color: var(--ink) !important;
}
.prices-table td a:hover { color: var(--teal-dark) !important; }

.price-row-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.price-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-dark);
}
.primary-price .price-value { color: var(--teal-dark); }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 20px;
}
.stock-badge.in-stock {
  color: var(--green);
  background: var(--green-bg);
}

/* ── Price chart ─────────────────────────────────────────────────────────── */
.chart-section { margin-bottom: 2rem; }

.chart-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.chart-container svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ── Attributes table ────────────────────────────────────────────────────── */
.attributes-section { margin-bottom: 2rem; }

.attributes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.attributes-table th {
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
  width: 40%;
}

.attributes-table td {
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-light);
}

.attributes-table tr:last-child th,
.attributes-table tr:last-child td { border-bottom: none; }
.attributes-table tr:nth-child(even) { background: var(--cream); }

/* ══════════════════════════════════════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.search-hero {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.search-page-container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.search-status {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: .975rem;
}

.search-results-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-bottom: 2rem;
}

.search-card-crumb {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .35rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   ERROR PAGES
   ══════════════════════════════════════════════════════════════════════════ */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--cream);
  font-family: var(--font-body);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}

.error-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .75rem;
}

.error-desc {
  color: var(--muted);
  font-size: .975rem;
  margin-bottom: 2rem;
  max-width: 380px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.6rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--r);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 2px 8px rgba(10,126,164,.25);
}
.btn-home:hover {
  color: var(--white) !important;
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,126,164,.35);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-popular .product-grid { grid-template-columns: repeat(3, 1fr); }
  .home-popular .product-grid li:nth-child(n+4) { display: none; }
}

@media (max-width: 600px) {
  .product-grid,
  .product-list { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .home-popular .product-grid { grid-template-columns: repeat(2, 1fr); }
  .home-popular .product-grid li:nth-child(n+3) { display: none; }

  .home-categories-grid { grid-template-columns: repeat(2, 1fr); }

  .site-nav .breadcrumb-link { display: none; }

  .search-form form { flex-direction: column; }
  .search-form input[type="search"],
  .search-form select,
  .btn-search { width: 100%; }
}
