.xc-home-products {
    width: 100%;
    padding: 56px 24px;
    border-top: 1px solid #690000;
    border-bottom: 1px solid #690000;
    background: #000;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
}

.xc-home-products,
.xc-home-products * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.xc-home-products__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.xc-home-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.xc-home-products__heading h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.xc-home-products__heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.5;
}

.xc-home-products__all {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    background: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.xc-home-products__all:hover,
.xc-home-products__all:focus-visible {
    border-color: #a60000;
    background: #a60000;
    color: #fff;
}

.xc-home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.xc-home-product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    color: #222;
}

.xc-home-product-card__stock {
    min-height: 18px;
    margin: 0 0 8px;
    color: #008000;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

.xc-home-product-card .xc-promo-card-badge {
    margin-bottom: 8px;
}

.xc-home-product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 4px;
    background: #fff;
}

.xc-home-product-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.xc-home-product-card__title {
    min-height: 3.75em;
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #800000;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 500;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.xc-home-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.xc-home-product-card__title a:hover,
.xc-home-product-card__title a:focus-visible {
    color: #a60000;
    text-decoration: underline;
}

.xc-home-product-card__price {
    min-height: 52px;
    margin: auto 0 12px;
    color: #222;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.xc-home-product-card__price strong,
.xc-home-product-card__price span {
    display: block;
}

.xc-home-product-card__price strong {
    color: #000;
    font-size: 17px;
    font-weight: 700;
}

.xc-home-product-card__price span {
    margin-top: 2px;
    color: #444;
}

.xc-home-product-card__action {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.xc-home-product-card__action:hover,
.xc-home-product-card__action:focus-visible {
    border-color: #800000;
    background: #800000;
    color: #fff;
}

.xc-home-products__all:focus-visible,
.xc-home-product-card__title a:focus-visible,
.xc-home-product-card__action:focus-visible {
    outline: 3px solid #e6b800;
    outline-offset: 2px;
}

.xc-home-products__empty {
    padding: 16px;
    border: 1px solid #800000;
    color: #fff;
    background: #000;
    font-family: "Montserrat", Arial, sans-serif;
    text-align: center;
}

@media (max-width: 1100px) {
    .xc-home-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .xc-home-products {
        padding: 44px 20px;
    }

    .xc-home-products__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .xc-home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .xc-home-products {
        padding: 38px 16px;
    }

    .xc-home-products__heading h2 {
        font-size: 25px;
    }

    .xc-home-products__heading p {
        font-size: 14px;
    }

    .xc-home-products__grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 84vw);
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 2px 2px 14px;
        scroll-snap-type: inline mandatory;
        scrollbar-color: #800000 #222;
        scrollbar-width: thin;
    }

    .xc-home-product-card {
        scroll-snap-align: start;
    }
}