/* ========================================
   HIGHLIGHTS SECTION (Sale & New)
======================================== */

.highlights-section {
    position: relative;
    z-index: 2;
}

.highlight-container {
    position: relative;
    border: none !important;
    border-radius: 20px;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1;
}

/* Background layer - glassmorphism (Match .hero-stats::after) */
.highlight-container::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgb(30, 30, 30), rgb(20, 20, 20));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    left: 0;
    top: 0;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.highlight-title {
    font-size: 1.45rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffc107 !important;
}

.highlight-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.highlight-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

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

.highlight-img .sale-badge, 
.highlight-img .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
}

.highlight-img .sale-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.highlight-img .new-badge {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.highlight-info {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Horizontally aligned */
    gap: 8px;
    margin-top: 6px;
}

.price-vnd-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.old-price {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    line-height: 1.2;
}

.new-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1a817 !important; /* Yellow like product card */
    line-height: 1.2;
}

.token-price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1c40f; /* Same accent color */
    background: transparent; /* Removed background */
    padding: 0; /* Removed padding */
    border: none; /* Removed border */
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: none; /* Removed shadow */
}

.token-price-tag i {
    font-size: 0.9rem;
    color: #f1c40f;
}

.highlight-item .bi-chevron-right {
    display: none; /* Hide arrow in horizontal layout */
}

.hover-text-warning:hover { color: #ffc107 !important; }
.hover-text-info:hover { color: #0dcaf0 !important; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .highlight-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .highlight-title {
        font-size: 1.2rem;
    }
    .highlight-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .highlight-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12vw; /* Generous gap to hide next card peek */
        padding-bottom: 30px; /* Space for indicators */
        margin: 0 -15px;
        padding-left: 6vw; /* Centers the 88vw card */
        padding-right: 6vw;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .highlight-list::-webkit-scrollbar {
        display: none;
    }
    
    .highlight-item,
    .highlight-list .product-card {
        flex: 0 0 88vw; /* Card takes most of the screen width */
        width: 88vw;
        min-width: 88vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always; /* Force one-by-one paging */
        padding: 5px;
        height: auto;
        transition: transform 0.3s ease;
    }

    /* Indicators */
    .highlight-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: -10px; /* Move closer to relative padding */
        position: relative;
        z-index: 5;
    }

    .h-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .h-indicator.active {
        background: #f1a817;
        width: 24px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(241, 168, 23, 0.3);
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .new-price {
        font-size: 1.1rem;
    }
}
