﻿.product-detail-page {
    --product-primary: #dc2626;
    --product-primary-dark: #b91c1c;
    --product-primary-soft: #fef2f2;
    --product-success: #16a34a;
    --product-success-soft: #f0fdf4;
    --product-warning: #f59e0b;
    --product-text: #111827;
    --product-muted: #6b7280;
    --product-border: #e5e7eb;
    --product-border-dark: #d1d5db;
    --product-surface: #ffffff;
    --product-surface-soft: #f8fafc;
    --product-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    color: var(--product-text);
    background: #fff;
    padding-bottom: 4rem;
}

    .product-detail-page *,
    .product-detail-page *::before,
    .product-detail-page *::after {
        box-sizing: border-box;
    }

/* Breadcrumb */

.product-breadcrumb {
    padding: 1rem 0;
    overflow: hidden;
}

    .product-breadcrumb .breadcrumb {
        margin: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

        .product-breadcrumb .breadcrumb::-webkit-scrollbar {
            display: none;
        }

    .product-breadcrumb .breadcrumb-item {
        font-size: 0.84rem;
        color: var(--product-muted);
    }

        .product-breadcrumb .breadcrumb-item a {
            color: var(--product-muted);
            text-decoration: none;
            transition: color 0.2s ease, opacity 0.2s ease;
        }

            .product-breadcrumb .breadcrumb-item a:hover {
                color: var(--product-primary);
            }

        .product-breadcrumb .breadcrumb-item.active {
            color: var(--product-text);
            font-weight: 600;
            max-width: 280px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            color: #9ca3af;
        }

/* Hero */

.product-detail-hero {
    padding: 0.5rem 0 2rem;
}

/* Gallery */

.product-gallery {
    position: sticky;
    top: 1rem;
    min-width: 0;
}

.product-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding: 2rem;
    overflow: hidden;
    background: var(--product-surface);
    border: 1px solid var(--product-border);
    border-radius: 1.25rem;
}

.product-gallery__main-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 500px;
    text-decoration: none;
    cursor: zoom-in;
}

.product-gallery__main-image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-gallery__main:hover .product-gallery__main-image {
    transform: scale(1.025);
}

.product-gallery__zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--product-text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--product-border);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .product-gallery__zoom:hover {
        color: #fff;
        background: var(--product-primary);
        border-color: var(--product-primary);
        transform: translateY(-2px);
    }

.product-gallery__badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: calc(100% - 6rem);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.9rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.product-badge--discount {
    color: #fff;
    background: var(--product-primary);
}

.product-badge--suggested {
    color: #854d0e;
    background: #fef3c7;
}

.product-badge--origin {
    color: #1e3a8a;
    background: #dbeafe;
}

.product-badge--shipping {
    color: #166534;
    background: #dcfce7;
}

.product-gallery__thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.product-gallery__thumbnail {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    padding: 0.4rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .product-gallery__thumbnail:hover {
        border-color: var(--product-border-dark);
        transform: translateY(-2px);
    }

    .product-gallery__thumbnail.is-active {
        border-color: var(--product-primary);
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
    }

    .product-gallery__thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Product summary */

.product-summary {
    min-width: 0;
}

.product-summary__header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--product-border);
}

.product-summary__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.product-summary__brand {
    color: var(--product-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

    .product-summary__brand:hover {
        color: var(--product-primary-dark);
    }

.product-summary__code {
    color: var(--product-muted);
    font-size: 0.78rem;
}

    .product-summary__code strong {
        color: var(--product-text);
        font-weight: 600;
    }

.product-summary__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-summary__title {
    flex: 1;
    margin: 0;
    color: var(--product-text);
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.product-favorite-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    color: var(--product-muted);
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .product-favorite-button:hover,
    .product-favorite-button.is-active {
        color: var(--product-primary);
        background: var(--product-primary-soft);
        border-color: #fecaca;
    }

    .product-favorite-button:hover {
        transform: translateY(-2px);
    }

.product-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.9rem;
    padding: 0;
    color: var(--product-text);
    background: transparent;
    border: 0;
    text-align: left;
}

.product-rating-summary__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--product-warning);
}

    .product-rating-summary__stars strong {
        color: var(--product-text);
        font-size: 0.9rem;
    }

