﻿:root {
  color-scheme: light;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-strong: #edf5ff;
  --surface-warm: #fff7e0;
  --ink: #101828;
  --muted: #667085;
  --line: #d7e1ee;
  --line-strong: #b7c7dc;
  --navy: #071426;
  --blue: #075dcc;
  --blue-dark: #073b8f;
  --cyan: #00a6ff;
  --red: #e83f4f;
  --green: #06835f;
  --amber: #f3b428;
  --violet: #6d5dfc;
  --shadow: 0 18px 40px rgba(21, 47, 94, 0.12);
  --shadow-strong: 0 24px 60px rgba(8, 25, 52, 0.18);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(238, 243, 248, 0.72) 360px
    ),
    linear-gradient(
      90deg,
      rgba(7, 93, 204, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      180deg,
      rgba(7, 93, 204, 0.05) 1px,
      transparent 1px
    ),
    var(--bg);

  background-size:
    auto,
    48px 48px,
    48px 48px,
    auto;

  color: var(--ink);
  min-width: 320px;
}

body::selection {
  background: rgba(0, 166, 255, 0.22);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body.has-overlay {
  overflow: hidden;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none !important;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px 18px 28px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;

  display: grid;

  grid-template-columns:
    minmax(280px, 350px)
    minmax(220px, 1fr)
    auto;

  gap: 14px;
  align-items: center;

  padding: 10px 12px;

  border: 1px solid rgba(183, 199, 220, 0.72);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.86);

  box-shadow:
    0 16px 45px rgba(8, 25, 52, 0.12);

  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-text {
  display: inline-flex;
  align-items: center;

  min-height: 110px;

  color: var(--blue-dark);

  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 950;
  letter-spacing: 0.055em;
  line-height: 1;

  white-space: nowrap;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-wrap input,
.filters-panel select,
.select-label select {
  width: 100%;
  min-height: 46px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
  color: var(--ink);

  outline: none;
}

.search-wrap input {
  padding: 0 18px 0 46px;

  background:
    linear-gradient(
      90deg,
      transparent 0 40px,
      rgba(215, 225, 238, 0.9) 40px 41px,
      transparent 41px
    ),
    var(--surface);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(10, 43, 94, 0.08);
}

.search-wrap {
  position: relative;
}

.search-wrap::before {
  content: "";

  position: absolute;
  left: 17px;
  top: 50%;

  width: 13px;
  height: 13px;

  border: 2px solid var(--blue-dark);
  border-radius: 999px;

  transform: translateY(-56%);
  pointer-events: none;
}

.search-wrap::after {
  content: "";

  position: absolute;
  left: 30px;
  top: 29px;

  width: 8px;
  height: 2px;

  border-radius: 999px;
  background: var(--blue-dark);

  transform: rotate(45deg);
  pointer-events: none;
}

.search-wrap input:focus,
.filters-panel select:focus,
.select-label select:focus,
.filters-panel input:focus {
  border-color: var(--cyan);

  box-shadow:
    0 0 0 4px rgba(0, 166, 255, 0.16);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.cart-toggle,
.primary-button,
.ghost-button,
.load-more,
.small-button,
.qty-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.cart-toggle:hover,
.primary-button:hover,
.ghost-button:hover,
.load-more:hover,
.small-button:hover,
.qty-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.cart-toggle {
  display: inline-flex;

  gap: 10px;
  align-items: center;
  justify-content: center;

  padding: 0 16px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;

  box-shadow:
    0 12px 26px rgba(7, 93, 204, 0.24);
}

.cart-count {
  display: inline-grid;
  place-items: center;

  min-width: 28px;
  height: 28px;

  padding: 0 8px;

  border-radius: 999px;

  background: #fff;
  color: var(--blue-dark);

  font-weight: 800;
}


/* =========================================================
   HERO
   ========================================================= */

.shop-hero {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 480px);

  gap: 22px;

  align-items: center;

  margin: 18px 0;

  padding:
    clamp(20px, 4vw, 38px);

  overflow: hidden;

  border:
    1px solid rgba(125, 165, 220, 0.3);

  border-radius: 18px;

  background:
    linear-gradient(
      120deg,
      rgba(7, 20, 38, 0.96),
      rgba(7, 42, 90, 0.94) 58%,
      rgba(7, 93, 204, 0.84)
    ),
    var(--navy);

  color: #fff;

  box-shadow:
    var(--shadow-strong);

  isolation: isolate;
}

.shop-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      115deg,
      transparent 0 52%,
      rgba(255, 255, 255, 0.08) 52% 52.4%,
      transparent 52.4%
    ),

    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 56px
    );

  opacity: 0.65;
}

.hero-copy {
  min-width: 0;
}

.hero-subtitle {
  max-width: 620px;

  margin: 16px 0 0;

  color:
    rgba(255, 255, 255, 0.78);

  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 20px;
}

.hero-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 0 16px;

  border:
    1px solid rgba(255, 255, 255, 0.28);

  border-radius: 8px;

  background:
    rgba(255, 255, 255, 0.1);

  color: #fff;

  font-weight: 900;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.hero-link:hover {
  transform: translateY(-1px);

  background:
    rgba(255, 255, 255, 0.16);
}

.hero-link.primary {
  border-color: transparent;

  background: #fff;

  color:
    var(--blue-dark);

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22);
}

.hero-visual {
  display: grid;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 8px;

  color: var(--cyan);

  font-size: 0.78rem;

  font-weight: 900;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;

  margin: 0;

  font-size:
    clamp(2.2rem, 5vw, 5.3rem);

  line-height: 0.96;

  letter-spacing: 0;
}

.shop-hero h1 {
  max-width: 760px;

  color: #fff;

  text-wrap: balance;
}


/* =========================================================
   HERO STATS
   ========================================================= */

.hero-panel {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1px;

  overflow: hidden;

  align-self: end;

  min-height: 104px;

  border:
    1px solid rgba(255, 255, 255, 0.14);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.16);

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18);

  backdrop-filter:
    blur(10px);
}

.hero-panel div {
  display: grid;

  align-content: center;

  justify-items: center;

  min-width: 0;

  padding: 14px 10px;

  background:
    rgba(255, 255, 255, 0.1);
}

.hero-panel span {
  color: #fff;

  font-size:
    clamp(1.4rem, 2.4vw, 2.2rem);

  font-weight: 900;
}

.hero-panel small {
  color:
    rgba(255, 255, 255, 0.68);

  font-weight: 700;

  text-transform: uppercase;
}


/* =========================================================
   HERO PRODUCTS
   ========================================================= */

.hero-strip {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 8px;
}

.hero-product {
  display: grid;

  grid-template-rows:
    74px auto;

  gap: 7px;

  min-width: 0;

  padding: 8px;

  border:
    1px solid rgba(255, 255, 255, 0.14);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.1);

  color: #fff;

  text-align: left;

  backdrop-filter:
    blur(10px);
}

.hero-product img {
  width: 100%;
  height: 74px;

  object-fit: contain;

  border-radius: 8px;

  background:
    rgba(255, 255, 255, 0.9);
}

.hero-product span {
  display: -webkit-box;

  overflow: hidden;

  color:
    rgba(255, 255, 255, 0.86);

  font-size: 0.72rem;

  font-weight: 800;

  line-height: 1.18;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;
}


/* =========================================================
   SHOP LAYOUT
   ========================================================= */

.shop-layout {
  display: grid;

  grid-template-columns:
    290px minmax(0, 1fr);

  gap: 16px;

  align-items: start;
}

.filters-panel,
.catalog-panel {
  border:
    1px solid rgba(183, 199, 220, 0.78);

  border-radius: 14px;

  background:
    var(--surface);

  box-shadow:
    0 16px 40px rgba(28, 58, 110, 0.1);
}


/* =========================================================
   FILTER SIDEBAR
   ========================================================= */

.filters-panel {
  position: sticky;

  top: 146px;

  padding: 14px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fbff
    ),
    var(--surface);
}

.filters-summary {
  display: none;
}

.filters-content {
  display: grid;
  gap: 16px;
}

.filter-title {
  display: grid;

  gap: 3px;

  padding:
    10px 10px 12px;

  border:
    1px solid rgba(215, 225, 238, 0.78);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(7, 93, 204, 0.08),
      rgba(255, 255, 255, 0.98)
    ),
    #fff;
}

.filter-title h2 {
  margin: 0;

  color: #172033;

  font-size: 1.25rem;

  line-height: 1;
}

.filter-block {
  display: grid;

  gap: 10px;
}

.filter-heading {
  color: #26364f;

  font-size: 0.78rem;

  font-weight: 900;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.pill-list {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.pill-button {
  min-height: 36px;

  padding: 0 11px;

  border:
    1px solid var(--line);

  border-radius: 8px;

  background: #fff;

  color: #2e3b50;

  font-size: 0.84rem;

  font-weight: 800;

  box-shadow:
    0 7px 16px rgba(8, 25, 52, 0.05);
}

.pill-button.is-active {
  border-color:
    var(--blue);

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;
}

.range-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

.range-row span {
  color:
    var(--green);

  font-weight: 900;
}

input[type="range"] {
  width: 100%;

  accent-color:
    var(--blue);
}

.ghost-button {
  padding: 0 14px;

  border:
    1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      var(--surface-strong)
    );

  color:
    var(--blue-dark);

  font-weight: 900;
}


/* =========================================================
   CATALOG
   ========================================================= */

.catalog-panel {
  min-width: 0;

  padding: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 251, 255, 0.98)
    ),
    var(--surface);
}

.catalog-summary {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin:
    -2px -2px 12px;
}

.catalog-summary article {
  display: grid;

  gap: 3px;

  min-width: 0;

  min-height: 74px;

  align-content: center;

  padding: 12px;

  border:
    1px solid rgba(215, 225, 238, 0.78);

  border-radius: 12px;

  background: #fff;
}

