/* ============================================
   MAX4D BOUTIQUE — Modern interactive store
   ============================================ */
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ── Skip link ── */
.skip-link {
  position: absolute !important; left: 16px; top: -100px !important; z-index: 10000;
  margin: 0 !important; padding: 10px 18px;
  background: #fff; color: #111827; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px !important; }

/* ─── Store Hero ─── */
.store-hero {
  padding: 80px 20px 60px;
  display: flex;
  justify-content: center;
  background: radial-gradient(ellipse at top, rgba(232,106,18,0.10), transparent 60%);
}
.store-hero-inner {
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.store-hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.store-hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
}
.store-hero-search {
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-btn);
  padding: 14px 22px;
  transition: border-color .25s, box-shadow .25s;
}
/* --- Search suggestions dropdown --- */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(20,18,14,0.12);
  z-index: 1200;
  overflow: hidden;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  text-align: left;
  isolation: isolate;
}
.suggestions-list {
  overflow-y: auto;
  max-height: 360px;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: rgba(232, 106, 18, 0.06);
}
.suggestion-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.suggestion-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.suggestion-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.suggestion-item-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.suggestion-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1px;
}
.suggestion-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-top: 2px;
}
.suggestion-footer {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.02);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background .2s, color .2s;
}
.suggestion-footer:hover {
  background: var(--accent);
  color: #fff;
}
.suggestion-empty {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}
.store-hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,106,18,0.15);
}
.store-hero-search svg { color: var(--dim); flex-shrink: 0; }
.store-hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-family: var(--font); font-size: 16px;
}
.store-hero-search input::placeholder { color: var(--dim); }
#search-clear {
  color: var(--dim); font-size: 24px; line-height: 1;
  background: none; border: none; cursor: pointer; padding: 0 4px;
  border-radius: 8px;
}
#search-clear:hover { color: var(--accent); }
#search-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#search-clear:hover { color: var(--accent); }
.store-hero-stats {
  margin-top: 18px;
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.store-hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.store-hero-stats strong { font-size: 26px; font-weight: 600; color: var(--accent); }
.store-hero-stats span { font-size: 13px; color: var(--dim); margin-top: 2px; }

/* ─── Featured carousel ─── */
.featured-section { padding: 30px 0 50px; }
.featured-header { max-width: var(--max-w); margin: 0 auto 24px; padding: 0 20px; }
.featured-header h2 { font-size: 34px; font-weight: 600; }
.featured-header p { color: var(--muted); margin-top: 4px; }
.featured-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 24px; max-width: var(--max-w); margin: 0 auto;
  scrollbar-width: thin; scrollbar-color: var(--surface) transparent;
}
.featured-track::-webkit-scrollbar { height: 8px; }
.featured-track::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 8px; }
.featured-card {
  flex: 0 0 340px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative;
}
.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,106,18,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.featured-card .fc-img {
  height: 240px; background: #0c0d0e; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.featured-card .fc-img img { max-width: 86%; max-height: 86%; object-fit: contain; transition: transform .4s var(--ease); }
.featured-card:hover .fc-img img { transform: scale(1.06); }
.featured-card .fc-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-btn); text-transform: uppercase; letter-spacing: .04em;
}
.featured-card .fc-body { padding: 20px; }
.featured-card .fc-brand { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.featured-card .fc-name { font-size: 18px; font-weight: 700; margin: 6px 0 10px; line-height: 1.25; }
.featured-card .fc-price { font-size: 22px; font-weight: 600; color: var(--white); }
.featured-card .fc-price small { font-size: 12px; color: var(--dim); font-weight: 400; display: block; }

/* ─── Catalog layout ─── */
.catalog {
  --store-rail: 250px;
  --store-catalog-w: min(1440px, calc(100vw - 48px));
  max-width: var(--store-catalog-w);
  width: 100%;
  margin: 0 auto;
  padding: 20px 0 72px;
  box-sizing: border-box;
  display: block;
}
.catalog-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--store-rail) minmax(0, 1fr) var(--store-rail);
  gap: 20px;
  align-items: start;
}
.catalog-wrapper > .catalog-sidebar {
  grid-column: 1;
  grid-row: 1;
}
.catalog-wrapper > .catalog-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.catalog-wrapper > .store-service-panel {
  grid-column: 3;
  grid-row: 1;
}
.catalog-wrapper > .sidebar-overlay {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: unset;
  grid-row: unset;
}

