/* Featured Products Section CSS - Exact measurements from Figma Design */

/* Featured Products Container */
.featured-products {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    padding: 24px 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
}

/* Section Header */
.featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
}

.featured-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.featured-title h2 {
    font-family: 'SF Pro', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    color: #3D3D3D;
    text-align: center;
    margin: 0;
}

.featured-location {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
}

.featured-location .location-name {
    font-family: 'SF Pro', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    color: #4564ED;
    text-align: center;
}

.featured-location .location-underline {
    width: 100%;
    height: 3px;
    position: relative;
}

.featured-location .location-underline img {
    width: 100%;
    height: auto;
}

/* Tabs Container */
.featured-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
}

.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    flex-wrap: wrap;
}

.tab-item {
    background: #FFFFFF;
    border: 1.5px solid #E7E7E7;
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-center: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item span {
    font-family: 'SF Pro', sans-serif;
    font-size: 14px;
    font-weight: 510;
    line-height: 20px;
    color: #606060;
    text-align: center;
    white-space: nowrap;
}

.tab-item.active {
    background: #F0F3FE;
    border-color: #4564ED;
}

.tab-item.active span {
    color: #4564ED;
}

.tab-item:hover {
    border-color: #4564ED;
}

/* Products Slider Container */
.featured-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
}

.featured-slider {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow: hidden;
}

/* Product Card - Reuse internet-card from speedx but with modifications */
.featured-products .internet-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 4px -8px rgba(0, 0, 0, 0.03),
                0px 4px 16px 10px rgba(16, 24, 40, 0.02),
                0px 2px 32px -4px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Card Badge - Green variant for recommended */
.featured-products .card-badge.recommended {
    background: #02972C;
}

/* Card Badge - Red variant for VIP */
.featured-products .card-badge.vip {
    background: #FF2156;
}

/* Navigation Arrows */
.featured-nav-arrows {
    position: absolute;
    top: 50%;
    left: -44px;
    right: -44px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

/* See More Button */
.featured-see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 0;
}

/* Tab Content Panels */
.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1680px) {
    .featured-products {
        padding: 24px 120px;
    }
}

@media (max-width: 1440px) {
    .featured-products {
        padding: 24px 80px;
    }
}

@media (max-width: 1200px) {
    .featured-products {
        padding: 24px 40px;
    }
}

@media (max-width: 991px) {
    .featured-products {
        padding: 24px 20px;
    }

    .featured-title h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .featured-location .location-name {
        font-size: 24px;
        line-height: 32px;
    }

    .featured-nav-arrows {
        left: -24px;
        right: -24px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 20px 16px;
    }

    .featured-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .featured-title h2,
    .featured-location .location-name {
        font-size: 20px;
        line-height: 28px;
        text-align: left;
    }

    .tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        flex-shrink: 0;
    }

    .featured-nav-arrows {
        display: none;
    }

    .featured-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .featured-slider::-webkit-scrollbar {
        display: none;
    }

    .featured-products .internet-card {
        scroll-snap-align: start;
        width: 280px;
    }
}

@media (max-width: 480px) {
    .featured-title h2,
    .featured-location .location-name {
        font-size: 18px;
        line-height: 24px;
    }

    .featured-products .internet-card {
        width: 260px;
    }

    .tab-item {
        font-size: 13px;
        padding: 8px 14px;
    }
}