.catalog-summary span {
  overflow: hidden;

  color:
    var(--blue-dark);

  font-size: 1.18rem;

  font-weight: 950;

  line-height: 1.08;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.catalog-summary small {
  color:
    var(--muted);

  font-size: 0.72rem;

  font-weight: 900;

  text-transform: uppercase;
}


/* =========================================================
   CATALOG TOOLBAR
   ========================================================= */

.catalog-toolbar {
  display: flex;

  gap: 14px;

  align-items: center;

  justify-content: space-between;

  min-height: 58px;

  margin:
    -2px -2px 14px;

  padding: 10px 12px;

  border:
    1px solid rgba(215, 225, 238, 0.78);

  border-radius: 12px;

  background: #fff;
}

.catalog-toolbar strong {
  display: block;

  font-size: 1.08rem;
}

.catalog-toolbar span,
.select-label span {
  color:
    var(--muted);

  font-size: 0.86rem;

  font-weight: 700;
}

.select-label {
  display: flex;

  gap: 8px;

  align-items: center;
}

.select-label select {
  min-width: 190px;

  padding: 0 12px;

  background:
    #f8fbff;
}


/* =========================================================
   STATUS
   ========================================================= */

.status-bar {
  display: none;

  margin-bottom: 14px;

  padding: 12px 14px;

  border:
    1px solid #bdd8ff;

  border-radius: 8px;

  background:
    #edf6ff;

  color:
    var(--blue-dark);

  font-weight: 800;
}

.status-bar.is-visible {
  display: block;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(238px, 1fr));

  gap: 16px;

  align-items: stretch;
}

.product-card {
  position: relative;

  display: grid;

  grid-template-rows:
    210px 1fr;

  min-width: 0;

  overflow: hidden;

  border:
    1px solid rgba(215, 225, 238, 0.96);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fbfdff
    ),
    #fff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-card::before {
  content: "";

  position: absolute;

  inset:
    0 0 auto;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      var(--cyan),
      var(--blue),
      var(--amber)
    );

  opacity: 0;

  transition:
    opacity 0.2s ease;
}

.product-card:hover {
  transform:
    translateY(-4px);

  border-color:
    #9eb8dc;

  box-shadow:
    0 22px 38px rgba(21, 47, 94, 0.16);
}

.product-card:hover::before {
  opacity: 1;
}

.image-button {
  width: 100%;

  height: 210px;

  padding: 16px;

  border: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(237, 245, 255, 0.88)
    ),
    repeating-linear-gradient(
      135deg,
      rgba(7, 93, 204, 0.06) 0 1px,
      transparent 1px 12px
    );
}

.image-button img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    transform 0.22s ease;
}

.product-card:hover .image-button img {
  transform:
    scale(1.035);
}

.card-body {
  display: grid;

  grid-template-rows:
    auto auto auto 1fr auto;

  gap: 9px;

  min-width: 0;

  padding: 14px;
}

.category-line {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  max-width: 100%;

  min-height: 22px;

  padding: 0 8px;

  border-radius: 999px;

  background:
    #eef6ff;

  color:
    var(--blue-dark);

  font-size: 0.76rem;

  font-weight: 900;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.product-card h3 {
  display: -webkit-box;

  min-height: 48px;

  margin: 0;

  overflow: hidden;

  color: #172033;

  font-size: 1rem;

  line-height: 1.2;

  letter-spacing: 0;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;
}

.subcategory-line {
  display: -webkit-box;

  min-height: 32px;

  margin: 0;

  overflow: hidden;

  color:
    var(--muted);

  font-size: 0.82rem;

  font-weight: 750;

  line-height: 1.25;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;
}


/* =========================================================
   PRICE
   ========================================================= */

.price-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  min-height: 32px;
}

.price {
  color:
    var(--green);

  font-size: 1.18rem;

  font-weight: 950;
}

.stock {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  color:
    var(--muted);

  font-size: 0.78rem;

  font-weight: 800;
}

.stock::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 999px;

  background:
    var(--green);

  box-shadow:
    0 0 0 3px rgba(6, 131, 95, 0.12);
}


/* =========================================================
   CARD BUTTONS
   ========================================================= */

.card-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;
}

.small-button {
  padding: 0 10px;

  border:
    1px solid transparent;

  background:
    #eaf2ff;

  color:
    var(--blue-dark);

  font-weight: 900;

  white-space: nowrap;
}

.small-button.primary {
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;
}

.load-more {
  display: block;

  width:
    min(280px, 100%);

  margin:
    18px auto 0;

  padding:
    0 18px;

  background:
    linear-gradient(
      135deg,
      #172033,
      #0a2d5f
    );

  color: #fff;

  font-weight: 900;

  box-shadow:
    0 14px 30px rgba(8, 25, 52, 0.18);
}

.load-more[hidden] {
  display: none;
}


/* =========================================================
   CART
   ========================================================= */

.scrim {
  position: fixed;

  inset: 0;

  z-index: 40;

  background:
    rgba(12, 24, 45, 0.44);
}

.cart-drawer {
  position: fixed;

  top: 0;
  right: 0;

  z-index: 50;

  display: grid;

  grid-template-rows:
    auto 1fr auto;

  width:
    min(440px, 100%);

  height: 100dvh;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fbff
    ),
    #fff;

  box-shadow:
    -18px 0 48px rgba(11, 28, 58, 0.24);

  transform:
    translateX(105%);

  transition:
    transform 0.24s ease;
}

.cart-drawer.is-open {
  transform:
    translateX(0);
}

.drawer-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  padding: 18px;

  border-bottom:
    1px solid var(--line);

  background: #fff;
}

.drawer-header h2 {
  margin: 0;

  font-size: 1.55rem;
}

.icon-button {
  display: inline-grid;

  place-items: center;

  width: 42px;

  min-width: 42px;

  padding: 0;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: #fff;

  color:
    #25304a;

  font-weight: 900;
}

.cart-items {
  overflow: auto;

  padding: 14px;
}

.empty-state {
  display: grid;

  grid-column:
    1 / -1;

  place-items: center;

  min-height: 200px;

  color:
    var(--muted);

  text-align: center;

  font-weight: 800;
}

.cart-line {
  display: grid;

  grid-template-columns:
    74px minmax(0, 1fr);

  gap: 12px;

  margin-bottom: 10px;

  padding: 10px;

  border:
    1px solid var(--line);

  border-radius: 12px;

  background: #fff;
}

.cart-line img {
  width: 74px;
  height: 74px;

  object-fit: contain;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background:
    #f7f9fc;
}

.cart-line h3 {
  margin:
    0 0 6px;

  font-size: 0.96rem;

  line-height: 1.2;
}

.cart-line-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;
}

.qty-controls {
  display: inline-grid;

  grid-template-columns:
    34px 36px 34px;

  align-items: center;

  overflow: hidden;

  border:
    1px solid var(--line);

  border-radius: 10px;
}

.qty-button {
  min-height: 34px;

  border-radius: 0;

  background:
    #eef4ff;

  color:
    var(--blue-dark);

  font-weight: 900;
}

.qty-controls span {
  text-align: center;

  font-weight: 900;
}

.cart-footer {
  display: grid;

  gap: 10px;

  padding: 16px;

  border-top:
    1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f0f6ff
    );
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-form {
  display: grid;

  gap: 10px;
}

.checkout-form label {
  display: grid;

  gap: 5px;

  color:
    #26364f;

  font-size: 0.78rem;

  font-weight: 900;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: #fff;

  color:
    var(--ink);

  outline: none;
}

.checkout-form input {
  min-height: 42px;

  padding:
    0 12px;
}

.checkout-form textarea {
  min-height: 76px;

  padding:
    10px 12px;

  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color:
    var(--cyan);

  box-shadow:
    0 0 0 4px rgba(0, 166, 255, 0.16);
}

.checkout-status {
  min-height: 20px;

  margin: 0;

  color:
    var(--muted);

  font-size: 0.88rem;

  font-weight: 800;

  line-height: 1.35;
}

.checkout-status[data-tone="success"] {
  color:
    var(--green);
}

.checkout-status[data-tone="error"] {
  color:
    var(--red);
}

.cart-secondary-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;
}

.total-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 1.1rem;
}

.primary-button {
  padding:
    0 16px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;

  font-weight: 900;

  box-shadow:
    0 12px 24px rgba(7, 93, 204, 0.22);
}


/* =========================================================
   PRODUCT MODAL
   ========================================================= */

.product-modal {
  position: fixed;

  inset: 0;

  z-index: 60;

  display: none;

  place-items: center;

  padding: 18px;

  background:
    rgba(12, 24, 45, 0.5);
}

.product-modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;

  width:
    min(960px, 100%);

  max-height:
    min(760px, calc(100dvh - 36px));

  overflow: auto;

  border:
    1px solid rgba(255, 255, 255, 0.75);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fbff
    ),
    #fff;

  box-shadow:
    var(--shadow);
}

.modal-close {
  position: absolute;

  top: 12px;
  right: 12px;

  z-index: 2;
}

.modal-body {
  display: grid;

  grid-template-columns:
    minmax(260px, 42%)
    minmax(0, 1fr);

  gap: 20px;

  padding: 24px;
}

.modal-image {
  display: grid;

  place-items: center;

  min-height: 360px;

  border:
    1px solid var(--line);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(237, 245, 255, 0.9)
    ),
    repeating-linear-gradient(
      135deg,
      rgba(7, 93, 204, 0.06) 0 1px,
      transparent 1px 12px
    );
}

.modal-image img {
  width: 100%;

  max-height: 440px;

  object-fit: contain;

  padding: 18px;
}

.modal-copy {
  display: grid;

  align-content: start;

  gap: 14px;

  min-width: 0;

  padding-right: 42px;
}

.modal-price-row {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  align-items: center;
}

.product-facts {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.product-facts span {
  display: inline-flex;

  align-items: center;

  min-height: 32px;

  padding:
    0 10px;

  border:
    1px solid var(--line);

  border-radius: 999px;

  background: #fff;

  color:
    var(--blue-dark);

  font-size: 0.82rem;

  font-weight: 900;
}

.modal-copy h2 {
  margin: 0;

  font-size:
    clamp(1.7rem, 3vw, 2.5rem);

  line-height: 1.05;
}

.modal-copy p {
  margin: 0;

  color:
    var(--muted);

  line-height: 1.55;
}

.modal-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 8px;
}

