.hero {
    min-height: 430px;
    position: relative;
    overflow: hidden;
    color: #24440f;
    background: var(--cream);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255, 251, 234, 0.97) 0%, rgba(255, 251, 234, 0.86) 34%, rgba(255, 251, 234, 0.48) 68%, rgba(255, 251, 234, 0.20) 100%);
}

.hero-content {
    max-width: 620px;
    padding: 42px 0 46px;
    animation: heroContentIn 0.72s ease both;
}

.hero-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 184, 79, 0.11);
    color: var(--green-dark);
    font-weight: 900;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 68px);
    margin: 0 0 8px;
    color: var(--leaf);
    font-weight: 950;
    line-height: 0.96;
}

.hero .lead {
    font-size: 24px;
    margin: 0 0 16px;
    font-weight: 900;
    color: var(--green);
}

.hero-copy {
    max-width: 560px;
    margin: 0 0 24px;
    line-height: 1.7;
    font-size: 17px;
    color: #475b38;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(96, 139, 44, 0.18);
    color: #426321;
    font-weight: 800;
    font-size: 14px;
}

.category-section {
    padding-top: 56px;
    overflow: hidden;
}

.category-carousel {
    width: 100%;
    margin-top: 10px;
}

.category-track {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 18px 0 46px;
}

.category-card {
    min-height: 248px;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    text-align: left;
    color: #fff;
    animation: categoryRise 0.55s ease both;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2) { animation-delay: 80ms; }
.category-card:nth-child(3) { animation-delay: 160ms; }
.category-card:nth-child(4) { animation-delay: 240ms; }

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(23, 32, 51, 0.13);
}

.category-card img {
    width: 100%;
    height: 248px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 55, 26, 0.04), rgba(18, 55, 26, 0.82));
}

.category-content {
    position: absolute;
    inset: auto 22px 28px;
    z-index: 1;
}

.category-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 0 14px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.category-card h3 {
    margin: 0;
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.category-card span {
    display: block;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    line-height: 1.45;
}

.category-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed rgba(5, 184, 79, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    text-align: center;
    font-weight: 850;
}

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

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(23, 32, 51, 0.14);
}

.product-image {
    display: block;
    flex: 0 0 210px;
    height: 210px;
    min-height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #dff7b6, #f7fff1);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img { transform: scale(1.045); }

.favorite-button {
    position: absolute;
    right: 14px;
    top: 58px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: #e04462;
    border: 1px solid rgba(224, 68, 98, 0.16);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12);
}

.favorite-button:hover {
    color: #fff;
    background: #e04462;
}

.product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #fff;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 14px;
}

.stars { color: #e3a600; font-weight: 850; letter-spacing: 1px; }
.product-card h3 { margin: 0 0 12px; font-size: 21px; }
.product-card p { color: var(--muted); line-height: 1.55; min-height: 48px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-body .product-bottom { margin-top: auto; }
.price { color: var(--green-dark); font-weight: 950; font-size: 28px; }

.cart-add-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes categoryRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .hero, .hero-overlay { min-height: 380px; }
    .hero-overlay {
        background: linear-gradient(90deg, rgba(255, 251, 234, 0.96), rgba(255, 251, 234, 0.72));
    }
    .hero-content { padding: 34px 0 38px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-track { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 560px) {
    .hero, .hero-overlay { min-height: 360px; }
    .hero-slide.is-active { opacity: 0.36; }
    .hero-overlay { background: rgba(255, 251, 234, 0.90); }
    .hero-actions, .product-bottom { flex-direction: column; align-items: stretch; }
    .product-grid { grid-template-columns: 1fr; }
    .category-track { width: min(100% - 28px, 420px); }
}
