/* =====================================================================
   HOME PAGE — index.html only. Loaded after base.css.
   ===================================================================== */

.hero-slider {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    border-block: 2px solid var(--gold);
}

@media (min-width: 768px) {
    .hero-slider {
        min-height: 80vh;
    }
}

.hero-slider.fade {
    animation: heroFade 1s ease-in-out;
}

@keyframes heroFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .2), rgba(245, 236, 214, .45));
    z-index: 1;
}

.hero-slider .content {
    z-index: 2;
    position: relative;
    text-align: center;
    top: 50%;
    transform: translateY(-40%);
    color: #d7d7d7;
    text-shadow: -1px 0 var(--gold-light);
    display: flex;
    flex-direction: column;
    font-size: 26px;
    font-weight: 100;
}

.hero-slider .content .charity-note {
    margin-top: 120px;
    font-size: 15px;
    border-radius: var(--radius-md);
    margin-inline: auto;
    max-width: 380px;
    background-color: rgba(255, 255, 255, .3);
    color: rgba(45, 45, 45, .96);
    padding: .4rem .8rem;
}

/* -------- Category tiles -------- */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .categories {
        padding: 2rem;
        grid-template-columns: repeat(4, 1fr);
    }
}

.cat-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: .1rem solid var(--gold-light);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.cat-card:hover img {
    transform: scale(1.12);
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .15), rgba(0, 0, 0, .25));
}

.cat-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.cat-overlay h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.cat-overlay span {
    font-size: .85rem;
    opacity: .8;
}

/* -------- Featured products -------- */
.section-title {
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem;
    scrollbar-width: none;
}

.product-row::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .product-row {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-row .product-card {
    min-width: 220px;
    will-change: transform;
}

/* -------- Editorial section -------- */
.editorial {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .6), rgba(201, 162, 77, .08));
}

.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 3rem;
}

.editorial-block.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.editorial-block.reverse .editorial-text {
    order: 2;
}

.editorial-block.reverse .editorial-images {
    order: 1;
}

.editorial-text h3 {
    font-weight: 300;
    margin-bottom: .5rem;
    color: var(--black);
}

.editorial-text p {
    color: #777;
    margin-bottom: 1.5rem;
}

.editorial-text a {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: var(--radius-round);
    border: 1px solid rgba(201, 162, 77, .6);
    color: var(--gold);
    font-size: .85rem;
    letter-spacing: 2px;
    transition: .4s ease;
}

.editorial-text a:hover {
    background: var(--gold);
    color: var(--black);
}

.editorial-images {
    position: relative;
    height: 360px;
}

.editorial-images img {
    position: absolute;
    width: 65%;
    height: 85%;
    object-fit: cover;
    border-radius: 1.6rem;
    box-shadow: var(--shadow-lg);
    transition: transform .6s ease;
}

.editorial-images img:first-child {
    top: 0;
    left: 0;
}

.editorial-images img:last-child {
    bottom: 0;
    right: 0;
}

.editorial-block:hover img:first-child {
    transform: translate(-6px, -6px);
}

.editorial-block:hover img:last-child {
    transform: translate(6px, 6px);
}

@media (max-width: 768px) {
    .editorial-text h3 {
        font-size: 1.6rem;
    }

    .editorial-text p {
        font-size: .9rem;
    }

    .editorial-block,
    .editorial-block.reverse {
        grid-template-columns: 1fr;
    }

    .editorial-text {
        text-align: center;
    }

    .editorial-images {
        height: 300px;
    }

    .editorial-images img {
        width: 75%;
    }
}
