/* ============================================================
   SHOP PAGE — shop.css
   Extends design tokens from style.css (shared custom properties)
   ============================================================ */


/* ── SHOP HERO ── */
.shop-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, #111111 100%),
    url('../img/bg-map.jpg') 50% / cover no-repeat;
  background-color: #111111;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 0;
}

.shop-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
}

.shop-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--c-white);
  margin-bottom: 14px;
}

.shop-hero__heading span {
  color: var(--c-green);
}

.shop-hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 380px;
  line-height: 1.5;
}

.shop-hero__stats {
  display: flex;
  gap: 36px;
  flex-shrink: 0;
  align-items: flex-end;
}

.shop-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.shop-hero__stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--c-green);
  line-height: 1;
}

.shop-hero__stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-align: right;
}

/* Category tabs row */
.shop-hero__tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.shop-cat-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.shop-cat-tabs::-webkit-scrollbar { display: none; }

.shop-cat-tab {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 20px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

.shop-cat-tab:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
}

.shop-cat-tab--active {
  color: var(--c-green);
  border-color: rgba(153, 238, 45, 0.28);
  background: rgba(153, 238, 45, 0.07);
}


/* ── SHOP SECTION ── */
.shop-section {
  padding-top: 40px;
  padding-bottom: 80px;
}


/* ── TOOLBAR ── */
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Search */
.shop-search {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.shop-search__input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 44px 0 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}

.shop-search__input::placeholder { color: rgba(255, 255, 255, 0.32); }

.shop-search__input:focus {
  border-color: rgba(153, 238, 45, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

.shop-search__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* Suggestions dropdown */
.shop-search__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.shop-search__suggestions.is-open { display: flex; }

.shop-search__suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: background .15s;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
}

.shop-search__suggestion:hover { background: rgba(255, 255, 255, 0.06); }

.shop-search__suggestion-name { flex: 1; }

.shop-search__suggestion-price {
  font-size: 13px;
  color: var(--c-green);
  font-weight: 600;
}

.shop-search__suggestion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sort */
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.shop-sort__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.shop-sort__select {
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 32px 0 12px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  min-width: 168px;
  transition: border-color .2s;
}

.shop-sort__select:focus { border-color: rgba(153, 238, 45, 0.38); }

.shop-sort__select option { background: #1a1a1a; }

/* Results count */
.shop-toolbar__count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* Filter toggle (mobile) */
.shop-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}

.shop-filter-toggle:hover { background: rgba(255, 255, 255, 0.09); }
.shop-filter-toggle svg { width: 18px; height: 18px; }

.shop-filter-toggle__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--c-green);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: none;
}

.shop-filter-toggle__badge.has-filters { display: inline-flex; }


/* ── QUICK FILTER CHIPS ── */
.shop-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.shop-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.shop-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--c-white);
}

.shop-chip--active {
  background: rgba(153, 238, 45, 0.1);
  border-color: rgba(153, 238, 45, 0.32);
  color: var(--c-green);
}

.shop-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── SHOP LAYOUT ── */
.shop-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}


/* ── FILTER PANEL ── */
.shop-filter {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.shop-filter::-webkit-scrollbar { width: 4px; }
.shop-filter::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }

.filter-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

.filter-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}

.filter-section__arrow {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.filter-section.is-collapsed .filter-section__arrow { transform: rotate(-90deg); }
.filter-section.is-collapsed .filter-section__body { display: none; }

/* Price range */
.price-range { display: flex; flex-direction: column; gap: 14px; }

.price-range__track-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.price-range__fill {
  position: absolute;
  height: 100%;
  background: var(--c-green);
  pointer-events: none;
}

.price-range__input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}

.price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-green);
  cursor: pointer;
  pointer-events: all;
  transition: background .15s, transform .15s;
}

.price-range__input::-webkit-slider-thumb:hover {
  background: var(--c-green);
  transform: scale(1.15);
}

.price-range__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-green);
  cursor: pointer;
  pointer-events: all;
}

.price-range__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-range__val {
  font-size: 13px;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  min-width: 72px;
  text-align: center;
  flex: 1;
}

.price-range__sep {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Checkboxes */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 6px;
  transition: background .15s;
}

.filter-check:hover { background: rgba(255, 255, 255, 0.04); }

.filter-check input { display: none; }

.filter-check__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}