/* ─── Filter bar ─── */
.filter-bar {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: rgba(16,17,18,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin: 0 0 18px;
  padding: 0;
}
.filter-bar-inner {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}
.filter-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filter-bar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--surface-border);
  transition: all .2s var(--ease);
  line-height: 1;
}
.cat-tab:hover { color: var(--white); background: var(--surface); }
.cat-tab:active { transform: scale(0.96); }
.cat-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-tab .count {
  opacity: .7;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.filter-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.filter-toggle {
  display: none;
  align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-btn); font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--surface-border); color: var(--white);
  transition: all .25s var(--ease);
}
.filter-toggle:hover { border-color: var(--accent); color: var(--accent); }
.filter-toggle:active { transform: scale(0.97); }
.filter-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-toggle.open { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort-select {
  flex-shrink: 0;
}
.sort-select select {
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--white);
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  appearance: none;
  min-height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select select:focus { border-color: var(--accent); }
.sort-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Catalog sidebar layout ─── */
.catalog-sidebar {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: 20px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
.store-light .catalog-sidebar {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.sidebar-header { display: none; }
.sidebar-scroll { overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 22px; }
.sidebar-scroll::-webkit-scrollbar { display: none; }
.sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat-link {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: all .2s var(--ease);
}
.sidebar-cat-link:hover { background: var(--surface-border); color: var(--white); }
.sidebar-cat-link.active { background: var(--accent); color: #fff; }

.filter-group h5 { font-size: 11px; font-weight: 700; color: var(--dim); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Premium Brand Checklist */
.brand-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  margin: 0 -4px;
}
.brand-filter-list::-webkit-scrollbar {
  width: 4px;
}
.brand-filter-list::-webkit-scrollbar-track {
  background: transparent;
}
.brand-filter-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
}
.brand-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.store-light .brand-filter-item:hover {
  background: rgba(0,0,0,0.03);
}
.brand-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}
.brand-checkbox {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}
.brand-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}
.brand-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  background: rgba(0,0,0,0.05);
  padding: 2px 7px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
}
.brand-filter-item.active .brand-count {
  background: rgba(232,106,18, 0.15);
  color: var(--accent);
}

/* Premium Segmented Control for Availability */
.store-light .filter-group .chip-row {
  background: rgba(0,0,0,0.03);
  padding: 3px;
  border-radius: 10px;
  display: flex;
  gap: 2px;
  border: 1px solid rgba(0,0,0,0.03);
}
.store-light .stock-chip {
  flex: 1;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
}
.store-light .stock-chip:hover {
  color: var(--white);
}
.store-light .stock-chip:active { transform: scale(0.97); }
.store-light .stock-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.store-light .stock-chip.active {
  background: #ffffff;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Premium Slider styling */
.price-range { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.store-light .price-range input[type="range"] {
  flex: 1; min-width: 140px; accent-color: var(--accent); height: 5px;
  background: rgba(0,0,0,0.06); border-radius: 10px; outline: none;
  appearance: none; -webkit-appearance: none;
}
.store-light .price-range input[type="range"]::-webkit-slider-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 8px rgba(232,106,18, 0.4); cursor: pointer;
  border: 2px solid #fff; transition: transform 0.1s; -webkit-appearance: none;
}
.store-light .price-range input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
#price-range-val { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: var(--r-btn); font-size: 13px; font-weight: 500;
  background: var(--bg); border: 1px solid var(--surface-border); color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--accent); }
.chip:active { transform: scale(0.97); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.catalog-main {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

/* ─── Active filters ─── */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20,18,14,0.03);
}
.active-filters-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a847a;
  margin-right: 4px;
}
.active-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(232,106,18,0.10); border: 1px solid rgba(232,106,18,0.22); color: var(--accent);
}
.active-filter button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; border-radius: 6px; }
.active-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.active-filters-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: #8a847a;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.active-filters-clear:hover { color: var(--accent); background: rgba(232,106,18,0.08); }

/* ─── Product grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  justify-items: stretch;
  align-items: stretch;
}
.product-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, opacity .35s var(--ease);
  position: relative;
  animation: cardIn .45s var(--ease) backwards;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.product-card--enter {
  animation: cardIn .5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pc-img img.img-fallback,
.suggestion-item-img img.img-fallback,
.ci-img img.img-fallback {
  opacity: 1;
  object-fit: contain;
  background: #f3f4f6;
}
.pc-img img {
  opacity: 0;
  transition: opacity .35s var(--ease), transform .4s var(--ease);
}
.pc-img img.img-fallback,
.pc-img img.is-loaded {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232,106,18,0.4);
  box-shadow: 0 16px 40px rgba(20,18,14,0.28);
}
.product-card:active { transform: translateY(-2px) scale(0.99); }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pc-img {
  height: 220px; background: #0c0d0e; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; padding: 18px;
}
.store-light .pc-img { background: #f5f5f7; }
.pc-img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
.product-card:hover .pc-img img.is-loaded { transform: scale(1.07); }
.pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(16,17,18,0.85); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-btn);
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.pc-badge.in_stock { background: rgba(34,197,94,0.18); color: #4ade80; }
.pc-badge.out_of_stock { background: rgba(234,179,8,0.18); color: #fbbf24; }
.pc-quick {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
}
.product-card:hover .pc-quick { opacity: 1; transform: translateY(0); }
.pc-quick:hover { background: var(--accent-hover); }
.pc-quick:active { transform: scale(0.92); }
.pc-quick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-brand { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pc-name {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 39px;
}
.pc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.pc-price { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1; }
.pc-price small { font-size: 11px; color: var(--dim); font-weight: 400; display: block; margin-top: 3px; }
.pc-add {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--surface-border); color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.pc-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }
.pc-add:active { transform: scale(0.92); }
.pc-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-add.added { background: #22c55e; border-color: #22c55e; }

/* ─── Loading + empty ─── */
.grid-loading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 0;
  width: 100%;
}
.sk-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.store-light .sk-card { background: #fff; border-color: rgba(0,0,0,0.05); }
.sk-img { height: 220px; background: var(--surface); }
.store-light .sk-img { background: #f3f4f6; }
.sk-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.sk-line {
  height: 10px; border-radius: 6px;
  background: var(--surface-border);
  position: relative; overflow: hidden;
}
.store-light .sk-line { background: rgba(0,0,0,0.06); }
.sk-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: skShimmer 1.3s linear infinite;
  transform: translateX(-100%);
}
.store-light .sk-line::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
}
.sk-line.w-sm { width: 38%; height: 9px; }
.sk-line.w-md { width: 72%; height: 13px; }
.sk-line.w-lg { width: 50%; height: 16px; }
@keyframes skShimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk-line::after { animation: none; } }