.source-link {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 42px;

  padding:
    0 14px;

  border:
    1px solid var(--line);

  border-radius: 10px;

  color:
    var(--blue-dark);

  font-weight: 900;

  text-decoration: none;
}


/* =========================================================
   CATEGORY TREE SIDEBAR
   ========================================================= */

.category-tree {
  display: grid;

  gap: 4px;
}

.tree-group {
  display: grid;

  gap: 4px;
}

.tree-item {
  display: flex;

  align-items: center;

  gap: 8px;

  width: 100%;

  min-height: 38px;

  padding:
    0 11px;

  border:
    1px solid transparent;

  border-radius: 8px;

  background:
    transparent;

  color:
    #2e3b50;

  font-size: 0.86rem;

  font-weight: 700;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.tree-item span:not(.tree-caret) {
  flex: 1;

  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.tree-item em {
  flex: 0 0 auto;

  font-style: normal;

  font-size: 0.72rem;

  font-weight: 800;

  color:
    #7a8aa3;

  background:
    #eef4ff;

  border-radius: 999px;

  padding:
    2px 8px;
}

.tree-item:hover {
  background:
    #f2f6fd;

  border-color:
    var(--line);
}

.tree-item.is-active {
  border-color:
    var(--blue);

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-dark)
    );

  color: #fff;
}

.tree-item.is-active em {
  background:
    rgba(255, 255, 255, 0.2);

  color: #fff;
}

.tree-caret {
  flex:
    0 0 12px;

  color:
    #7a8aa3;

  font-size: 1rem;

  line-height: 1;

  transition:
    transform 0.15s ease;
}

.tree-group.is-open >
.tree-root
.tree-caret {
  transform:
    rotate(90deg);
}

.tree-item.is-active
.tree-caret {
  color: #fff;
}

.tree-children {
  display: grid;

  gap: 2px;

  margin-left: 14px;

  padding-left: 10px;

  border-left:
    2px solid var(--line);
}

.tree-child {
  min-height: 34px;

  font-size: 0.82rem;

  font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

  .site-header {
    grid-template-columns:
      1fr auto;
  }

  .search-wrap {
    grid-column:
      1 / -1;
  }

  .shop-hero,
  .shop-layout,
  .modal-body {
    grid-template-columns:
      1fr;
  }

  .filters-panel {
    position: static;
  }

  .modal-copy {
    padding-right: 0;
  }
}


@media (hover: none) {

  .cart-toggle:hover,
  .primary-button:hover,
  .ghost-button:hover,
  .load-more:hover,
  .small-button:hover,
  .qty-button:hover,
  .icon-button:hover,
  .hero-link:hover,
  .hero-product:hover,
  .product-card:hover {
    transform: none;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .page-shell {
    padding:
      0 10px 14px;
  }

  .site-header {
    grid-template-columns:
      minmax(0, 1fr) auto;

    gap: 8px;

    top: 0;

    padding: 8px;

    border-radius:
      0 0 14px 14px;
  }

  .brand-logo {
    width: 210px;
    height: 72px;

    object-fit: contain;

    object-position:
      left center;
  }

  .cart-toggle {
    min-height: 40px;

    padding:
      0 10px;
  }

  .cart-count {
    min-width: 26px;

    height: 26px;
  }

  .search-wrap {
    grid-column:
      1 / -1;
  }

  .search-wrap input,
  .filters-panel select,
  .select-label select {
    min-height: 44px;
  }

  .search-wrap input {
    padding:
      0 12px 0 46px;
  }

  .shop-hero {
    gap: 14px;

    margin:
      12px 0;

    padding: 16px;

    border-radius:
      14px;
  }

  h1 {
    font-size: 1.85rem;

    line-height: 1.02;
  }

  .eyebrow {
    margin-bottom: 5px;

    font-size: 0.68rem;
  }

  .hero-subtitle {
    margin-top: 10px;

    font-size: 0.9rem;

    line-height: 1.45;
  }

  .hero-actions {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    gap: 8px;

    margin-top: 14px;
  }

  .hero-link {
    min-height: 42px;

    padding:
      0 10px;

    font-size: 0.86rem;
  }

  .hero-visual {
    gap: 9px;
  }

  .hero-panel {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    min-height: 68px;

    box-shadow: none;
  }

  .hero-panel div {
    padding:
      8px 4px;
  }

  .hero-panel span {
    font-size: 1.05rem;
  }

  .hero-panel small {
    font-size: 0.62rem;
  }

  .hero-strip {
    display: flex;

    gap: 8px;

    margin-inline:
      -16px;

    overflow-x: auto;

    padding:
      0 16px 2px;

    scrollbar-width: none;
  }

  .hero-strip::-webkit-scrollbar {
    display: none;
  }

  .hero-product {
    flex:
      0 0 112px;

    grid-template-rows:
      68px auto;

    padding: 7px;
  }

  .hero-product img {
    height: 68px;
  }

  .shop-layout {
    gap: 10px;
  }

  .filters-panel {
    display: block;

    overflow: hidden;

    padding: 0;
  }

  .filters-summary {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-height: 48px;

    padding:
      0 12px;

    color:
      #172033;

    font-weight: 950;

    list-style: none;

    cursor: pointer;
  }

  .filters-summary::-webkit-details-marker {
    display: none;
  }

  .filters-summary::after {
    content: "+";

    display: grid;

    place-items: center;

    width: 28px;

    height: 28px;

    border-radius:
      999px;

    background:
      var(--surface-strong);

    color:
      var(--blue-dark);

    font-size: 1.2rem;

    line-height: 1;
  }

  .filters-panel[open]
  .filters-summary::after {
    content: "-";
  }

  .filters-summary small {
    min-width: 0;

    overflow: hidden;

    color:
      var(--muted);

    font-size: 0.76rem;

    font-weight: 800;

    text-overflow:
      ellipsis;

    white-space:
      nowrap;
  }

  .filters-content {
    gap: 12px;

    padding:
      0 12px 12px;
  }

  .filter-title {
    display: none;
  }

  .pill-list {
    flex-wrap: nowrap;

    margin-inline:
      -12px;

    overflow-x: auto;

    padding:
      0 12px 4px;

    scrollbar-width:
      none;
  }

  .pill-list::-webkit-scrollbar {
    display: none;
  }

  .pill-button {
    flex:
      0 0 auto;

    min-height:
      38px;

    white-space:
      nowrap;
  }

  .catalog-panel {
    padding: 10px;
  }

  .catalog-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin:
      0 0 10px;
  }

  .catalog-summary article {
    min-height: 62px;

    padding: 8px;
  }

  .catalog-summary span {
    font-size: 0.92rem;
  }

  .catalog-summary small {
    font-size: 0.6rem;
  }

  .catalog-toolbar {
    display: grid;

    gap: 10px;

    min-height: 0;

    margin-bottom: 10px;
  }

  .select-label {
    align-items: start;

    flex-direction:
      column;
  }

  .select-label select {
    min-width: 0;
  }

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .product-card {
    grid-template-rows:
      clamp(126px, 38vw, 160px)
      1fr;
  }

  .image-button {
    height: 100%;

    padding: 8px;
  }

  .card-body {
    gap: 7px;

    padding: 10px;
  }

  .category-line {
    min-height: 14px;

    overflow: hidden;

    font-size: 0.62rem;

    letter-spacing: 0;

    text-overflow:
      ellipsis;

    white-space:
      nowrap;
  }

  .product-card h3 {
    min-height: 40px;

    font-size: 0.88rem;

    line-height: 1.16;
  }

  .subcategory-line {
    display: none;
  }

  .price-row {
    display: block;
  }

  .price {
    font-size: 1rem;
  }

  .stock {
    display: none;
  }

  .small-button {
    min-height: 40px;

    padding:
      0 6px;

    font-size: 0.84rem;
  }

  .card-actions {
    grid-template-columns:
      1fr;
  }

  .card-actions
  .small-button:first-child {
    display: none;
  }

  .small-button.primary {
    font-size: 0.8rem;
  }

  .load-more {
    min-height: 46px;
  }

  .cart-drawer {
    width: 100%;
  }

  .drawer-header,
  .cart-footer {
    padding: 14px;
  }

  .cart-items {
    padding:
      10px 14px;
  }

  .product-modal {
    align-items: end;

    padding: 0;
  }

  .modal-card {
    width: 100%;

    max-height: 92dvh;

    border-radius:
      8px 8px 0 0;
  }

  .modal-body {
    gap: 14px;

    padding: 18px;
  }

  .modal-image {
    min-height: 260px;
  }

  .modal-copy {
    gap: 10px;
  }

  .modal-copy h2 {
    font-size: 1.45rem;
  }

  .product-facts span {
    min-height: 30px;

    font-size: 0.76rem;
  }

  .modal-actions {
    display: grid;
  }

  .source-link,
  .primary-button,
  .ghost-button {
    min-height: 44px;
  }

  .category-tree {
    max-height: 320px;

    overflow-y: auto;

    padding-right: 4px;
  }
}


@media (max-width: 340px) {

  .catalog-summary {
    grid-template-columns:
      1fr;
  }

  .product-grid {
    grid-template-columns:
      1fr;
  }

  .brand-logo {
    width: 175px;
    height: 64px;
  }
}


/* ==========================================================
   FINAL LAYOUT CORRECTIONS
   ========================================================== */

.page-shell {
  width:
    min(1320px, calc(100% - 32px));

  margin:
    0 auto;

  padding:
    12px 0 32px;
}

.site-header {
  position: sticky !important;

  top: 10px;

  z-index: 100;

  width: 100%;

  margin:
    0 0 18px;
}

.shop-hero {
  position: relative;

  width: 100%;

  margin:
    0 0 18px;

  min-height:
    370px;
}

.shop-layout {
  display: grid;

  grid-template-columns:
    minmax(250px, 290px)
    minmax(0, 1fr);

  gap: 16px;

  align-items: start;

  width: 100%;
}

