.product-detail-page {
    --product-border: #e5e7eb;
    --product-muted-bg: #f7f8fa;
    --product-text-muted: #6b7280;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.product-detail-layout {
    align-items: stretch;
}

.product-main-panel,
.product-content-section,
.product-purchase-card {
    border: 1px solid var(--product-border);
    border-radius: 1rem;
    background: #fff;
}

.product-main-panel {
    padding: 1.25rem;
}

.product-title {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.75;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    color: var(--product-text-muted);
    font-size: 0.86rem;
}

.product-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #374151;
    text-decoration: none;
}

.product-rating-link:hover {
    color: var(--bs-primary);
}

.product-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #fff;
}

.product-gallery-main-image {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-gallery-thumb {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    padding: 0.3rem;
    border: 1px solid var(--product-border);
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.1);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-summary-card {
    height: 100%;
    padding: 1.25rem;
    border-radius: 0.9rem;
    background: var(--product-muted-bg);
}

.product-summary-card .product-brief {
    color: #4b5563;
    line-height: 2;
}

.product-feature-preview {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.product-feature-preview-item {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.product-feature-preview-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.product-feature-preview-label {
    color: var(--product-text-muted);
}

.product-service-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-right: 3px solid var(--bs-primary);
    border-radius: 0.65rem;
    background: rgba(var(--bs-primary-rgb), 0.07);
    color: #374151;
    line-height: 1.8;
}

.product-content-section {
    margin-top: 1.25rem;
    padding: 1.5rem;
    scroll-margin-top: calc(var(--irenfix-header-height, 0px) + 1rem);
}

.product-section-heading {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    font-size: 1.15rem;
}

.product-section-heading::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--bs-primary);
    content: "";
}

.product-description-content {
    color: #374151;
    line-height: 2.25;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
}

.product-spec-list {
    margin: 0;
}

.product-spec-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) minmax(0, 0.65fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eceff2;
}

.product-spec-row:last-child {
    border-bottom: 0;
}

.product-spec-row dt {
    color: var(--product-text-muted);
    font-weight: 500;
}

.product-spec-row dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.product-spec-value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
}

.product-purchase-column {
    align-self: stretch;
}

.product-purchase-sticky {
    position: sticky;
    top: calc(var(--irenfix-header-height, 0px) + 1rem);
    z-index: 10;
}

.product-purchase-card {
    padding: 1.15rem;
    box-shadow: 0 0.5rem 1.5rem rgba(17, 24, 39, 0.06);
}

.product-purchase-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--product-border);
}

.product-purchase-summary .min-w-0 {
    min-width: 0;
}

.product-purchase-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    padding: 0.25rem;
    border: 1px solid var(--product-border);
    border-radius: 0.65rem;
    object-fit: contain;
}

.product-purchase-benefit {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--product-border);
    color: #4b5563;
    font-size: 0.86rem;
}

.product-purchase-benefit i {
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0;
    color: #15803d;
    font-size: 0.88rem;
    font-weight: 600;
}

.product-availability.is-unavailable {
    color: #b91c1c;
}

.product-purchase-price {
    margin: 1rem 0;
    text-align: left;
}

.product-original-price {
    color: var(--product-text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.product-current-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.product-contact-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--irenfix-gold-dark, #8f5e00);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-purchase-button {
    width: 100%;
    min-height: 48px;
    border-radius: 0.65rem;
    font-weight: 700;
}

.product-purchase-help {
    display: block;
    margin-top: 0.85rem;
    color: var(--product-text-muted);
    font-size: 0.78rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 991.98px) {
    .product-purchase-column {
        align-self: auto;
    }

    .product-purchase-sticky {
        position: static;
    }

    .product-gallery-stage {
        min-height: 320px;
    }

    .product-gallery-main-image {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .product-detail-page {
        padding-top: 0.75rem;
    }

    .product-main-panel,
    .product-content-section {
        padding: 1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .product-gallery-stage {
        min-height: 260px;
        padding: 0.5rem;
    }

    .product-gallery-main-image {
        height: 260px;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}
