.home-latest-products-section {
    background: #f4f7fb;
    padding: 0 0 clamp(2.25rem, 4vw, 3.25rem);
}

.home-latest-products-section .container {
    width: 90%;
    max-width: 90%;
}

.home-latest-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.home-latest-products-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.home-latest-products-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-latest-products-view-all:hover {
    color: var(--brand-primary-dark, #026aaa);
}

.home-latest-products-carousel {
    position: relative;
}

.home-latest-products-track-wrap {
    overflow: hidden;
}

.home-latest-products-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.35rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-latest-products-track::-webkit-scrollbar {
    display: none;
}

.home-latest-products-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
}

.latest-product-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-product-card:hover {
    border-color: #d7dee8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.latest-product-card-media {
    display: block;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
    text-decoration: none;
}

.latest-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.85rem;
    background: #ffffff;
}

.latest-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.25rem;
}

.latest-product-card-body {
    padding: 0.85rem 0.9rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.latest-product-card-category {
    font-size: 0.74rem;
    color: #4b5563;
    line-height: 1.35;
}

.latest-product-card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.latest-product-card-title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-product-card-title a:hover {
    color: var(--brand-primary, #0379c3);
}

.latest-product-card-sku {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--brand-primary, #0379c3);
    line-height: 1.2;
}

.latest-product-card-rating {
    margin-top: 0.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8edf2;
}

.latest-product-card-stars {
    display: inline-flex;
    gap: 0.08rem;
    color: #fbbf24;
    font-size: 0.68rem;
}

.latest-product-card-actions {
    display: flex;
    margin-top: auto;
    position: relative;
    background: #ffffff;
}

.latest-product-card-actions::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #fff;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.latest-product-card-actions:hover::before {
    opacity: 1;
}

.latest-product-card-action {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 0.65rem;
    background: #1a202c;
    color: #fff;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.latest-product-card-action:hover {
    background: var(--brand-primary, #0379c3);
    color: #fff;
}

.latest-product-card-action--shop {
    background: var(--brand-primary, #0379c3);
}

.latest-product-card-action--shop:hover {
    background: #1a202c;
    color: #fff;
}

.home-latest-products-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-latest-products-nav:hover {
    background: #1a202c;
    border-color: #1a202c;
    color: #fff;
}

.home-latest-products-nav--prev {
    left: -0.35rem;
}

.home-latest-products-nav--next {
    right: -0.35rem;
}

.home-latest-products-progress {
    position: relative;
    height: 3px;
    margin-top: 1.35rem;
    background: #dde3ea;
    border-radius: 999px;
    overflow: hidden;
}

.home-latest-products-progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: var(--brand-primary, #0379c3);
    border-radius: inherit;
    transition: left 0.15s ease, width 0.15s ease;
}

@media (min-width: 768px) {
    .home-latest-products-slide {
        flex-basis: calc(50% - 0.5rem);
    }

    .home-latest-products-nav {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .home-latest-products-slide {
        flex-basis: calc(33.333% - 0.7rem);
    }
}

@media (min-width: 1200px) {
    .home-latest-products-slide {
        flex-basis: calc(20% - 0.8rem);
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-latest-products-carousel {
        padding-left: 2.6rem;
        padding-right: 2.6rem;
    }

    .home-latest-products-nav--prev {
        left: 0;
    }

    .home-latest-products-nav--next {
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .home-latest-products-carousel {
        margin: 0 -0.15rem;
    }
}
