/* ───────────────────────────────────────
   ArDen Watches — shop page (Option 1: Ledger Grid)
   Mobile-first: base styles target small screens,
   min-width queries scale up.
   ─────────────────────────────────────── */

.nav-links .nav-link-active { color: var(--bg); }

/* ── Page header ─────────────────────── */
.shop-head {
  padding: 6.5rem 1.25rem 0;
  max-width: 1240px;
  margin: 0 auto;
}
.shop-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.6rem;
}
.shop-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  letter-spacing: 0.12em; line-height: 1.08;
  text-transform: uppercase;
}
.shop-sub {
  margin-top: 0.9rem;
  font-size: 0.85rem; color: var(--muted);
  font-weight: 300; max-width: 520px; line-height: 1.7;
}

/* ── Toolbar (sticky under the fixed nav) ─ */
.shop-toolbar {
  position: sticky;
  top: 3.55rem;              /* mobile nav height */
  z-index: 50;
  background: rgba(237,231,218,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-top: 1.75rem;
  padding: 0.75rem 0 0;
}

/* chips: one horizontal scroll row on mobile */
.chips {
  display: flex; gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.75rem;
  scrollbar-width: none;               /* Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 1.25rem;
}
.chips::-webkit-scrollbar { display: none; }

/* fade hint: more chips are scrollable to the right (mobile) */
.shop-toolbar::after {
  content: '';
  position: absolute; right: 0; top: 0;
  width: 2.5rem; height: 100%;
  background: linear-gradient(to right, transparent, rgba(237,231,218,0.95));
  pointer-events: none;
}

.chip {
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.6rem 1.05rem;             /* comfortable tap target */
  min-height: 38px;
  background: transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.chip:hover { border-color: rgba(26,22,18,0.3); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-sep {
  flex-shrink: 0; width: 1px; align-self: stretch;
  background: var(--border); margin: 0.15rem 0.35rem;
}

.toolbar-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem 0.7rem;
  border-top: 1px solid var(--border);
}
.result-count {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.sort-wrap { display: flex; align-items: center; gap: 0.5rem; }
.sort-label {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.sort-select {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--border); border-radius: 2px;
  background: #faf6ec; padding: 0.55rem 0.7rem;
  min-height: 38px;                    /* comfortable tap target */
  max-width: 46vw;
  cursor: pointer;
}

/* ── Grid ────────────────────────────── */
.shop-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* phones: 2-up */
  gap: 0.9rem;
}

/* ── Card (echoes the home carousel card) ─ */
.w-card {
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: #faf6ec;
  display: flex; flex-direction: column;
  cursor: pointer; position: relative;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit;
}
.w-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,22,18,0.08); }

.w-art { position: relative; aspect-ratio: 1 / 0.92; overflow: hidden; }
.w-art-bg { position: absolute; inset: 0; opacity: 0.55; transition: opacity 0.3s; }
.w-card:hover .w-art-bg { opacity: 0.9; }
.w-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 12px;
}
.w-art .w-art-placeholder {
  position: absolute; inset: 0; margin: auto;
  width: 52%; height: 52%; opacity: 0.45;
}

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.badge.available { background: rgba(74,124,89,0.12); color: #4a7c59; border: 1px solid rgba(74,124,89,0.3); }
.badge.sold { background: rgba(26,22,18,0.75); color: #ede7da; border: 1px solid transparent; }

.w-info {
  padding: 0.75rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
  flex: 1;
}
.w-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  letter-spacing: 0.08em; line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.w-model {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.w-meta {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

.w-state { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.state-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.state-label { font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.state-value { font-size: 0.6rem; letter-spacing: 0.08em; font-weight: 500; text-align: right; }
.state-check { font-size: 0.65rem; font-weight: 600; }
.state-check.is-yes { color: #4a7c59; }
.state-check.is-no { color: rgba(26,22,18,0.3); }

.w-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.5rem; border-top: 1px solid var(--border);
}
.w-price { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; }
.w-arrow {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid; display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; opacity: 0.7; flex-shrink: 0;
}

/* ── Sold treatment ──────────────────── */
.w-card.is-sold .w-art img,
.w-card.is-sold .w-art .w-art-placeholder { filter: grayscale(1); opacity: 0.5; }
.w-card.is-sold .w-art-bg { opacity: 0.2; }
.w-card.is-sold:hover .w-art-bg { opacity: 0.3; }
.w-card.is-sold .w-name { color: var(--muted); }
.w-card.is-sold .w-price {
  color: var(--muted); font-weight: 400;
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.sold-note {
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}

/* ── Empty state ─────────────────────── */
.shop-empty { text-align: center; padding: 4rem 1.5rem 5rem; }
.shop-empty h2 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.25em; font-size: 1.1rem; text-transform: uppercase;
}
.shop-empty p { color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; font-weight: 300; }

/* ── ≥600px: roomier cards ───────────── */
@media (min-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 2rem 2rem 4rem;
  }
  .shop-head { padding: 8rem 2rem 0; }
  .chips { padding: 0 2rem 0.75rem; }
  .toolbar-meta { padding: 0.6rem 2rem 0.7rem; }
  .w-info { padding: 0.85rem 1.1rem 0.95rem; }
  .w-art img { padding: 16px; }
}

/* ── ≥900px: desktop layout ──────────── */
@media (min-width: 900px) {
  .shop-head { padding: 8.5rem 3rem 0; }
  .shop-toolbar { top: 4.1rem; padding-top: 0.75rem; }  /* desktop nav height */
  .chips { padding: 0 3rem 0.8rem; padding-right: 21rem; }  /* keep chips clear of the meta block */
  .toolbar-meta {
    border-top: none;
    position: absolute; right: 0; top: 0;
    height: 100%;
    padding: 0.75rem 3rem 0 2rem;
    background: linear-gradient(to right, transparent, rgba(237,231,218,0.97) 1.5rem);
  }
  .shop-toolbar::after { display: none; }  /* meta block replaces the fade */
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2.25rem 3rem 5rem;
  }
  .sort-select { max-width: none; }
}

/* ── Reduced motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .w-card, .w-art-bg, .chip { transition: none; }
  .w-card:hover { transform: none; }
}
