/* Featured Products — Modern Home Section */
.featured-section {
    position: relative;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #f1f5f9 100%);
    overflow: hidden;
}

.featured-section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.featured-section-bg::before,
.featured-section-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
}

.featured-section-bg::before {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -100px;
    left: -80px;
    background: rgba(59, 130, 246, 0.08);
}

.featured-section-bg::after {
    width: min(360px, 60vw);
    height: min(360px, 60vw);
    bottom: -90px;
    right: -60px;
    background: rgba(56, 189, 248, 0.08);
}

.featured-section .container {
    position: relative;
    z-index: 1;
}

.featured-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.16);
}

.featured-eyebrow i {
    color: #f59e0b;
    font-size: 0.82rem;
}

.featured-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    color: #1e3a8a;
    letter-spacing: -0.02em;
}

.featured-title-accent {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.65;
    color: #64748b;
}

/* Carousel wrapper */
.featured-carousel-wrap {
    position: relative;
    padding: 0 clamp(0.5rem, 2vw, 2.5rem);
}

.featured-section .featured-carousel.carousel {
    overflow: visible;
}

.featured-section .carousel-inner {
    padding: 0.5rem 0 1rem;
}

.featured-section .carousel-item .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

/* Product cards */
.featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 12px 28px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow:
        0 8px 16px rgba(15, 23, 42, 0.06),
        0 22px 44px rgba(37, 99, 235, 0.12);
}

.featured-card__media {
    position: relative;
    height: 200px;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    overflow: hidden;
}

.featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__media img {
    transform: scale(1.06);
}

.featured-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.04) 100%);
    pointer-events: none;
}

.featured-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.25rem;
}

.featured-card__segment {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.featured-card__segment--pain { color: #dc2626; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }
.featured-card__segment--anti { color: #059669; background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); }
.featured-card__segment--gastro { color: #d97706; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }
.featured-card__segment--women { color: #7c3aed; background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.15); }
.featured-card__segment--supplement { color: #0891b2; background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.15); }

.featured-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.featured-card__composition {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748b;
}

.featured-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.featured-card__link i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.featured-card:hover .featured-card__link {
    color: #1d4ed8;
}

.featured-card:hover .featured-card__link i {
    transform: translateX(3px);
}

/* Carousel controls */
.featured-section .carousel-control-prev,
.featured-section .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-section .carousel-control-prev:hover,
.featured-section .carousel-control-next:hover {
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.featured-section .carousel-control-prev-icon,
.featured-section .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    filter: invert(32%) sepia(89%) saturate(1500%) hue-rotate(205deg) brightness(95%) contrast(95%);
}

.featured-section .carousel-control-prev {
    left: -8px;
}

.featured-section .carousel-control-next {
    right: -8px;
}

.featured-section .carousel-indicators {
    margin-bottom: 0;
    position: static;
    justify-content: center;
    gap: 0.45rem;
    padding-top: 1.25rem;
}

.featured-section .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    opacity: 1;
    transition: width 0.25s ease, background 0.25s ease;
}

.featured-section .carousel-indicators .active {
    width: 28px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

/* CTA */
.featured-cta {
    text-align: center;
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.featured-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-cta-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* Tablet */
@media (max-width: 991.98px) {
    .featured-section .carousel-control-prev {
        left: 0;
    }

    .featured-section .carousel-control-next {
        right: 0;
    }

    .featured-section .carousel-item .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile — horizontal swipe cards per slide */
@media (max-width: 767.98px) {
    .featured-carousel-wrap {
        padding: 0 0.25rem;
    }

    .featured-section .carousel-control-prev,
    .featured-section .carousel-control-next {
        width: 38px;
        height: 38px;
        display: none;
    }

    .featured-section .carousel-item .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0.75rem;
        padding: 0 0.5rem 0.25rem;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .featured-section .carousel-item .row::-webkit-scrollbar {
        display: none;
    }

    .featured-section .carousel-item .col-md-4 {
        flex: 0 0 min(82vw, 300px);
        max-width: min(82vw, 300px);
        scroll-snap-align: start;
    }

    .featured-card__media {
        height: 170px;
    }

    .featured-card__body {
        padding: 1rem;
    }

    .featured-card__title {
        font-size: 1.05rem;
    }

    .featured-scroll-hint {
        display: flex;
    }
}

.featured-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.76rem;
    color: #94a3b8;
}

.featured-scroll-hint i {
    animation: featuredSwipeHint 1.8s ease-in-out infinite;
}

@keyframes featuredSwipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .featured-card,
    .featured-card__media img,
    .featured-scroll-hint i {
        transition: none;
        animation: none;
    }

    .featured-card:hover {
        transform: none;
    }
}
