/* ── MAIN LAYOUT ── */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ── FORCE TEXT CONTRAST (ghi đè theme) ── */
.product-page h1,
.product-page h2,
.product-page h3,
.product-page p,
.product-page span:not(.img-badge):not(.discount-tag):not(.stock-text),
.product-page div:not(.img-badge):not(.zoom-hint),
.product-page strong,
.product-page label {
    color: inherit;
}

.product-page {
    color: #fff;
}

.product-page .product-name {
    color: #fff !important;
}

.product-page .category {
    color: #dfac40 !important;
}

.product-page .price-sale {
    color: #dfac40 !important;
}

.product-page .price-original {
    color: rgba(255, 255, 255, .45) !important;
}

.product-page .stock-text {
    color: #dfac40 !important;
}

.product-page .stock-qty {
    color: rgba(255, 255, 255, .45) !important;
}

.product-page .section-label {
    color: rgba(255, 255, 255, .5) !important;
}

.product-page .spec-item {
    color: rgba(255, 255, 255, .55) !important;
}

.product-page .spec-item strong {
    color: rgba(255, 255, 255, .85) !important;
}

.product-page .specs summary {
    color: #fff !important;
}

.product-page .qty-val {
    color: #fff !important;
}

.product-page .rating-val {
    color: #fff !important;
}

/* ── GALLERY ── */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
    width: 100%;
    min-width: 0;
    /* Fixes slick slider overflow in CSS Grid */
}

.gallery-main {
    width: 100%;
    margin-bottom: 0;
}

.main-slide-item {
    outline: none;
}

.main-image-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(223, 172, 64, .35);
    cursor: zoom-in;
    aspect-ratio: 3 / 2.5;
    display: block;
    width: 100%;
}

.main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.main-image-wrap:hover img {
    transform: scale(1.03);
}

.img-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dfac40;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(223, 172, 64, .3);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 10;
}

/* Thumbnails */
.gallery-thumbs {
    margin: 0 -5px;
}

.gallery-thumbs .slick-slide {
    padding: 0 5px;
    outline: none;
}

.thumb-slide-item {
    cursor: pointer;
}

.thumb-img-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .12);
    transition: border-color .22s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1);
    background: #111;
}

.thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.thumb-slide-item:hover .thumb-img-wrap {
    transform: translateY(-2px);
    border-color: rgba(223, 172, 64, .5);
}

.thumb-slide-item:hover .thumb-img-wrap img {
    transform: scale(1.06);
}

.gallery-thumbs .slick-slide.slick-current .thumb-img-wrap {
    border-color: #dfac40;
    box-shadow: 0 0 0 1px #dfac40;
}

/* ── PRODUCT INFO ── */
.product-info {
    padding-top: 4px;
}

.category {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #dfac40;
    margin-bottom: 10px;
    cursor: pointer;
}

.category:hover {
    color: #f0c860;
}

.product-name {
    font-size: 30px;
    line-height: 1.22;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.3px;
    color: #fff;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.stars {
    color: #dfac40;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-val {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.review-count {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.review-count a {
    color: #dfac40;
    text-decoration: underline;
    cursor: pointer;
}

.divider {
    height: 1px;
    background: rgba(223, 172, 64, .25);
    margin: 17px 0;
}

/* Price block */
.price-block {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 18px;
}

.price-sale {
    font-size: 28px;
    font-weight: 700;
    color: #dfac40;
    line-height: 1;
}

.price-original {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, .4);
    text-decoration: line-through;
    line-height: 1;
}

.discount-tag {
    background: #dfac40;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
}

/* Stock */
.stock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dfac40;
    box-shadow: 0 0 6px rgba(223, 172, 64, .6);
}

.stock-text {
    font-size: 13px;
    color: #dfac40;
    font-weight: 500;
}

.stock-qty {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

/* Variants */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 10px;
}

.color-opts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: #dfac40;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .8), 0 0 0 4px #dfac40;
}

.color-btn span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.size-opts {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    color: rgba(255, 255, 255, .8);
}

.size-btn:hover {
    border-color: #dfac40;
    color: #dfac40;
}

.size-btn.active {
    border-color: #dfac40;
    background: #dfac40;
    color: #fff;
}

.size-btn.unavailable {
    opacity: .3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity */
.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: rgba(255, 255, 255, .6);
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(223, 172, 64, .15);
    color: #dfac40;
}

.qty-val {
    width: 48px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-left: 1.5px solid rgba(255, 255, 255, .12);
    border-right: 1.5px solid rgba(255, 255, 255, .12);
    height: 44px;
    line-height: 44px;
    color: #fff;
}

/* New CTAs */
.cta-actions {
    margin-bottom: 24px;
}

.btn-register {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #dfac40, #f0c860);
    color: #111;
    border: none;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .22s, box-shadow .22s;
    box-shadow: 0 4px 20px rgba(223, 172, 64, .4);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(223, 172, 64, .6);
}

.cta-row-2 {
    display: flex;
    gap: 12px;
}

.cta-row-2 a {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .22s, opacity .22s;
    border: 1px solid rgba(223, 172, 64, .35);
    text-transform: uppercase;

}

/* .btn-call {
    background: #a72828;
    color: #fff !important;
}

.btn-zalo {
    background: #0068ff;
    color: #fff !important;
} */

.cta-row-2 a:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* CTAs */
.cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-cart {
    flex: 1;
    height: 52px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .22s, border-color .22s, transform .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #dfac40;
    transform: translateY(-1px);
}

.btn-buy {
    flex: 1;
    height: 52px;
    background: #dfac40;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .22s, transform .22s;
    box-shadow: 0 4px 20px rgba(223, 172, 64, .4);
}