.filters-panel,
.catalog-panel,
.filters-content,
.filter-block,
.filter-title,
.category-tree,
.tree-group,
.tree-children,
.catalog-summary,
.catalog-toolbar,
.product-grid {
  min-width: 0;

  max-width: 100%;
}

.filters-panel {
  position: sticky;

  top: 150px;

  width: 100%;

  padding: 14px;

  overflow: hidden;
}

.filters-content {
  width: 100%;
}

.filter-title {
  width: 100%;

  max-width: 100%;

  padding:
    10px 12px;

  overflow: hidden;
}

.filter-title h2,
.filter-title p,
.filter-title span {
  max-width: 100%;

  overflow-wrap: anywhere;
}

.category-tree,
.tree-group {
  width: 100%;
}

.tree-item {
  display: flex;

  width: 100%;

  min-width: 0;

  max-width: 100%;
}

.tree-item span:not(.tree-caret) {
  flex: 1;

  min-width: 0;

  max-width: 100%;

  overflow: hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.tree-item em {
  flex-shrink: 0;
}

.tree-children {
  width:
    calc(100% - 14px);

  margin-left: 14px;
}

.catalog-panel {
  width: 100%;

  overflow: hidden;
}

.catalog-summary {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  width: 100%;

  margin:
    0 0 12px;
}

.catalog-summary article {
  width: 100%;

  min-width: 0;

  overflow: hidden;
}

.catalog-summary span {
  display: block;

  width: 100%;

  overflow: hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.catalog-toolbar {
  width: 100%;

  margin:
    0 0 14px;
}

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;

  width: 100%;
}

.product-card {
  width: 100%;

  min-width: 0;
}

.image-button {
  width: 100%;

  overflow: hidden;
}

.image-button img {
  width: 100%;

  height: 100%;

  object-fit: contain;
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1200px) {

  .page-shell {
    width:
      min(1100px, calc(100% - 24px));
  }

  .shop-layout {
    grid-template-columns:
      250px minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .brand-logo {
    width: 280px;
    height: 100px;
  }

  .site-header {
    grid-template-columns:
      minmax(250px, 300px)
      minmax(220px, 1fr)
      auto;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .page-shell {
    width:
      calc(100% - 24px);
  }

  .site-header {
    top: 6px;

    grid-template-columns:
      1fr auto;
  }

  .brand-logo {
    width: 250px;
    height: 90px;
  }

  .shop-hero {
    min-height: auto;
  }

  .shop-layout {
    grid-template-columns:
      1fr;
  }

  .filters-panel {
    position: static;

    top: auto;
  }

  .product-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE LAYOUT
   ========================================================= */

@media (max-width: 760px) {

  .page-shell {
    width: 100%;

    padding:
      0 10px 16px;
  }

  .site-header {
    top: 0;

    margin-bottom:
      12px;

    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .brand-logo {
    width: 210px;
    height: 72px;
  }

  .shop-hero {
    margin-bottom:
      12px;

    min-height: auto;
  }

  .filters-panel {
    width: 100%;

    padding: 0;
  }

  .filters-content {
    padding:
      0 12px 12px;
  }

  .catalog-panel {
    padding: 10px;
  }

  .catalog-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 7px;
  }

  .catalog-toolbar {
    display: grid;

    grid-template-columns:
      1fr;
  }

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .catalog-summary {
    grid-template-columns:
      1fr;
  }

  .product-grid {
    grid-template-columns:
      1fr;
  }

  .brand-logo {
    width: 170px;
    height: 60px;
  }
}


/* =========================================================
   NEWTRONICS FINAL OVERRIDES
   ========================================================= */

#heroStrip {
  display: none !important;
}


/* =========================================================
   BRAND MARQUEE
   ========================================================= */

.brand-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );

  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}

.brand-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: max-content;
  animation: brand-marquee-loop 28s linear infinite;
  will-change: transform;
}

.brand-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 8px;
  padding-right: 8px;
}

.brand-image-card {
  display: grid;
  place-items: center;

  flex: 0 0 106px;

  width: 106px;
  height: 106px;

  padding: 8px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.12);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.13);

  backdrop-filter: blur(10px);
}

.brand-image-card-inner {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.98);
}

.brand-image-card img {
  display: block;

  width: 100%;
  height: 100%;

  padding: 5px;

  object-fit: contain;
  object-position: center;
}

@keyframes brand-marquee-loop {

  from {
    transform:
      translateX(0);
  }

  to {
    transform:
      translateX(-50%);
  }
}

@media (hover: hover) {

  .brand-marquee:hover
  .brand-marquee-track {
    animation-play-state: paused;
  }
}


/* =========================================================
   CATEGORY BURGER
   ========================================================= */

.category-burger-summary {
  list-style: none;
}

.category-burger-summary::-webkit-details-marker {
  display: none;
}

.category-burger-icon {
  display: inline-flex;

  flex: 0 0 24px;

  width: 24px;
  height: 20px;

  flex-direction: column;

  justify-content: center;

  gap: 4px;
}

.category-burger-icon span {
  display: block;

  width: 24px;
  height: 2px;

  border-radius: 999px;

  background: currentColor;

  transform-origin: center;

  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.category-summary-copy {
  display: flex;

  min-width: 0;

  flex: 1;

  align-items: center;

  justify-content: space-between;

  gap: 10px;
}

.category-summary-title {
  color: #172033;

  font-size: 0.92rem;

  font-weight: 950;
}

.filters-panel[open]
.category-burger-icon
span:nth-child(1) {
  transform:
    translateY(6px)
    rotate(45deg);
}

.filters-panel[open]
.category-burger-icon
span:nth-child(2) {
  opacity: 0;
}

.filters-panel[open]
.category-burger-icon
span:nth-child(3) {
  transform:
    translateY(-6px)
    rotate(-45deg);
}


/* =========================================================
   HERO TABLET
   ========================================================= */

@media (max-width: 980px) {

  .shop-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 100%;

    min-width: 0;
  }
}


/* =========================================================
   MOBILE FINAL BEHAVIOR
   ========================================================= */

@media (max-width: 760px) {

  html,
  body {
    max-width: 100%;

    overflow-x: hidden;
  }


  /* REMOVE LOGO ON MOBILE */

  .site-header .brand-link {
    display: none !important;
  }


  /* SEARCH ONLY INITIALLY */

  .site-header {
    grid-template-columns:
      1fr !important;

    gap: 8px;
  }

  .site-header .search-wrap {
    grid-column:
      auto !important;

    width: 100%;

    min-width: 0;
  }


  /* CART HIDDEN UNTIL USED */

  .site-header .cart-toggle {
    display: none !important;
  }

  body.mobile-cart-visible
  .site-header {
    grid-template-columns:
      minmax(0, 1fr)
      auto !important;
  }

  body.mobile-cart-visible
  .site-header
  .cart-toggle {
    display:
      inline-flex !important;
  }

  body.mobile-cart-visible
  .site-header
  .search-wrap {
    grid-column:
      auto !important;
  }

  .site-header .cart-toggle {
    min-height: 44px;

    padding:
      0 10px;

    white-space: nowrap;
  }

  .site-header .cart-count {
    min-width: 25px;

    height: 25px;

    padding:
      0 6px;

    font-size: 0.78rem;
  }


  /* BRAND STRIP */

  .brand-marquee {
    margin-inline:
      -16px;

    width:
      calc(100% + 32px);

    border-radius: 0;

    -webkit-mask-image:
      linear-gradient(
        90deg,
        transparent 0,
        #000 10px,
        #000 calc(100% - 10px),
        transparent 100%
      );

    mask-image:
      linear-gradient(
        90deg,
        transparent 0,
        #000 10px,
        #000 calc(100% - 10px),
        transparent 100%
      );
  }

  .brand-marquee-track {
    animation-duration: 22s;
  }

  .brand-marquee-group {
    gap: 7px;

    padding-right: 7px;
  }

  .brand-image-card {
    flex-basis: 88px;

    width: 88px;
    height: 88px;

    padding: 6px;

    border-radius: 10px;
  }

  .brand-image-card-inner {
    border-radius: 7px;
  }

  .brand-image-card img {
    padding: 4px;
  }


  /* CATEGORY BURGER */

  .filters-summary {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 11px;

    min-height: 52px;

    padding:
      0 13px;
  }

  .filters-summary::after {
    display: none !important;

    content: none !important;
  }

  .filters-summary small {
    flex:
      0 1 auto;

    max-width: 52%;

    text-align: right;
  }

  .category-summary-copy {
    gap: 8px;
  }

  .category-summary-title {
    font-size: 0.9rem;
  }

  .category-tree {
    max-height:
      min(52vh, 360px);

    overflow-y: auto;

    overscroll-behavior:
      contain;
  }


  /* MOBILE PRODUCTS */

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }

  .product-card {
    border-radius: 12px;
  }

  .card-body {
    min-width: 0;
  }

  .product-card h3 {
    overflow-wrap:
      anywhere;
  }

  .cart-drawer,
  .modal-card {
    max-width: 100%;
  }
}


@media (max-width: 430px) {

  .hero-actions {
    grid-template-columns:
      1fr;
  }

  .brand-image-card {
    flex-basis: 80px;

    width: 80px;
    height: 80px;
  }

  .catalog-panel {
    padding: 8px;
  }

  .product-grid {
    gap: 8px;
  }

  .card-body {
    padding: 8px;
  }

  .product-card h3 {
    font-size: 0.82rem;
  }

  .price {
    font-size: 0.94rem;
  }
}


@media (max-width: 350px) {

  .product-grid {
    grid-template-columns:
      1fr;
  }
}


@media (prefers-reduced-motion: reduce) {

  .brand-marquee-track {
    animation: none;
  }

  .category-burger-icon span {
    transition: none;
  }
}


/* =========================================================
   MOBILE: STICKY SEARCH + STICKY CATEGORY HAMBURGER
   THIS MUST BE THE ABSOLUTE LAST SECTION
   ========================================================= */

