
/* ============================================================
   ALL DA SMOKE
   FEATURED PRODUCTS
   INDEX PAGE
   ============================================================ */


/* ============================================================
   FEATURED SECTION
   ============================================================ */

.top-sellers {
    margin-top: 24px;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-top h2 {
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.view-all {
    flex-shrink: 0;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
}


/* ============================================================
   HORIZONTAL PRODUCT CAROUSEL
   ============================================================ */

.product-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;

    width: auto;
    margin: 0 -14px;
    padding: 0 14px 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-scroll .featured-product-card {
    position: relative;

    display: flex;
    flex: 0 0 148px;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    scroll-snap-align: start;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: linear-gradient(
        145deg,
        #151b22 0%,
        #10151b 52%,
        #0c1116 100%
    );

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.product-scroll .featured-product-card:active {
    transform: scale(0.98);
}


/* ============================================================
   HIDE INDIVIDUAL FEATURED BADGES
   The section heading already identifies these products.
   ============================================================ */

.product-scroll .featured-tag,
.product-scroll .product-badge {
    display: none !important;
}


/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.product-scroll .featured-image-link {
    display: block;
    width: 100%;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.product-scroll .featured-image-wrap {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 126px;
    min-height: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 102, 0, 0.13),
            transparent 60%
        ),
        #0c1014;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-scroll .featured-image-wrap img {
    display: block;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    padding: 9px;

    object-fit: contain;
    object-position: center;

    transition: transform 0.2s ease;
}

.product-scroll .featured-product-card:active
.featured-image-wrap img {
    transform: scale(1.03);
}


/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */

.product-scroll .featured-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--orange);
    font-size: 30px;
    font-weight: 900;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 102, 0, 0.12),
            transparent 60%
        );
}


/* ============================================================
   PRODUCT DETAILS
   ============================================================ */

.product-scroll .featured-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-width: 0;
    padding: 9px;
}

.product-scroll .featured-brand {
    display: block;

    margin-bottom: 5px;
    overflow: hidden;

    color: var(--orange);

    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-scroll .featured-name {
    display: -webkit-box;

    min-width: 0;
    min-height: 2.5em;

    overflow: hidden;

    color: #f4f5f6;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;

    overflow-wrap: anywhere;
    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ============================================================
   PRICING
   ============================================================ */

.product-scroll .featured-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: auto;
    padding-top: 9px;
}

.product-scroll .featured-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;

    min-width: 0;
}

.product-scroll .featured-price {
    color: #ffffff;

    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;

    overflow-wrap: anywhere;
}

.product-scroll .featured-compare {
    color: #737d87;

    font-size: 9px;
    font-weight: 600;

    text-decoration: line-through;
    white-space: nowrap;
}


/* ============================================================
   STOCK STATUS
   ============================================================ */

.product-scroll .featured-stock {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;

    color: #69d69a;

    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.product-scroll .featured-stock-dot {
    display: block;

    width: 5px;
    height: 5px;
    flex: 0 0 5px;

    border-radius: 50%;
    background: #52c879;

    box-shadow: 0 0 6px rgba(82, 200, 121, 0.4);
}


/* ============================================================
   OUT-OF-STOCK STATE
   ============================================================ */

.product-scroll .featured-product-card.out-of-stock {
    border-color: rgba(255, 255, 255, 0.06);
}

.product-scroll .featured-product-card.out-of-stock
.featured-image-wrap img {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.product-scroll .featured-stock.out-of-stock {
    color: #ff7777;
}

.product-scroll .featured-stock.out-of-stock
.featured-stock-dot {
    background: #ff5d5d;
    box-shadow: 0 0 6px rgba(255, 93, 93, 0.35);
}


/* ============================================================
   ADD TO CART
   ============================================================ */

.product-scroll .featured-add-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 34px;

    margin-top: 9px;
    padding: 7px 5px;

    border: 1px solid rgba(255, 102, 0, 0.6);
    border-radius: 9px;

    background: linear-gradient(
        180deg,
        #ff7210,
        #f45d00
    );

    color: #ffffff;

    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;

    overflow-wrap: anywhere;

    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.12);

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.product-scroll .featured-add-button:active {
    transform: scale(0.97);
}

.product-scroll .featured-add-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.product-scroll .featured-product-card.out-of-stock
.featured-add-button {
    border-color: #343a40;
    background: #20262c;
    color: #8c959e;
    box-shadow: none;
    cursor: not-allowed;
}


/* ============================================================
   LOADING MESSAGE
   ============================================================ */

.product-scroll .featured-loading {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 100%;
    min-height: 90px;
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}


/* ============================================================
   TABLET
   Keep the carousel horizontal.
   ============================================================ */

@media (min-width: 600px) {
    .product-scroll .featured-product-card {
        flex-basis: 158px;
    }

    .product-scroll .featured-image-wrap {
        height: 136px;
    }
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 900px) {
    .product-scroll {
        gap: 12px;
    }

    .product-scroll .featured-product-card {
        flex-basis: 170px;
        border-radius: 16px;
    }

    .product-scroll .featured-image-wrap {
        height: 145px;
    }

    .product-scroll .featured-info {
        padding: 10px;
    }

    .product-scroll .featured-name {
        font-size: 12px;
    }

    .product-scroll .featured-product-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 102, 0, 0.3);
    }

    .product-scroll .featured-add-button:hover {
        background: linear-gradient(
            180deg,
            #ff7a1a,
            #ff6600
        );
    }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 360px) {
    .product-scroll {
        gap: 8px;
    }

    .product-scroll .featured-product-card {
        flex-basis: 140px;
    }

    .product-scroll .featured-image-wrap {
        height: 116px;
    }

    .product-scroll .featured-info {
        padding: 8px;
    }

    .product-scroll .featured-price {
        font-size: 14px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .product-scroll .featured-product-card,
    .product-scroll .featured-image-wrap img,
    .product-scroll .featured-add-button {
        transition: none;
    }
}
