/* Shop / collections page (redesign Phase 4). Loaded only by shop.php. */

.shop { padding-top: 1.25rem; background: linear-gradient(180deg, #FFFFFF 0, var(--blush) 150px, #FFFFFF 440px); }
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.shop-crumbs li + li::before { content: '›'; margin-right: 0.35rem; color: #b0a5a8; }
.shop-crumbs a { color: var(--muted); text-decoration: none; }
.shop-crumbs a:hover { color: var(--maroon); text-decoration: underline; }
.shop-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.shop h1 { margin: 0 0 0.6rem; }

/* Filter bar: chips are real links (work without JS). */
.shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 0.9rem 0 1rem; border-block: 1px solid var(--line); }
.shop-chips { display: flex; align-items: center; gap: 0.45rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-block: 0.15rem; }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-chips-label { flex-shrink: 0; margin-right: 0.15rem; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.filter-chip:hover { border-color: var(--maroon); }
.filter-chip[aria-current="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.shop-sort { display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto; font-size: 0.9rem; font-weight: 600; }
.shop-sort select { min-height: 40px; padding: 0.4rem 2rem 0.4rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 640px) { .shop-sort { margin-left: 0; } }

.shop-count { margin: 1rem 0 1.25rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

/* Grid: two columns on phones (compact cards), more as width allows. */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } .shop-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; } }
.shop-item[hidden] { display: none; }
.shop-item { animation: shop-in 0.4s var(--ease); }
@keyframes shop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shop-item .hm-card { height: 100%; }
@media (max-width: 479px) {
  .shop-item .hm-card-body { padding: 0.85rem 0.9rem 1rem; }
  .shop-item .hm-card-body h3 { font-size: 1rem; }
  .shop-item .hm-card-sub { display: none; }
  .shop-item .hm-card-price { font-size: 1.1rem; }
  .shop-item .hm-card-tag { top: 0.55rem; left: 0.55rem; font-size: 0.68rem; }
  .shop-item .hm-card-make { display: none; }
}

.shop-empty { max-width: 34rem; margin: 2.5rem auto; padding: 2.5rem 1.5rem; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-card); background: var(--paper); }
.shop-empty[hidden] { display: none; }
.shop-empty h2 { margin: 0 0 0.4rem; }

@media (prefers-reduced-motion: reduce) { .shop-item { animation: none; } }
