/* Shop / category listing page specific tweaks (shares components.css) */
/* The shop grid sits next to a 260px filters sidebar, so it has less room
   than the full-width home page grid — one column fewer at each breakpoint. */
.shop-layout .product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) { .shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); } }
.shop-header { padding-block: var(--space-6) var(--space-5); }
.shop-header h1 { margin-bottom: var(--space-2); }

.search-inline { position: relative; margin-bottom: var(--space-5); }
.search-inline input { padding-left: 2.6em; }
.search-inline svg { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--ink-300); }

.active-sort { font-weight: 600; }
.sort-select { min-width: 200px; }

/* Product detail page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

.pd-gallery { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.pd-main-image { border-radius: var(--radius-lg); background: var(--paper-100); aspect-ratio: 1/1; overflow: hidden; margin-bottom: var(--space-3); }
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); }
.pd-thumbs { display: flex; gap: var(--space-2); }
.pd-thumbs button { width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--paper-100); border: 2px solid transparent; overflow: hidden; }
.pd-thumbs button.is-active { border-color: var(--teal-600); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pd-info .card-cat { font-size: 0.78rem; }
.pd-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-block: 0.3em 0.5em; }
.pd-sku { color: var(--ink-300); font-size: 0.82rem; margin-bottom: var(--space-4); }
.pd-price { display: flex; align-items: baseline; gap: 0.6em; margin-bottom: var(--space-5); }
.pd-price .price-now { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--teal-900); }
.pd-price .price-old { font-size: 1.05rem; color: var(--ink-300); text-decoration: line-through; }
.pd-desc { margin-bottom: var(--space-5); }
.pd-buy-row { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); flex-wrap: wrap; }
.pd-meta-list { display: flex; flex-direction: column; gap: 0.6em; font-size: 0.88rem; color: var(--ink-500); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.pd-meta-list b { color: var(--ink-900); }
.pd-share { display: flex; gap: 8px; margin-top: var(--space-5); }

.related-section { margin-top: var(--space-9); }