@media (max-width: 760px) {

  /* =======================================================
     SEARCH STAYS VISIBLE
     ======================================================= */

  .site-header {
    position: sticky !important;

    top: 0 !important;

    bottom: auto !important;

    z-index: 1000 !important;

    width: 100%;

    margin-bottom: 12px;

    background:
      rgba(255, 255, 255, 0.98);

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);
  }


  /* Logo remains hidden */

  .site-header .brand-link {
    display: none !important;
  }


  /* Search fills mobile header */

  .site-header {
    grid-template-columns:
      1fr !important;
  }


  .site-header .search-wrap {
    position: relative !important;

    top: auto !important;

    grid-column:
      auto !important;

    width: 100%;

    min-width: 0;
  }


  /* =======================================================
     CART
     ======================================================= */

  .site-header .cart-toggle {
    display: none !important;
  }


  body.mobile-cart-visible
  .site-header {
    grid-template-columns:
      minmax(0, 1fr)
      auto !important;
  }


  body.mobile-cart-visible
  .site-header
  .cart-toggle {
    display:
      inline-flex !important;
  }


  body.mobile-cart-visible
  .site-header
  .search-wrap {
    grid-column:
      auto !important;
  }


  /* =======================================================
     CATEGORY HAMBURGER STAYS UNDER SEARCH
     ======================================================= */

  .filters-panel {
    position: sticky !important;

    top: 62px !important;

    bottom: auto !important;

    z-index: 900 !important;

    width: 100%;

    max-width: 100%;

    overflow: visible !important;

    background:
      rgba(255, 255, 255, 0.98);

    box-shadow:
      0 8px 20px
      rgba(8, 25, 52, 0.10);

    backdrop-filter:
      blur(16px);

    -webkit-backdrop-filter:
      blur(16px);
  }


  .filters-summary {
    position: relative !important;

    top: auto !important;

    bottom: auto !important;

    z-index: 2 !important;

    width: 100%;

    border-radius: 12px;

    background:
      rgba(255, 255, 255, 0.98);
  }


  /* OPEN CATEGORY MENU */

  .filters-panel[open]
  .filters-content {
    max-height:
      min(60dvh, 500px);

    overflow-y: auto;

    overscroll-behavior:
      contain;

    padding-bottom: 14px;

    background:
      rgba(255, 255, 255, 0.98);
  }


  .filters-panel[open]
  .category-tree {
    max-height:
      min(42dvh, 340px);

    overflow-y: auto;
  }
}

/* =========================================================
   HEADER PLACEMENT OVERRIDE
   Burger left / written logo centered / search underneath
   ========================================================= */

.header-menu-toggle {
  display: none;
}


@media (max-width: 1200px) {

  .brand-text {
    min-height: 100px;
  }
}


@media (max-width: 980px) {

  .brand-text {
    min-height: 90px;
  }
}


@media (max-width: 760px) {

  /* Header becomes two rows:
     row 1 = burger / centered written logo / cart when active
     row 2 = full-width search */

  .site-header {
    position: sticky !important;
    top: 0 !important;
    bottom: auto !important;
    z-index: 1000 !important;

    display: grid !important;
    grid-template-columns:
      44px minmax(0, 1fr) auto !important;
    grid-template-rows:
      44px auto;

    gap: 8px !important;
    align-items: center;

    width: 100%;
    padding: 8px !important;
  }


  /* Burger at top-left */

  .header-menu-toggle {
    display: inline-flex;

    grid-column: 1;
    grid-row: 1;

    width: 44px;
    height: 44px;

    padding: 0 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--blue-dark);

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
  }

  .header-menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 999px;

    background: currentColor;
  }


  /* Written logo centered on first row */

  .site-header .brand-link {
    display: inline-flex !important;

    grid-column: 2;
    grid-row: 1;

    justify-self: center;
    align-self: center;

    width: auto;
    min-width: 0;

    margin: 0;
  }

  .brand-text {
    min-height: 44px;

    font-size: clamp(1.15rem, 6vw, 1.7rem);
    letter-spacing: 0.045em;
  }


  /* Search is the complete second row */

  .site-header .search-wrap,
  body.mobile-cart-visible
  .site-header
  .search-wrap {
    position: relative !important;

    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    width: 100%;
    min-width: 0;
  }


  /* Keep the cart's existing behavior; when it is visible,
     it occupies the right side of the first row only. */

  .site-header .cart-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  body.mobile-cart-visible
  .site-header {
    grid-template-columns:
      44px minmax(0, 1fr) auto !important;
  }


  /* The original category summary is replaced visually by
     the burger in the header. The same filterPanel content
     opens directly below the two-row header. */

  .filters-panel {
    position: fixed !important;

    top: 112px !important;
    left: 10px;
    right: 10px;
    bottom: auto !important;

    z-index: 990 !important;

    width: auto !important;
    max-width: none !important;

    padding: 0 !important;

    overflow: visible !important;

    border: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    pointer-events: none;
  }

  .filters-panel > .filters-summary {
    display: none !important;
  }

  .filters-panel[open] {
    padding: 14px !important;

    border:
      1px solid rgba(183, 199, 220, 0.78) !important;

    border-radius: 14px;

    background:
      linear-gradient(
        180deg,
        #ffffff,
        #f8fbff
      ) !important;

    box-shadow:
      0 16px 40px rgba(28, 58, 110, 0.14) !important;

    pointer-events: auto;
  }

  .filters-panel[open]
  .filters-content {
    max-height:
      calc(100dvh - 142px) !important;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding-bottom: 14px;
  }
}


/* =========================================================
   CART LAYOUT FIX
   Keeps every other existing style unchanged
   ========================================================= */

/* Overlay must sit above the sticky header */
.scrim {
  z-index: 1990 !important;
}

/* Drawer must sit above the entire page and must not create a huge 1fr gap */
.cart-drawer {
  z-index: 2000 !important;
  grid-template-rows: auto auto auto !important;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.cart-items {
  overflow: visible !important;
  min-height: 0 !important;
}

.cart-footer {
  margin-top: 0 !important;
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 5;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .cart-drawer {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .drawer-header {
    padding: max(14px, env(safe-area-inset-top)) 14px 14px !important;
  }

  .cart-items {
    padding: 10px 14px !important;
  }

  .cart-footer {
    padding: 14px 14px max(14px, calc(14px + env(safe-area-inset-bottom))) !important;
  }
}

@media (min-width: 761px) {
  .cart-drawer {
    width: min(440px, 100%) !important;
    height: 100dvh !important;
  }
}


/* =========================================================
   MOBILE HEADER SCROLLS WITH PAGE
   Burger / NEWTRONICS / search move with normal page scroll
   ========================================================= */

@media (max-width: 760px) {

  .site-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-bottom: 12px !important;

    z-index: 1000 !important;
  }

  .page-shell {
    padding-top: 0 !important;
  }
}

/* =========================================================
   FINAL HEADER LOGO IMAGE OVERRIDE
   Desktop: ./static/images/desktop.jpeg
   Mobile : ./static/images/phone.jpeg

   This intentionally comes last because this stylesheet
   already contains several later header/mobile overrides.
   ========================================================= */

.brand-link {
  overflow: hidden;
}

.brand-picture {
  display: block;
  width: min(330px, 100%);
  height: 100px;
  overflow: hidden;
  flex: 0 1 auto;
}

.brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}


/* Desktop / tablet */
@media (min-width: 761px) {

  .site-header .brand-link {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-picture {
    width: min(330px, 100%);
    height: 100px;
  }
}


/* Mobile */
@media (max-width: 760px) {

  .site-header .brand-link {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    overflow: hidden !important;
  }

  .brand-picture {
    width: min(210px, 100%);
    height: 42px;
    overflow: hidden;
  }

  .brand-logo {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
  }
}


/* Smaller phones */
@media (max-width: 390px) {

  .brand-picture {
    width: min(180px, 100%);
    height: 40px;
  }
}


/* Very small phones */
@media (max-width: 340px) {

  .brand-picture {
    width: min(155px, 100%);
    height: 38px;
  }
}

/* =========================================================
   MOBILE HEADER LOGO - MORE SPACE
   Keep this at the absolute end of the stylesheet.
   ========================================================= */

@media (max-width: 760px) {

  .site-header {
    grid-template-columns:
      40px minmax(0, 1fr) auto !important;

    grid-template-rows:
      64px auto !important;

    column-gap: 8px !important;
    row-gap: 8px !important;
  }

  .header-menu-toggle {
    width: 40px !important;
    height: 56px !important;
    padding: 0 8px !important;
  }

  .site-header .brand-link {
    width: 100% !important;
    height: 64px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
  }

  .brand-picture {
    display: block;

    width: 100% !important;
    max-width: 280px !important;
    height: 60px !important;

    overflow: hidden;
  }

  .brand-logo {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
  }

  .site-header .cart-toggle {
    min-height: 48px !important;
    padding: 0 9px !important;
  }
}


/* Narrow phones */
@media (max-width: 430px) {

  .brand-picture {
    max-width: 245px !important;
    height: 58px !important;
  }
}


/* Small phones */
@media (max-width: 390px) {

  .site-header {
    grid-template-columns:
      38px minmax(0, 1fr) auto !important;
  }

  .brand-picture {
    max-width: 220px !important;
    height: 56px !important;
  }

  .site-header .cart-toggle {
    padding: 0 7px !important;
  }
}


/* Very small phones */
@media (max-width: 340px) {

  .brand-picture {
    max-width: 190px !important;
    height: 52px !important;
  }
}

/* =========================================================
   MOBILE HEADER FOLLOWS SCROLL
   Burger + logo + cart + search stay visible while scrolling.
   MUST remain at the absolute end of this stylesheet.
   ========================================================= */

@media (max-width: 760px) {

  .site-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    z-index: 3000 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-bottom: 12px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow:
      0 8px 24px rgba(8, 25, 52, 0.12);
  }

  /* Keep the category popup underneath the sticky header */
  .filters-panel {
    top: 126px !important;
  }
}

