.wrap-detailhai {
    padding: 20px 0;
    color: #2c2c2c;
}
.wrap-detailhai .titletv{    background-color: var(--theme-color);
    color: white !important;
    padding: 2px 7px;
    font-size: 12px;
    border-radius: 4px;}
.wrap-detailhai .container-product {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(230, 69, 126, 0.05);
    padding: 40px;
    border: 1px solid rgba(255, 77, 141, 0.08);
}

.wrap-detailhai .badgefs {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 6px;
}

.wrap-detailhai .text-theme3 {
    color: var(--theme-color3);
}

.wrap-detailhai .product-gallery-container {
    position: sticky;
    top: 30px;
}

.wrap-detailhai .swiper-main {
    width: 100%;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    background: #fdfafb;
    border: 1px solid #f2e9ec;
    display: flex;
    align-items: center;
}

.wrap-detailhai .swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 100%;
    height: 100%;
}

.wrap-detailhai .swiper-main .swiper-slide-video {
    background: #000;
}

.wrap-detailhai .swiper-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.wrap-detailhai .plyr {
    width: 100%;
    height: 100%;
}

.wrap-detailhai .plyr__video-wrapper {
    height: 100%;
}

.wrap-detailhai .swiper-main .zoomable-img {
    cursor: zoom-in;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wrap-detailhai .swiper-main .zoomable-img:hover {
    transform: scale(1.08);
}

.wrap-detailhai .swiper-thumbs {
    margin-top: 15px;
    height: 95px;
    position: relative;
    padding: 0 5px;
}

.wrap-detailhai .swiper-thumbs .swiper-slide {
    width: 95px;
    height: 95px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.5;
    transition: all 0.3s ease;
    background: #fdfafb;
}

.wrap-detailhai .swiper-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

.wrap-detailhai .swiper-thumbs .swiper-slide-thumb-active {
    border-color: var(--theme-color);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 77, 141, 0.15);
}

.wrap-detailhai .swiper-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrap-detailhai .swiper-thumbs .swiper-button-next, 
.wrap-detailhai .swiper-thumbs .swiper-button-prev {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--theme-color);
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    z-index: 10;
}

.wrap-detailhai .swiper-thumbs .swiper-button-next::after, 
.wrap-detailhai .swiper-thumbs .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 800;
}

.wrap-detailhai .swiper-thumbs .swiper-button-prev { left: 0px; }
.wrap-detailhai .swiper-thumbs .swiper-button-next { right: 0px; }
.wrap-detailhai .swiper-thumbs .swiper-button-disabled { display: none; }

.wrap-detailhai .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 28px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 2;
}

.wrap-detailhai .share-action-wrap {
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 12px;
}

.wrap-detailhai .share-icon {
    transition: transform 0.2s;
    display: inline-block;
}

.wrap-detailhai .share-icon:hover {
    transform: scale(1.15);
}

.wrap-detailhai .product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.wrap-detailhai .stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.wrap-detailhai .stat-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #777;
}

.wrap-detailhai .rating-box {
    background: #fff8fa;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 77, 141, 0.1);
}

.wrap-detailhai .stat-rating {
    color: var(--theme-color);
    font-weight: 700;
    font-size: 16px;
    margin-right: 6px;
}

.wrap-detailhai .stars {
    color: #f5c518;
    margin-right: 0;
}

.wrap-detailhai .sold-count {
    color: #2c2c2c;
    font-weight: 700;
    margin-right: 4px;
}

.wrap-detailhai .flash-sale-banner {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    color: white;
}

.wrap-detailhai .flash-sale-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.wrap-detailhai .flash-sale-title i {
    font-size: 22px;
    color: #ffeba1;
}

.wrap-detailhai .countdown-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
}

.wrap-detailhai .countdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
}

