/* Strana proizvoda: fotografije levo (jedna ispod druge; na tabletu i telefonu klizač), podaci desno (lepljivo) */
.prod { padding: 48px 24px 40px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 0; list-style: none; }
.crumbs li {
    color: #6b6b6b;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.3px;
}
.crumbs li + li::before { content: "/"; margin-right: 4px; }
.crumbs a { color: #1E1E1E; }
.crumbs a:hover, .crumbs a:focus { text-decoration: underline; }

.prod__in { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 48px; align-items: start; }
.prod__gal { position: relative; }
.prod__gal[hidden] { display: none; }
.prod__imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prod__img { margin: 0; background: #f2f2f0; line-height: 0; }
.prod__img:first-child { grid-column: 1 / -1; }
.prod__img img { width: 100%; height: auto; }

.prod__info { position: sticky; top: 24px; color: #1E1E1E; font-family: "Poppins", Sans-serif; }
.prod__cat { margin-bottom: 8px; font-size: 14px; letter-spacing: -.3px; }
.prod__cat a { color: #6b6b6b; }
.prod__cat a:hover, .prod__cat a:focus { color: #1E1E1E; text-decoration: underline; }
.prod__h {
    margin-bottom: 14px;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
}
.prod__price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 22px; letter-spacing: -.5px; }
.prod__badge {
    padding: 6px 10px;
    border: 1px dashed #1E1E1E;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.opts { margin: 0 0 20px; padding: 0; border: 0; }
.opts__l { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.opts__l span { font-weight: 400; }
.opts__list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
    display: block;
    min-width: 54px;
    padding: 10px 16px;
    border: 1px dashed #b5b5b5;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
}
.opt:hover span { border-color: #1E1E1E; }
.opt input:checked + span { border-style: solid; border-color: #1E1E1E; background: #1E1E1E; color: #fff; }
.opt input:focus-visible + span { outline: 2px solid #1E1E1E; outline-offset: 2px; }

.prod__buy { display: flex; gap: 8px; margin: 8px 0 12px; }
.prod__qty {
    width: 76px;
    padding: 0 10px;
    border: 1px solid #D3D3D3;
    border-radius: 4px;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    text-align: center;
}
.prod__qty:focus { border-color: #1E1E1E; outline: none; }
.prod__add { flex: 1 1 auto; padding: 18px 20px; font-size: 18px; cursor: pointer; }
.prod__msg { min-height: 1.5em; margin-bottom: 8px; font-size: 15px; }
.prod__msg a { text-decoration: underline; text-underline-offset: 3px; }
.prod__msg--err { color: #c0392b; }
.prod__note { margin-bottom: 10px; color: #6b6b6b; font-size: 14px; line-height: 1.5; letter-spacing: -.3px; }
.prod__form .btn-w { margin-top: 12px; }

.prod__text { margin-top: 32px; border-top: 1px solid #D3D3D3; }
.prod__sec { padding: 20px 0; }
.prod__sh, .prod__acc summary { margin-bottom: 10px; font-size: 16px; font-weight: 500; letter-spacing: -.3px; }
.prod__text p { margin: 0; font-size: 15px; line-height: 1.6; letter-spacing: -.3px; }
.prod__acc { border-top: 1px solid #D3D3D3; }
.prod__acc summary {
    position: relative;
    margin: 0;
    padding: 18px 30px 18px 0;
    list-style: none;
    cursor: pointer;
}
.prod__acc summary::-webkit-details-marker { display: none; }
.prod__acc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 300; }
.prod__acc[open] summary::after { content: "−"; }
.prod__acc p { padding-bottom: 18px; }

/* Strelice (klizač fotografija i carousel) — "dashed" stil dugmadi sajta */
.slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px dashed #1E1E1E;
    border-radius: 4px;
    background: #fff;
    color: #1E1E1E;
    cursor: pointer;
    transition: background .3s, color .3s, opacity .3s;
}
.slider-arrow[hidden] { display: none; }
.slider-arrow svg { width: 16px; height: auto; fill: currentColor; }
.slider-arrow--prev svg { transform: rotate(90deg); }
.slider-arrow--next svg { transform: rotate(-90deg); }
.slider-arrow:hover, .slider-arrow:focus-visible { background: #1E1E1E; color: #fff; }
.slider-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* Klizač fotografija: strelice i tačke postoje samo na tabletu/telefonu */
.prod__arrow, .prod__dots { display: none !important; }

.prod-rel { --per: 4; }
/* .shop-list (shop.css, učitava se posle) inače poništava razmak */
.shop-list.prod-rel { padding: 100px 24px 0; }
.prod-rel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.prod-rel__nav { display: flex; flex: 0 0 auto; gap: 8px; }
.prod-rel__nav[hidden] { display: none; }
.prod-rel__h {
    margin: 0;
    color: #1E1E1E;
    font-family: "Poppins", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -1px;
}

/* Carousel "iz iste kategorije" (main.js dodaje .is-on kada ima više kartica nego što staje) */
.car__track > [data-clone] { display: none; }
.prod-rel.is-on .car__view { overflow: hidden; overflow: clip; touch-action: pan-y; } /* clip: fokus (Tab) ne skroluje okvir */
.prod-rel.is-on .car__track { display: flex; gap: 8px; will-change: transform; }
.prod-rel.is-on .car__track > .pcard { flex: 0 0 calc((100% - (var(--per) - 1) * 8px) / var(--per)); }
.prod-rel.is-on .car__track > [data-clone] { display: flex; }
.prod-rel.is-dragging .car__track { cursor: grabbing; }
.prod-rel.is-dragging .car__track a { pointer-events: none; }
.car__track img { -webkit-user-drag: none; user-select: none; }

@media (max-width: 1366px) { .prod__h { font-size: 38px; } }
@media (max-width: 1024px) {
    .prod { padding-top: 32px; }
    .prod__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .prod__info { position: static; }
    /* Tablet: klizač sa dve fotografije, telefon: jedna; prevlačenje prstom pomera za jednu */
    .prod__imgs {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .prod__imgs::-webkit-scrollbar { display: none; }
    .prod__img { flex: 0 0 calc(50% - 3px); scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 2 / 3; }
    .prod__img img { height: 100%; object-fit: cover; object-position: center top; }
    .prod__arrow { display: inline-flex !important; position: absolute; top: calc(50% - 22px - 16px); z-index: 2; background: rgba(255, 255, 255, .92); }
    .prod__arrow[hidden] { display: none !important; }
    .prod__arrow.slider-arrow--prev { left: 10px; }
    .prod__arrow.slider-arrow--next { right: 10px; }
    .prod__dots { display: flex !important; justify-content: center; gap: 4px; margin-top: 12px; }
    .prod__dots[hidden] { display: none !important; }
    .prod__dot {
        width: 20px;
        height: 20px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .prod__dot::before {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin: auto;
        border: 1px solid #1E1E1E;
        border-radius: 50%;
        transition: background .3s, transform .3s;
    }
    .prod__dot[aria-current="true"]::before { background: #1E1E1E; transform: scale(1.15); }
    .prod-rel { --per: 2; }
    .shop-list.prod-rel { padding-top: 72px; }
    .prod-rel__h { font-size: 30px; }
}
@media (max-width: 767px) {
    .prod { padding: 24px 8px 24px; }
    .prod__img { flex-basis: 100%; }
    .prod__arrow { width: 38px; height: 38px; top: calc(50% - 19px - 16px); }
    .prod__arrow.slider-arrow--prev { left: 8px; }
    .prod__arrow.slider-arrow--next { right: 8px; }
    .prod-rel__nav .slider-arrow { width: 38px; height: 38px; }
    .prod__h { font-size: 30px; }
    .prod__price { font-size: 19px; }
    .shop-list.prod-rel { padding: 56px 8px 0; }
    .prod-rel__h { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .prod__imgs { scroll-behavior: auto; }
}
