/* ===== PRODUCT SHOW PAGE ===== */

.product-show-page {
    padding-bottom: env(safe-area-inset-bottom);
}

.product-show-page .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

/* Breadcrumbs */
.product-show-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0 24px;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.product-show-breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}
.product-show-breadcrumbs a:hover { color: var(--primary); }
.product-show-breadcrumbs .sep { color: var(--gray-400); font-size: 0.7rem; }
.product-show-breadcrumbs span:last-child { color: var(--gray-700); font-weight: 500; }

/* ===== PRODUCT DETAIL LAYOUT ===== */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ===== IMAGE GALLERY ===== */
.pdp-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}
.pdp-main-image {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1/1;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.pdp-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.pdp-main-image .no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-400);
    font-size: 4rem;
}
.pdp-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-600);
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pdp-img-nav:hover { background: var(--white); color: var(--primary); border-color: var(--primary); }
.pdp-img-nav.prev { left: 12px; }
.pdp-img-nav.next { right: 12px; }

.pdp-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
}
.pdp-thumbnails::-webkit-scrollbar { height: 4px; }
.pdp-thumbnails::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.pdp-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: border-color 0.2s;
    padding: 4px;
}
.pdp-thumb:hover { border-color: var(--gray-400); }
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== FULLSCREEN LIGHTBOX ===== */
.pdp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.pdp-lightbox.active { display: flex; }
.pdp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.pdp-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.pdp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.pdp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pdp-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.pdp-lightbox-nav.prev { left: 24px; }
.pdp-lightbox-nav.next { right: 24px; }
.pdp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.pdp-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px 0;
}
.pdp-lightbox-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: 4px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 2px;
    background: rgba(255,255,255,0.05);
}
.pdp-lightbox-thumb:hover { opacity: 0.8; }
.pdp-lightbox-thumb.active { border-color: var(--primary); opacity: 1; }
.pdp-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== PRODUCT INFO PANEL ===== */
.pdp-info { display: flex; flex-direction: column; }

.pdp-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 12px;
}
.pdp-manufacturer {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.pdp-manufacturer a { color: var(--primary); font-weight: 500; }
.pdp-manufacturer a:hover { text-decoration: underline; }

.pdp-sku {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.pdp-sku span { font-weight: 500; color: var(--gray-700); }

/* Stock badge */
.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.pdp-stock .stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pdp-stock.in_stock { background: #e8f5e9; color: #2e7d32; }
.pdp-stock.in_stock .stock-dot { background: #2e7d32; }
.pdp-stock.on_order { background: #fff3e0; color: #e67e22; }
.pdp-stock.on_order .stock-dot { background: #e67e22; }
.pdp-stock.out_of_stock { background: #fce4ec; color: #c0392b; }
.pdp-stock.out_of_stock .stock-dot { background: #c0392b; }

/* Price box */
.pdp-price-box {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.pdp-price {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}
.pdp-price .unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-600);
}
.pdp-vat-info {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
}
.pdp-price-login {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.pdp-price-login i { margin-right: 6px; }

/* Quantity + cart */
.pdp-cart-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.pdp-quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pdp-quantity-row label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
}
.pdp-quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--white);
}
.pdp-quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-quantity-input button:hover { background: var(--gray-200); }
.pdp-quantity-input input {
    width: 56px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    -moz-appearance: textfield;
}
.pdp-quantity-input input::-webkit-outer-spin-button,
.pdp-quantity-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pdp-add-to-cart:hover { background: var(--primary-dark); }

.pdp-where-to-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.pdp-where-to-buy:hover { background: var(--primary-dark); color: var(--white); }

/* Short description */
.pdp-short-desc {
    margin-top: 24px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.92rem;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ===== PRODUCT TABS ===== */
.pdp-tabs {
    margin-bottom: 48px;
}
.pdp-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
    margin-bottom: 0;
}
.pdp-tab-btn {
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-600);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pdp-tab-btn:hover { color: var(--primary); }
.pdp-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.pdp-tab-panel {
    display: none;
    padding: 28px 0;
}
.pdp-tab-panel.active { display: block; }

/* Description tab */
.pdp-description {
    line-height: 1.85;
    color: var(--gray-700);
    font-size: 0.93rem;
    max-width: 900px;
}

/* Specifications table */
.pdp-specs-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
}
.pdp-specs-table tr { border-bottom: 1px solid var(--gray-200); }
.pdp-specs-table tr:last-child { border-bottom: none; }
.pdp-specs-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
}
.pdp-specs-table td:first-child {
    font-weight: 600;
    color: var(--dark);
    width: 35%;
    background: var(--gray-100);
}
.pdp-specs-table td:last-child { color: var(--gray-700); }

/* Details tab */
.pdp-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
}
.pdp-details-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.88rem;
}
.pdp-details-list li:last-child { border-bottom: none; }
.pdp-details-list .detail-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 130px;
}
.pdp-details-list .detail-value { color: var(--gray-700); }

