/* project-root/public/shop/assets/css/produkt.css */

.product-detail-page-section {
    padding-top: 36px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    color: #52525b;
    font-size: 14px;
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-detail-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 24px;
}

.product-detail-title-modern {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.product-detail-meta-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #52525b;
    font-size: 14px;
}

.product-detail-meta-divider {
    color: #a1a1aa;
}

.product-detail-rating-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-detail-badges-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.product-share-button {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-share-button:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.product-share-button.is-success {
    color: #15803d;
    border-color: #15803d;
    background: #fff;
}

.product-detail-grid-modern {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.product-gallery-modern,
.product-buybox-modern {
    min-width: 0;
}

.product-gallery-modern {
    display: grid;
    gap: 14px;
}

.product-gallery-stage-modern {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 16px;
    align-items: center;
}

.gallery-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    background: #111827;
}

.product-gallery-main-modern {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main-frame {
    width: 100%;
    min-height: 490px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main-photo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.product-gallery-main-image {
    width: min(100%, 560px);
    min-height: 420px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 50%, #e5e7eb 100%);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 24px;
}

.product-gallery-thumbs-shell {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
}

.gallery-strip-arrow {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.gallery-strip-arrow:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.gallery-strip-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    background: #111827;
}

.product-gallery-thumbs-modern {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery-thumbs-modern::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 92px;
    width: 92px;
    min-width: 92px;
    height: 92px;
    border: 1px solid #d4d4d8;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-weight: 800;
    padding: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: #111827;
    box-shadow: inset 0 0 0 2px #111827;
    transform: translateY(-1px);
}

.gallery-thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #f9fafb;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-thumb-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    border-radius: 10px;
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.product-buybox-modern {
    display: grid;
    gap: 16px;
}

.product-price-summary-modern,
.product-financing-modern,
.product-variants-modern,
.product-offer-modern {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.product-detail-uvp-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #52525b;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-detail-price-modern {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.product-detail-tax-modern {
    margin-top: 8px;
    font-size: 15px;
    color: #111827;
    text-decoration: underline;
}

.product-financing-modern {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
    background: #f7f7f8;
}

.product-financing-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-financing-text {
    display: grid;
    gap: 4px;
}

.product-financing-text strong {
    font-size: 16px;
}

.product-financing-text span,
.product-financing-side span {
    color: #3f3f46;
    font-size: 14px;
}

.product-financing-side {
    display: grid;
    gap: 6px;
    text-align: right;
}

.product-financing-side strong {
    font-size: 18px;
}

.product-points-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
}

.product-points-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
}

.product-variants-modern {
    display: grid;
    gap: 14px;
}

.product-box-title-modern {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.product-variant-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid #111827;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.product-variant-pill:hover,
.product-variant-pill.is-active {
    background: #111827;
    color: #fff;
}

.product-offer-modern {
    display: grid;
    gap: 16px;
}

.product-offer-option {
    display: flex;
    gap: 14px;
    align-items: start;
    border: 2px solid #111827;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.product-offer-radio {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border: 2px solid #111827;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.product-offer-radio span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #111827;
    display: block;
}

.product-offer-body {
    display: grid;
    gap: 6px;
    width: 100%;
}

.product-offer-body strong {
    font-size: 22px;
    line-height: 1.2;
}

.product-offer-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.product-offer-tax {
    font-size: 14px;
    color: #111827;
    text-decoration: underline;
}

.product-offer-services {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.product-offer-services li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #111827;
    font-size: 14px;
}

.product-buy-actions-modern {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.product-buy-form-modern {
    flex: 1;
}

.product-detail-cart-button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s ease;
}

.product-detail-cart-button:hover {
    background: var(--primary-dark);
}

.product-detail-fav-button {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border: 2px solid #111827;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.product-detail-fav-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-detail-fav-button.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: #fff5f5;
}

.product-detail-fav-button.is-active:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.product-tabs-modern {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 18px 0 0;
    margin-top: 30px;
    border-top: 1px solid #d4d4d8;
}

.product-tabs-modern a {
    padding: 8px 0;
    color: #3f3f46;
    font-size: 16px;
    white-space: nowrap;
}

.product-tabs-modern a:hover {
    color: var(--primary);
}

.product-content-panels {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.spec-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.spec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.spec-card small {
    display: block;
    margin-bottom: 8px;
    color: #71717a;
}

.spec-card strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.product-review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-review-score {
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.product-share-button:focus-visible,
.gallery-arrow:focus-visible,
.gallery-strip-arrow:focus-visible,
.gallery-thumb:focus-visible,
.product-detail-cart-button:focus-visible,
.product-detail-fav-button:focus-visible {
    outline: 3px solid rgba(214, 31, 38, 0.24);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .product-detail-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .product-financing-modern {
        grid-template-columns: 1fr;
    }

    .product-financing-side {
        text-align: left;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .product-gallery-stage-modern {
        grid-template-columns: 1fr;
    }

    .gallery-arrow {
        display: none;
    }

    .product-gallery-main-modern {
        min-height: auto;
        padding: 18px;
    }

    .product-gallery-main-frame {
        min-height: 360px;
    }

    .product-gallery-main-photo {
        max-height: 420px;
    }

    .product-gallery-main-image {
        min-height: 320px;
        font-size: 34px;
    }

    .product-gallery-thumbs-shell {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .gallery-strip-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .gallery-thumb {
        flex-basis: 82px;
        width: 82px;
        min-width: 82px;
        height: 82px;
    }
}

@media (max-width: 760px) {
    .product-detail-header-modern {
        flex-direction: column;
        align-items: stretch;
    }

    .product-buy-actions-modern {
        flex-direction: column;
    }

    .product-detail-fav-button {
        width: 100%;
    }

    .product-tabs-modern {
        gap: 18px;
    }

    .product-share-button {
        align-self: flex-start;
    }
}