:root {
    --page-bg: #f8fbff;
    --page-text: #1f2937;
    --panel-bg: rgba(255,255,255,0.92);
    --panel-border: rgba(14,165,233,0.2);
    --panel-soft: rgba(239,246,255,0.9);
    --card-bg: #ffffff;
    --card-border: rgba(59,130,246,0.28);
    --muted-text: #4b5563;
    --button-sky: #ffffff;
    --button-sky-text: #0284c7;
    --button-admin: #00BFFF;
    --button-admin-text: #ffffff;
    --shadow-soft: rgba(15, 23, 42, 0.12);
}

body.theme-dark {
    --page-bg: #07131d;
    --page-text: #e2f3ff;
    --panel-bg: rgba(15, 23, 42, 0.9);
    --panel-border: rgba(125, 211, 252, 0.25);
    --panel-soft: rgba(15, 23, 42, 0.7);
    --card-bg: rgba(15, 23, 42, 0.92);
    --card-border: rgba(125,211,252,0.32);
    --muted-text: #cbd5e1;
    --button-sky: rgba(15, 23, 42, 0.65);
    --button-sky-text: #7dd3fc;
    --button-admin: #0ea5e9;
    --button-admin-text: #e0f2fe;
    --shadow-soft: rgba(14, 165, 233, 0.18);
}

body {
    background: var(--page-bg);
    color: var(--page-text);
    transition: background 0.25s ease, color 0.25s ease;
}

.floating-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.tool-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 25px var(--shadow-soft);
}

.tool-btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.tool-btn--admin {
    background: var(--button-admin);
    color: var(--button-admin-text);
}

.tool-btn--search {
    background: var(--button-sky);
    color: var(--button-sky-text);
    border-color: var(--panel-border);
}

.tool-btn--theme {
    background: var(--button-sky);
    color: var(--button-sky-text);
    border-color: var(--panel-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
}
.product-card {
    transition: all 0.3s ease;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.quantity-input:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
}
.top-accent {
    height: 4px;
    background: linear-gradient(90deg, #00BFFF, #1e3a8a, #00BFFF);
}
.header-content h1 {
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.05em;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3), 6px 6px 0px rgba(0,0,0,0.2), 9px 9px 0px rgba(0,0,0,0.1), 12px 12px 20px rgba(0,0,0,0.4);
}
/* Producto agotado: imagen en blanco y negro + leve apagado para que se note sin leer la etiqueta */
.product-image-area--agotado img {
    filter: grayscale(100%);
    opacity: 0.78;
}
.product-image-area--agotado::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.22) 100%);
    border-radius: 0.75rem 0.75rem 0 0;
}
.product-card--agotado {
    opacity: 0.92;
}
/* Etiquetas de producto — colores muy vivos estilo dulcería */
.catalog-tag {
    display: inline-block;
    padding: 0.35rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 2px solid #fff;
    line-height: 1.15;
    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.28),
        0 8px 18px rgba(0, 0, 0, 0.35);
}
@media (min-width: 480px) {
    .catalog-tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.65rem;
    }
}
.catalog-tag--nuevo {
    background: linear-gradient(145deg, #ff5722 0%, #e91e8c 50%, #ff9100 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    box-shadow:
        0 3px 0 #8b1450,
        0 8px 22px rgba(233, 30, 140, 0.65),
        0 0 20px rgba(255, 145, 0, 0.45);
}
.catalog-tag--disponible {
    background: linear-gradient(145deg, #00c853 0%, #b2ff59 100%);
    color: #0d260d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: #e8f5e9;
    box-shadow:
        0 3px 0 #1b5e20,
        0 8px 22px rgba(0, 200, 83, 0.55),
        0 0 18px rgba(178, 255, 89, 0.4);
}
.catalog-tag--agotado {
    background: linear-gradient(145deg, #ff1744 0%, #b71c1c 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-color: #ffcdd2;
    box-shadow:
        0 3px 0 #3e0000,
        0 8px 24px rgba(255, 23, 68, 0.6),
        0 0 16px rgba(183, 28, 28, 0.45);
}
.catalog-tag--bajas {
    background: linear-gradient(145deg, #ffea00 0%, #ffab00 100%);
    color: #1a1000;
    border-color: #fffde7;
    box-shadow:
        0 3px 0 #b8860b,
        0 8px 22px rgba(255, 171, 0, 0.65),
        0 0 18px rgba(255, 234, 0, 0.5);
}
.catalog-tag--precio {
    background: linear-gradient(145deg, #ffd600 0%, #ff6d00 100%);
    color: #1a0800;
    border-color: #fff8e1;
    box-shadow:
        0 3px 0 #bf360c,
        0 8px 22px rgba(255, 109, 0, 0.55),
        0 0 16px rgba(255, 214, 0, 0.45);
}
.catalog-tag--vendido {
    background: linear-gradient(145deg, #e040fb 0%, #651fff 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    border-color: #f3e5f5;
    box-shadow:
        0 3px 0 #311b92,
        0 8px 26px rgba(224, 64, 251, 0.55),
        0 0 20px rgba(101, 31, 255, 0.45);
}
.catalog-tag--default {
    background: linear-gradient(145deg, #607d8b 0%, #263238 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.filter-btn {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.filter-btn.is-active {
    background: linear-gradient(135deg, #00BFFF, #1e3a8a);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.25);
}
.footer-contact a {
    transition: all 0.2s ease;
}
.footer-contact a:hover {
    transform: translateY(-1px);
}
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.45), 0 0 0 6px rgba(37, 211, 102, 0.12);
    border: 2px solid rgba(255,255,255,0.8);
    z-index: 60;
    animation: whatsappBlink 1.8s infinite ease-in-out;
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -0.45rem;
    border: 2px solid rgba(37, 211, 102, 0.55);
    border-radius: 9999px;
    animation: whatsappRing 2s infinite ease-out;
}
.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.18);
}
@keyframes whatsappBlink {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        opacity: 0.9;
        filter: brightness(1.12);
    }
}
@keyframes whatsappRing {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}