.product-detail-page {
    --pd-border: #e5e9f2;
    --pd-soft-bg: #f8faff;
    --pd-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
}

.product-detail-page .breadcrumb-item,
.product-detail-page .breadcrumb-item.active {
    color: #4b5565;
}

.product-gallery-card,
.product-content-card,
.product-image-frame {
    border-radius: 14px;
}

.product-detail-page .gallery-wrap .img-big-wrap {
    height: auto !important;
    min-height: 220px;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
}

.product-image-frame {
    position: relative;
    border: 1px solid var(--pd-border);
    background: #fff;
    box-shadow: var(--pd-shadow);
    overflow: hidden;
}

.product-image-frame .containerZoom {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    overflow: hidden;
    cursor: zoom-in;
}

.product-image-frame .containerZoom:not(.active) {
    background-image: none !important;
    background-color: var(--pd-soft-bg);
}

.product-image-frame #imageZoom,
.product-main-image {
    width: 100%;
    object-fit: contain;
}

.product-image-frame #imageZoom {
    height: 100%;
    display: block;
    transition: opacity .2s ease;
}

.product-image-frame .containerZoom.active #imageZoom {
    opacity: 0 !important;
    pointer-events: none;
}

.product-main-image {
    height: clamp(300px, 58vh, 560px);
    display: block;
    background: var(--pd-soft-bg);
    cursor: zoom-in;
}

.product-zoom-btn {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease;
}

.product-zoom-btn:hover {
    color: #111827;
    transform: scale(1.07);
}

.product-zoom-btn:focus {
    outline: 0;
    box-shadow: none;
}

.product-content-card {
    padding: .2rem .3rem .4rem;
}

.product-price {
    color: inherit;
    font-weight: 700;
}

.product-add-cart-btn {
    border: 0 !important;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.product-add-cart-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .2);
}

.product-add-cart-btn:focus,
.product-add-cart-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .16rem color-mix(in srgb, var(--secondary-color) 24%, transparent),
        0 12px 24px rgba(15, 23, 42, .2);
}

.product-add-cart-btn:active {
    transform: translateY(0);
    filter: brightness(1.02);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .16);
}

.product-add-cart-btn i {
    transition: transform .18s ease;
}

.product-add-cart-btn:hover i {
    transform: translateX(1px);
}

.product-description-flow {
    margin-top: .45rem;
    display: grid;
    gap: .6rem;
}

.product-text-section {
    padding: .85rem .95rem .95rem;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.product-text-section:last-child {
    margin-bottom: 0;
}

.product-text-title {
    margin: 0 0 .45rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.product-text-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cfd8e6;
}

.product-text-content {
    color: #364152;
    font-size: .98rem;
    line-height: 1.72;
    word-break: break-word;
}

.product-text-content--preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-more-info-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.product-more-info-btn:hover {
    color: #0f172a;
    text-decoration: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.product-more-info-btn:focus,
.product-more-info-btn:focus-visible,
.product-more-info-btn:active {
    color: #0f172a;
    text-decoration: none;
    outline: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.product-info-modal-body {
    padding: 1rem 1rem 1.1rem;
}

.product-info-modal-section + .product-info-modal-section {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid #e6ebf3;
}

.product-info-modal-title {
    margin-bottom: .4rem;
    font-size: .9rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-weight: 800;
    color: #0f172a;
}

.product-info-modal-content {
    color: #334155;
    line-height: 1.7;
}

.product-similar-heading {
    font-size: 1rem;
    margin-bottom: .45rem !important;
}

.product-similar-card {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #fff;
    padding: .4rem .65rem;
    color: #1f2937;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.product-similar-card:hover {
    border-color: #cfd6e2;
    background: #f9fbfe;
    transform: translateY(-1px);
    color: #111827;
}

.product-similar-body {
    min-width: 0;
    width: 100%;
}

.product-similar-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}

.product-modal-image-wrap {
    background: #0f172a;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.product-modal-image {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .2s ease;
}

@media (min-width: 992px) {
    .product-content-card {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 767px) {
    .product-detail-page {
        padding-inline: .85rem;
        overflow-x: hidden;
    }

    .product-detail-page .breadcrumb-item,
    .product-detail-page .breadcrumb-item.active {
        font-size: .95rem;
    }

    .product-detail-page .h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .product-content-card {
        padding-inline: 0;
    }

    .product-image-frame {
        border-radius: 12px;
    }

    .product-image-frame .containerZoom,
    .product-detail-page .gallery-wrap .img-big-wrap {
        min-height: 250px;
        aspect-ratio: 1 / 1;
    }

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

    .product-detail-page .btn-lg {
        width: 100%;
    }

    .product-text-section {
        padding: .72rem .78rem .78rem;
        border-radius: 11px;
    }

    .product-text-title {
        font-size: .78rem;
        margin-bottom: .36rem;
    }

    .product-text-content {
        font-size: .95rem;
        line-height: 1.62;
    }

    .product-info-modal-body {
        padding: .9rem .85rem 1rem;
    }

    .product-similar-card {
        min-height: 40px;
        padding: .38rem .6rem;
    }

    .product-similar-list {
        width: 100%;
        margin-inline: 0;
        padding: 0 .05rem .3rem;
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
    }

    .product-similar-list > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-inline: .05rem;
        margin-bottom: .35rem;
    }

    .product-modal-image-wrap {
        min-height: 50vh;
    }

    .product-modal-image {
        max-height: 50vh;
    }
}
