/* =================================================
   FEATURED & LATEST PAGE — Dedicated CSS
   ================================================= */

/* SECTION 2: Products Section Below Hero Banner */
.featured-latest-page-wrapper {
    max-width: 1400px;
    margin: 0 auto 0px auto;
    padding: 0 40px;
    box-sizing: border-box;
    clear: both;
    position: relative;
    display: block;
}

.featured-latest-page-wrapper .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-latest-page-wrapper .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin: 0;
}

.featured-latest-page-wrapper .section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c40000, #ff4d4d);
    border-radius: 2px;
}

/* 4-column grid */
.featured-latest-grid.four-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}

.featured-latest-grid.four-columns .featured-latest-grid__item {
    flex: 0 0 calc(25% - 19px);
    /* Adjusted for 25px gap */
}

/* Card Styling */
.featured-latest-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.featured-latest-card:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
    border-color: #c40000;
    transform: translateY(-6px);
}

/* Badges / Tags */
.featured-latest-page-wrapper .product-card__badges,
.product-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 10;
}

.featured-latest-card .badge {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: none;
    line-height: 1.4;
}

.badge.featured {
    background: #fde047;
    color: #854d0e;
    border: none;
}

.badge.latest {
    background: #e2e8f0;
    color: #475569;
    border: none;
}

.badge.bestseller {
    background: #0ea5e9;
    color: #ffffff;
    border: none;
}

/* Image */
.featured-latest-card .product-card__image-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.featured-latest-card .product-card__image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-latest-card:hover .product-card__image-wrapper img {
    transform: scale(1.12);
}

/* Content & Brand */
.featured-latest-card .product-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}

.product-card__brand {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Title */
.featured-latest-card .product-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 12px 0;
    height: 43px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    width: 100%;
}

.featured-latest-card .product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-latest-card .product-card__title a:hover {
    color: #c40000;
}

/* Price & Action */
.featured-latest-card .product-card__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 14px;
    width: 100%;
}

.product-card__price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.featured-latest-card .product-card__price {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.product-card__list-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.product-card__stock-status {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card__stock-status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

.product-card__action {
    width: 100%;
}

.product-card__action .btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: #c40000;
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.15);
    box-sizing: border-box;
}

.product-card__action .btn-add-to-cart:hover {
    background: #a80000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(196, 0, 0, 0.25);
    color: #ffffff;
}

/* Responsive Customizations */
@media (max-width: 1024px) {
    .featured-latest-grid.four-columns .featured-latest-grid__item {
        flex: 0 0 calc(33.333% - 17px);
    }
}

@media (max-width: 768px) {
    .featured-latest-grid.four-columns {
        gap: 15px;
    }

    .featured-latest-grid.four-columns .featured-latest-grid__item {
        flex: 0 0 calc(50% - 7.5px);
    }

    .featured-latest-page-wrapper .section-title {
        font-size: 28px;
    }

    .featured-latest-card .product-card__image-wrapper {
        height: 160px;
        margin-top: 18px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .featured-latest-grid.four-columns {
        gap: 12px;
    }

    .featured-latest-grid.four-columns .featured-latest-grid__item {
        flex: 0 0 calc(50% - 6px);
    }

    .featured-latest-card {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .featured-latest-card .product-card__image-wrapper {
        height: 130px;
        margin-top: 12px;
        margin-bottom: 8px;
        padding: 5px;
    }

    .product-card__brand {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .featured-latest-card .product-card__title {
        font-size: 13px;
        line-height: 1.3;
    }

    .featured-latest-card .product-card__price {
        font-size: 14px;
    }

    .product-card__action .btn-add-to-cart {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Toast Notification Component */
.redfox-toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: toastSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* SECTION 3: Full-Width Navigation Banner (Shop by Category & Shop by Brand) */
.featured-latest-nav-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background-color: rgb(172, 4, 1) !important;
    padding: 65px 20px;
    box-sizing: border-box;
    clear: both;
    margin-top: 30px;
    margin-bottom: 0;
}

.featured-latest-nav-container {
    max-width: 1100px;
    margin: 0 auto;
}

.featured-latest-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}

.featured-nav-card {
    background: #ffffff;
    border: none !important;
    border-radius: 24px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.featured-nav-card::before {
    display: none !important;
}

.featured-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.featured-nav-card__icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.featured-nav-card:hover .featured-nav-card__icon {
    background-color: rgb(172, 4, 1) !important;
    color: #ffffff !important;
    border-color: rgb(172, 4, 1) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(172, 4, 1, 0.3);
}

.featured-nav-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-nav-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.featured-nav-card:hover .featured-nav-card__title {
    color: rgb(172, 4, 1) !important;
}

@media (max-width: 1024px) {
    .featured-latest-nav-banner {
        padding: 45px 24px;
    }

    .featured-latest-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-nav-card {
        padding: 28px 16px;
        border-radius: 20px;
    }

    .featured-nav-card__title {
        font-size: 20px;
    }

    .featured-nav-card__icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}

@media (max-width: 575px) {
    .featured-latest-nav-banner {
        padding: 35px 16px;
        margin-top: 30px;
    }

    .featured-latest-nav-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-nav-card {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .featured-nav-card__title {
        font-size: 18px;
    }

    .featured-nav-card__icon {
        width: 60px;
        height: 60px;
    }
}

/* SECTION 4: Our Premium Brands */
.featured-latest-brands-section-wrapper {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    clear: both;
}

.premium-brands-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.premium-brands-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.premium-brands-section .section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin: 0;
}

.premium-brands-section .section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c40000, #ff4d4d);
    border-radius: 2px;
}

/* Continuous Infinite Auto-Sliding Brand Marquee */
.brands-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.brands-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: continuousBrandScroll 28s linear infinite;
    will-change: transform;
}

.brands-marquee-track .brands-static-grid__item {
    flex: 0 0 220px;
    width: 220px;
}

@keyframes continuousBrandScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Brand Card — Logo Only */
.brand-card.brand-card--logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    height: 120px;
    box-sizing: border-box;
}

.brand-card.brand-card--logo-only:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #c40000;
}

.brand-card.brand-card--logo-only .brand-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-card.brand-card--logo-only .brand-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.brand-card.brand-card--logo-only:hover .brand-card__image img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

@media (max-width: 1024px) {
    .premium-brands-section {
        padding: 0 30px;
    }

    .brands-marquee-track {
        gap: 16px;
        animation-duration: 22s;
    }

    .brands-marquee-track .brands-static-grid__item {
        flex: 0 0 180px;
        width: 180px;
    }
}

@media (max-width: 768px) {
    .premium-brands-section {
        padding: 0 20px;
    }

    .premium-brands-section .section-title {
        font-size: 26px;
    }

    .brands-marquee-track {
        gap: 14px;
        animation-duration: 18s;
    }

    .brands-marquee-track .brands-static-grid__item {
        flex: 0 0 150px;
        width: 150px;
    }

    .brand-card.brand-card--logo-only {
        height: 95px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .premium-brands-section {
        padding: 0 16px;
    }

    .brands-marquee-track {
        gap: 12px;
        animation-duration: 15s;
    }

    .brands-marquee-track .brands-static-grid__item {
        flex: 0 0 130px;
        width: 130px;
    }

    .brand-card.brand-card--logo-only {
        height: 85px;
        padding: 10px;
    }
}