/* Documents tab */
.pdp-documents { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.pdp-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s;
}
.pdp-doc-item:hover { border-color: var(--primary); }
.pdp-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.pdp-doc-info { flex: 1; }
.pdp-doc-name { font-weight: 600; color: var(--dark); font-size: 0.88rem; }
.pdp-doc-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.pdp-doc-actions { display: flex; gap: 8px; }
.pdp-doc-actions a {
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pdp-doc-btn-view { background: var(--primary-light); color: var(--primary); }
.pdp-doc-btn-view:hover { background: var(--primary); color: var(--white); }
.pdp-doc-btn-download { background: var(--gray-200); color: var(--gray-700); }
.pdp-doc-btn-download:hover { background: var(--gray-300); }

/* ===== RELATED PRODUCTS CAROUSEL ===== */
.pdp-related {
    margin-bottom: 48px;
}
.pdp-related-header {
    margin: 0 0 18px;
}
.pdp-related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
}
.pdp-related-carousel {
    position: relative;
    padding: 0 56px;
}
.pdp-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.pdp-related-arrow-prev {
    left: 0;
}
.pdp-related-arrow-next {
    right: 0;
}
.pdp-related-arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pdp-related-arrow:disabled,
.pdp-related-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pdp-related-track-wrapper {
    overflow: hidden;
    position: relative;
}
.pdp-related-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pdp-related-track .product-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}
.pdp-related-track .product-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 8px;
}
.pdp-related-track .product-card-body h3 {
    min-height: unset;
    max-height: unset;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pdp-related-track .product-card-body h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Niža slika, manje «praznine» u kartici */
.pdp-related-track .product-card-img {
    height: 150px;
    padding: 10px 12px;
}
.pdp-related-track .product-card-img img {
    max-height: 128px;
}
.pdp-related-track .product-price {
    margin-top: 6px;
}
.pdp-related-track .vat-note {
    margin-bottom: 2px;
}
/* Stanje ne «razvlači» karticu do dna */
.pdp-related-track .product-stock {
    margin-top: 8px;
    padding-top: 4px;
}
.pdp-related-track .product-card-footer {
    position: relative;
    left: 0;
    right: 0;
    bottom: auto;
    padding: 0 12px 12px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.pdp-related-track .product-card:hover .product-card-body {
    transform: none;
}
.pdp-related-track .product-card-btn {
    width: 100%;
    box-sizing: border-box;
}
.pdp-related-track .product-favorite {
    opacity: 1;
}

/* ===== RESPONSIVE: tablet ===== */
@media (max-width: 1200px) {
    .pdp-related-track .product-card {
        flex-basis: calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 1024px) {
    .product-show-page.section {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .product-show-breadcrumbs {
        padding: 8px 0 12px;
        font-size: 0.78rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: linear-gradient(to right, #000 92%, transparent);
        gap: 4px;
    }

    .product-show-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .product-show-breadcrumbs a,
    .product-show-breadcrumbs span {
        flex-shrink: 0;
    }

    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .pdp-gallery {
        position: static;
    }

    .pdp-main-image {
        min-height: unset;
        aspect-ratio: 1;
        max-height: min(92vw, 520px);
        margin-left: auto;
        margin-right: auto;
        cursor: zoom-in;
        touch-action: manipulation;
    }

    .pdp-img-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .pdp-thumbnails {
        gap: 8px;
        padding: 8px 4px 12px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .pdp-thumb {
        scroll-snap-align: start;
        width: 72px;
        height: 56px;
    }

    .pdp-info h1 {
        font-size: clamp(1.2rem, 4.5vw, 1.45rem);
        margin-bottom: 10px;
    }

    .pdp-stock {
        margin-bottom: 18px;
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .pdp-price-box {
        padding: 16px 18px;
        margin-bottom: 18px;
    }

    .pdp-price {
        font-size: clamp(1.35rem, 5vw, 1.65rem);
    }

    .pdp-short-desc {
        margin-top: 16px;
        padding-top: 14px;
        font-size: 0.88rem;
    }

    /* Tabovi: horizontalni skrol + sticky */
    .pdp-tabs {
        margin-bottom: 36px;
    }

    .pdp-tab-nav {
        position: sticky;
        top: var(--shop-header-offset, 0px);
        z-index: 8;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        flex-wrap: nowrap;
        justify-content: flex-start;
        border-bottom: 2px solid var(--gray-200);
        background: var(--white);
        padding-top: 4px;
        margin-left: max(-16px, calc(-1 * env(safe-area-inset-left)));
        margin-right: max(-16px, calc(-1 * env(safe-area-inset-right)));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.08);
    }

    .pdp-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .pdp-tab-btn {
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 14px 16px;
        font-size: 0.78rem;
        letter-spacing: 0.02em;
        touch-action: manipulation;
    }

    .pdp-tab-panel {
        padding: 20px 0 24px;
    }

    .pdp-description {
        font-size: 0.9rem;
        line-height: 1.75;
        max-width: none;
    }

    .pdp-doc-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }

    .pdp-doc-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .pdp-doc-actions a {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
        padding: 12px 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pdp-related-header {
        margin: 0 0 16px;
    }

    .pdp-related-header h2 {
        font-size: clamp(1.15rem, 4vw, 1.5rem);
    }

    .pdp-related-carousel {
        padding: 0 48px;
    }

    .pdp-related-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .pdp-lightbox-close {
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
    }

    .pdp-lightbox-counter {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 992px) {
    .pdp-related-track .product-card {
        flex-basis: calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

/* ===== Mobilni ===== */
@media (max-width: 768px) {
    .pdp-quantity-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pdp-quantity-row label {
        width: 100%;
    }

    .pdp-quantity-input button {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .pdp-quantity-input input {
        width: 64px;
        height: 48px;
        font-size: 1rem;
    }

    .pdp-add-to-cart,
    .pdp-where-to-buy {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 1rem;
        touch-action: manipulation;
    }

    /* Specifikacije — kartice umesto užih kolona */
    .pdp-specs-table,
    .pdp-specs-table tbody,
    .pdp-specs-table tr,
    .pdp-specs-table td {
        display: block;
        width: 100%;
    }

    .pdp-specs-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        overflow: hidden;
        background: var(--white);
    }

    .pdp-specs-table td {
        padding: 12px 14px;
    }

    .pdp-specs-table td:first-child {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: 0;
    }

    .pdp-specs-table td:last-child {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    /* Detalji — labela iznad vrednosti */
    .pdp-details-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 12px;
    }

    .pdp-details-list .detail-label {
        min-width: unset;
        font-size: 0.78rem;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .pdp-details-list .detail-value {
        font-size: 0.92rem;
        word-break: break-word;
    }

    .pdp-info h1 {
        font-size: 1.22rem;
    }

    .pdp-price {
        font-size: 1.42rem;
    }

    .pdp-related-carousel {
        padding: 0 40px;
    }

    .pdp-related-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .pdp-related-track .product-card {
        flex-basis: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .pdp-tab-btn {
        padding: 13px 14px;
        font-size: 0.72rem;
    }

    .pdp-lightbox-nav {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }

    .pdp-lightbox-nav.prev {
        left: max(8px, env(safe-area-inset-left));
    }

    .pdp-lightbox-nav.next {
        right: max(8px, env(safe-area-inset-right));
    }

    .pdp-lightbox-img {
        max-width: min(94vw, 1200px);
        max-height: min(78vh, 900px);
    }
}

@media (max-width: 480px) {
    .product-show-page.section {
        padding-top: 16px;
    }

    .pdp-main-image {
        max-height: none;
        border-radius: var(--border-radius);
    }

    .pdp-thumb {
        width: 64px;
        height: 50px;
    }

    .pdp-related-carousel {
        padding: 0 36px;
    }

    .pdp-related-track .product-card {
        flex-basis: 82%;
        max-width: 82%;
    }

    .pdp-related-track .product-card-img {
        height: 132px;
        padding: 8px 10px;
    }

    .pdp-related-track .product-card-img img {
        max-height: 112px;
    }

    .pdp-tab-btn {
        padding: 12px 12px;
        font-size: 0.68rem;
    }
}

/* smanjeno kretanje za korisnike koji to žele */
@media (prefers-reduced-motion: reduce) {
    .pdp-related-track,
    .pdp-main-image img,
    .pdp-thumb,
    .pdp-tab-btn {
        transition: none;
    }
}

/* tastatura / fokus */
.pdp-tab-btn:focus-visible,
.pdp-img-nav:focus-visible,
.pdp-thumb:focus-visible,
.pdp-add-to-cart:focus-visible,
.pdp-where-to-buy:focus-visible,
.pdp-related-arrow:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
