/* =========================
   CATEGORY PAGES – CLEAN
========================= */

.category-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.category-hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

    .category-hero h1 {
        font-size: 3rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        margin-bottom: .6rem;
    }

    .category-hero p {
        color: rgba(255,255,255,.6);
        font-size: .95rem;
        line-height: 1.6;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.2rem;
    padding-top: 2rem;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #151515, #0e0e0e);
    border-radius: 22px;
    padding: 1.4rem;
    transition: transform .35s ease, box-shadow .35s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 60px rgba(0,0,0,.6);
    }

/* =========================
   IMAGE (FIX REAL)
========================= */

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: .85rem; /* ? menos aire */
    background: #111;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ?? clave */
        object-position: center;
        display: block;
    }

/* =========================
   BADGE
========================= */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: .7rem;
    letter-spacing: .08em;
    font-weight: 700;
    border-radius: 999px;
    z-index: 2;
}

    .product-badge.stock {
        background: #1f8f4e;
        color: #fff;
    }

    .product-badge.on-demand {
        background: #caa23d;
        color: #000;
    }

/* =========================
   INFO
========================= */

.product-info {
    display: flex;
    flex-direction: column;
    gap: .25rem; /* antes demasiado */
}

    .product-info h3 {
        font-size: 1.05rem;
        font-weight: 500;
        margin: 0;
    }

.price-range {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffd166;
    margin-top: .25rem;
}

.price-cotizacion {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: #f5c451;
    background: rgba(245,196,81,.12);
    border: 1px solid rgba(245,196,81,.3);
    padding: .35rem .65rem;
    border-radius: 999px;
    margin-top: .4rem;
}


.price-note {
    font-size: .7rem;
    color: rgba(255,255,255,.45);
}
.price-range.on-demand {
    font-size: .85rem;
    font-weight: 600;
    color: #f5c451;
    background: rgba(245,196,81,.12);
    border: 1px solid rgba(245,196,81,.3);
    padding: .35rem .65rem;
    border-radius: 999px;
    display: inline-block;
    margin-top: .35rem;
}


/* =========================
   BUTTON
========================= */

.product-card .btn-saint {
    margin-top: .9rem; /* ?? empuja al fondo sin espacios raros */
    width: 100%;
    border-radius: 999px;
    padding: .65rem 0;
    font-size: .9rem;
    background: rgba(245,196,81,.12);
    border: 1px solid rgba(245,196,81,.35);
    color: #f5c451;
    transition: all .25s ease;
}

    .product-card .btn-saint:hover {
        background: #f5c451;
        color: #000;
    }

/* =========================
   SPECIAL REQUEST CARD
========================= */

.special-request {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #111, #0b0b0b);
    border: 1px solid rgba(255,215,0,.35);
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(255,215,0,.15);
    padding: 1.4rem;
}

.special-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: linear-gradient(135deg, #ffd700, #c9a227);
    color: #000;
    font-size: .65rem;
    font-weight: 700;
    padding: .35rem .7rem;
    border-radius: 999px;
}

.special-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .6rem;
    padding: 2rem 1.5rem;
}

    .special-body h3 {
        font-size: 1.1rem;
        color: #ffd700;
    }

    .special-body p {
        font-size: .9rem;
        color: rgba(255,255,255,.7);
        max-width: 260px;
    }

.special-action .btn-saint.highlight {
    width: 100%;
    padding: .75rem 1.4rem;
    margin-bottom: 50px;
    font-size: .85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #c9a227);
    color: #000;
    border-radius: 999px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .category-wrapper {
        padding: 0 1rem 3rem;
    }

    .category-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .product-info h3 {
        font-size: 1rem;
    }

    .price-range {
        font-size: 1rem;
    }
}

/* =========================
   PRODUCT CARD – LAYOUT FIX
========================= */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen fija */
.product-image {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* ?? evita cortes negros */
        background: #fff; /* fondo limpio */
    }

/* Info ocupa el resto */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    /* Nombre */
    .product-info h3 {
        margin-bottom: .4rem;
    }

    /* SLOT DE PRECIO (MISMO ALTO SIEMPRE) */
    .product-info .price-range,
    .product-info .price-note {
        min-height: 1.6rem;
    }

    /* Agrupador visual del precio */
    .product-info .price-block {
        min-height: 3.2rem; /* ?? reserva espacio */
        margin-bottom: .6rem;
    }

    /* Botón SIEMPRE ABAJO */
    .product-info .btn-saint {
        margin-top: auto;
    }
