/* =====================================================================
   'Maak je smartphone compleet': exact passende accessoires bij een smartphoneaanbieding (acc_fit_section, includes/accessories.php).
   Compact: desktop grid (2-4 kaarten), mobiel horizontaal swipen. Prefix acx-.
   ===================================================================== */
.acx { --acx-line: #e4e9f2; --acx-muted: #55637b; --acx-green: #166534; }
.acx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.acx-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 700 .75rem var(--font-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.acx-head h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.35rem, 1.15rem + .6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.acx-sub { margin: 6px 0 0; max-width: 62ch; font-size: .9375rem; color: var(--acx-muted); }
.acx-head .link-more { flex: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.acx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acx-grid--1, .acx-grid--2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acx-grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.acx-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--acx-line); border-radius: 16px; transition: box-shadow .15s, border-color .15s; }
.acx-card:hover { border-color: #cfdcf2; box-shadow: 0 10px 28px -12px rgba(11, 31, 66, .18); }
.acx-media { display: flex; align-items: center; justify-content: center; height: 200px; padding: 14px; background: linear-gradient(180deg, #f7f9fd, #eef3fb); }
.acx-media img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.acx-media .bc-noimg { color: #9aa8bf; }
.acx-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.acx-type { margin: 0 0 6px; font-size: .75rem; font-weight: 600; color: var(--blue); }
.acx-name { margin: 0; font-family: var(--font-heading); font-size: .9375rem; font-weight: 700; line-height: 1.3; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acx-name a { color: inherit; }
.acx-name a:hover { color: var(--blue); text-decoration: none; }
.acx-fit { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .8125rem; font-weight: 600; color: var(--acx-green); }
.acx-fit .icon { flex: none; }
.acx-price { margin: 10px 0 0; font: 800 1.2rem var(--font-heading); letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.acx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; min-height: 40px; border: 1px solid #c9daf8; border-radius: 10px; background: #fff; color: var(--blue); font-size: .875rem; font-weight: 700; }
.acx-btn:hover { background: var(--tint-blue, #eaf2ff); text-decoration: none; }
.acx-spacer { flex: 1 0 14px; }
.acx-note { margin: 12px 0 0; font-size: .75rem; color: var(--acx-muted); }

/* Tablet en mobiel: horizontaal swipen (geen extra rijen, pagina blijft kort). Marges volgen de containerpadding (20px, onder 641px 16px). */
@media (max-width: 1023px) {
    .acx-grid, .acx-grid--1, .acx-grid--2, .acx-grid--3 { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
    .acx-grid::-webkit-scrollbar { display: none; }
    .acx-card { flex: 0 0 38%; max-width: 280px; scroll-snap-align: start; }
}
@media (max-width: 767px) {
    .acx-head { display: block; margin-bottom: 14px; }
    .acx-head .link-more { margin-top: 8px; }
    .acx-card { flex-basis: 68%; max-width: 260px; }
    .acx-grid--1 .acx-card { flex-basis: 100%; max-width: 320px; }
    .acx-media { height: 170px; }
}
@media (max-width: 640px) {
    .acx-grid, .acx-grid--1, .acx-grid--2, .acx-grid--3 { margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; }
}