.wrap-detailhai .time-box {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.wrap-detailhai .price-section {
    background: #fff8fa;
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(255, 77, 141, 0.1);
    border-top: none;
}

.wrap-detailhai .old-price {
    text-decoration: line-through;
    color: #aeb5bc;
    font-size: 18px;
    margin-right: 15px;
    font-weight: 500;
}

.wrap-detailhai .current-price {
    font-size: 34px;
    color: var(--theme-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.wrap-detailhai .discount-label {
    background: var(--theme-color2);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    font-weight: 700;
    border-radius: 8px;
    margin-left: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(230, 69, 126, 0.2);
}

.wrap-detailhai .attr-row {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
}

.wrap-detailhai .attr-label {
    width: 130px;
    color: #777;
    font-size: 14px;
    font-weight: 600;
    padding-top: 10px;
}

.wrap-detailhai .attr-content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.wrap-detailhai .brand-link {
    color: var(--theme-color);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff5f8;
    padding: 6px 16px;
    border-radius: 20px;
}

.wrap-detailhai .brand-link:hover {
    background: var(--theme-color);
    color: #fff;
}

.wrap-detailhai .option-btn {
    position: relative;
    padding: 10px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #444;
}

.wrap-detailhai .option-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: #fff8fa;
}

.wrap-detailhai .option-btn.active {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: #fff8fa;
    box-shadow: 0 0 0 1px var(--theme-color);
}

.wrap-detailhai .option-btn.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: var(--theme-color);
    color: #fff;
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 6px 0 6px 0;
    line-height: 1;
}

.wrap-detailhai .btn-quick-spec {
    background: none;
    border: none;
    color: var(--theme-color3);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: 0.2s;
    cursor: pointer;
}

.wrap-detailhai .btn-quick-spec:hover {
    color: var(--theme-color4);
    text-decoration: underline;
}

.wrap-detailhai .qty-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.wrap-detailhai .qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
}

.wrap-detailhai .qty-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.wrap-detailhai .qty-val {
    width: 50px;
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    color: #2c2c2c;
}

.wrap-detailhai .action-btns {
    display: flex;
    gap: 16px;
}

.wrap-detailhai .btn-cart {
    padding: 16px 24px;
    border: 2px solid var(--theme-color);
    background: #fffafb;
    color: var(--theme-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wrap-detailhai .btn-cart:hover {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 77, 141, 0.2);
}

.wrap-detailhai .btn-buy {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    flex: 1.5;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(230, 69, 126, 0.25);
}

.wrap-detailhai .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(230, 69, 126, 0.35);
}

.wrap-detailhai .trust-badges {
    color: #555;
}

.wrap-detailhai .modal-custom-product {
    max-width: 1050px;
}

.wrap-detailhai .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.wrap-detailhai .modal-close-shopee {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    color: #555;
}

.wrap-detailhai .modal-close-shopee:hover {
    background: var(--theme-color);
    color: #fff;
    transform: rotate(90deg);
}

.wrap-detailhai .modal-left-view {
    background: #fcfcfc;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    position: relative;
    border-right: 1px solid #f0f0f0;
}

.wrap-detailhai .modal-main-img {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 12px;
}

.wrap-detailhai .modal-main-video-wrapper {
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap-detailhai .modal-main-video-wrapper video,
.wrap-detailhai .modal-main-video-wrapper iframe,
.wrap-detailhai .modal-main-video-wrapper .plyr {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    outline: none;
}

.wrap-detailhai .modal-right-info {
    padding: 40px 30px;
    background: #fff;
}

.wrap-detailhai .modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #444;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.wrap-detailhai .modal-nav-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.wrap-detailhai .modal-prev { left: 20px; }
.wrap-detailhai .modal-next { right: 20px; }

.wrap-detailhai .modal-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}

.wrap-detailhai .modal-thumb-item {
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
}

.wrap-detailhai .modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrap-detailhai .modal-thumb-item.active {
    border-color: var(--theme-color);
    box-shadow: 0 4px 10px rgba(255, 77, 141, 0.2);
}

.wrap-detailhai .modal-thumb-grid::-webkit-scrollbar {
    width: 6px;
}

.wrap-detailhai .bg-lbpt { background-color: var(--theme-color); }
.wrap-detailhai .numberprice { font-weight: 800; font-size: 22px; color: var(--theme-color); }

