/* ============================================================
   Vintage808 — shop.css
   ============================================================ */

/* ── Variables (if not already in main.css) ── */
/* These are here as fallback — remove if already in main.css */
:root {
  --black:        #111111;
  --white:        #f5f2ec;
  --sand:         #e8e2d5;
  --mid:          #999186;
  --accent:       #c84b2f;
  --nav-h:        64px;
  --font-display: 'Archivo Black', sans-serif;
  --font-body:    'Archivo', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

/* ── Hero ── */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 40px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-body {
  font-weight: 300;
  font-size: 15px;
  color: rgba(245,242,236,0.65);
  max-width: 360px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.18s;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #a83a20; border-color: #a83a20; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245,242,236,0.3);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.hero-image-wrap {
  aspect-ratio: 4/3;
  background: #2a2a2a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-wrap svg { opacity: 0.3; }

/* ── Products Section ── */
.products-section {
  padding: 60px 40px 80px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 32px;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 32px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--sand);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--black);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
  position: relative;
}
.filter-btn:hover { border-color: var(--black); }

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  border-radius: 50%;
  margin-left: 4px;
  font-family: var(--font-body);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
  margin-bottom: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

/* ── Product Image with Slider ── */
.product-image {
  aspect-ratio: 1 / 1.1;
  background: var(--sand);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  transition: transform 0.25s;
}

.product-card:hover .product-image {
  transform: translateY(-3px);
}

/* Image slider track */
.product-image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Arrow buttons */
.product-image-prev,
.product-image-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  color: var(--black);
}

.product-image-prev { left: 8px; }
.product-image-next { right: 8px; }

.product-card:hover .product-image-prev,
.product-card:hover .product-image-next {
  opacity: 1;
}

.product-image-prev:hover,
.product-image-next:hover {
  background: #fff;
}

/* Dot indicators */
.product-image-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.product-image-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.product-image-dot.active {
  background: #fff;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
}
.product-badge.sale { background: var(--accent); }

/* Product info */
.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--black);
}

.btn-cart {
  width: 100%;
  background: transparent;
  border: 1px solid var(--black);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  border-radius: 2px;
  transition: all 0.18s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-cart:hover {
  background: var(--black);
  color: var(--white);
}

/* Size picker */
.size-picker {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.size-picker.open { grid-template-rows: 1fr; }
.size-picker > * { min-height: 0; overflow: hidden; }

.size-picker-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 8px;
  padding-top: 12px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.size-option {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1;
}
.size-option:hover { border-color: #111; }
.size-option.selected { background: #111; border-color: #111; color: #fff; }

.size-error {
  font-size: 0.7rem;
  color: #c0392b;
  margin: 0 0 8px;
  min-height: 1em;
}

/* ── Loading / Empty states ── */
.products-loading,
.products-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  font-size: 14px;
  color: var(--mid);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 2px;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--black); }
.page-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Filter Panel ── */
#filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 800;
}
#filter-overlay.open { display: block; }

#filter-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  max-width: 88vw;
  background: var(--white);
  z-index: 801;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#filter-panel.open { transform: translateX(0); }

.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sand);
}

.fp-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.fp-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-reset {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--mid);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: color 0.15s;
}
.fp-reset:hover { color: var(--black); }

.fp-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
  opacity: 0.45;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.fp-close:hover { opacity: 1; }

.fp-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.fp-section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 0.75rem;
}

.fp-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--black);
  margin-bottom: 8px;
}
.fp-price-cur { font-family: var(--font-mono); }

.fp-range {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: var(--sand);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.fp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  cursor: pointer;
}
.fp-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  cursor: pointer;
}

.fp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 14px;
  font-size: 0.78rem;
  border: 1px solid var(--sand);
  border-radius: 2px;
  background: none;
  color: var(--mid);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filter-chip:hover { border-color: var(--mid); color: var(--black); }
.filter-chip.active { background: var(--black); border-color: var(--black); color: var(--white); }

.fp-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--sand);
}

.fp-apply {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.fp-apply:hover { background: #333; }

/* ── Newsletter ── */
.newsletter {
  background: var(--sand);
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.newsletter-heading {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.newsletter-sub { font-size: 13px; color: var(--mid); }

.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-row { display: flex; gap: 8px; }

.newsletter-input {
  flex: 1;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  border: 1px solid rgba(17,17,17,0.2);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--black); }
.newsletter-input::placeholder { color: var(--mid); }

.btn-subscribe {
  padding: 11px 20px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.15s;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-subscribe:hover { opacity: 0.75; }
.newsletter-note { font-size: 11px; color: var(--mid); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px; }
  .hero-image-wrap { display: none; }
  .products-section { padding: 40px 20px 60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .newsletter { grid-template-columns: 1fr; padding: 44px 24px; gap: 28px; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-row { flex-direction: column; }
  .newsletter-input, .btn-subscribe { width: 100%; }
}