.product-rating-summary__count {
    color: var(--product-muted);
    font-size: 0.84rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-summary__description {
    margin: 1rem 0 0;
    color: var(--product-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* Alternatives */

.product-alternatives {
    margin-top: 1.25rem;
}

.product-section-heading--compact {
    margin-bottom: 0.75rem;
}

    .product-section-heading--compact h2 {
        font-size: 1rem;
    }

.product-alternatives__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.product-alternative {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0.65rem;
    color: var(--product-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .product-alternative:hover {
        color: var(--product-text);
        border-color: var(--product-primary);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
        transform: translateY(-2px);
    }

.product-alternative__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    padding: 0.35rem;
    background: var(--product-surface-soft);
    border-radius: 0.7rem;
}

    .product-alternative__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.product-alternative__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    margin-top: 0.5rem;
    text-align: center;
}

    .product-alternative__content small {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        color: var(--product-muted);
        font-size: 0.74rem;
        font-weight: 500;
        line-height: 1.35;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

/* Purchase card */

.product-purchase-card {
    margin-top: 1.25rem;
    padding: 1.35rem;
    background: var(--product-surface);
    border: 1px solid var(--product-border);
    border-radius: 1.1rem;
    box-shadow: var(--product-shadow);
}

.product-price-area {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.9rem 1.25rem;
    align-items: end;
}

.product-price-area__old {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--product-muted);
    font-size: 0.82rem;
}

    .product-price-area__old del {
        color: var(--product-muted);
        font-size: 0.95rem;
    }

.product-price-area__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-price-area__label {
    margin-bottom: 0.2rem;
    color: var(--product-muted);
    font-size: 0.8rem;
}

.product-price-area__value {
    color: var(--product-primary);
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.product-price-area__main small {
    margin-top: 0.35rem;
    color: var(--product-muted);
    font-size: 0.75rem;
}

.product-price-area__excluding-vat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 1rem;
    border-left: 1px solid var(--product-border);
}

    .product-price-area__excluding-vat span {
        color: var(--product-muted);
        font-size: 0.74rem;
    }

    .product-price-area__excluding-vat strong {
        margin-top: 0.2rem;
        color: var(--product-text);
        font-size: 0.95rem;
    }

/* Payment options */

.product-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.product-payment-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    min-height: 76px;
    padding: 0.85rem;
    text-align: left;
    background: var(--product-surface-soft);
    border: 1px solid var(--product-border);
    border-radius: 0.85rem;
}

button.product-payment-option {
    width: 100%;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    button.product-payment-option:hover {
        background: #fff;
        border-color: var(--product-primary);
        transform: translateY(-1px);
    }

.product-payment-option__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--product-primary);
    background: var(--product-primary-soft);
    border-radius: 0.7rem;
}

.product-payment-option__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .product-payment-option__content small {
        color: var(--product-muted);
        font-size: 0.72rem;
    }

    .product-payment-option__content strong {
        margin-top: 0.1rem;
        overflow: hidden;
        color: var(--product-text);
        font-size: 0.88rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-payment-option__content span {
        margin-top: 0.1rem;
        color: var(--product-success);
        font-size: 0.7rem;
        font-weight: 600;
    }

.product-payment-option > .fa-chevron-right {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Price request */

.product-price-request {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
}

.product-price-request__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    color: #fff;
    background: #25d366;
    border-radius: 0.9rem;
    font-size: 1.4rem;
}

.product-price-request__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .product-price-request__content strong {
        color: var(--product-text);
        font-size: 1rem;
    }

    .product-price-request__content span {
        margin-top: 0.2rem;
        color: var(--product-muted);
        font-size: 0.82rem;
        line-height: 1.45;
    }

.product-price-request__button {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    margin-top: 0.35rem;
    font-weight: 700;
}

/* Variations */

.product-variations {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--product-border);
}

.product-variation-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

    .product-variation-group__header label {
        color: var(--product-text);
        font-size: 0.85rem;
        font-weight: 700;
    }

.product-variation-group__selection {
    color: var(--product-muted);
    font-size: 0.75rem;
}

.product-variation-group__values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-variation-value {
    position: relative;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    color: var(--product-text);
    background: #fff;
    border: 1px solid var(--product-border-dark);
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .product-variation-value:hover {
        border-color: var(--product-primary);
    }

    .product-variation-value.is-selected {
        color: var(--product-primary);
        background: var(--product-primary-soft);
        border-color: var(--product-primary);
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
    }

        .product-variation-value.is-selected::after {
            position: absolute;
            right: -4px;
            bottom: -4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            color: #fff;
            background: var(--product-primary);
            border: 2px solid #fff;
            border-radius: 50%;
            content: "✓";
            font-size: 8px;
        }

/* Purchase actions */

.product-purchase-actions {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.product-quantity {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--product-border-dark);
    border-radius: 0.8rem;
}

.product-quantity__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    color: var(--product-text);
    background: transparent;
    border: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

    .product-quantity__button:hover {
        color: var(--product-primary);
        background: var(--product-primary-soft);
    }

.product-quantity__input {
    width: 100%;
    height: 100%;
    padding: 0.2rem;
    color: var(--product-text);
    background: #fff;
    border: 0;
    outline: 0;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
}

    .product-quantity__input::-webkit-inner-spin-button,
    .product-quantity__input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }

.product-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.75rem 1rem;
    font-weight: 750;
    border-radius: 0.8rem;
}

    .product-add-to-cart i {
        font-size: 1rem;
    }