/* =========================================================
   MOBILE ONLY â€” DESKTOP IS UNCHANGED
   Matches the requested phone layout:
   row 1 = logo + cart
   row 2 = search + hamburger on the right
   whole header follows scroll
   ========================================================= */

@media (max-width: 760px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px 16px !important;
  }


  /* HEADER: MOBILE ONLY */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 3000 !important;

    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      auto !important;

    grid-template-rows:
      72px
      52px !important;

    gap: 8px !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 12px !important;
    padding: 4px 8px 8px !important;

    border-radius:
      0 0 14px 14px !important;

    background:
      rgba(255, 255, 255, 0.985) !important;

    box-shadow:
      0 8px 22px rgba(8, 25, 52, 0.12) !important;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }


  /* LOGO TOP LEFT */
  .site-header .brand-link {
    display: flex !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;

    overflow: hidden !important;
  }

  .brand-picture {
    display: block !important;

    width: min(310px, 100%) !important;
    max-width: 100% !important;
    height: 68px !important;

    overflow: hidden !important;
  }

  .brand-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover !important;
    object-position: center !important;
  }


  /* CART TOP RIGHT */
  .site-header .cart-toggle {
    display: inline-flex !important;

    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: center !important;
    justify-self: end !important;

    min-width: 80px !important;
    min-height: 48px !important;

    padding: 0 10px !important;

    border-radius: 9px !important;

    white-space: nowrap !important;
  }


  /* SEARCH SECOND ROW */
  .site-header .search-wrap {
    position: relative !important;

    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;

    margin: 0 !important;
  }

  .site-header .search-wrap input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    padding:
      0 58px
      0 52px !important;

    border-radius: 9px !important;
  }


  /* MOBILE HAMBURGER:
     visually sits over the right side of the search row,
     without changing the desktop HTML structure */
  .header-menu-toggle {
    position: absolute !important;

    display: inline-flex !important;

    right: 12px !important;
    bottom: 10px !important;

    width: 42px !important;
    height: 40px !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #ffffff !important;
    color: var(--blue-dark) !important;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    z-index: 5 !important;
  }

  .header-menu-toggle span {
    display: block !important;

    width: 24px !important;
    height: 2px !important;

    border-radius: 999px !important;

    background: currentColor !important;
  }


  /* CATEGORY POPUP UNDER THE STICKY MOBILE HEADER */
  .filters-panel {
    position: fixed !important;

    top: 136px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: auto !important;

    z-index: 2990 !important;

    width: auto !important;
    max-width: none !important;

    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    overflow: visible !important;
    pointer-events: none !important;
  }

  .filters-panel > .filters-summary {
    display: none !important;
  }

  .filters-panel[open] {
    padding: 14px !important;

    border:
      1px solid rgba(183, 199, 220, 0.78) !important;

    border-radius: 14px !important;

    background:
      linear-gradient(
        180deg,
        #ffffff,
        #f8fbff
      ) !important;

    box-shadow:
      0 16px 40px rgba(28, 58, 110, 0.14) !important;

    pointer-events: auto !important;
  }

  .filters-panel[open]
  .filters-content {
    max-height:
      calc(100dvh - 154px) !important;

    overflow-y: auto !important;
    overscroll-behavior: contain !important;

    padding-bottom: 14px !important;
  }
}


/* Slightly narrower phones */
@media (max-width: 430px) {

  .brand-picture {
    width: min(285px, 100%) !important;
  }

  .site-header .cart-toggle {
    min-width: 78px !important;
  }
}


/* Very narrow phones */
@media (max-width: 370px) {

  .site-header {
    grid-template-rows:
      66px
      50px !important;
  }

  .site-header .brand-link {
    height: 66px !important;
  }

  .brand-picture {
    width: min(235px, 100%) !important;
    height: 62px !important;
  }

  .site-header .cart-toggle {
    min-width: 72px !important;
    padding: 0 7px !important;
  }
}

/* =========================================================
   FINAL MOBILE FIX â€” HAMBURGER INSIDE SEARCH BAR
   Desktop is untouched.
   ========================================================= */

@media (max-width: 760px) {

  .site-header .search-wrap {
    position: relative !important;
  }

  .site-header .search-wrap input {
    padding-right: 58px !important;
  }

  .site-header .search-wrap .header-menu-toggle {
    position: absolute !important;

    top: 50% !important;
    right: 4px !important;
    bottom: auto !important;
    left: auto !important;

    display: inline-flex !important;

    width: 44px !important;
    height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: var(--blue-dark) !important;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    transform: translateY(-50%) !important;

    z-index: 10 !important;
  }

  .site-header .search-wrap .header-menu-toggle span {
    display: block !important;

    width: 24px !important;
    height: 2px !important;

    border-radius: 999px !important;

    background: currentColor !important;
  }
}

/* =========================================================
   FINAL MOBILE LOGO FIX
   Desktop remains untouched.
   Uses cropped ./static/images/phone-header.jpeg
   ========================================================= */

@media (max-width: 760px) {

  .site-header .brand-link {
    overflow: hidden !important;
  }

  .brand-picture {
    display: block !important;

    width: 100% !important;
    max-width: 310px !important;
    height: 68px !important;

    overflow: hidden !important;
  }

  .brand-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain !important;
    object-position: left center !important;

    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 430px) {

  .brand-picture {
    max-width: 285px !important;
    height: 64px !important;
  }
}

