/* Lafinda Homepage Professional Alignment - Mobile First (Tablet & Desktop clean) */

/* Compact Rewards Strip */
.home-rewards-wrap {
    max-width: 800px;
    margin: 0.35rem auto 0.25rem;
    padding: 0 0.5rem;
}

.home-rewards-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(11, 27, 60, 0.04);
    text-decoration: none;
    min-height: 36px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-rewards-strip:hover,
.home-rewards-strip:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(11, 27, 60, 0.08);
}

.home-rewards-strip__left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.home-rewards-strip__badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0b1b3c;
    color: #fe6a07;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.home-rewards-strip__points {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0b1b3c;
    white-space: nowrap;
}

.home-rewards-strip__sep {
    font-size: 0.75rem;
    color: #94a3b8;
}

.home-rewards-strip__tier {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffffff;
    background: #fe6a07;
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.home-rewards-strip__hint {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
}

.home-rewards-strip__right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.home-rewards-strip__cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0b1b3c;
}

.home-rewards-strip__arrow {
    font-size: 0.8rem;
    color: #fe6a07;
    transition: transform 0.15s ease;
}

.home-rewards-strip:hover .home-rewards-strip__arrow {
    transform: translateX(2px);
}

@media (max-width: 991.98px) {
    .home-section,
    #home-feed-root > .home-feed-section {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }

    #heroCarousel.compact-hero-banner,
    #heroCarouselDesktop,
    #heroCarouselMobile {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
        background-color: #f8fafc;
    }

    /* Category section alignment */
    .home-categories {
        margin-top: 0.35rem;
        margin-bottom: 0.75rem;
    }

    .home-categories__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.5rem;
        margin-bottom: 0.45rem;
    }

    .home-categories__title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0b1b3c;
        margin: 0;
        letter-spacing: -0.2px;
    }

    .home-categories__browse {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.76rem;
        font-weight: 600;
        color: #0b1b3c;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        padding: 0.25rem 0.65rem;
        border-radius: 999px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .home-categories__browse:hover,
    .home-categories__browse:active {
        background: #e2e8f0;
        color: #fe6a07;
    }

    .home-categories__browse i {
        font-size: 0.75rem;
        color: #fe6a07;
    }

    .category-nav-grid--home {
        display: flex;
        gap: 0.65rem;
        overflow-x: auto;
        padding: 0.1rem 0.5rem 0.4rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }

    .category-nav-grid--home::-webkit-scrollbar {
        display: none;
    }

    .category-nav-grid--home li {
        flex: 0 0 auto;
        list-style: none;
    }

    .category-nav-card--home {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 76px;
        text-decoration: none;
        transition: transform 0.15s ease;
    }

    .category-nav-card--home:active {
        transform: scale(0.96);
    }

    .category-nav-card--home .category-nav-card__media {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #ffffff;
        border: 1.5px solid #eef2f6;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(11, 27, 60, 0.06);
    }

    .category-nav-card--home .category-nav-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-nav-card--home .category-nav-card__label {
        font-size: 0.72rem;
        font-weight: 500;
        color: #1e293b;
        line-height: 1.2;
        margin-top: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.2em;
        max-width: 76px;
        word-break: normal;
        overflow-wrap: break-word;
        text-align: center;
    }

    /* Product carousel alignment */
    .product-carousel-section {
        margin-top: 0.25rem;
        margin-bottom: 0.65rem;
    }

    .product-carousel-section .product-carousel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.5rem;
        margin-bottom: 0.45rem;
    }

    .product-carousel-section h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0b1b3c;
        margin: 0;
        letter-spacing: -0.2px;
    }

    .product-carousel-container {
        display: flex;
        gap: 0.65rem;
        overflow-x: auto;
        padding: 0 0.5rem 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .product-carousel-container::-webkit-scrollbar {
        display: none;
    }

    .lp-card--carousel {
        flex: 0 0 152px;
        min-height: 210px;
    }
}

/* Large Desktop Breakpoint */
@media (min-width: 992px) {
    .home-section,
    #home-feed-root > .home-feed-section,
    #heroCarousel.compact-hero-banner,
    #heroCarouselDesktop,
    .home-rewards-wrap {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-rewards-strip {
        padding: 0.5rem 1.25rem;
        min-height: 42px;
    }
}