/* Stock */

.product-stock-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--product-border);
}

.product-stock-info__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--product-muted);
    font-size: 0.77rem;
}

    .product-stock-info__item i {
        color: #64748b;
    }

.product-stock-info__item--success,
.product-stock-info__item--success i {
    color: var(--product-success);
}

.product-stock-info__item--danger,
.product-stock-info__item--danger i {
    color: var(--product-primary);
}

/* Feature summary */

.product-feature-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.product-feature-summary__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    background: var(--product-surface-soft);
    border-radius: 0.7rem;
}

    .product-feature-summary__item span {
        overflow: hidden;
        color: var(--product-muted);
        font-size: 0.75rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-feature-summary__item strong {
        overflow: hidden;
        color: var(--product-text);
        font-size: 0.76rem;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Content tabs */

.product-content {
    margin-top: 2.5rem;
    border: 1px solid var(--product-border);
    border-radius: 1.1rem;
    background: #fff;
    overflow: hidden;
}

.product-content-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: var(--product-surface-soft);
    border-bottom: 1px solid var(--product-border);
    scrollbar-width: none;
}

    .product-content-tabs::-webkit-scrollbar {
        display: none;
    }

.product-content-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0.75rem 1.2rem;
    color: var(--product-muted);
    background: transparent;
    border: 0;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

    .product-content-tab:hover {
        color: var(--product-text);
        background: #fff;
    }

    .product-content-tab.is-active {
        color: var(--product-primary);
        background: #fff;
    }

        .product-content-tab.is-active::after {
            position: absolute;
            right: 1rem;
            bottom: 0;
            left: 1rem;
            height: 3px;
            background: var(--product-primary);
            border-radius: 999px 999px 0 0;
            content: "";
        }

.product-content-panels {
    padding: 1.5rem;
}

.product-content-panel {
    display: none;
}

    .product-content-panel.is-active {
        display: block;
        animation: productPanelFade 0.22s ease;
    }

@keyframes productPanelFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section headings */

.product-section-heading {
    margin-bottom: 1.25rem;
}

    .product-section-heading > span {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--product-primary);
        font-size: 0.74rem;
        font-weight: 750;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .product-section-heading h2 {
        margin: 0;
        color: var(--product-text);
        font-size: clamp(1.25rem, 2vw, 1.65rem);
        font-weight: 750;
        letter-spacing: -0.02em;
    }

/* Description */

.product-description {
    color: #374151;
    font-size: 0.94rem;
    line-height: 1.8;
    word-break: break-word;
}

    .product-description > :first-child {
        margin-top: 0;
    }

    .product-description > :last-child {
        margin-bottom: 0;
    }

    .product-description img {
        max-width: 100%;
        height: auto;
    }

    .product-description table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
    }

    .product-description iframe {
        max-width: 100%;
    }

/* Feature table */

.product-feature-table {
    overflow: hidden;
    border: 1px solid var(--product-border);
    border-radius: 0.9rem;
}