@media (max-width: 370px) {

  .brand-picture {
    max-width: 235px !important;
    height: 58px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO SIZE FIX
   New filename avoids stale browser image cache.
   DESKTOP REMAINS UNCHANGED.
   ========================================================= */

@media (max-width: 760px) {

  .site-header .brand-link {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    height: 72px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    overflow: visible !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(300px, calc(100vw - 120px)) !important;
    max-width: none !important;
    height: 66px !important;

    flex: 0 0 auto !important;
    overflow: visible !important;
  }

  .site-header .brand-picture .brand-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
  }
}

@media (max-width: 430px) {

  .site-header .brand-picture {
    width: min(265px, calc(100vw - 112px)) !important;
    height: 62px !important;
  }
}

@media (max-width: 370px) {

  .site-header .brand-picture {
    width: min(225px, calc(100vw - 105px)) !important;
    height: 56px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO FIX
   DESKTOP REMAINS UNCHANGED
   ========================================================= */

@media (max-width: 760px) {

  .site-header .brand-link {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    height: 72px !important;

    min-width: 0 !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;

    overflow: hidden !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(300px, calc(100vw - 120px)) !important;
    max-width: none !important;

    height: 68px !important;

    margin: 0 !important;

    overflow: hidden !important;

    flex: 0 0 auto !important;
  }

  .site-header .brand-picture .brand-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: none !important;
  }
}


/* Smaller phones */
@media (max-width: 430px) {

  .site-header .brand-picture {
    width: min(265px, calc(100vw - 112px)) !important;
    height: 68px !important;
  }
}


/* Very small phones */
@media (max-width: 370px) {

  .site-header .brand-picture {
    width: min(225px, calc(100vw - 105px)) !important;
    height: 62px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO VISIBILITY FIX
   DESKTOP IS UNCHANGED
   ========================================================= */

@media (max-width: 760px) {

  .site-header .brand-link {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    overflow: visible !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(300px, calc(100vw - 120px)) !important;
    max-width: 300px !important;
    height: 68px !important;

    margin: 0 !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
  }

  .site-header .brand-picture .brand-logo {
    /* Force the correct cropped mobile logo */

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    /* DO NOT crop the already-cropped logo */
    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
  }
}

@media (max-width: 430px) {

  .site-header .brand-picture {
    width: min(270px, calc(100vw - 112px)) !important;
    max-width: 270px !important;
    height: 64px !important;
  }
}

@media (max-width: 370px) {

  .site-header .brand-picture {
    width: min(225px, calc(100vw - 105px)) !important;
    max-width: 225px !important;
    height: 58px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO â€” MUCH LARGER
   DESKTOP IS UNCHANGED
   ========================================================= */

@media (max-width: 760px) {

  .site-header {
    grid-template-rows:
      88px
      52px !important;
  }

  .site-header .brand-link {
    display: flex !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 88px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    overflow: hidden !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(360px, calc(100vw - 105px)) !important;
    max-width: none !important;
    height: 80px !important;

    margin: 0 !important;

    flex: 0 0 auto !important;
    overflow: hidden !important;
  }

  .site-header .brand-picture .brand-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
  }
}


/* Normal narrow phones */
@media (max-width: 430px) {

  .site-header {
    grid-template-rows:
      82px
      52px !important;
  }

  .site-header .brand-link {
    height: 82px !important;
  }

  .site-header .brand-picture {
    width: calc(100vw - 105px) !important;
    height: 76px !important;
  }
}


/* Small phones */
@media (max-width: 370px) {

  .site-header {
    grid-template-rows:
      76px
      50px !important;
  }

  .site-header .brand-link {
    height: 76px !important;
  }

  .site-header .brand-picture {
    width: calc(100vw - 100px) !important;
    height: 70px !important;
  }
}

/* =========================================================
   MOBILE LOGO ALLOWED AREA DEBUG BOX
   Red border shows the exact space available to the logo.
   DESKTOP REMAINS UNCHANGED.
   ========================================================= */

@media (max-width: 760px) {

  .site-header .brand-picture {
    width: min(360px, calc(100vw - 105px)) !important;
    height: 80px !important;

    border:  none !important;
    background: transparent !important;

    overflow: hidden !important;
  }

  .site-header .brand-logo {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO FILL FIX
   DESKTOP REMAINS UNCHANGED
   Red border kept temporarily for debugging.
   ========================================================= */
@media (max-width: 760px) {

  .site-header .brand-picture {
    position: relative !important;

    width: 100% !important;
    max-width: none !important;

    height: 142px !important;

    margin: 0 !important;

    overflow: hidden !important;

    border: none !important;
    background: transparent !important;
  }

}

/* =========================================================
   FINAL CART OVERLAY FIX
   Cart must cover the sticky mobile header completely.
   ========================================================= */

.scrim {
  z-index: 4990 !important;
}

.cart-drawer {
  z-index: 5000 !important;
}

.product-modal {
  z-index: 5100 !important;
}

@media (max-width: 760px) {

  .cart-drawer {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 100dvh !important;
    min-height: 100dvh !important;

    z-index: 5000 !important;
  }

  .scrim {
    z-index: 4990 !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE NAVBAR FIX
   Keeps the complete mobile header visible while scrolling.
   Desktop remains unchanged.
   ========================================================= */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  body {
    /* The fixed header is removed from normal flow, so reserve
       enough room for the logo row + search row. */
    padding-top: 152px !important;
  }

  .page-shell {
    overflow: visible !important;
  }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    z-index: 9999 !important;

    background: rgba(255, 255, 255, 0.985) !important;
    box-shadow: 0 8px 22px rgba(8, 25, 52, 0.12) !important;

    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }

  /* Keep the categories popup below the fixed navbar. */
  .filters-panel {
    top: 152px !important;
  }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   Number: +961 78 781 815

   MOVE THE BUTTON HERE:
   Increase RIGHT  = move LEFT
   Decrease RIGHT  = move RIGHT
   Increase BOTTOM = move UP
   Decrease BOTTOM = move DOWN
   ========================================================= */

:root {
  /* DESKTOP POSITION */
  --whatsapp-right: 18px;
  --whatsapp-bottom: 18px;

  /* MOBILE POSITION */
  --whatsapp-mobile-right: 14px;
  --whatsapp-mobile-bottom: 14px;
}

.whatsapp-link {
  position: fixed !important;

  right: var(--whatsapp-right) !important;
  bottom: var(--whatsapp-bottom) !important;

  top: auto !important;
  left: auto !important;

  z-index: 4800 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: auto !important;
  min-width: 0 !important;

  height: 54px !important;
  min-height: 54px !important;

  margin: 0 !important;
  padding: 0 17px !important;

  border: 0 !important;
  border-radius: 999px !important;

  background: #25d366 !important;
  color: #ffffff !important;

  font-size: 0.94rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  text-decoration: none !important;
  white-space: nowrap !important;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    0 8px 22px rgba(37, 211, 102, 0.28) !important;

  cursor: pointer !important;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease !important;

  -webkit-tap-highlight-color: transparent;
}

.whatsapp-link:hover {
  transform: translateY(-2px) !important;
  background: #1ebe5d !important;

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.20),
    0 10px 26px rgba(37, 211, 102, 0.34) !important;
}

.whatsapp-link:active {
  transform: translateY(0) scale(0.97) !important;
}

.whatsapp-link:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35) !important;
  outline-offset: 4px !important;
}

.whatsapp-icon {
  display: block !important;

  width: 26px !important;
  height: 26px !important;

  min-width: 26px !important;
  flex: 0 0 26px !important;

  color: #ffffff !important;
}

.whatsapp-link span {
  display: inline !important;
  color: #ffffff !important;
}

/* Keep WhatsApp below cart/modal overlays. */
body.has-overlay .whatsapp-link {
  z-index: 1000 !important;
}

/* =========================================================
   MOBILE WHATSAPP
   ========================================================= */

@media (max-width: 760px) {

  .whatsapp-link {
    right: var(--whatsapp-mobile-right) !important;

    bottom:
      calc(
        var(--whatsapp-mobile-bottom) +
        env(safe-area-inset-bottom)
      ) !important;

    width: 58px !important;
    min-width: 58px !important;

    height: 58px !important;
    min-height: 58px !important;

    padding: 0 !important;

    border-radius: 50% !important;

    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.20),
      0 8px 22px rgba(37, 211, 102, 0.30) !important;
  }

  .whatsapp-link span {
    display: none !important;
  }

  .whatsapp-icon {
    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
    flex-basis: 30px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE OVERRIDE
   DESKTOP DESIGN, ADAPTED FOR PHONE
   Keep this section at the absolute end of the stylesheet.
   ========================================================= */

@media (max-width: 760px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding-top: 0 !important;
  }

  .page-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  /* ---------------------------------------------------------
     HEADER — same card look as desktop, compact for mobile
     --------------------------------------------------------- */

  .site-header {
    position: sticky !important;
    top: 8px !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    z-index: 3000 !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 14px !important;
    padding: 10px 12px !important;

    border: 1px solid rgba(183, 199, 220, 0.72) !important;
    border-radius: 12px !important;

    background: rgba(255, 255, 255, 0.96) !important;

    box-shadow: 0 14px 34px rgba(8, 25, 52, 0.12) !important;

    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }

  .site-header .brand-link {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    overflow: hidden !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(245px, calc(100vw - 135px)) !important;
    max-width: 245px !important;
    height: 64px !important;

    margin: 0 !important;

    flex: 0 1 auto !important;
    overflow: hidden !important;
  }

  .site-header .brand-picture .brand-logo {

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
  }

  .site-header .cart-toggle {
    display: inline-flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;

    min-width: 82px !important;
    min-height: 44px !important;

    padding: 0 10px !important;
  }

  .site-header .search-wrap {
    position: relative !important;

    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 0 !important;
  }

  .site-header .search-wrap input {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;

    padding: 0 58px 0 46px !important;

    border: 1px solid var(--line) !important;
    border-radius: 8px !important;

    background: var(--surface) !important;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 20px rgba(10, 43, 94, 0.07) !important;
  }

  .site-header .search-wrap .header-menu-toggle {
    position: absolute !important;

    top: 50% !important;
    right: 4px !important;
    bottom: auto !important;
    left: auto !important;

    display: inline-flex !important;

    width: 44px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: var(--blue-dark) !important;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    transform: translateY(-50%) !important;
    z-index: 10 !important;
  }

  .site-header .search-wrap .header-menu-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
  }

  /* ---------------------------------------------------------
     HERO — same desktop appearance, simply stacked
     --------------------------------------------------------- */

  .shop-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;

    width: 100% !important;
    min-height: auto !important;

    margin: 0 0 14px !important;
    padding: 18px !important;

    border-radius: 16px !important;
  }

  .shop-hero h1,
  h1 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 0.98 !important;
  }

  .hero-subtitle {
    margin-top: 12px !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
  }

  .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .hero-link {
    flex: 1 1 140px !important;
    min-height: 44px !important;
  }

  .hero-visual {
    display: grid !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .brand-marquee {
    width: 100% !important;
    max-width: 100% !important;
  }

  .brand-image-card {
    flex-basis: 92px !important;
    width: 92px !important;
    height: 92px !important;
  }

  /* ---------------------------------------------------------
     MAIN SHOP — desktop visual language in one mobile column
     --------------------------------------------------------- */

  .shop-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;

    width: 100% !important;
    max-width: 100% !important;
  }

  .filters-panel,
  .catalog-panel {
    width: 100% !important;
    max-width: 100% !important;

    border: 1px solid rgba(183, 199, 220, 0.78) !important;
    border-radius: 14px !important;

    background:
      linear-gradient(180deg, #ffffff, #f8fbff),
      var(--surface) !important;

    box-shadow: 0 14px 34px rgba(28, 58, 110, 0.10) !important;
  }

  /* Category control stays accessible, but no floating/fixed popup. */
  .filters-panel {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    z-index: auto !important;

    padding: 0 !important;

    overflow: hidden !important;
    pointer-events: auto !important;
  }

  .filters-panel > .filters-summary {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    min-height: 50px !important;

    padding: 0 12px !important;

    border-radius: 14px !important;

    background: #ffffff !important;
    color: #172033 !important;

    font-weight: 950 !important;
  }

  .filters-panel[open] {
    padding: 0 !important;
  }

  .filters-panel[open] .filters-content {
    max-height: none !important;
    overflow: visible !important;

    padding: 0 12px 12px !important;

    background: transparent !important;
  }

  /* Two horizontal category rows, same card feel as desktop. */
  .category-tree {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-rows: repeat(2, minmax(0, auto)) !important;
    grid-auto-columns: 150px !important;

    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 4px 2px 8px !important;

    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .category-tree::-webkit-scrollbar {
    height: 6px !important;
  }

  .category-tree::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(38, 54, 79, 0.45) !important;
  }

  .tree-group,
  .tree-children {
    display: contents !important;
  }

  .tree-item,
  .tree-root,
  .tree-child {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;

    min-height: 112px !important;

    padding: 12px !important;

    border: 1px solid rgba(215, 225, 238, 0.96) !important;
    border-radius: 12px !important;

    background: #ffffff !important;
    color: #162844 !important;

    font-size: 0.82rem !important;
    font-weight: 800 !important;

    box-shadow: none !important;
  }

  #categoryTree .tree-item:has(.category-card-picture) {
    display: grid !important;
    grid-template-rows: 78px auto !important;
    align-items: stretch !important;

    min-height: 124px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #categoryTree .category-card-picture {
    display: block !important;
    width: 100% !important;
    height: 78px !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(215, 225, 238, 0.96) !important;
    background: linear-gradient(135deg, #ffffff, #edf5ff) !important;
  }

  #categoryTree .category-card-picture img {
    width: 100% !important;
    height: 100% !important;
    padding: 6px !important;
    object-fit: contain !important;
  }

  #categoryTree .tree-item > span:not(.tree-caret):not(.category-card-picture) {
    display: flex !important;
    align-items: center !important;

    min-height: 42px !important;

    padding: 8px 10px !important;

    overflow: hidden !important;
    white-space: normal !important;

    line-height: 1.15 !important;
  }

  .tree-item em,
  .tree-caret {
    display: none !important;
  }

  /* ---------------------------------------------------------
     CATALOG — same desktop cards, scaled down instead of redesigned
     --------------------------------------------------------- */

  .catalog-panel {
    padding: 10px !important;
    overflow: hidden !important;
  }

  .catalog-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
  }

  .catalog-summary article {
    min-height: 64px !important;
    padding: 8px !important;
  }

  .catalog-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    min-height: 52px !important;

    margin: 0 0 10px !important;
    padding: 8px 10px !important;
  }

  .catalog-toolbar-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .select-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .select-label select {
    min-width: 135px !important;
    min-height: 40px !important;
  }

  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    grid-template-rows: 150px 1fr !important;
    min-width: 0 !important;

    border: 1px solid rgba(215, 225, 238, 0.96) !important;
    border-radius: 14px !important;

    background:
      linear-gradient(180deg, #ffffff, #fbfdff),
      #ffffff !important;
  }

  .image-button {
    width: 100% !important;
    height: 150px !important;
    padding: 10px !important;
  }

  .card-body {
    display: grid !important;
    grid-template-rows: auto auto auto 1fr auto !important;
    gap: 7px !important;

    min-width: 0 !important;
    padding: 10px !important;
  }

  .category-line {
    display: inline-flex !important;
    min-height: 18px !important;
    max-width: 100% !important;

    font-size: 0.64rem !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .product-card h3 {
    min-height: 40px !important;

    font-size: 0.88rem !important;
    line-height: 1.16 !important;
  }

  .subcategory-line {
    display: -webkit-box !important;
    min-height: 30px !important;

    font-size: 0.74rem !important;
    line-height: 1.2 !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  .price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .price {
    font-size: 1rem !important;
  }

  .stock {
    display: inline-flex !important;
    font-size: 0.68rem !important;
  }

  .card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .card-actions .small-button:first-child {
    display: inline-flex !important;
  }

  .small-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 0 !important;
    min-height: 38px !important;

    padding: 0 5px !important;

    font-size: 0.74rem !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* ---------------------------------------------------------
     MODAL / CART — keep desktop visual treatment, fit viewport
     --------------------------------------------------------- */

  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  .product-modal {
    align-items: center !important;
    padding: 10px !important;
  }

  .modal-card {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;

    border-radius: 14px !important;
  }

  .modal-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;

    padding: 18px !important;
  }

  .modal-image {
    min-height: 240px !important;
  }

  .modal-copy {
    padding-right: 0 !important;
  }

  /* WhatsApp stays compact on mobile. */
  .whatsapp-link {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .whatsapp-link span {
    display: none !important;
  }
}

@media (max-width: 430px) {

  .page-shell {
    padding: 8px !important;
  }

  .site-header {
    top: 6px !important;
    padding: 8px 10px !important;
  }

  .site-header .brand-picture {
    width: min(215px, calc(100vw - 125px)) !important;
    max-width: 215px !important;
    height: 58px !important;
  }

  .site-header .cart-toggle {
    min-width: 76px !important;
    padding: 0 8px !important;
  }

  .shop-hero {
    padding: 16px !important;
  }

  .category-tree {
    grid-auto-columns: 142px !important;
  }

  .tree-item,
  .tree-root,
  .tree-child {
    width: 142px !important;
    min-width: 142px !important;
    max-width: 142px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-card {
    grid-template-rows: 132px 1fr !important;
  }

  .image-button {
    height: 132px !important;
    padding: 8px !important;
  }

  .card-body {
    padding: 8px !important;
  }

  .card-actions {
    grid-template-columns: 1fr !important;
  }

  .card-actions .small-button:first-child {
    display: none !important;
  }
}

@media (max-width: 350px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }

  .product-card {
    grid-template-rows: 190px 1fr !important;
  }

  .image-button {
    height: 190px !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL PHONE CATEGORY OVERRIDE
   Phone keeps the desktop-style category area visible.
   No hamburger click is required.
   Keep this block at the ABSOLUTE END of styles.css.
   ========================================================= */
@media (max-width: 760px) {

  /* The categories are already visible, so these controls are unnecessary. */
  #headerMenuToggle,
  #filterPanel > summary,
  #filterPanel > .filters-summary,
  .category-burger-summary {
    display: none !important;
  }

  /* Keep the category panel in normal page flow, like the desktop section. */
  #filterPanel.filters-panel,
  #filterPanel {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 12px !important;

    overflow: visible !important;

    border: 1px solid rgba(183, 199, 220, 0.78) !important;
    border-radius: 14px !important;

    background:
      linear-gradient(180deg, #ffffff, #f8fbff),
      #ffffff !important;

    box-shadow: 0 16px 40px rgba(28, 58, 110, 0.10) !important;
  }

  /* Force the actual content to remain visible. */
  #filterPanel .filters-content {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 100% !important;
    height: auto !important;
    max-height: none !important;

    gap: 12px !important;
    padding: 0 !important;

    overflow: visible !important;
  }

  /* Keep the same Browse/Catalog heading used by desktop. */
  #filterPanel .filter-title {
    display: grid !important;
  }

  /* Price filter stays removed. */
  #filterPanel .price-filter-block,
  #filterPanel .range-row,
  #filterPanel #priceRange {
    display: none !important;
  }

  /* Two horizontal rows of category cards with touch scrolling. */
  #categoryTree.category-tree,
  #categoryTree {
    display: grid !important;

    grid-template-rows: repeat(2, auto) !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 155px !important;

    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;

    padding: 4px 2px 10px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    direction: ltr !important;
    scroll-snap-type: x proximity !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #categoryTree::-webkit-scrollbar {
    display: none !important;
  }

  #categoryTree .tree-group,
  #categoryTree .tree-children {
    display: contents !important;
  }

  #categoryTree .tree-item,
  #categoryTree .tree-child,
  #categoryTree .tree-root {
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;

    flex: none !important;
    scroll-snap-align: start !important;
  }

  #categoryTree .tree-item {
    grid-template-rows: 84px auto !important;
    min-height: 122px !important;
  }

  #categoryTree .category-card-picture {
    height: 84px !important;
  }

  #categoryTree .tree-item > span:not(.tree-caret):not(.category-card-picture) {
    padding: 9px 11px 11px !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 360px) {
  #categoryTree.category-tree,
  #categoryTree {
    grid-auto-columns: 145px !important;
  }

  #categoryTree .tree-item,
  #categoryTree .tree-child,
  #categoryTree .tree-root {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
  }
}