.wrap-detailhai .modal-thumb-grid::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.wrap-detailhai .modal-thumb-grid::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 10px;
}

.wrap-detailhai .modal-thumb-grid::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color);
}

.wrap-detailhai .modal-info-box {
    margin-top: 30px;
    padding: 24px;
    background: #fff8fa;
    border-radius: 16px;
    border: 1px dashed rgba(255, 77, 141, 0.2);
}

.wrap-detailhai #specsModal .modal-content,
.wrap-detailhai #sizeGuideModal .modal-content {
    border-radius: 20px;
    padding: 10px;
}

.wrap-detailhai #specsModal .modal-header,
.wrap-detailhai #sizeGuideModal .modal-header {
    border-bottom: none;
    padding: 24px 24px 10px 24px;
}

.wrap-detailhai #specsModal .modal-title,
.wrap-detailhai #sizeGuideModal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.wrap-detailhai #specsModal .btn-close,
.wrap-detailhai #sizeGuideModal .btn-close {
    background-size: 12px;
    opacity: 0.5;
    transition: 0.2s;
}

.wrap-detailhai #specsModal .btn-close:hover,
.wrap-detailhai #sizeGuideModal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.wrap-detailhai #specsModal .modal-body,
.wrap-detailhai #sizeGuideModal .modal-body {
    padding: 10px 24px 24px 24px;
}

.wrap-detailhai .spec-table-clean {
    width: 100%;
}

.wrap-detailhai .spec-table-clean td {
    padding: 14px 0;
    font-size: 14px;
    vertical-align: top;
    border-bottom: 1px dashed #eee;
}

.wrap-detailhai .spec-table-clean tr:last-child td {
    border-bottom: none;
}

.wrap-detailhai .spec-table-clean .spec-label {
    width: 35%;
    color: #777;
    font-weight: 600;
    padding-right: 15px;
}

.wrap-detailhai .spec-table-clean .spec-value {
    color: #2c2c2c;
    font-weight: 500;
    line-height: 1.6;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.wrap-detailhai .animate-entry {
    animation: slideInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

@media (max-width: 991px) {
    .wrap-detailhai .container-product {
        padding: 20px;
    }
    .wrap-detailhai .product-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .wrap-detailhai { padding: 15px 0; }
    .wrap-detailhai .container-product {
        padding: 15px;
        border-radius: 16px;
    }
    .wrap-detailhai .swiper-main { height: 380px; }
    .wrap-detailhai .modal-left-view {
        min-height: 350px;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .wrap-detailhai .modal-nav-btn {
        width: 36px; height: 36px; font-size: 14px;
    }
    .wrap-detailhai .modal-prev { left: 10px; }
    .wrap-detailhai .modal-next { right: 10px; }
    .wrap-detailhai .product-title {
        font-size: 20px;
        margin-top: 15px;
    }
    .wrap-detailhai .stats-row {
        gap: 12px; flex-wrap: wrap; margin-bottom: 15px;
    }
    .wrap-detailhai .flash-sale-title { font-size: 15px; }
    .wrap-detailhai .flash-sale-banner { padding: 10px 15px; }
    .wrap-detailhai .price-section {
        padding: 15px; flex-wrap: wrap; gap: 8px;
    }
    .wrap-detailhai .current-price { font-size: 26px; }
    .wrap-detailhai .old-price { font-size: 15px; }
    .wrap-detailhai .discount-label {
        margin-left: 0; font-size: 11px; padding: 3px 8px;
    }
    .wrap-detailhai .attr-row {
        flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 15px;
    }
    .wrap-detailhai .attr-label {
        width: 100%; font-size: 13px; padding-top: 0;
    }
    .wrap-detailhai .option-btn {
        padding: 8px 16px; font-size: 13px;
    }
    .wrap-detailhai .action-btns {
        flex-direction: column; gap: 12px; margin-top: 20px;
    }
    .wrap-detailhai .btn-cart, .wrap-detailhai .btn-buy {
        padding: 14px; width: 100%; font-size: 15px;
    }
    .wrap-detailhai .countdown-label { display: none; }
    .wrap-detailhai .modal-thumb-grid {
        grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 220px;
    }
    .wrap-detailhai .modal-main-video-wrapper { height: 350px; }
    .wrap-detailhai .swiper-thumbs { height: 70px; margin-top: 12px; }
    .wrap-detailhai .swiper-thumbs .swiper-slide { height: 70px; }
}

/* phan qua tang va thong so */

.sp-gift-front {
    background: #fffafa;
    border: 1px dashed var(--theme-color);
    border-radius: 8px;
    overflow: hidden;
}
.gift-front-header {
    background: var(--theme-color5);
    color: var(--theme-color);
    font-weight: bold;
    font-size: 15px;
    padding: 10px 15px;
    text-transform: uppercase;
}
.gift-front-header i { margin-right: 8px; }
.gift-front-body { padding: 15px; }
.gift-front-list {
    list-style: none; padding: 0; margin: 0;
}
.gift-front-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #fca5a5;
}
.gift-front-item:last-child {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
.gift-thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--theme-color5);
}
.gift-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.gift-title-link {
    color: #334155; font-size: 14px; font-weight: 600; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gift-title-link:hover {color: var(--theme-color);}
/* thong so */
.premium-specs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.specs-nav-wrapper {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    overflow-x: auto; 
    scrollbar-width: none; 
}
.specs-nav-wrapper::-webkit-scrollbar { display: none; }

.specs-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    white-space: nowrap;
}
.specs-nav-item {
    font-size: 15px;
    color: #6b7280; 
    padding: 0 0 12px 0;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}
.specs-nav-item:hover {color: var(--theme-color);}

.specs-nav-item.active {
    color: var(--theme-color);
    font-weight: 600;
}
.specs-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--theme-color);
}

