/* Shop page — clean light catalog */
.page-shop {
  background: var(--cream);
  color: var(--ink);
}

.shop-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--cream);
}

.shop-layout {
  display: flex;
  align-items: flex-start;
}

.shop-filters {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 40px 28px;
  background: #fff;
  border-right: 1px solid var(--line-dark);
}
.shop-filters::-webkit-scrollbar { width: 3px; }
.shop-filters::-webkit-scrollbar-thumb { background: #ddd; }

.filter-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
}

.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
}
.filter-option:hover { color: var(--ink); }
.filter-option input {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  margin-right: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-option input:checked { background: var(--red); border-color: var(--red); }

.price-inputs { display: flex; gap: 10px; margin-bottom: 14px; }
.price-field { flex: 1; }
.price-field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 5px;
  display: block;
}
.price-field input {
  width: 100%;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.price-field input:focus { border-color: var(--red); }

.slider-wrapper { position: relative; height: 36px; }
.slider-track {
  position: absolute;
  height: 2px;
  width: 100%;
  background: #e5e5e5;
  top: 50%;
  transform: translateY(-50%);
}
.slider-range {
  position: absolute;
  height: 2px;
  background: var(--red);
  top: 50%;
  transform: translateY(-50%);
}
.slider-wrapper input[type=range] {
  position: absolute;
  width: 100%;
  appearance: none;
  background: none;
  pointer-events: none;
  top: 10px;
}
.slider-wrapper input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
}

.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}
.color-circle.active { outline: 2px solid var(--red); outline-offset: 2px; }

.size-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink-muted);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
}
.size-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.apply-btn {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
}
.reset-btn {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
}

.shop-main {
  flex: 1;
  padding: 40px 40px 80px;
  min-width: 0;
}

.shop-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-top h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.results-count {
  font-size: 13px;
  color: var(--ink-muted);
}
.results-count strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-right: 4px;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-filter-btn {
  display: none;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line-dark);
  background: #fff;
}
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
}
.view-btn.active { background: var(--red); color: #fff; }
.view-btn svg { width: 16px; height: 16px; }

.sort-select {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  height: 36px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-2px); }

.product-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: #f0ede6;
  overflow: hidden;
  border-radius: 3px;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 2;
}
.badge-sale { background: var(--red); color: #fff; }
.badge-soldout { background: #111; color: #fff; }
.badge-low { background: #f59e0b; color: #000; }

.cart-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn svg path { fill: #111; }
.cart-btn:hover { background: #111; }
.cart-btn:hover svg path { fill: #fff; }
.product-card:hover .cart-btn { opacity: 1; }

.product-info { padding: 14px 2px 0; }
.product-brand {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.product-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--ink);
}
.price-current { font-size: 14px; font-weight: 500; color: var(--ink); }
.price-original { font-size: 12px; color: #bbb; text-decoration: line-through; margin-left: 8px; }
.price-save { font-size: 10px; color: var(--red); margin-left: 8px; text-transform: uppercase; }

.product-swatches { display: flex; gap: 5px; margin-top: 10px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-dark); }
.swatch.active { outline: 1.5px solid var(--ink); outline-offset: 2px; }

.stars { color: var(--red); font-size: 11px; }
.rating-count { font-size: 11px; color: var(--ink-muted); }

.products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  background: #fff;
  transform: none !important;
}
.products-grid.list-view .product-image-wrap { aspect-ratio: unset; width: 140px; height: 120px; }
.products-grid.list-view .cart-btn { display: none; }
.list-actions { display: none; flex-direction: column; align-items: flex-end; padding: 16px; gap: 8px; }
.products-grid.list-view .list-actions { display: flex; }
.list-add-btn {
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.skel-card { background: #fff; border: 1px solid var(--line-dark); overflow: hidden; }
.skel-img {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, #f0ede6 25%, #e8e4dc 50%, #f0ede6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skel-body { padding: 16px; }
.skel-line {
  height: 10px;
  background: linear-gradient(90deg, #f0ede6 25%, #e8e4dc 50%, #f0ede6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 8px;
  border-radius: 2px;
}

.load-more-wrap { text-align: center; margin-top: 48px; }
.load-more-btn {
  padding: 14px 48px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
}
.load-more-btn:hover { border-color: var(--red); color: var(--red); }

.empty-state { text-align: center; padding: 80px 20px; grid-column: 1 / -1; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}

.filter-close-btn { display: none; }

@media (max-width: 1100px) {
  .products-grid:not(.list-view) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shop-filters {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: min(88vw, 320px);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }
  .shop-filters.mobile-open,
  .shop-filters.is-open { transform: translateX(0); }
  .mobile-filter-btn { display: inline-flex; }
  .filter-close-btn {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 24px;
    cursor: pointer;
  }
  .shop-main { padding: 24px 20px 64px; }
}

@media (max-width: 520px) {
  .products-grid:not(.list-view) { grid-template-columns: 1fr; }
  .cart-btn { opacity: 1; }
}
