/* ==============================================
 * DRIPFORM shop.css  v1.0.0  (Sprint 3)
 * Shop archive: hero, sidebar filters, toolbar,
 * product grid (3-col), pagination.
 * ============================================== */

/* ── SHOP HERO ───────────────────────────────── */
.df-shop-hero {
  position: relative;
  padding: 9rem 3rem 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--df-border);
}
.df-shop-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(200,150,62,.12) 0%, transparent 70%);
  pointer-events: none;
}
.df-breadcrumb {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--df-muted);
  margin-bottom: 1.5rem;
}
.df-breadcrumb a { color: var(--df-muted); transition: color .2s; }
.df-breadcrumb a:hover { color: var(--df-gold); }
.df-breadcrumb .sep { margin: 0 .4rem; color: #444; }
.df-shop-hero h1 {
  font-family: var(--df-font-h);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: .9rem;
}
.df-shop-hero h1 em { font-style: normal; color: var(--df-gold); }
.df-shop-hero p { font-size: .95rem; color: var(--df-muted); max-width: 480px; }

/* ── LAYOUT ──────────────────────────────────── */
.df-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3.5rem 3rem 6rem;
}

/* ── FILTER SIDEBAR ──────────────────────────── */
.df-filters {
  position: sticky;
  top: 92px;
  align-self: start;
}
.df-filter-toggle { display: none; }

.df-filter-group {
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--df-border);
  padding-bottom: 2rem;
}
.df-filter-group:last-child { border-bottom: none; }
.df-filter-group h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--df-gold);
  margin-bottom: 1.1rem;
}
.df-filter-list { list-style: none; }
.df-filter-list li { margin-bottom: .75rem; }

.df-filter-check {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .85rem;
  color: var(--df-muted);
  cursor: pointer;
  transition: color .2s;
}
.df-filter-check:hover { color: var(--df-ink); }
.df-filter-check input[type="radio"],
.df-filter-check input[type="checkbox"] { display: none; }
.df-filter-check .box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--df-border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.df-filter-check input:checked + .box {
  background: var(--df-gold);
  border-color: var(--df-gold);
}
.df-filter-check input:checked + .box::after {
  content: '';
  width: 7px; height: 5px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px,-1px);
  display: block;
}
.df-filter-check .count { margin-left: auto; font-size: .72rem; color: #555; }

/* Size grid */
.df-size-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.df-size-btn {
  width: 42px; height: 36px;
  border: 1.5px solid var(--df-border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600;
  color: var(--df-muted);
  cursor: pointer;
  background: transparent;
  font-family: var(--df-font-b);
  transition: all .2s;
}
.df-size-btn:hover { border-color: var(--df-gold); color: var(--df-ink); }
.df-size-btn.selected { background: var(--df-gold); border-color: var(--df-gold); color: #000; }

/* Price slider */
.df-price-slider {
  width: 100%;
  margin-top: .5rem;
  accent-color: var(--df-gold);
}
.df-price-vals {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--df-muted);
  margin-top: .5rem;
}

/* Clear button */
.df-clear-filters {
  display: block;
  width: 100%;
  padding: .65rem;
  background: transparent;
  border: 1px solid var(--df-border);
  border-radius: 4px;
  color: var(--df-muted);
  font-family: var(--df-font-b);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.df-clear-filters:hover { border-color: var(--df-gold); color: var(--df-gold); }

/* ── TOOLBAR ─────────────────────────────────── */
.df-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--df-border);
}
.df-result-count { font-size: .85rem; color: var(--df-muted); }
.df-result-count strong { color: var(--df-ink); }

.df-toolbar-right { display: flex; align-items: center; gap: 1rem; }
.df-sort {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--df-muted);
}
.df-sort label { white-space: nowrap; }
.df-sort select {
  background: var(--df-bg2);
  border: 1px solid var(--df-border);
  border-radius: 4px;
  padding: .5rem .9rem;
  color: var(--df-ink);
  font-family: var(--df-font-b);
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .2s;
}
.df-sort select:focus { outline: none; border-color: var(--df-gold); }

.df-view-toggle { display: flex; gap: .4rem; }
.df-view-toggle button {
  width: 34px; height: 34px;
  border: 1px solid var(--df-border);
  border-radius: 4px;
  background: transparent;
  color: var(--df-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.df-view-toggle button.active { border-color: var(--df-gold); color: var(--df-gold); }

/* ── PRODUCT GRID (shop: 3-col) ──────────────── */
.df-pgrid--shop {
  grid-template-columns: repeat(3, 1fr);
}

/* List view */
.df-pgrid--shop.list-view { grid-template-columns: 1fr; }
.df-pgrid--shop.list-view .df-pcard__inner { display: flex; }
.df-pgrid--shop.list-view .df-pcard__img {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 160px;
}
.df-pgrid--shop.list-view .df-pcard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card inner link */
.df-pcard__inner { display: block; color: inherit; }
.df-pcard__wish {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 32px; height: 32px;
  background: rgba(10,10,10,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.df-pcard__wish:hover { color: var(--df-gold); background: rgba(10,10,10,.85); }

/* ── PAGINATION ──────────────────────────────── */
.df-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--df-border);
}
.df-page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--df-border);
  border-radius: 6px;
  font-size: .85rem; font-weight: 600;
  color: var(--df-muted);
  text-decoration: none;
  transition: all .2s;
}
.df-page-btn:hover { border-color: var(--df-gold); color: var(--df-ink); }
.df-page-btn.active { background: var(--df-gold); border-color: var(--df-gold); color: #000; }
.df-page-btn.nav-arrow { font-size: 1.1rem; color: var(--df-gold); }

/* ── NO PRODUCTS ─────────────────────────────── */
.df-no-products {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--df-muted);
  grid-column: 1 / -1;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .df-pgrid--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .df-shop-layout { grid-template-columns: 1fr; padding: 2rem 1.5rem 4rem; }
  .df-filters { position: static; }
  .df-filter-toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .75rem 1rem;
    background: var(--df-bg2);
    border: 1px solid var(--df-border);
    border-radius: 6px;
    color: var(--df-ink);
    font-family: var(--df-font-b);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color .2s;
  }
  .df-filter-toggle:hover { border-color: var(--df-gold); }
  .df-filter-toggle__arrow { margin-left: auto; display: inline-block; transition: transform .3s; }
  .df-filter-toggle[aria-expanded="true"] .df-filter-toggle__arrow { transform: rotate(180deg); }
  .df-filter-body {
    display: none;
    padding: 1.5rem;
    background: var(--df-bg2);
    border: 1px solid var(--df-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }
  .df-filter-body.open { display: block; }
  .df-filter-group:last-child { border-bottom: 1px solid var(--df-border); padding-bottom: 2rem; margin-bottom: 1.5rem; }
}
@media (max-width: 860px) {
  .df-shop-hero { padding: 7rem 1.5rem 3rem; }
  .df-shop-toolbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 520px) {
  .df-pgrid--shop { grid-template-columns: 1fr 1fr; gap: .6rem; }
}
