/* ==========================================================================
   Stran rastlinjaka in izdelka: galerija, izbirnik, oprema, povpraševanje
   ========================================================================== */

.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 18px; padding-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 960px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp > * { min-width: 0; }

/* --- Galerija ------------------------------------------------------------- */
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
@media (max-width: 960px) { .gallery { position: static; } }
.gallery__main { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease); }
.gallery__zoom img.is-loading { opacity: .4; }
.gallery__zoom-icon { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--sh-1); }
.gallery__main .model-card__badges { pointer-events: none; }
.gallery__thumbs { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb { flex: none; display: block; width: 92px; height: 69px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sand); cursor: pointer; opacity: .72; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--green-600); opacity: 1; }
@media (max-width: 520px) { .gallery__thumb { width: 72px; height: 54px; } }

/* Za izdelke (oprema) je slika na belem ozadju */
.single-izdelek .gallery__main { background: #fff; border: 1px solid var(--line); aspect-ratio: 1; }
.single-izdelek .gallery__zoom img { object-fit: contain; padding: 18px; }
.single-izdelek .gallery__thumb { background: #fff; border-color: var(--line); }
.single-izdelek .gallery__thumb img { object-fit: contain; }
.single-izdelek .gallery__thumb.is-active { border-color: var(--green-600); }

/* --- Podatki in izbirnik -------------------------------------------------------- */
.pdp__eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin: 0 0 10px; }
.pdp__eyebrow a { color: inherit; text-decoration: none; }
.pdp__title { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); margin-bottom: 10px; }
.pdp__title--product { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.pdp__tagline { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; max-width: 52ch; }
.pdp__excerpt { color: var(--ink-2); margin-bottom: 22px; }
.pdp__excerpt p { margin: 0 0 .6em; }
.pdp__benefits { margin-top: 26px; }

.config { display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.config__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.config__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 800; color: var(--ink); font-size: .95rem; }
.config__hint { font-weight: 600; color: var(--muted); font-size: .85rem; }

.pc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-option, .len-option { position: relative; cursor: pointer; }
.pc-option input, .len-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-option__box { position: relative; display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pc-option__mm { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pc-option__desc { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.pc-option__rec { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--green-600); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.pc-option:hover .pc-option__box, .len-option:hover .len-option__box { border-color: var(--ink-2); }
.pc-option input:checked + .pc-option__box { border-color: var(--green-600); background: var(--sage); box-shadow: 0 0 0 3px rgba(115, 156, 62, .22); }
.pc-option input:focus-visible + .pc-option__box, .len-option input:focus-visible + .len-option__box { outline: 3px solid var(--green); outline-offset: 2px; }

.len-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.len-option__box { display: grid; justify-items: center; gap: 0; padding: 10px 6px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); text-align: center; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.len-option__m { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.len-option__area { font-size: .76rem; color: var(--muted); font-weight: 600; }
.len-option input:checked + .len-option__box { border-color: var(--green-600); background: var(--green-600); box-shadow: 0 6px 16px -8px rgba(62, 106, 26, .8); }
.len-option input:checked + .len-option__box .len-option__m, .len-option input:checked + .len-option__box .len-option__area { color: #fff; }
.len-option.is-unavailable { cursor: not-allowed; }
.len-option.is-unavailable .len-option__box { opacity: .4; border-style: dashed; }
.pc-option.is-unavailable .pc-option__box { opacity: .5; }

.config__result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.config--simple .config__result { padding-top: 0; border-top: 0; grid-template-columns: minmax(0, 1fr); }
.config__size { display: grid; gap: 2px; }
.config__size-main { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.config__size-meta { font-size: .88rem; color: var(--muted); }
.config__price { text-align: right; }
.config--simple .config__price { text-align: left; }
.config__price .price { justify-content: flex-end; }
.config--simple .config__price .price { justify-content: flex-start; }
.config__price .price__now { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); letter-spacing: -.025em; line-height: 1; }
.config__price .price__old { font-size: 1.05rem; }
.config__price .price--ask { font-size: 1.25rem; }
.config__price.is-updated .price__now { animation: vok-pop .4s var(--ease); }
@keyframes vok-pop { 0% { transform: scale(.94); opacity: .5; } 100% { transform: none; opacity: 1; } }
.config__included { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .88rem; font-weight: 700; color: var(--green-700); }
.config__sku { margin: 0; font-size: .82rem; color: var(--muted); }
.check--ext { padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); }
.check--ext:has(input:checked) { border-style: solid; border-color: var(--green-600); background: var(--sage); }
.config__actions { display: grid; gap: 10px; }
.config__fine { margin: -6px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 420px) {
	.config__result { grid-template-columns: minmax(0, 1fr); }
	.config__price, .config__price .price { text-align: left; justify-content: flex-start; }
}

/* --- Primerni modeli (oprema) ------------------------------------------------------ */
.fits { margin-top: 22px; }
.fits__label { font-weight: 800; color: var(--ink); font-size: .92rem; margin: 0 0 8px; }
.fits__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fits__list a { display: inline-flex; padding: 7px 14px; border-radius: var(--r-pill); background: var(--sage); color: var(--green-700); font-weight: 700; font-size: .9rem; text-decoration: none; }
.fits__list a:hover { background: var(--green-600); color: #fff; }

/* --- Dodatna oprema (izbira) -------------------------------------------------------- */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.extra { position: relative; cursor: pointer; }
.extra input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.extra__box { display: flex; align-items: center; gap: 14px; height: 100%; padding: 10px 14px 10px 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.extra__img { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.extra__img img { width: 100%; height: 100%; object-fit: contain; }
.extra__img .img-placeholder { min-height: 0; }
.extra__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.extra__name { font-weight: 700; color: var(--ink); font-size: .93rem; line-height: 1.3; }
.extra__price { font-size: .88rem; font-weight: 700; color: var(--green-700); }
.extra__check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); color: transparent; transition: all .2s; }
.extra:hover .extra__box { border-color: var(--line-strong); }
.extra input:checked + .extra__box { border-color: var(--green-600); background: var(--sage); }
.extra input:checked + .extra__box .extra__check { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.extra input:focus-visible + .extra__box { outline: 3px solid var(--green); outline-offset: 2px; }
.extras__more { margin: 18px 0 0; }

/* --- Opis in tehnični podatki ---------------------------------------------------------- */
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .pdp-details { grid-template-columns: minmax(0, 1fr); } }
.pdp-details__ideal { margin: 24px 0 0; padding: 16px 18px; background: var(--bg); border-radius: var(--r); }
.pdp-details__ideal .icon { display: inline-block; vertical-align: -3px; margin-right: 4px; color: var(--green-600); }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: .95rem; }
.specs th, .specs td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs tr:last-child > * { border-bottom: 0; }
.specs th { width: 46%; color: var(--muted); font-weight: 600; }
.specs td { color: var(--ink); font-weight: 700; }

/* --- Tabela velikosti ------------------------------------------------------------------ */
.size-table th[scope="row"] { font-weight: 800; color: var(--ink); }
.size-table__pick { display: inline-flex; padding: 7px 12px; margin: -7px -12px; border: 1.5px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; transition: border-color .2s, background-color .2s; }
.size-table__pick:hover { border-color: var(--green-600); background: var(--sage); }
.size-table__pick.is-selected { border-color: var(--green-600); background: var(--green-600); }
.size-table__pick.is-selected .price__now, .size-table__pick.is-selected .price__old, .size-table__pick.is-selected { color: #fff; }
.size-table__na { color: var(--line-strong); }
.size-table__ext { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.size-table__ext .icon { flex: none; color: var(--green-600); }

/* --- Lepljiva vrstica (mobilno in pri drsenju) -------------------------------------------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -22px rgba(36, 26, 13, .6); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta__info { display: grid; gap: 0; min-width: 0; line-height: 1.25; }
.sticky-cta__name { font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__price { font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; }

/* --- Povečava slik -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 56px 72px; background: rgba(14, 12, 8, .94); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .9rem; font-weight: 600; }
@media (max-width: 640px) {
	.lightbox { padding: 64px 8px; }
	.lightbox__nav { top: auto; bottom: 14px; transform: none; }
	.lightbox__nav--prev { left: calc(50% - 64px); }
	.lightbox__nav--next { right: calc(50% - 64px); }
	.lightbox__count { display: none; }
}
