[hidden] { display: none !important; }

.home-hero {
    position: relative;
    max-width: 78rem;
    margin: 1.5rem auto 0;
    padding-inline: 1rem;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    overflow: hidden;
    border-radius: 1.75rem;
    background: #f3e6e1;
    color: #351c27;
}

.hero-slide--offers { background: #e8eee6; color: #243b30; }
.hero-copy { padding: clamp(1.5rem, 5vw, 4.5rem); align-self: center; min-height: 22rem; }
.hero-copy :is(h1, h2) {
    max-width: 18ch;
    font: 500 clamp(2.4rem, 5vw, 4.75rem)/1.03 Georgia, serif;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}
[dir="rtl"] .hero-copy :is(h1, h2) { font-family: Cairo, sans-serif; letter-spacing: normal; line-height: 1.2; }
.hero-copy p { margin-top: 1rem; max-width: 38ch; line-height: 1.65; }
.hero-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem; padding: .7rem 1rem; border-radius: 999px; background: #442430; color: #fff; font-size: .9rem; font-weight: 600; }
.hero-link:hover { background: #66354a; }
.hero-slide--offers .hero-link { background: #315242; }
.hero-slide--offers .hero-link:hover { background: #426653; }
.hero-art {
    display: grid;
    place-items: center;
    min-height: 15rem;
    position: relative;
    color: #855361;
    background: radial-gradient(circle at 55% 42%, #faf0eb 0%, #dfb7ae 62%, #d19f95 100%);
}
.hero-slide--offers .hero-art { color: #537362; background: radial-gradient(circle at 55% 42%, #f2f4ec 0%, #c3d2c2 64%, #a8bdab 100%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-illustration { width: clamp(6rem, 15vw, 12rem); aspect-ratio: 1; stroke-width: .65; }
.hero-controls { display: flex; justify-content: center; gap: .35rem; margin-top: .5rem; }
.hero-controls button { display: grid; place-items: center; min-width: 2rem; min-height: 2rem; border-radius: 999px; }
.hero-controls button::after { content: ''; width: .55rem; height: .55rem; border-radius: 999px; background: #b49ca3; }
.hero-controls button[aria-current="true"]::after { width: 1.4rem; background: #831c48; }

.category-rail {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: .2rem .2rem .75rem;
    scrollbar-width: thin;
    scrollbar-color: #bd8e9d transparent;
}
.category-rail li { flex: 0 0 clamp(8rem, 15vw, 11rem); scroll-snap-align: start; }
.category-rail a { display: flex; height: 100%; align-items: center; gap: .6rem; min-height: 4.4rem; padding: .6rem; border: 1px solid #eee3e6; border-radius: 1rem; background: #fff; color: #422932; font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.category-rail a:hover { border-color: #b76b88; background: #fdf5f7; }
.category-rail img, .category-icon { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: .65rem; object-fit: cover; }
.category-icon { display: grid; place-items: center; background: #f6e9ed; color: #8c3b56; }
.category-controls { display: flex; gap: .5rem; }
.category-controls button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #e1ccd4; border-radius: 50%; color: #78324f; background: #fff; }
.category-controls button:hover { background: #f6e9ed; }

#cart-count { display: inline-flex; }
.cart-status { position: fixed; z-index: 60; inset-block-end: 1.5rem; inset-inline-end: 1rem; max-width: calc(100vw - 2rem); border-radius: .85rem; background: #243b30; color: #fff; pointer-events: none; }
.cart-status:not(:empty) { padding: .85rem 1.1rem; box-shadow: 0 8px 22px #243b3033; }
.cart-status[data-failed="true"] { background: #871d35; }
[data-cart-add] button[aria-disabled="true"] { opacity: .65; cursor: wait; }
:is(.hero-controls, .category-rail, .category-controls) :focus-visible, .category-rail:focus-visible, .hero-link:focus-visible { outline: 2px solid #831c48; outline-offset: 2px; }

@media (max-width: 640px) {
    .hero-slide { grid-template-columns: 1fr; }
    .hero-copy { min-height: auto; }
    .hero-art { min-height: 10rem; }
}
