/* =========================================================================
   Onlinekleding - home-sections.css  v1.0.0  (24-11-2026)
   Productrijen en merkenstrook op de homepage.
   Hoort bij wp-content/novamira-sandbox/ok-home-sections.php.
   Gebruikt de variabelen uit homepage-redesign.css (--ok-navy, --ok-gap, ...).
   ========================================================================= */

/* kop van een rij: titel links, tekstlink rechts (zelfde als Categorieën/Inspiratie) */
.ok-row, .ok-brands { margin-top: var(--ok-gap, 96px) !important; margin-bottom: 0 !important; }
.ok-row--deals { margin-top: 56px !important; }
.ok-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.ok-row__head h2 { margin: 0; font-family: var(--ok-serif); font-weight: 500; color: var(--ok-navy); }
.ok-row__all { flex: 0 0 auto; font-family: var(--ok-sans); font-size: 14px; font-weight: 600; color: var(--ok-navy); text-decoration: none; white-space: nowrap; }
.ok-row__all:hover { color: var(--ok-navy); text-decoration: underline; text-underline-offset: 4px; }

/* zes kaarten op een rij; op kleinere schermen schuift de rij horizontaal */
.ok-row__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(170px, 1fr);
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.ok-row__track::-webkit-scrollbar { display: none; }

.ok-product { display: flex; flex-direction: column; min-width: 0; text-decoration: none !important; scroll-snap-align: start; font-family: var(--ok-sans); }
.ok-product__media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--ok-ground, #EDEEF0); border-radius: 8px; overflow: hidden; }
.ok-product__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; transition: transform .5s ease; }
.ok-product:hover .ok-product__media img { transform: scale(1.04); }
.ok-product__badge { position: absolute; top: 10px; left: 10px; padding: 6px 9px; background: var(--ok-navy); color: #fff; border-radius: 100px; font-size: 12px; font-weight: 700; line-height: 1; }
.ok-product__brand { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-product__title { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ok-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ok-product:hover .ok-product__title { text-decoration: underline; text-underline-offset: 3px; }
.ok-product__price { margin-top: 6px; font-size: 15px; color: var(--ok-navy); }
.ok-product__price strong { font-weight: 700; color: var(--ok-navy); }
.ok-product__price del { font-size: 13px; color: var(--ok-muted); margin-right: 4px; }

/* merkenstrook: logo's in rustige vakken, grijs tot je erover gaat */
.ok-brands__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.ok-brands__item { display: flex; align-items: center; justify-content: center; height: 92px; padding: 18px; border: 1px solid var(--ok-border); border-radius: 8px; background: #fff; transition: border-color .18s ease; }
.ok-brands__item:hover { border-color: var(--ok-navy); }
.ok-brands__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .18s ease, opacity .18s ease; }
.ok-brands__item:hover img { filter: none; opacity: 1; }

@media (max-width: 1199px) {
	.ok-brands__list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
	.ok-row--deals { margin-top: 40px !important; }
	.ok-row__head { margin-bottom: 18px; }
	.ok-row__track { grid-auto-columns: 44%; gap: 12px; margin-right: calc(var(--ok-gutter, 15px) * -1); padding-right: var(--ok-gutter, 15px); }
	.ok-brands__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ok-brands__item { height: 76px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.ok-product__media img, .ok-brands__item, .ok-brands__item img { transition: none; }
	.ok-product:hover .ok-product__media img { transform: none; }
}

/* "Populair nu": links naar de landingspagina's als pills */
.ok-popular { margin-top: var(--ok-gap, 96px) !important; margin-bottom: 0 !important; }
.ok-popular .ok-row__head { margin-bottom: 18px; }
.ok-popular__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ok-popular__list li { margin: 0; padding: 0; }
.ok-popular__list a { display: inline-block; padding: 10px 18px; border: 1px solid var(--ok-border); border-radius: 100px; font-family: var(--ok-sans); font-size: 14px; font-weight: 500; color: var(--ok-navy); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.ok-popular__list a:hover { border-color: var(--ok-navy); color: var(--ok-navy); text-decoration: none; }
.ok-popular + .text { margin-top: 64px !important; }
