﻿body {
    margin: 0;
    background: #ecddd5;
    color: #493b32;
    font-family: 'Lucida Calligraphy';
    line-height: 1.5;
}

.site-header {
    padding: 24px 5%;
    background: #ecddd5;
    text-align: center;
    border-bottom: 1px solid #eadfd3;
}

.brand img {
    display: block;
    width: min(100%, 760px);
    max-height: 190px;
    object-fit: contain;
    margin: auto;
}

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
    padding: 30px 0 60px;
}

.intro,
.category-heading {
    text-align: center;
    padding: 30px 0 45px;
}

    .intro h1,
    .category-heading h1 {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin: 8px 0 12px;
    }

.eyebrow {
    color: #8b6548;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-title {
    margin: 35px 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dfc8ae;
}

/* CATEGORÍAS DE LA PÁGINA PRINCIPAL */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-card {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #ecddd5;
    color: inherit;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px #0000000b;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px #00000012;
    }

    .category-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        background: #eee5db;
    }

    .category-card h3 {
        margin: 16px 10px 5px;
        font-size: 1.3rem;
    }

.category-link {
    display: block;
    padding: 0 10px 18px;
    color: #8b6548;
}

/* CATÁLOGO */
.back-link {
    color: #79563d;
    text-decoration: none;
}

    .back-link:hover {
        text-decoration: underline;
    }

.product-section {
    margin-bottom: 45px;
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #ecddd5;
    box-shadow: 0 4px 16px #0000000b;
}

    .product-card > img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        background: #eee5db;
    }

.product-info {
    padding: 18px;
}

    .product-info h3 {
        margin: 0 0 8px;
        font-size: 1.1rem;
    }

.product-description {
    color: #77685c;
    font-size: 0.94rem;
}

.product-price {
    color: #8b6548;
    font-weight: bold;
    font-size: 1.35rem;
    margin: 14px 0;
}

.whatsapp-button {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    background: #ecddd5;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

    .whatsapp-button:hover {
        background: #38563e;
    }

.site-footer {
    padding: 28px 5%;
    text-align: center;
    background: #eee5db;
    color: #625246;
}

/* TABLET */
@media (max-width: 850px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CELULAR */
@media (max-width: 520px) {
    .container {
        width: 94%;
        padding-top: 20px;
    }

    .site-header {
        padding: 15px 4%;
    }

    .brand img {
        max-height: 130px;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 11px;
    }

        .product-info h3 {
            font-size: 0.95rem;
        }

    .product-price {
        font-size: 1.1rem;
    }

    .whatsapp-button {
        font-size: 0.85rem;
    }
}
