

.categories-section {
    padding: 35px 6% 90px;
    background: #f5eee8;
}

.categories-title {
    text-align: center;
    margin-bottom: 45px;
}

    .categories-title span {
        display: block;
        font-size: 12px;
        letter-spacing: 5px;
        text-transform: uppercase;
        color: #9c7652;
        margin-bottom: 12px;
    }

    .categories-title h2 {
        font-family: Georgia, serif;
        font-size: 40px;
        font-weight: 400;
        color: #302821;
    }

/* Three cards */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
}

/* Card */
.category-card {
    position: relative;
    width: 360px;
    height: 360px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    /* Curved C-shaped corners */
    clip-path: path("M 30 0 H 330 C 347 0 360 13 360 30 V 330 C 360 347 347 360 330 360 H 30 C 13 360 0 347 0 330 V 30 C 0 13 13 0 30 0 Z");
}

    /* Image */
    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.8s ease;
    }

    /* Dark luxury overlay */
    .category-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(248, 210, 212, 0.05) 20%, rgba(248, 210, 212, 0.15) 55%, rgba(248, 210, 212, 0.45) 100% );
        z-index: 2;
        transition: 0.5s ease;
    }

/* Thin inner border */
.category-border {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    z-index: 3;
    /* Same curved corners as the card */
    border-radius: 30px;
}

/* Text */
.category-content {
    position: absolute;
    left: 35px;
    right: 35px;
    bottom: 32px;
    z-index: 4;
    color: #000000;
}

.category-number {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: #d6b28c;
    margin-bottom: 8px;
}

.category-content h3 {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    margin: 0 0 12px;
}

.category-link {
    font-size: 10px;
    letter-spacing: 2px;
    color: #000000;
}

/* Hover */
.category-card:hover img {
    transform: scale(1.07);
}

.category-card:hover::after {
    background: linear-gradient( 180deg, rgba(248, 210, 212, 0.05) 20%, rgba(248, 210, 212, 0.15) 55%, rgba(248, 210, 212, 0.45) 100% );
}

.category-card:hover .category-border {
    inset: 20px;
    border-color: rgba(214,178,140,0.9);
}

.category-card:hover .category-link {
    color: #000000;
}


/* Mobile */
@media (max-width: 768px) {

    .categories-section {
        padding: 60px 20px;
    }

    .categories-title h2 {
        font-size: 32px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-content {
        left: 30px;
        bottom: 28px;
    }

        .category-content h3 {
            font-size: 30px;
        }
}