.specs-group {
    margin-bottom: 30px;
}
.specs-group:last-child {
    margin-bottom: 0;
}

.specs-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #374151; 
    margin-bottom: 12px;
}

.specs-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden; 
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.specs-table tr {
    border-bottom: 1px solid #e5e7eb;
}
.specs-table tr:last-child {
    border-bottom: none;
}
.specs-table td {
    padding: 12px 15px;
    font-size: 14px;
    vertical-align: top;
    line-height: 1.5;
}

.specs-table td.specs-name {
    width: 30%;
    background-color: #f3f4f6; 
    color: #4b5563;
    font-weight: 500;
    border-right: 1px solid #e5e7eb;
}

.specs-table td.specs-value {
    width: 70%;
    background-color: #ffffff;
    color: #1f2937;
}

.specs-content-limit {
    position: relative;
    max-height: 400px; 
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.specs-content-limit.expanded {
    max-height: 5000px; 
}

.specs-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 90%);
    pointer-events: none; 
    transition: opacity 0.3s;
}

.specs-content-limit.expanded .specs-fade-overlay {
    opacity: 0;
}

.btn-specs-toggle {
    background-color: #fff;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 6px;
    transition: 0.3s;
}
.btn-specs-toggle:hover {
    background-color: var(--theme-color5);
    color: var(--theme-color);
}

.specs-nav-wrapper {
    position: sticky;
    top: 0px; 
    z-index: 99;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    padding-top: 15px;
    
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}

.specs-nav-wrapper::-webkit-scrollbar { display: none; }

.specs-nav-list {
    display: flex;
    flex-wrap: nowrap !important; 
    white-space: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    padding-right: 20px; 
}

.specs-nav-item {
    flex-shrink: 0; 
    font-size: 15px;
    color: #6b7280;
    padding: 0 0 12px 0;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.specs-nav-item:hover {color: var(--theme-color);}

.specs-nav-item.active {
    color: var(--theme-color);
    font-weight: 600;
}
.specs-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--theme-color);
}

@media (max-width: 768px) {
    .specs-nav-wrapper {
    position: sticky;
    top: 60px; }
    .specs-nav-item { 
        font-size: 14px; 
        gap: 15px;
    }
    .specs-table td.specs-name { width: 40%; }
    .specs-table td.specs-value { width: 60%; }
    .specs-nav-item { font-size: 14px; gap: 15px;}
}