.product-feature-table__row {
    display: grid;
    grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
    min-height: 50px;
    border-bottom: 1px solid var(--product-border);
}

    .product-feature-table__row:last-child {
        border-bottom: 0;
    }

    .product-feature-table__row span,
    .product-feature-table__row strong {
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        font-size: 0.84rem;
    }

    .product-feature-table__row span {
        color: var(--product-muted);
        background: var(--product-surface-soft);
    }

    .product-feature-table__row strong {
        color: var(--product-text);
        font-weight: 600;
    }

/* Empty states */

.product-content-empty,
.product-review-placeholder,
.product-last-looked-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem;
    color: var(--product-muted);
    background: var(--product-surface-soft);
    border: 1px dashed var(--product-border-dark);
    border-radius: 0.9rem;
    text-align: center;
}

    .product-content-empty i {
        margin-bottom: 0.75rem;
        color: #9ca3af;
        font-size: 1.7rem;
    }

    .product-content-empty strong {
        color: var(--product-text);
        font-size: 0.95rem;
    }

    .product-content-empty span {
        margin-top: 0.3rem;
        font-size: 0.82rem;
    }

/* Recommendation sections */

.product-recommendation-section {
    margin-top: 3rem;
}

.product-detail-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

/* Installment modal */

.product-installment-modal {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
}

    .product-installment-modal .modal-header {
        align-items: center;
        padding: 1.1rem 1.25rem;
        border-bottom: 1px solid var(--product-border);
    }

    .product-installment-modal .modal-body {
        padding: 1.25rem;
    }

.product-installment-modal__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--product-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-installment-modal .modal-title {
    margin: 0;
    color: var(--product-text);
    font-size: 1.2rem;
    font-weight: 750;
}

/* Product not found */

.product-detail-empty {
    padding: 5rem 0;
}

.product-detail-empty__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 1rem;
    box-shadow: var(--product-shadow);
    text-align: center;
}

    .product-detail-empty__content > i {
        margin-bottom: 1rem;
        color: var(--product-primary);
        font-size: 2.5rem;
    }

    .product-detail-empty__content h1 {
        margin: 0;
        color: var(--product-text);
        font-size: 1.5rem;
    }

    .product-detail-empty__content p {
        margin: 0.75rem 0 1.25rem;
        color: var(--product-muted);
        line-height: 1.6;
    }

/* Focus */

.product-detail-page button:focus-visible,
.product-detail-page a:focus-visible,
.product-detail-page input:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.2);
    outline-offset: 2px;
}

/* Tablet */