/* =========================================================
   ABSOLUTE FINAL MOBILE LOGO FIX
   IMPORTANT:
   - HTML <picture> selects the mobile/desktop image.
   - CSS NEVER replaces the image with content:url(...).
   - Keep this block at the absolute end of styles.css.
   ========================================================= */
@media (max-width: 760px) {
  .site-header .brand-link {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;

    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .site-header .brand-picture {
    display: block !important;

    width: min(245px, calc(100vw - 135px)) !important;
    max-width: 245px !important;
    height: 64px !important;

    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    flex: 0 1 auto !important;
    overflow: visible !important;
  }

  .site-header .brand-picture .brand-logo,
  .site-header .brand-logo {
    /* Cancel any old replaced-content rules from cached/older CSS. */
    content: normal !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: left center !important;

    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 430px) {
  .site-header .brand-picture {
    width: min(215px, calc(100vw - 120px)) !important;
    max-width: 215px !important;
    height: 58px !important;
  }
}

@media (max-width: 360px) {
  .site-header .brand-picture {
    width: min(190px, calc(100vw - 110px)) !important;
    max-width: 190px !important;
    height: 54px !important;
  }
}

/* ==========================================================
   BRAND FILTERS
   ========================================================== */

.brand-filter-block {
  min-width: 0;
}

.brand-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.brand-item {
  appearance: none;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(207, 220, 237, 0.95);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.brand-item:hover {
  border-color: rgba(7, 93, 204, 0.45);
  box-shadow: 0 7px 20px rgba(16, 49, 90, 0.08);
  transform: translateY(-1px);
}

.brand-item.is-active {
  border-color: #075dcc;
  box-shadow: 0 0 0 2px rgba(7, 93, 204, 0.09);
}

.brand-picture {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(218, 227, 239, 0.98);
  border-radius: 11px;
  background: #f8fbff;
  color: #075dcc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-picture-all,
.brand-picture-text,
.brand-picture.image-failed {
  background: #eef5ff;
}

.brand-label {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-item em {
  color: #7b8ba1;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .brand-tree {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    width: 100% !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
  }

  .brand-tree::-webkit-scrollbar {
    display: none;
  }

  .brand-item {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    flex: 0 0 145px;
    min-width: 145px;
    max-width: 145px;
    min-height: 70px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .brand-picture {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
  }

  .brand-item em {
    grid-column: 2;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE NAVBAR OVERRIDE
   Navbar follows the user while scrolling on phones
   ========================================================= */
@media (max-width: 760px) {
  .site-header {
    position: sticky !important;
    top: 8px !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1000 !important;
  }
}

/* =========================================================
   ABSOLUTE FINAL MOBILE HEADER FIX
   Keep navbar visible at all times while scrolling on phone.
   Uses FIXED instead of STICKY so parent overflow cannot break it.
   ========================================================= */
@media (max-width: 760px) {
  .site-header {
    position: fixed !important;
    top: 8px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;

    width: auto !important;
    max-width: none !important;
    margin: 0 !important;

    z-index: 1000 !important;

    background: rgba(255, 255, 255, 0.98) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;

    box-shadow: 0 8px 24px rgba(8, 25, 52, 0.14) !important;
  }

  /* The fixed header is removed from normal document flow,
     so reserve space for it to prevent page content hiding underneath. */
  .page-shell {
    padding-top: 165px !important;
  }
}

@media (max-width: 340px) {
  .page-shell {
    padding-top: 155px !important;
  }
}
/* =========================================================
   MOBILE NAVBAR - ALWAYS VISIBLE WHILE SCROLLING
   MUST BE THE LAST RULE IN THE CSS FILE
   ========================================================= */

@media screen and (max-width: 760px) {

  .site-header {
    position: fixed !important;

    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: auto !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    z-index: 999999 !important;

    transform: none !important;

    visibility: visible !important;
    opacity: 1 !important;

    background: rgba(255, 255, 255, 0.98) !important;

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    box-shadow:
      0 8px 30px rgba(8, 25, 52, 0.18) !important;
  }

  /* Prevent page content from going underneath navbar */
  .page-shell {
    padding-top: 155px !important;
  }

}