/* ========================================
   DRIFT — Shop Page Styles
   ======================================== */

/* === Page Header === */
.shop-header {
  position: relative;
  padding: 140px 0 60px;
  text-align: center;
  overflow: hidden;
}

.shop-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), var(--black));
  z-index: 1;
}

.shop-header-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?w=1600&q=80') center/cover no-repeat;
  opacity: 0.3;
}

.shop-header .container {
  position: relative;
  z-index: 2;
}

.shop-header h1 {
  font-size: clamp(48px, 8vw, 80px);
  margin-bottom: 8px;
}

/* === Shop Layout with Sidebar === */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 24px 0 64px;
}

/* === Filter Sidebar === */
.filter-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(8px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-header h3 {
  font-size: 18px;
  letter-spacing: 0.05em;
}

.clear-filters {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clear-filters:hover {
  color: var(--white);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.filter-group-header svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.filter-group-header.open svg {
  transform: rotate(180deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--silver);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.filter-option:hover {
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

.filter-option .sale-icon {
  color: var(--red);
  margin-right: 2px;
  transition: transform 0.2s ease;
}

.filter-option:hover .sale-icon {
  transform: scale(1.15);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  appearance: auto;
  background: transparent;
  border: none;
}

.filter-option.active {
  color: var(--white);
  font-weight: 500;
}

/* Sort in sidebar */
.filter-sort {
  margin-top: 4px;
}

.filter-sort .sort-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* === Results Count === */
.results-info {
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px 0 64px;
}

/* === Product Card === */
.product-card {
  background: var(--void);
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}

.card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.card-badges .badge {
  pointer-events: all;
}

.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  color: var(--black);
  padding: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.quick-add:hover {
  background: var(--accent);
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

.card-info {
  padding: 16px;
}

.card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-price .current {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.card-price .original {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.card-colors {
  display: flex;
  gap: 6px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.3);
}

/* === Load More === */
.load-more-wrapper {
  text-align: center;
  padding: 32px 0 64px;
}

/* === Empty State === */
.empty-shop {
  text-align: center;
  padding: 96px 24px;
}

.empty-shop h3 {
  margin-bottom: 16px;
}

.empty-shop p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
  }

  .filter-toggle-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--silver);
    background: var(--surface);
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
  }

  .filter-sidebar.mobile-hidden {
    display: none;
  }
}

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


  .sort-select {
    min-width: auto;
    width: 100%;
  }

  .card-info {
    padding: 12px;
  }

  .card-name {
    font-size: 13px;
  }

  .card-price .current {
    font-size: 13px;
  }

  .quick-add {
    display: none;
  }

  .shop-header {
    padding: 110px 0 40px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    gap: 8px;
  }

  .card-info {
    padding: 10px;
  }


}