@media (max-width: 1199.98px) {
    .product-gallery__main {
        min-height: 500px;
    }

    .product-gallery__main-link {
        min-height: 440px;
    }

    .product-gallery__main-image {
        height: 440px;
    }

    .product-detail-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .product-alternatives__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .product-detail-hero {
        padding-bottom: 1rem;
    }

    .product-gallery {
        position: static;
    }

    .product-gallery__main {
        min-height: 460px;
    }

    .product-gallery__main-link {
        min-height: 400px;
    }

    .product-gallery__main-image {
        height: 400px;
    }

    .product-summary {
        padding-top: 0.5rem;
    }

    .product-detail-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .product-alternatives__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .product-detail-page {
        padding-bottom: 2.5rem;
    }

    .product-breadcrumb {
        padding: 0.75rem 0;
    }

        .product-breadcrumb .breadcrumb-item {
            font-size: 0.75rem;
        }

            .product-breadcrumb .breadcrumb-item.active {
                max-width: 190px;
            }

    .product-detail-hero {
        padding-top: 0;
    }

    .product-gallery__main {
        min-height: 390px;
        padding: 1rem;
        border-radius: 1rem;
    }

    .product-gallery__main-link {
        min-height: 350px;
    }

    .product-gallery__main-image {
        height: 350px;
    }

    .product-gallery__zoom {
        top: 0.7rem;
        right: 0.7rem;
        width: 2.45rem;
        height: 2.45rem;
    }

    .product-gallery__badges {
        top: 0.7rem;
        left: 0.7rem;
        gap: 0.35rem;
    }

    .product-badge {
        min-height: 1.7rem;
        padding: 0.3rem 0.55rem;
        font-size: 0.68rem;
    }

    .product-gallery__thumbnail {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        border-radius: 0.75rem;
    }

    .product-summary__brand-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .product-summary__title {
        font-size: 1.5rem;
    }

    .product-favorite-button {
        width: 2.55rem;
        height: 2.55rem;
    }

    .product-purchase-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .product-price-area {
        grid-template-columns: 1fr;
    }

    .product-price-area__excluding-vat {
        align-items: flex-start;
        padding-top: 0.8rem;
        padding-left: 0;
        border-top: 1px solid var(--product-border);
        border-left: 0;
    }

    .product-price-area__value {
        font-size: 2rem;
    }

    .product-payment-options {
        grid-template-columns: 1fr;
    }

    .product-purchase-actions {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .product-feature-summary {
        grid-template-columns: 1fr;
    }

    .product-content {
        margin-top: 1.75rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .product-content-panels {
        padding: 1rem;
    }

    .product-content-tab {
        min-height: 52px;
        padding: 0.65rem 0.9rem;
        font-size: 0.78rem;
    }

    .product-feature-table__row {
        grid-template-columns: 1fr;
    }

        .product-feature-table__row span {
            padding-bottom: 0.35rem;
        }

        .product-feature-table__row strong {
            padding-top: 0.35rem;
        }

    .product-detail-product-grid {
        display: flex;
        gap: 0.8rem;
        padding-bottom: 0.5rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

        .product-detail-product-grid > * {
            flex: 0 0 min(78vw, 280px);
            scroll-snap-align: start;
        }

    .product-recommendation-section {
        margin-top: 2.25rem;
    }
    .product-alternatives__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .product-gallery__main {
        min-height: 330px;
    }

    .product-gallery__main-link {
        min-height: 290px;
    }

    .product-gallery__main-image {
        height: 290px;
    }

    .product-summary__title {
        font-size: 1.35rem;
    }

    .product-purchase-actions {
        grid-template-columns: 1fr;
    }

    .product-quantity {
        width: 128px;
    }

    .product-add-to-cart {
        width: 100%;
    }

    .product-stock-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-price-request {
        grid-template-columns: auto 1fr;
    }
}
.product-installment-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

    .product-installment-notice i {
        flex: 0 0 auto;
        margin-top: 0.2rem;
        color: #2563eb;
    }

.product-installment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-installment-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
}

.product-installment-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.product-installment-card__bank {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.product-installment-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    padding: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

    .product-installment-card__logo img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-installment-card__bank div {
    min-width: 0;
}

.product-installment-card__bank span {
    display: block;
    margin-bottom: 0.1rem;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-installment-card__bank strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-installment-card__count {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e2e8f0;
    border-radius: 999px;
}

.product-installment-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.product-installment-table {
    width: 100%;
    min-width: 29rem;
    border-collapse: collapse;
}

    .product-installment-table th,
    .product-installment-table td {
        padding: 0.85rem 1rem;
        text-align: right;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
    }

        .product-installment-table th:first-child,
        .product-installment-table td:first-child {
            text-align: left;
        }

    .product-installment-table th {
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        background: #fff;
    }

    .product-installment-table td {
        color: #334155;
        font-size: 0.875rem;
    }

    .product-installment-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .product-installment-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .product-installment-table tbody tr:hover {
            background: #f8fafc;
        }

.product-installment-table__installment {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .product-installment-table__installment strong {
        color: #0f172a;
    }

    .product-installment-table__installment span {
        color: #64748b;
        font-size: 0.8rem;
    }

.product-installment-table__amount {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.product-installment-table__total {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.product-installment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 13rem;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
}

    .product-installment-empty i {
        margin-bottom: 0.75rem;
        color: #94a3b8;
        font-size: 2rem;
    }

    .product-installment-empty strong {
        margin-bottom: 0.35rem;
        color: #0f172a;
    }

    .product-installment-empty span {
        max-width: 28rem;
        color: #64748b;
        font-size: 0.875rem;
    }

.product-installment-modal .modal-header {
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.product-installment-modal__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-installment-modal .modal-title {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
}

.product-installment-modal .modal-body {
    padding: 1.5rem;
}

@media (max-width: 991.98px) {
    .product-installment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .product-installment-card__header {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .product-installment-card__count {
        font-size: 0.68rem;
    }

    .product-installment-table th,
    .product-installment-table td {
        padding: 0.75rem;
    }

    .product-installment-modal .modal-body {
        padding: 1rem;
    }
}
.product-payment-option--installment {
    cursor: pointer;
}

button.product-payment-option--installment {
    width: 100%;
    font: inherit;
    text-align: left;
    appearance: none;
}

    button.product-payment-option--installment:hover {
        border-color: #cbd5e1;
        background: #f8fafc;
        transform: translateY(-1px);
    }

        button.product-payment-option--installment:hover > .fa-chevron-right {
            color: #ef4444;
            transform: translateX(3px);
        }

.product-payment-option--installment > .fa-chevron-right {
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-payment-option--installment.is-disabled {
    cursor: default;
    opacity: 0.65;
}
.product-review-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.product-review-overview__score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .product-review-overview__score > strong {
        color: #0f172a;
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1;
    }

    .product-review-overview__score > div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

.product-review-overview__stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #f59e0b;
}

.product-review-overview small {
    color: #64748b;
    font-size: 0.8rem;
}

.product-review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-review-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .product-review-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.06);
    }

.product-review-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-review-card__user {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.product-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: #334155;
    border-radius: 50%;
}

.product-review-card__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

    .product-review-card__identity strong {
        overflow: hidden;
        color: #0f172a;
        font-size: 0.95rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-review-card__identity time {
        color: #94a3b8;
        font-size: 0.75rem;
    }

.product-review-card__rating {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.2rem;
    color: #f59e0b;
    font-size: 0.85rem;
}

    .product-review-card__rating strong {
        margin-left: 0.35rem;
        color: #475569;
        font-size: 0.8rem;
    }

.product-review-card__comment {
    margin-top: 1rem;
    padding-top: 1rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-line;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 575.98px) {
    .product-review-overview {
        align-items: stretch;
        flex-direction: column;
    }

        .product-review-overview .btn {
            width: 100%;
        }

    .product-review-card__header {
        flex-direction: column;
    }

    .product-review-card__rating {
        padding-left: 3.5rem;
    }
}
.product-review-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.35rem;
}

    .product-review-rating-input input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .product-review-rating-input label {
        color: #d1d5db;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        transition: color 0.15s ease, transform 0.15s ease;
    }

        .product-review-rating-input label:hover,
        .product-review-rating-input label:hover ~ label,
        .product-review-rating-input input:checked ~ label {
            color: #f59e0b;
        }

        .product-review-rating-input label:hover {
            transform: translateY(-1px);
        }

    .product-review-rating-input input:focus-visible + label {
        outline: 2px solid currentColor;
        outline-offset: 4px;
        border-radius: 0.25rem;
    }
/* Product image modal */

.product-image-modal .modal-dialog {
    max-width: min(92vw, 1400px);
}

.product-image-modal .modal-content {
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.product-image-modal .modal-header {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--product-border);
}

.product-image-modal .modal-title {
    overflow: hidden;
    max-width: calc(100% - 3.5rem);
    color: var(--product-text);
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-image-modal .modal-body {
    padding: 1rem;
    background: var(--product-surface-soft);
}

.product-image-modal__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(78vh, 820px);
}

.product-image-modal__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    user-select: none;
}

@media (max-width: 767.98px) {
    .product-image-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .product-image-modal .modal-content {
        border-radius: 0.9rem;
    }

    .product-image-modal .modal-header {
        padding: 0.75rem 0.9rem;
    }

    .product-image-modal .modal-title {
        font-size: 0.85rem;
    }

    .product-image-modal .modal-body {
        padding: 0.5rem;
    }

    .product-image-modal__content {
        min-height: 70vh;
    }

    .product-image-modal__image {
        max-height: 70vh;
    }
}
.product-image-modal__content {
    position: relative;
}

.product-image-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    color: var(--product-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--product-border);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-50%);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .product-image-modal__nav:hover {
        color: var(--product-primary);
        border-color: var(--product-primary);
        transform: translateY(-50%) scale(1.05);
    }

.product-image-modal__nav--prev {
    left: 1rem;
}

.product-image-modal__nav--next {
    right: 1rem;
}

@media (max-width: 767.98px) {
    .product-image-modal__nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .product-image-modal__nav--prev {
        left: 0.35rem;
    }

    .product-image-modal__nav--next {
        right: 0.35rem;
    }
}