.filter-check input:checked ~ .filter-check__box {
  background: var(--c-green);
  border-color: var(--c-green);
}

.filter-check input:checked ~ .filter-check__box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.filter-check__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-check__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  flex: 1;
}

.filter-check__count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

/* Reset button */
.filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.filter-reset:hover {
  border-color: rgba(255, 80, 80, 0.45);
  color: #ff6b6b;
  background: rgba(255, 80, 80, 0.05);
}

.filter-reset svg { width: 14px; height: 14px; }


/* ── PRODUCTS GRID ── */
.shop-grid-wrap { flex: 1; min-width: 0; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Enhanced hover panel */
/* Hover panel hidden — basket button on card already handles add-to-cart */
.product-card__hover-panel { display: none; }

.product-card__hover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.product-card__exterior { color: rgba(255, 255, 255, 0.5); }

.product-card__float {
  color: var(--c-green);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.product-card__buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
  clip-path: var(--clip-sm);
  letter-spacing: 0.04em;
  width: 100%;
}

.product-card__buy-btn:hover { background: var(--c-green-light); }

.product-card__micro {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.product-card__micro svg {
  width: 12px;
  height: 12px;
  color: var(--c-green);
  flex-shrink: 0;
}

.product-card__micro--urgent { color: #f59e0b; }
.product-card__micro--urgent svg { color: #f59e0b; }


/* ── SALES BANNER ── */
.shop-sales-banner {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 28px;
  background:
    linear-gradient(90deg, rgba(153, 238, 45, 0.1) 0%, rgba(153, 238, 45, 0) 55%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(153, 238, 45, 0.14);
  overflow: hidden;
  gap: 20px;
  min-height: 80px;
}

.shop-sales-banner__content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.shop-sales-banner__badge {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--c-green);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1;
}

.shop-sales-banner__text { min-width: 0; }

.shop-sales-banner__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 3px;
}

.shop-sales-banner__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.shop-sales-banner__cta {
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-sm);
  transition: background .2s;
}

.shop-sales-banner__cta:hover { background: var(--c-green-light); }

.shop-sales-banner__deco {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 96px;
  color: rgba(153, 238, 45, 0.05);
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.04em;
}


/* ── EMPTY STATE ── */
.shop-empty {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  display: none;
}

.shop-empty.is-visible { display: flex; }

.shop-empty__icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.35;
  line-height: 1;
}

.shop-empty__title {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--c-white);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.shop-empty__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 24px;
}

.shop-empty__reset {
  height: 44px;
  padding: 0 28px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-sm);
  transition: background .2s;
}

.shop-empty__reset:hover { background: var(--c-green-light); }


/* ── LOAD MORE ── */
.shop-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 44px;
}


/* ── MOBILE FILTER BOTTOM SHEET ── */
.filter-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

.filter-sheet.is-open { display: block; }

.filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.filter-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 86vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  padding: 0 20px 40px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32, 0, .67, 0);
}

.filter-sheet.is-open .filter-sheet__panel {
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.33, 1, .68, 1);
}

.filter-sheet__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 10px;
}

.filter-sheet__handle-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.filter-sheet__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
}

.filter-sheet__close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.filter-sheet__close:hover { background: rgba(255, 255, 255, 0.12); }
.filter-sheet__close svg { width: 18px; height: 18px; }

.filter-sheet__footer {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 20px;
}

.filter-sheet__apply {
  flex: 1;
  height: 50px;
  background: var(--c-green);
  color: #111;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-sm);
  transition: background .2s;
}

.filter-sheet__apply:hover { background: var(--c-green-light); }

.filter-sheet__reset-btn {
  height: 50px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.filter-sheet__reset-btn:hover {
  border-color: rgba(255, 80, 80, 0.45);
  color: #ff6b6b;
}


/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .shop-filter { display: none; }
  .shop-filter-toggle { display: flex; }
  .shop-hero__stats { display: none; }
  .shop-layout { gap: 0; }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-toolbar { flex-wrap: wrap; }

  .shop-search {
    max-width: 100%;
    order: -1;
    flex: 1 1 100%;
  }

  .shop-sort { margin-left: 0; }

  .shop-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 32px;
  }

  .shop-sales-banner__deco { display: none; }

  .shop-sales-banner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }

  .shop-sales-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .shop-grid { gap: 8px; }
  .shop-cat-tab { padding: 8px 14px; font-size: 13px; }
}