:root { 
    --p-color: #25d366;
    --text-on-primary: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f3f5f7;
    padding-bottom: 120px;
}

.hero {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #ccc;
}

.cat-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 22px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.cat-btn.active {
    background: var(--p-color) !important;
    color: var(--text-on-primary) !important;
    border-color: var(--p-color);
}

.p-card {
    border: none;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.p-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    cursor: pointer;
    background-color: #ffffff; /* Opcional: fondo blanco por si la imagen original no es cuadrada */
}

.btn-main {
    background-color: var(--p-color) !important;
    color: var(--text-on-primary) !important;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    padding: 10px;
}

.btn-main:disabled {
    background-color: #d1d1d1 !important;
    color: #777 !important;
}

.img-main-detail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.thumb-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumb-img:hover {
    border-color: var(--p-color);
}

/* --- BOTONES FLOTANTES --- */

/* Carrito */
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: var(--p-color);
    color: var(--text-on-primary);

    border-radius: 50px;
    padding: 15px 22px;

    border: none;
    box-shadow: none;
    text-shadow: none;

    font-weight: 700;
    line-height: 1;

    transition: none;
}

.cart-float:hover {
    transform: none;
    box-shadow: none;
    color: var(--text-on-primary);
}

.cart-float:focus,
.cart-float:active {
    box-shadow: none !important;
    outline: none;
    color: var(--text-on-primary);
}

.cart-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 auto;
    color: var(--text-on-primary);
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-float span {
    color: var(--text-on-primary);
}

/* Botón WhatsApp */
.wa-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 1000;

    background-color: var(--p-color);
    color: var(--text-on-primary);

    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    border: none;
    box-shadow: none;
    text-shadow: none;

    text-decoration: none;

    transition: none;
}

.wa-float:hover {
    transform: none;
    color: var(--text-on-primary);
    box-shadow: none;
}

.wa-float:focus,
.wa-float:active {
    box-shadow: none !important;
    outline: none;
    color: var(--text-on-primary);
}

footer {
    background: white;
    padding: 40px 0;
    margin-top: 50px;
    border-radius: 40px 40px 0 0;
    text-align: center;
}

.social-icons a {
    font-size: 1.6rem;
    margin: 0 15px;
    color: #636e72;
    text-decoration: none;
}

/* --- ESTILO PARA LA X DEL PRODUCTO --- */
#detalleModal .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='red'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
    border: 2px solid white;
    border-radius: 50%;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semitransparente para que el borde resalte */
    box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Pequeña sombra para que se note en fondos blancos */
    padding: 0.6rem;
}
