.hero-gallery {
    position: relative;
    scroll-behavior: smooth;
}

.hero-slide-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    flex: 0 0 100%;
    scroll-snap-align: center;
    overflow: hidden;
    background: #fff;
}

.hero-slide-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-slide-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #27272a;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow: 0 5px 18px rgba(24, 24, 27, 0.18);
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-arrow:hover {
    background: #8a0000;
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}

@media (max-width: 899px) {
    .hero-slide-frame {
        width: 100%;
        aspect-ratio: 16 / 7;
        flex-basis: 100%;
    }

    .hero-arrow {
        display: none;
    }
}

.product-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.home-kicker {
    margin: 0;
    color: #8a0000;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-section-title {
    margin: 2px 0 0;
    color: #18181b;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.home-section-link {
    flex: 0 0 auto;
    color: #8a0000;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.home-section-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-grid {
    display: grid;
    margin-top: 11px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
}

.category-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.category-card-media {
    width: 52px;
    height: 52px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #e4e4e7;
    border-radius: 11px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-card:hover .category-card-media {
    border-color: #8a0000;
    box-shadow: 0 5px 14px rgba(24, 24, 27, 0.08);
    transform: translateY(-2px);
}

.category-card-title {
    width: 100%;
    overflow: hidden;
    margin: 5px 0 0;
    color: #27272a;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-count {
    margin: 1px 0 0;
    color: #71717a;
    font-size: 0.61rem;
    line-height: 1.3;
}

.home-description {
    max-width: 36rem;
    margin: 6px 0 0;
    color: #52525b;
    font-size: 0.78rem;
    line-height: 1.65;
}

.home-promo {
    border: 1px solid rgba(127, 29, 29, 0.42);
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #6f0000 0%, #920b16 52%, #b91c1c 100%);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.16);
}

.home-promo .home-kicker {
    color: #fecaca;
}

.home-promo .home-section-title {
    color: #fff;
}

.home-promo .home-description {
    color: #fee2e2;
}

.home-primary-button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #8a0000;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(138, 0, 0, 0.16);
}

.home-promo .home-primary-button {
    background: #fff;
    color: #8a0000;
    box-shadow: 0 5px 16px rgba(69, 10, 10, 0.22);
}

.home-promo .home-primary-button:hover {
    background: #fef2f2;
}

.home-primary-button:hover {
    background: #6f0000;
}

.product-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 12px 28px rgba(24, 24, 27, 0.1);
    transform: translateY(-3px);
}

.product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.product-card-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.product-card:hover .product-card-media > img {
    transform: scale(1.035);
}

.product-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #a1a1aa;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card-placeholder .lucide-menu-icon {
    width: 28px;
    height: 28px;
}

.product-card-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    min-height: 24px;
    padding: 0 9px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.12);
}

.product-card-featured {
    left: 10px;
    background: #8a0000;
    color: #fff;
}

.product-card-stock {
    right: 10px;
    background: rgba(24, 24, 27, 0.88);
    color: #fff;
}

.product-card-content {
    display: flex;
    min-height: 0;
    padding: 12px;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-card-category {
    overflow: hidden;
    margin: 0;
    color: #8a0000;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0;
    color: #18181b;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #8a0000;
}

.product-card-meta {
    display: flex;
    min-height: 18px;
    margin-top: 3px;
    align-items: center;
    gap: 8px;
    color: #71717a;
    font-size: 0.6rem;
}

.product-card-meta > span + span::before {
    margin-right: 8px;
    color: #d4d4d8;
    content: '•';
}

.product-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-card-rating svg {
    width: 13px;
    height: 13px;
    color: #f59e0b;
}

.product-card-footer {
    display: flex;
    margin-top: 5px;
    padding-top: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.product-card-price-label {
    display: block;
    margin-bottom: 2px;
    color: #a1a1aa;
    font-size: 0.55rem;
}

.product-card-price {
    margin: 0;
    color: #8a0000;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.product-card-action {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fef2f2;
    color: #8a0000;
    transition: background 160ms ease, color 160ms ease;
}

.product-card-action:hover {
    background: #8a0000;
    color: #fff;
}

.product-card-action svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 639px) {
    .home-kicker {
        font-size: 0.52rem;
    }

    .home-section-title {
        font-size: 0.86rem;
    }

    .home-section-link {
        font-size: 0.68rem;
    }

    .home-description {
        font-size: 0.73rem;
    }

    .home-primary-button {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.69rem;
    }

    .product-card {
        border-radius: 13px;
    }

    .product-card-content {
        padding: 9px;
    }

    .product-card-badge {
        top: 7px;
        min-height: 21px;
        padding: 0 7px;
        font-size: 0.52rem;
    }

    .product-card-featured {
        left: 7px;
    }

    .product-card-stock {
        right: 7px;
    }

    .product-card-title {
        font-size: 0.72rem;
    }

    .product-card-meta {
        gap: 5px;
        font-size: 0.56rem;
    }

    .product-card-meta > span + span::before {
        margin-right: 5px;
    }

    .product-card-footer {
        margin-top: 5px;
        padding-top: 0;
    }

    .product-card-price {
        font-size: 0.76rem;
    }

    .product-card-action {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card-media {
        width: 60px;
        height: 60px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}
