/* ============================================================
   Katalog produk (HVAC, General Supplies, Japan Air Filter)
   Loaded only on pages/hvac|gs|jaf/* — shares tokens from home.css.
   ============================================================ */

/* ---------- Link cards (category intro links) ---------- */
.link-cards { display:grid; gap: 1px; background: var(--line); border:1px solid var(--line); }
.link-card { background: var(--bg); padding: 34px 32px; transition: background .25s ease; display:flex; flex-direction:column; }
.link-card:hover { background: var(--brand-deep); }
.link-card h3 { font-size: 22px; }
.link-card .prose { margin-top:12px; flex:1; }
.link-card:hover h3, .link-card:hover .prose, .link-card:hover .prose * { color:#fff; }
.link-card .more { margin-top:20px; font-weight:700; font-size:14px; color: var(--brand); display:inline-flex; gap:8px; }
.link-card:hover .more { color:#fff; }
@media (min-width: 640px){ .link-cards { grid-template-columns: repeat(var(--cols, 2), 1fr); } }

/* ---------- Shop layout (sidebar filters + product grid) ---------- */
.shop-layout { display:grid; grid-template-columns: 260px 1fr; gap: 40px; align-items:start; }
@media (max-width: 880px){ .shop-layout { grid-template-columns: 1fr; } }

.filters { border:1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow:hidden; }
.filters h4 { padding: 18px 20px; font-family: var(--font-head); font-size:14px; text-transform:uppercase; letter-spacing:.06em; border-bottom:1px solid var(--line); }
.filters ul { list-style:none; margin:0; padding: 10px 8px; display:grid; gap:2px; }
.filters ul a { display:block; padding: 10px 12px; border-radius: var(--radius); font-size:14.5px; font-weight:600; color: var(--body); }
.filters ul a:hover { background: var(--surface); color: var(--brand); }
.filters ul a.active { background: var(--surface-2); color: var(--brand); }

.filters details { border-top:1px solid var(--line); }
.filters details:first-of-type { border-top:none; }
.filters summary { padding: 14px 20px; font-weight:700; font-size:14px; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; }
.filters summary::-webkit-details-marker { display:none; }
.filters summary::after { content:"+"; color: var(--muted); font-weight:400; }
.filters details[open] summary::after { content:"–"; }
.filters .opt-list { padding: 4px 20px 16px; display:grid; gap:10px; }
.filters .opt-list label { display:flex; align-items:center; gap:10px; font-size:14px; color: var(--body); cursor:pointer; }
.filters .opt-list input { accent-color: var(--brand); }
.filters .apply { margin: 16px 20px 20px; width: calc(100% - 40px); justify-content:center; }

.shop-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px){ .shop-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .shop-grid { grid-template-columns: 1fr 1fr; gap:16px; } }

.shop-card { border:1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow:hidden; display:flex; flex-direction:column; transition: box-shadow .25s ease, transform .25s ease; }
.shop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.shop-card .sc-media { position:relative; aspect-ratio: 1/1; background: var(--surface); display:flex; align-items:center; justify-content:center; padding: 18px; }
.shop-card .sc-media img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.shop-card .sc-zoom { position:absolute; right:10px; bottom:10px; width:34px; height:34px; border-radius:50%; background:#fff; box-shadow: var(--shadow-sm); display:flex; align-items:center; justify-content:center; color: var(--brand); }
.shop-card .sc-body { padding: 16px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1; }
.shop-card .sc-brand { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color: var(--muted); }
.shop-card h3 { font-size:16px; line-height:1.3; }
.shop-card .sc-actions { margin-top:auto; padding-top:14px; display:flex; gap:8px; align-items:center; }
.shop-card .sc-actions .btn { padding: 10px 16px; font-size:13.5px; flex:1; justify-content:center; }
.shop-card .sc-actions .price-btn { flex:0 0 auto; width:42px; height:42px; padding:0; justify-content:center; }
.shop-empty { grid-column: 1/-1; text-align:center; color: var(--muted); padding: 60px 0; }

/* ---------- Product detail (gallery + info) ---------- */
.pd-detail { display:grid; grid-template-columns: 380px 1fr; gap: 48px; align-items:flex-start; }
@media (max-width: 880px){ .pd-detail { grid-template-columns: 1fr; } }

.pd-gallery .slider-preview {
  aspect-ratio: 1/1; width:100%; background: var(--surface); border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom: 12px;
}
.pd-gallery .slider-preview [image] { width:88%; height:88%; background-size:contain; background-position:center; background-repeat:no-repeat; }
.pd-gallery .slider-nav { margin: 0 -6px; }
.pd-gallery .slider-nav .img { height:70px; margin: 0 6px; border-radius: var(--radius); background-size:cover; background-position:center; cursor:pointer; border:1.5px solid var(--line); }
.pd-gallery .slider-nav .slick-slide:focus { outline:none; }
.pd-gallery .slick-prev, .pd-gallery .slick-next { z-index:2; }
.pd-gallery .slick-prev:before, .pd-gallery .slick-next:before { color: var(--brand); }

.pd-single img { width:100%; border-radius: var(--radius); background: var(--surface); }

.pd-info h1 { font-size: clamp(24px,3vw,32px); }
.pd-info .pd-series { margin-top:6px; font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color: var(--muted); }
.pd-info .tag-chip-row { margin-top:16px; }
.pd-info .prose { margin-top:20px; }
.pd-info .pd-list { list-style:none; margin: 18px 0 0; padding:0; display:grid; gap:10px; }
.pd-info .pd-list li { display:flex; gap:10px; align-items:flex-start; font-size:15px; color: var(--body); }
.pd-info .pd-list li .tick { flex:0 0 auto; width:20px; height:20px; border-radius:50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); display:grid; place-items:center; margin-top:2px; font-size:12px; }
.pd-info .pd-actions { margin-top: 26px; display:flex; gap:12px; }

.pd-features { margin-top: 48px; }
.pd-features h4 { font-family: var(--font-head); font-size:15px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:20px; }
.pd-features-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 640px){ .pd-features-grid { grid-template-columns: repeat(3,1fr); } }
.pd-feature { text-align:center; padding: 18px 10px; border:1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor:pointer; transition: box-shadow .2s ease; }
.pd-feature:hover { box-shadow: var(--shadow-sm); border-color: var(--brand); }
.pd-feature img { width:44px; height:44px; object-fit:contain; margin: 0 auto 10px; }
.pd-feature span { display:block; font-size:12.5px; color: var(--body); font-weight:600; }

.pd-spec { margin-top: 40px; text-align:center; }
.pd-spec img { max-width:100%; border-radius: var(--radius); border:1px solid var(--line); }

/* ---------- Feature-detail lightbox (custom, no Bootstrap) ---------- */
.lightbox-modal { position:fixed; inset:0; z-index:200; background: rgba(15,14,46,.65); display:flex; align-items:center; justify-content:center; padding: 24px; }
.lightbox-modal[hidden] { display:none; }
.lightbox-modal-inner { background:#fff; border-radius: var(--radius); max-width: 560px; width:100%; max-height: 80vh; overflow-y:auto; padding: 32px; position:relative; box-shadow: var(--shadow-lg); }
.lightbox-close { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; border:none; background: var(--surface); font-size:20px; line-height:1; cursor:pointer; color: var(--ink); }
.lightbox-modal-inner .modal-title { font-size:20px; margin-bottom:16px; padding-right:30px; }
.lightbox-modal-inner .spinner-text { color: var(--muted); font-size:14px; }

/* ---------- Magnific popup zoom icon override ---------- */
.mfp-bg { background: var(--brand-deep); opacity:.85; }
.mfp-close { color:#fff; opacity:.8; }