.btn-buy:hover {
    background: #c9973a;
    transform: translateY(-1px);
}

.btn-wish {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
    color: rgba(255, 255, 255, .5);
}

.btn-wish:hover {
    border-color: #dfac40;
    color: #dfac40;
}

.btn-wish.liked {
    border-color: #dfac40;
    color: #dfac40;
}

.btn-wish svg {
    fill: none;
    transition: fill .2s ease;
}

.btn-wish.liked svg {
    fill: currentColor;
}

/* Perks */
.perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(223, 172, 64, .2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.perk-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.perk strong {
    display: block;
    font-weight: 600;
    font-size: 12.5px;
    color: #fff;
}

.perk span {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
}

/* Specs */
.specs {
    margin-top: 24px;
}

.specs summary {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(223, 172, 64, .2);
    user-select: none;
    color: #fff;
}

.specs summary::after {
    content: '+';
    font-size: 18px;
    color: #dfac40;
}

details[open] summary::after {
    content: '−';
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding-bottom: 16px;
}

.spec-item {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.spec-item strong {
    color: rgba(255, 255, 255, .85);
    display: block;
    font-weight: 500;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(12, 10, 9, .92);
    backdrop-filter: blur(8px);
    animation: fadeIn .25s ease;
}

.lightbox-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lightbox-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .18);
    animation: zoomIn .28s cubic-bezier(.34, 1.56, .64, 1);
    border: 2px solid #dfac40;
}

@keyframes zoomIn {
    from {
        transform: scale(.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img-wrap img {
    display: block;
    max-width: 72vw;
    max-height: 82vh;
    object-fit: contain;
}

.lb-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(223, 172, 64, .2);
    border: 1px solid rgba(223, 172, 64, .5);
    color: #dfac40;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}

.lb-nav:hover {
    background: rgba(223, 172, 64, .4);
}

.lb-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(223, 172, 64, .2);
    border: 1px solid rgba(223, 172, 64, .4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .22s cubic-bezier(.4, 0, .2, 1);
}

.lb-close:hover {
    background: rgba(223, 172, 64, .5);
}

.lb-counter {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.lb-thumbnails {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.lb-thumb {
    width: 54px;
    height: 54px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .22s cubic-bezier(.4, 0, .2, 1);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-thumb.active {
    border-color: #dfac40;
}

@media (max-width: 860px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 0 0px;
    }

    .divider {
        margin: 12px 0;
    }

    .product-content-section {
        margin-top: 20px;
    }

    .product-name {
        font-size: 26px;
    }

    .price-sale {
        font-size: 28px;
    }

    .gallery {
        position: static;
    }
}

/* ── MIGRATED INLINE STYLES ── */

/* Price block in contact mode */
.price-block.contact-price {
    align-items: center;
}

.price-block.contact-price .contact-label {
    font-size: 18px;
    color: rgba(255, 255, 255, .6);
}

.price-block.contact-price .price-sale {
    font-size: 32px;
}

/* Short description */
.short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
    margin-top: 10px;
    margin-bottom: 24px;
}

/* Common product content */
.product-common-content-section {
    margin-bottom: 30px;
    background: #272727;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .05);
}

.product-common-content-body img {
    max-width: 100%;
    height: auto !important;
}

.product-common-content-body {
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    font-size: 15px;
}

/* Detailed product description */
.product-content-section {
    margin-top: 40px;
}

.product-content-section .section-title {
    color: #dfac40;
    font-size: 22px;
    /* margin-bottom: 20px; */
    font-weight: 700;
    text-transform: uppercase;
}

#productContentBody img {
    max-width: 100%;
    height: auto !important;
}

#productContentBody {
    transition: max-height 0.4s ease;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    font-size: 15px;
    overflow: hidden;
    position: relative;
}

.content-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, #111);
    display: none;
}

.product-content-toggle-wrap {
    text-align: center;
    margin-top: 20px;
}

#btnToggleContent {
    display: none;
    background: transparent;
    border: 1px solid #dfac40;
    color: #dfac40;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
    text-transform: uppercase;
    font-size: 14px;
}

#btnToggleContent:hover {
    background: #dfac40;
    color: #111;
}

/* Related products */
.related-products-section {
    margin-top: 60px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.related-products-section h2 {
    color: #dfac40;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.related-slider .slick-slide {
    margin: 0 8px;
}

.related-slider .slick-list {
    margin: 0 -8px;
}

/* Consult modal dialog specific styling */
#consultModal .lightbox-inner {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(223, 172, 64, .3);
    max-width: 500px;
    width: 90vw;
    flex-direction: column;
    cursor: default;
    align-items: center;
    justify-content: center;
}

#consultModal .lb-close {
    top: 10px;
    right: 10px;
}

#consultModal h3 {
    color: #dfac40;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

#consultModal p {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
    /* max-width: 300px; */
}

#consultForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

#consultForm input[type="text"],
#consultForm input[type="tel"],
#consultForm input[type="email"],
#consultForm textarea {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
}

#consultForm input[type="text"],
#consultForm input[type="tel"],
#consultForm input[type="email"] {
    height: 48px;
}

#consultForm textarea {
    padding: 12px 16px;
    resize: vertical;
    font-family: inherit;
}

#consultForm .btn-register {
    margin-top: 10px;
    margin-bottom: 0;
    width: 100%;
}

/* Consultation form submit button state */
.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



@media (max-width: 768px) {
    .product-content-section {
        margin-top: 20px;
    }

    .related-products-section {
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .related-slider .slick-slide {
        margin: 0 4px;
    }

    .related-slider .slick-list {
        margin: 0 -4px;
    }
}