.product-detail-panel {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    height: 520px;
}

.product-detail-panel .card-body {
    padding: 0.35rem 0.65rem;
    height: 100%;
    overflow-y: auto;
}

.product-title-soft {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #000;
    font-size: 1.0rem;
    margin-bottom: 0.85rem;
}

.product-meta {
    margin-bottom: 1rem;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    /* font-family: "Montserrat", sans-serif; */
    color: #111;
    line-height: 1.2;
    font-weight: 500;
}

.product-meta-label {
    min-width: 78px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: #3f3f3f;
    font-weight: 600;
    text-transform: uppercase;
}

.product-meta-row span:not(.product-meta-label) {
    color: #4a4a4a;
    font-weight: 400;
}

.product-meta-row .text-danger {
    color: #b00020 !important;
    font-weight: 600;
}

.price-old-soft {
    color: #474747;
    text-decoration: line-through;
    font-size: 1rem;
}

.price-new-soft {
    color: #101010;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.price-badge-soft {
    background: #8d0000;
    color: #fff !important;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-black-soft {
    background: #000;
    border-color: #000;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.btn-black-soft:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}

.btn-black-soft:hover i,
.btn-black-soft:focus-visible i,
.btn-black-soft:hover span,
.btn-black-soft:focus-visible span {
    color: #000 !important;
}

.product-action-buttons {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.product-action-buttons .btn {
    flex: 1 1 0;
}

.detail-description-panel {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9e9e9;
}

.detail-description-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.75rem;
}

.detail-description-title .dash {
    color: #2d2d2d;
    margin-left: 0.35rem;
}

.detail-description-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* font-family: "Montserrat", sans-serif; */
    color: #0a0a0a;
    font-weight: 400;
    line-height: 1.6;
    max-height: 9.3rem;
    overflow: hidden;
    font-size: 0.95rem;
}

.detail-description-text.expanded {
    max-height: none;
}

.detail-description-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 0.55rem;
    text-decoration: underline;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.detail-link-row {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #111;
}

.policy-toggle-btn {
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 0;
}

.policy-content {
    max-height: none;
    overflow: visible;
}

.product-description-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#fullDesc.collapse {
    display: none;
}

#fullDesc.collapse.show {
    display: inline;
}

.product-gallery-main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-gallery-main #mainLightbox {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-toggle-btn {
    z-index: 1002;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.zoom-toggle-btn.active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-nav.prev {
    left: 12px;
}

.product-gallery-nav.next {
    right: 12px;
}

.product-gallery-index {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1002;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(33, 37, 41, 0.78);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
}

.thumbs-wrap {
    width: 72px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    order: 0;
    flex: 0 0 72px;
}

.thumbs-wrap a {
    flex: 0 0 auto;
    width: 64px;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.thumbs-wrap a:hover,
.thumbs-wrap a.active {
    opacity: 1;
    border-color: #212529;
    transform: translateY(-1px);
}

.thumbs-wrap img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 0.35rem;
}

.gallery-wrap {
    display: flex;
    gap: 0.7rem;
    align-items: stretch;
    height: 520px;
}

@media (max-width: 991.98px) {
    .product-detail-panel {
        height: auto;
    }

    .product-detail-panel .card-body {
        overflow: visible;
        height: auto;
    }

    .gallery-wrap {
        display: block;
        height: auto;
    }

    .product-gallery-main {
        height: 360px;
    }

    .product-gallery-nav {
        width: 38px;
        height: 38px;
    }

    .thumbs-wrap {
        width: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.35rem;
        margin-top: 0.5rem;
        order: 0;
    }

    .product-info-table th,
    .product-info-table td {
        display: block;
        width: 100% !important;
    }

    .product-info-table th {
        margin-bottom: 0.25rem;
    }

    .product-info-table tr {
        display: block;
        margin-bottom: 0.5rem;
    }

    .price-new-soft {
        font-size: 1.45rem;
    }

    .product-title-soft {
        font-size: 1.5rem;
    }

    .detail-description-title {
        font-size: 1.25rem;
    }

    .detail-link-row {
        font-size: 0.95rem;
    }
}