.spinner { display: none; }
.grid-loading-fallback { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 0; color: var(--dim); }
.empty-state {
  text-align: center; padding: 72px 20px 80px;
  color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--r-md);
  max-width: 560px; margin: 8px auto 0;
}
.store-light .empty-state { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.empty-state svg { color: var(--surface-border); }
.store-light .empty-state svg { color: rgba(0,0,0,0.12); }
.empty-state h3 { font-size: 22px; color: var(--white); letter-spacing: -0.02em; text-wrap: balance; }
.store-light .empty-state h3 { color: #111827; }
.empty-state p { max-width: 44ch; line-height: 1.55; }
.empty-state .es-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.empty-state .btn-primary { background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.empty-state .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.empty-state .btn-primary:active { transform: scale(0.98); }
.empty-state .btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.empty-state .btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--surface-border); padding: 12px 22px; border-radius: 100px; font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; cursor: pointer; font-family: var(--font); }
.empty-state .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.empty-state.is-error svg { color: rgba(239, 68, 68, 0.35); }
.store-light .empty-state.is-error h3 { color: #b91c1c; }
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more-wrap .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}
.btn-outline {
  padding: 12px 28px; border-radius: var(--r-btn); font-weight: 600; font-size: 14px;
  border: 1px solid var(--surface-border); color: var(--white); background: var(--surface);
  transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:active { transform: scale(0.98); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Trust strip ─── */
.trust-section { background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.trust-inner {
  max-width: min(1440px, calc(100vw - 48px)); margin: 0 auto; padding: 40px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item h4 { font-size: 15px; font-weight: 700; }
.trust-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
  }
}
@media (max-width: 480px) {
  .trust-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }
}

/* ─── Cart button in navbar ─── */
.cart-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--surface-border); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s var(--ease);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center;
  padding: 0 5px; transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.show { transform: scale(1); }
@media (min-width: 861px) { .navbar-cta { margin-left: 8px; } }

/* ─── Product Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg); border: 1px solid var(--surface-border); border-radius: var(--r-md);
  max-width: 980px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 8px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1;
  background: rgba(16,17,18,0.8); border: 1px solid var(--surface-border); color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.modal-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.modal-gallery { padding: 30px; background: #0c0d0e; display: flex; flex-direction: column; gap: 16px; }
.modal-main-img {
  height: 380px; background: #101112; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--surface-border);
}
.modal-main-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-thumb {
  width: 64px; height: 64px; border-radius: 10px; background: var(--surface);
  border: 2px solid transparent; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; transition: border-color .2s;
}
.modal-thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }
.modal-thumb.active { border-color: var(--accent); }
.modal-info { padding: 36px 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.modal-info .mi-brand { font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.modal-info .mi-name { font-size: 28px; font-weight: 600; line-height: 1.2; }
.modal-info .mi-price { font-size: 32px; font-weight: 600; color: var(--accent); }
.modal-info .mi-price small { font-size: 14px; color: var(--dim); font-weight: 400; display: block; margin-top: 2px; }
.modal-info .mi-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; width: fit-content; }
.modal-info .mi-stock.in_stock { color: #4ade80; }
.modal-info .mi-stock.out_of_stock { color: #fbbf24; }
.modal-info .mi-desc {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-height: 180px; overflow-y: auto; padding-right: 6px;
  white-space: pre-line;
}
.modal-info .mi-desc::-webkit-scrollbar { width: 5px; }
.modal-info .mi-desc::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 5px; }
.modal-info .mi-actions { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.mi-full-link {
  display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500;
  color: var(--accent); text-decoration: none; transition: color .2s;
}
.mi-full-link:hover { color: var(--accent-hover); }
.qty-stepper {
  display: flex; align-items: center; border: 1px solid var(--surface-border); border-radius: var(--r-btn);
  background: var(--surface); overflow: hidden;
}
.qty-stepper button { width: 38px; height: 44px; background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; transition: background .2s; }
.qty-stepper button:hover { background: var(--surface-border); }
.qty-stepper span { min-width: 40px; text-align: center; font-weight: 600; }
.mi-add-btn {
  flex: 1; padding: 12px 22px; border-radius: var(--r-btn); font-weight: 700; font-size: 15px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s var(--ease);
}
.mi-add-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,106,18,0.35); }
.mi-meta { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--surface-border); display: flex; flex-direction: column; gap: 8px; }
.mi-meta-row { display: flex; justify-content: space-between; font-size: 13px; }
.mi-meta-row span:first-child { color: var(--dim); }
.mi-meta-row span:last-child { color: var(--white); font-weight: 500; }

/* ─── Cart drawer ─── */
.cart-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(0,0,0,0.6); animation: fadeIn .25s var(--ease); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 190;
  width: 100%; max-width: 440px; background: var(--bg);
  border-left: 1px solid var(--surface-border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--surface-border);
}
.cart-drawer-header h3 { font-size: 22px; font-weight: 600; }
.cart-drawer-close { font-size: 28px; line-height: 1; background: none; border: none; color: var(--dim); cursor: pointer; transition: color .2s; }
.cart-drawer-close:hover { color: var(--accent); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer-body::-webkit-scrollbar { width: 6px; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 6px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cart-empty svg { color: var(--surface-border); }
.cart-empty p { font-size: 15px; }
.cart-empty .btn { margin-top: 6px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--surface-border); }
.cart-item:last-child { border-bottom: none; }
.ci-img { width: 76px; height: 76px; border-radius: 12px; background: var(--surface); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ci-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ci-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-price { font-size: 14px; font-weight: 700; color: var(--accent); }
.ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.ci-qty { display: flex; align-items: center; gap: 0; background: var(--surface); border-radius: var(--r-btn); border: 1px solid var(--surface-border); }
.ci-qty button { width: 28px; height: 28px; background: none; border: none; color: var(--white); font-size: 16px; cursor: pointer; }
.ci-qty button:hover { color: var(--accent); }
.ci-qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 600; }
.ci-remove { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px; transition: color .2s; display: flex; align-items: center; gap: 4px; }
.ci-remove:hover { color: #ef4444; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--surface-border); display: flex; flex-direction: column; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { font-size: 15px; color: var(--muted); }
.cart-total strong { font-size: 26px; font-weight: 600; color: var(--accent); }
.cart-note { font-size: 12px; color: var(--dim); text-align: center; }
#checkout-btn { width: 100%; justify-content: center; }

/* ─── Toast notification ─── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 250; background: var(--surface); border: 1px solid rgba(34,197,94,0.4);
  border-radius: var(--r-md); padding: 14px 22px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--white);
  opacity: 0; transition: all .3s var(--ease); pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { color: #4ade80; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .store-hero { padding: 40px 12px 24px; }
  .store-hero-title { font-size: clamp(26px, 7vw, 32px); }
  .store-hero-sub { font-size: 14px; }
  .store-hero-search { padding: 10px 12px; }
  .store-hero-search input { font-size: 14px; }
  .store-hero-stats { gap: 16px; }
  .store-hero-stats strong { font-size: 18px; }
  .store-search-container { padding: 14px 12px 6px; }
  .filter-bar {
    top: 48px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .filter-bar-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .filter-bar-top {
    gap: 8px;
  }
  .cat-tabs {
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filter-controls {
    gap: 6px;
    flex-shrink: 0;
  }
  .cat-tab { padding: 7px 10px; font-size: 12px; flex-shrink: 0; }
  .cat-tab .count { display: none; }
  .navbar-cta { display: none; }
  .cart-btn { margin-right: 0; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px 12px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; max-width: 100%; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { padding: 14px; }
  .modal-main-img { height: 220px; }
  .modal-info { padding: 16px 14px; gap: 10px; }
  .modal-info .mi-name { font-size: 20px; }
  .modal-info .mi-price { font-size: 22px; }
  .modal-info .mi-desc { max-height: 110px; font-size: 13px; }
  .modal-info .mi-actions { flex-wrap: wrap; gap: 8px; }
  .qty-stepper { flex-shrink: 0; }
  .mi-add-btn { flex: 1 1 auto; min-width: 120px; padding: 10px 14px; font-size: 14px; }
  .featured-card { flex: 0 0 240px; }
  .featured-card .fc-img { height: 160px; }
  .featured-card .fc-body { padding: 12px; }
  .featured-card .fc-name { font-size: 14px; }
  .featured-card .fc-price { font-size: 16px; }
  .product-grid,
  .grid-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog { padding: 12px 12px 48px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pc-img { height: 128px; padding: 8px; }
  .pc-name { font-size: 12px; min-height: 30px; -webkit-line-clamp: 2; }
  .pc-brand { font-size: 10px; }
  .pc-price { font-size: 13px; }
  .pc-price small { display: none; }
  .pc-body { padding: 8px 8px 10px; gap: 3px; }
  .pc-foot { padding-top: 2px; }
  .pc-add { width: 28px; height: 28px; border-radius: 8px; }
  .pc-add svg { width: 14px; height: 14px; }
  .pc-quick { width: 28px; height: 28px; opacity: 1; transform: none; bottom: 8px; right: 8px; }
  .pc-quick svg { width: 14px; height: 14px; }
  .pc-badge { top: 8px; left: 8px; font-size: 9px; padding: 2px 6px; }
  .store-hero-title { font-size: 24px; }
  .filter-toggle span { display: none; }
  .cat-tab { padding: 5px 9px; font-size: 11.5px; }
  .cat-tab .count { font-size: 10px; margin-left: 2px; }
  .filter-toggle { padding: 6px 10px; font-size: 12px; }
  .sort-select select { padding: 6px 24px 6px 10px; font-size: 12px; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 16px 10px; gap: 10px; }
  .trust-item { gap: 8px; }
  .trust-item h4 { font-size: 13px; }
  .trust-item p { font-size: 11px; }
  .modal-main-img { height: 180px; }
  .modal-info .mi-name { font-size: 18px; }
  .modal-info .mi-price { font-size: 20px; }
  .modal-info .mi-desc { font-size: 12px; max-height: 90px; }
  .modal-close { width: 32px; height: 32px; font-size: 20px; top: 8px; right: 8px; }
  .modal-thumbs { gap: 6px; }
  .modal-thumb { width: 44px; height: 44px; }
  .cart-drawer { max-width: 100%; }
  .cart-drawer-header { padding: 14px 12px; }
  .cart-drawer-body { padding: 8px 12px; }
  .cart-item { gap: 8px; padding: 10px 0; }
  .ci-img { width: 56px; height: 56px; }
  .ci-name { font-size: 12px; }
  .ci-price { font-size: 12px; }
  .ci-qty button { width: 24px; height: 24px; }
  .cart-total strong { font-size: 18px; }
  .cart-empty { padding: 28px 12px; }
  .empty-state { padding: 32px 12px; }
  .empty-state h3 { font-size: 16px; }
  .featured-track { padding: 8px 12px 14px; gap: 10px; }
  .featured-card { flex: 0 0 200px; }
  .featured-card .fc-img { height: 130px; }
  .featured-card .fc-name { font-size: 13px; }
  .featured-card .fc-price { font-size: 15px; }
  .featured-header { padding: 0 12px; }
  .featured-header h2 { font-size: 20px; }
  .catalog { padding: 10px 10px 48px; }
  .filter-bar {
    margin: 0 0 12px;
    padding: 0;
    border-radius: 12px;
  }
  .active-filters { margin-bottom: 10px; gap: 6px; }
  .active-filter { font-size: 11px; padding: 3px 6px 3px 10px; }
  .btn-outline { padding: 8px 16px; font-size: 12px; }
  .load-more-wrap { margin-top: 22px; }
  .store-search-container { padding: 12px 10px 4px; }
  .store-search-container .store-hero-search { padding: 12px 14px; border-radius: 16px; }
  .grid-loading { gap: 8px; }
  .sk-img { height: 128px; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pc-img { height: 112px; padding: 6px; }
  .pc-body { padding: 6px 6px 8px; }
  .pc-name { font-size: 11px; min-height: 28px; }
  .pc-price { font-size: 12px; }
  .cat-tab { padding: 5px 8px; font-size: 11px; }
  .modal-info .mi-actions { flex-direction: column; align-items: stretch; }
  .qty-stepper { width: 100%; justify-content: center; }
  .mi-add-btn { width: 100%; }
}
@media (max-width: 1280px) {
  .catalog {
    --store-rail: 220px;
    --store-catalog-w: min(1280px, calc(100vw - 40px));
  }
  .catalog-wrapper {
    gap: 16px;
  }
  .product-grid,
  .grid-loading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1100px) {
  .catalog {
    --store-rail: 200px;
    --store-catalog-w: min(1100px, calc(100vw - 32px));
  }
  .catalog-wrapper {
    grid-template-columns: var(--store-rail) minmax(0, 1fr);
    gap: 16px;
  }
  .catalog-wrapper > .store-service-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .product-grid,
  .grid-loading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .catalog {
    --store-catalog-w: 100%;
    padding: 16px 16px 64px;
  }
  .catalog-wrapper {
    display: block;
    max-width: 100%;
  }
  .catalog-wrapper > .catalog-sidebar,
  .catalog-wrapper > .catalog-main,
  .catalog-wrapper > .store-service-panel,
  .catalog-wrapper > .sidebar-overlay {
    grid-column: auto;
    grid-row: auto;
  }
  .catalog-main { max-width: 100%; }
  .product-grid,
  .grid-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filter-toggle {
    display: flex;
  }
  .catalog-sidebar {
    position: fixed; top: 0; left: 0; width: 290px; max-width: 85vw; height: 100vh; z-index: 60;
    border-radius: 0; transform: translateX(-100%); transition: transform .35s var(--ease);
  }
  .catalog-sidebar.open { transform: translateX(0); }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; }
  .sidebar-header h4 { margin: 0; font-size: 18px; color: var(--white); }
  .sidebar-close {
    width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1;
    background: var(--surface-border); border: none; color: var(--white); cursor: pointer;
  }
  .sidebar-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .sidebar-scroll { padding-top: 8px; }
}

/* ============================================
   LIGHT THEME OVERRIDES (.store-light on body)
   ============================================ */
.store-light .filter-bar {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(20,18,14,0.04);
  border-radius: 16px;
}
.store-light .filter-bar.scrolled {
  box-shadow: 0 10px 28px rgba(20,18,14,0.08);
}
.store-light .cat-tab {
  color: #5c574e;
  background: #f5f5f7;
  border-color: transparent;
}
.store-light .cat-tab:hover {
  color: #14120f;
  background: #ececef;
}
.store-light .cat-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.store-light .filter-bar-label {
  color: #8a847a;
}
.store-light .sort-select select {
  background: #f5f5f7;
  border-color: transparent;
  color: #14120f;
}
.store-light .product-card {
  background: #fff; border-color: rgba(0,0,0,0.08);
}
.store-light .product-card:hover { border-color: rgba(232,106,18,0.4); box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.store-light .pc-img,
.store-light .featured-card .fc-img { background: #f5f5f7; }
.store-light .pc-badge { background: rgba(255,255,255,0.9); color: #555; }
.store-light .pc-badge.in_stock { background: rgba(34,197,94,0.12); color: #16a34a; }
.store-light .pc-badge.out_of_stock { background: rgba(234,179,8,0.12); color: #ca8a04; }
.store-light .pc-add { background: #f5f5f7; border-color: rgba(0,0,0,0.08); color: #1a1a1a; }
.store-light .pc-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.store-light .featured-card { background: #fff; border-color: rgba(0,0,0,0.08); }
.store-light .featured-card:hover { border-color: rgba(232,106,18,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.store-light .store-hero {
  background: radial-gradient(circle at top, rgba(232,106,18,0.08) 0%, rgba(232,106,18,0.01) 60%, transparent 100%);
  padding: 100px 20px 70px;
}
.store-light .store-hero-title {
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.store-light .store-hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.store-light .store-hero-sub {
  color: #4b5563;
  font-size: 19px;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.6;
}
.store-light .store-hero-search {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(20,18,14,0.05);
  padding: 16px 22px;
  border-radius: 20px;
  max-width: 720px;
}
.store-light .store-hero-search:focus-within {
  border-color: rgba(232,106,18,0.35);
  box-shadow: 0 10px 28px rgba(232,106,18,0.12);
}
.store-light .store-hero-search input {
  color: #111827;
  font-size: 16px;
}
.store-light .store-hero-search input::placeholder { color: #9ca3af; }
.store-light .store-hero-search svg { color: #6b7280; }
.store-light .store-hero-stats strong { color: var(--accent); font-size: 30px; font-weight: 700; }
.store-light .store-hero-stats span { color: #6b7280; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.store-light .filter-toggle { background: #f5f5f7; border-color: rgba(0,0,0,0.08); color: #1a1a1a; }
.store-light .chip { background: #f5f5f7; border-color: rgba(0,0,0,0.08); color: #555; }
.store-light .chip:hover { color: #1a1a1a; border-color: var(--accent); }
.store-light .price-range input[type="range"] { background: #e0e0e0; }
.store-light .active-filter { background: rgba(232,106,18,0.08); border-color: rgba(232,106,18,0.25); color: var(--accent); }
.store-light .modal { background: #fff; border-color: rgba(0,0,0,0.08); }
.store-light .modal-gallery { background: #f5f5f7; }
.store-light .modal-main-img { background: #fff; border-color: rgba(0,0,0,0.08); }
.store-light .modal-thumb { background: #f5f5f7; }
.store-light .modal-close { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08); color: #555; }
.store-light .mi-name { color: #1a1a1a; }
.store-light .mi-desc { color: var(--muted); }
.store-light .mi-meta-row span:first-child { color: var(--dim); }
.store-light .mi-meta-row span:last-child { color: #1a1a1a; }
.store-light .qty-stepper { background: #f5f5f7; border-color: rgba(0,0,0,0.08); }
.store-light .qty-stepper button { color: #1a1a1a; }
.store-light .qty-stepper button:hover { background: rgba(0,0,0,0.06); }
.store-light .cart-drawer { background: #fff; border-left-color: rgba(0,0,0,0.08); }
.store-light .cart-drawer-header { border-bottom-color: rgba(0,0,0,0.08); }
.store-light .cart-drawer-header h3 { color: #1a1a1a; }
.store-light .cart-item { border-bottom-color: rgba(0,0,0,0.08); }
.store-light .ci-name { color: #1a1a1a; }
.store-light .ci-img { background: #f5f5f7; }
.store-light .ci-qty { background: #f5f5f7; border-color: rgba(0,0,0,0.08); }
.store-light .ci-qty button { color: #1a1a1a; }
.store-light .cart-drawer-footer { border-top-color: rgba(0,0,0,0.08); }
.store-light .cart-total span { color: var(--muted); }
.store-light .cart-note { color: var(--dim); }
.store-light .btn-outline { background: #f5f5f7; border-color: rgba(0,0,0,0.08); color: #1a1a1a; }
.store-light .toast { background: #fff; border-color: rgba(34,197,94,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.store-light .featured-section .featured-header h2 { color: #1a1a1a; }
.store-light .featured-section .featured-header p { color: var(--muted); }
.store-light .fc-brand { color: var(--accent); }
.store-light .fc-name { color: #1a1a1a; }
.store-light .fc-price { color: #1a1a1a; }
.store-light .fc-price small { color: var(--dim); }
.store-light .empty-state { color: var(--dim); }
.store-light .empty-state h3 { color: #1a1a1a; }
.store-light .spinner { border-color: rgba(0,0,0,0.1); border-top-color: var(--accent); }
.store-light .catalog-sidebar { background: #fff; border-color: rgba(0,0,0,0.08); }
.store-light .sidebar-cat-link { color: #555; }
.store-light .sidebar-cat-link:hover { background: #f5f5f7; color: #1a1a1a; }
.store-light .sidebar-cat-link.active { background: var(--accent); color: #fff; }
.store-light .filter-group h5 { color: var(--dim); }
.store-light .chip { background: #f5f5f7; border-color: rgba(0,0,0,0.08); color: #555; }
.store-light .chip:hover { color: #1a1a1a; border-color: var(--accent); }
.store-light .price-range input[type="range"] { background: #e0e0e0; }
.store-light .sidebar-header h4 { color: #1a1a1a; }
.store-light .sidebar-close { background: #f5f5f7; color: #1a1a1a; }
.store-light .sidebar-overlay { background: rgba(0,0,0,0.4); }
.store-light .hero-badge { background: rgba(232,106,18,0.1); color: var(--accent); }
.store-light .whatsapp-fab {
  background: #25D366 !important;
  color: #fff !important;
  right: 24px !important;
  left: auto !important;
}
.store-light .whatsapp-fab svg {
  fill: #fff !important;
  width: 26px !important;
  height: 26px !important;
}
.store-light .footer { background: #0c0d0e; }
.store-light .footer p, .store-light .footer-col a { color: #999; }
.store-light .footer-col a:hover { color: var(--accent); }
.store-light .footer-bottom { border-top-color: rgba(255,255,255,0.08); color: #666; }

/* === Premium UI/UX Custom Styling Overrides === */
.store-light .product-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}
.store-light .product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(232,106,18, 0.09), 0 4px 16px rgba(0, 0, 0, 0.02);
}
.store-light .modal-overlay {
  background: rgba(16, 17, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.store-light .modal {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.store-light .cart-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
}
.store-light #cart-promo-input {
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.store-light #cart-promo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,106,18, 0.12);
}
.store-light #cart-promo-apply {
  transition: background 0.25s;
}
.store-light #cart-promo-apply:hover {
  background: var(--accent-hover) !important;
}

/* === Store Hero Banner === */
/* ── Hero Banner (full-bleed bg + product overlay right) ── */
.store-hero-banner {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #0a0a0b;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
}
.sh-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: 0;
}
.sh-banner-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(10,10,11,0.82) 0%, rgba(10,10,11,0.50) 40%, rgba(10,10,11,0.10) 65%, rgba(10,10,11,0.55) 100%),
    linear-gradient(to bottom, rgba(10,10,11,0.25) 0%, transparent 50%, rgba(10,10,11,0.55) 100%);
}
.sh-banner-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; gap: 12px;
  margin-left: 8%; max-width: 600px; box-sizing: border-box;
}
.sh-product-img {
  position: absolute; right: 4%; top: 50%; z-index: 5;
  transform: translateY(-50%);
  max-width: 40%; max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 26px 54px rgba(0,0,0,0.55));
  opacity: 0; animation: shFade .8s ease forwards; animation-delay: .3s;
}
/* Staggered entry */
@keyframes shRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shFade { from { opacity: 0; } to { opacity: 1; } }
.sh-banner-content > * { opacity: 0; animation: shRise .6s cubic-bezier(0.16,1,0.3,1) forwards; }
.sh-banner-content > :nth-child(1) { animation-delay: .05s; }
.sh-banner-content > :nth-child(2) { animation-delay: .12s; }
.sh-banner-content > :nth-child(3) { animation-delay: .2s; }
.sh-banner-content > :nth-child(4) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .sh-banner-content > *, .sh-product-img { opacity: 1; animation: none; }
}

.sh-banner-tag {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.sh-banner-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: #fff;
  margin: 0;
  line-height: 1.04;
  font-family: var(--font-heading);
  text-wrap: balance;
}
.sh-banner-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.55;
  max-width: 520px;
}
.sh-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn-banner-primary {
  background: #fff;
  color: #111827;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  font-family: var(--font);
  display: inline-flex; align-items: center;
  box-shadow: 0 6px 18px rgba(10,10,11,0.28);
}
.btn-banner-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,10,11,0.4);
}
.btn-banner-primary:active { transform: translateY(0) scale(0.98); }
.btn-banner-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-banner-secondary {
  background: transparent;
  color: #fff;
  padding: 11px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
  font-family: var(--font);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-banner-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-banner-secondary:active { transform: translateY(0) scale(0.98); }
.btn-banner-secondary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* Mobile */
@media (max-width: 860px) {
  .store-hero-banner { height: 440px; }
  .sh-bg-img { object-position: 65% center; }
  .sh-product-img { max-width: 52%; max-height: 60%; right: 4%; opacity: 1; animation: none; }
  .sh-banner-content {
    margin-left: 0; padding: 0 20px;
    max-width: 100%; text-align: left; align-items: flex-start;
  }
  .sh-banner-subtitle { font-size: 15px; max-width: 100%; }
  .sh-banner-actions { flex-direction: column; width: 100%; gap: 10px; }
  .btn-banner-primary, .btn-banner-secondary { width: 100%; box-sizing: border-box; justify-content: center; }
}
@media (max-width: 480px) {
  .store-hero-banner { height: 420px; }
  .sh-product-img { max-width: 60%; opacity: 0.85; }
}

/* === Store Search container spacing === */
/* !important: beat .store-light > * { z-index:1 } so suggestions sit above catalog */
.store-light > .store-search-container,
.store-search-container {
  width: 100%;
  max-width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 18px 0 8px;
  border-bottom: none;
  position: relative !important;
  z-index: 60 !important;
}
.store-search-container .store-hero-search {
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 61;
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
}
.store-search-stack {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.store-search-trust {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #8a847a;
  text-align: center;
  line-height: 1.4;
}
.store-search-trust .sep {
  margin: 0 6px;
  opacity: .55;
}
.store-search-trust #store-trust-count {
  color: #14120f;
  font-weight: 700;
}
.store-search-container .search-suggestions {
  z-index: 62;
  border-radius: 20px;
}
.store-light > .catalog,
.catalog {
  position: relative;
  z-index: 1;
}

.store-light > .clean-banner.clean-banner--store {
  max-width: min(1440px, calc(100vw - 48px));
  margin: 12px auto 0;
  padding: 18px 28px 20px;
  gap: 24px;
  align-items: center;
}

.store-light > .clean-banner.clean-banner--store h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  margin-top: 10px;
}

.store-light > .clean-banner.clean-banner--store .clean-banner-sub {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 46ch;
}

.store-light > .clean-banner.clean-banner--store .clean-banner-img {
  max-height: 200px;
}

.store-light .mega-navbar {
  max-width: min(1440px, calc(100vw - 48px));
}

.store-light .trust-section .trust-inner {
  max-width: min(1440px, calc(100vw - 48px));
}

.store-clients {
  max-width: min(1440px, calc(100vw - 48px));
  margin: 28px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.store-clients .svc-clients-inner {
  border-radius: 18px;
}

@media (max-width: 1024px) {
  .store-clients {
    padding: 0 16px;
    margin-top: 20px;
  }
}

/* Mobile: must come AFTER desktop max-width rules so they win the cascade */
@media (max-width: 860px) {
  .store-light > .store-search-container,
  .store-search-container {
    max-width: none;
    width: auto;
    margin: 0 12px;
    padding: 14px 0 6px;
    box-sizing: border-box;
  }
  .store-search-container .store-hero-search,
  .store-search-stack {
    max-width: none;
  }
  .store-search-trust {
    font-size: 12px;
    padding: 0 4px;
  }
  .store-light > .clean-banner.clean-banner--store {
    max-width: none;
    width: auto;
    margin: 8px 12px 0;
    padding: 16px 14px 18px;
    gap: 12px;
    border-radius: 18px;
  }
  .store-light > .clean-banner.clean-banner--store h1 {
    font-size: clamp(22px, 6.5vw, 28px);
  }
  .store-light > .clean-banner.clean-banner--store .clean-banner-sub {
    font-size: 13.5px;
    max-width: none;
  }
  .store-light > .clean-banner.clean-banner--store .clean-banner-img {
    max-height: 160px;
  }
  .store-light .mega-navbar {
    max-width: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .store-light .trust-section .trust-inner {
    max-width: none;
  }
  .store-clients {
    max-width: none;
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .store-light > .store-search-container,
  .store-search-container {
    margin: 0 8px;
    padding: 12px 0 4px;
  }
  .store-light > .clean-banner.clean-banner--store {
    margin: 6px 8px 0;
    padding: 14px 12px 16px;
    border-radius: 14px;
  }
  .store-light > .clean-banner.clean-banner--store .clean-banner-img {
    max-height: 140px;
  }
  .store-clients {
    margin-left: 8px;
    margin-right: 8px;
  }
  .catalog {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* === Visual Category Browse Grid === */
.store-categories-browse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 24px auto 32px;
  max-width: var(--max-w);
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.store-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font);
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.store-cat-card .scc-img {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}
.store-cat-card .scc-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.store-cat-card span {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  transition: color 0.25s var(--ease);
}
.store-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.store-cat-card:hover .scc-img {
  transform: scale(1.06);
}
.store-cat-card.active {
  border-color: var(--accent);
  background: rgba(232,106,18, 0.02);
  box-shadow: 0 8px 24px rgba(232,106,18, 0.05);
}
.store-cat-card.active span {
  color: var(--accent);
}
@media (max-width: 768px) {
  .store-categories-browse {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }
  .store-cat-card {
    padding: 12px 8px;
    border-radius: 12px;
  }
  .store-cat-card .scc-img {
    width: 48px;
    height: 48px;
  }
  .store-cat-card span {
    font-size: 11.5px;
  }
}

