.home-featured-products {
    width: 100%;
    background: #ffffff;
    padding: 4px;
    box-sizing: border-box;
}

.featured-products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.featured-banner {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .10);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    isolation: isolate;
}

.featured-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    pointer-events: none;
}

.featured-banner-deals {
    background: linear-gradient(135deg, #ff7a18 0%, #ffffff 72%);
}

.featured-banner-new {
    background: linear-gradient(135deg, #16a34a 0%, #ffffff 72%);
}

.featured-banner-mini {
    background: linear-gradient(135deg, #ef4444 0%, #ffffff 72%);
}

.featured-banner-title {
    width: 100%;
    top: 0;
    z-index: 99999999;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 8px;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.featured-banner-subtitle {
    width: 100%;
    bottom: 0;
    z-index: 99999999;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 8px;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.502);
}

.featured-banner-title span {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 900;
    color: #111827;
}

.featured-banner-title i {
    color: #111827;
}

.featured-banner-subtitle {
    min-height: 38px;
    font-size: .84rem;
    font-weight: 700;
    color: #374151;
}

.featured-products-row {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 14px 14px 26px 14px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.featured-products-row>* {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.featured-products-empty,
.featured-products-loading {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 160px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.234);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
}

@media(max-width: 1200px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 760px) {
    .home-featured-products {
        padding: 10px;
    }

    .featured-products-grid {
        grid-template-columns: 1fr;
    }

    .featured-products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 4px 36px 4px;
    }

    .featured-products-row>* {
        padding: 0 24px;
    }
}























.featured-banner {
    cursor: pointer;
    isolation: isolate;
    min-height: 255px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.featured-banner.is-hidden {
    display: none !important;
}

.featured-banner:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, .18),
        0 0 0 1px rgba(255,255,255,.75) inset;
}

.featured-banner.is-active-click {
    transform: scale(.975);
    filter: saturate(1.25);
}

.featured-banner::after {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle, rgba(255,255,255,.9), transparent 12%),
        conic-gradient(from 0deg, transparent, rgba(255,255,255,.35), transparent);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: 1;
}

.featured-banner:hover::after,
.featured-banner.is-active-click::after {
    opacity: .32;
    animation: featuredMagicSpin 4s linear infinite;
}

@keyframes featuredMagicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-banner-deals {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 20%),
        linear-gradient(135deg, #ff7a18 0%, #ffb86b 36%, #ffffff 82%);
}

.featured-banner-new {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 20%),
        linear-gradient(135deg, #16a34a 0%, #8ee6ad 38%, #ffffff 82%);
}

.featured-banner-mini {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 20%),
        linear-gradient(135deg, #ef4444 0%, #ff9a9a 38%, #ffffff 82%);
}

.featured-banner-title,
.featured-banner-subtitle {
    z-index: 5;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow:
        0 8px 20px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.featured-banner-title {
    min-height: 44px;
}

.featured-banner-title span {
    background: linear-gradient(135deg, #111827, #6d35f4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.featured-products-row {
    min-height: 220px;
    padding-top: 52px;
    padding-bottom: 48px;
    align-items: center;
}

.featured-products-row.items-1 {
    grid-template-columns: minmax(0, 1fr);
}

.featured-products-row.items-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-products-row.items-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-products-row.items-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-products-row > * {
    position: relative;
    z-index: 4;
    animation: featuredCardIn .35s ease both;
}

.featured-products-row > *:nth-child(2) { animation-delay: .05s; }
.featured-products-row > *:nth-child(3) { animation-delay: .1s; }
.featured-products-row > *:nth-child(4) { animation-delay: .15s; }

@keyframes featuredCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.featured-fallback-card {
    width: 100%;
    min-width: 0;
    border: 2px solid var(--border-color, #111);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

.featured-fallback-img {
    height: 125px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-fallback-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-fallback-img span {
    color: #94a3b8;
    font-size: 12px;
}

.featured-fallback-body {
    padding: 10px;
}

.featured-fallback-body h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #111827;
}

.featured-fallback-body strong {
    color: #6d35f4;
}

.featured-products-loading {
    gap: 8px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(8px);
}

@media(max-width: 760px) {
    .featured-banner {
        min-height: 285px;
    }

    .featured-products-row.items-3,
    .featured-products-row.items-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-products-row.items-1 {
        grid-template-columns: 1fr;
    }

    .featured-products-row > * {
        padding: 0 !important;
    }
}