/* ============================================
   SCARLET STORE – ESTILO UNIFICADO MODERNO
   ============================================ */

:root {
    --rosa-principal: #E12EBA;
    --rosa-claro: #FC82CB;
    --rosa-fondo: #FEF2FD;
    --borde-claro: #FFE2F4;
    --texto-oscuro: #020101;
    --texto-gris: #666;
    --sombra: 0 8px 24px rgba(225,46,186,0.1);
    --borde-radio: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #E12EBA, #FC82CB, #DEB4E1);
    color: var(--texto-oscuro);
    min-height: 100vh;
    line-height: 1.5;
}

/* Envoltorio principal (tarjeta redondeada) */
.site-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--rosa-fondo);
    border-radius: 35px;
    box-shadow: 0 25px 50px rgba(2,1,1,0.15);
}

/* HEADER STICKY */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--rosa-fondo);
    border-radius: 35px 35px 0 0;
}

/* Top Bar */
.top-bar {
    background: rgba(225,46,186,0.08);
    border-bottom: 1px solid var(--borde-claro);
    font-size: 0.85rem;
    padding: 10px 0;
}
.top-bar .contact-info {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.top-bar .contact-info li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a4a4a;
}
.top-bar .contact-info a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar .contact-info a:hover {
    color: var(--rosa-principal);
}
.social-icons-header {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.social-icons-header a {
    color: #4a4a4a;
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}
.social-icons-header a:hover {
    color: var(--rosa-principal);
    transform: translateY(-2px);
}

/* Main Header (logo, búsqueda, usuario) */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--borde-claro);
}
.logo-col a img {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(225,46,186,0.2));
    transition: transform 0.3s;
}
.logo-col a img:hover {
    transform: scale(1.02);
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form input {
    border: 1px solid var(--borde-claro);
    border-radius: 50px;
    padding: 10px 20px;
    width: 100%;
    background: white;
    transition: 0.3s;
}
.search-form input:focus {
    border-color: var(--rosa-principal);
    box-shadow: 0 0 0 3px rgba(225,46,186,0.2);
    outline: none;
}
.search-form button {
    background: var(--rosa-principal);
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.search-form button:hover {
    background: #c21e9e;
}
.user-cart {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}
.user-cart a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.user-cart a:hover {
    color: var(--rosa-principal);
}
.cart-link .cart-total {
    font-weight: 700;
}

/* Menú de navegación */
.nav-menu {
    padding: 10px 0;
}
.menu-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.menu-list > li {
    position: relative;
}
.menu-list > li > a {
    display: block;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--texto-oscuro);
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
}
.menu-list > li > a:hover,
.menu-list > li.active > a {
    background: var(--rosa-principal);
    color: white;
}
.sub-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: var(--rosa-fondo);
    min-width: 220px;
    box-shadow: var(--sombra);
    border-radius: 20px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 10;
    list-style: none;
    border: 1px solid var(--borde-claro);
}
.menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}
.sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}
.sub-menu li a:hover {
    background: var(--rosa-claro);
    color: white;
}
.sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Hamburguesa mobile */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--texto-oscuro);
    cursor: pointer;
    display: none; /* se muestra solo en mobile */
}

/* Hero estático */
.hero {
    background-size: cover;
    background-position: center;
    border-radius: 0 0 var(--borde-radio) var(--borde-radio);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}
.hero-overlay {
    background: linear-gradient(0deg, rgba(2,1,1,0.6), rgba(2,1,1,0.2));
    width: 100%;
    padding: 60px 30px;
    color: white;
    text-align: center;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}
.btn-cta {
    background: var(--rosa-principal);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}
.btn-cta:hover {
    background: #c21e9e;
    transform: translateY(-2px);
}

/* Secciones generales */
.section-headline {
    text-align: center;
    margin: 40px 0 20px;
}
.section-headline h2 {
    font-size: 2rem;
    color: var(--texto-oscuro);
    position: relative;
    display: inline-block;
}
.section-headline h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: var(--rosa-principal);
    border-radius: 4px;
}
.section-headline p {
    color: var(--texto-gris);
    margin-top: 10px;
}

/* Grid de categorías */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 30px;
}
.category-card {
    background: white;
    border: 1px solid var(--borde-claro);
    border-radius: var(--borde-radio);
    padding: 25px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--texto-oscuro);
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra);
    border-color: var(--rosa-claro);
}
.category-card .cat-icon {
    font-size: 2.5rem;
    color: var(--rosa-principal);
    margin-bottom: 10px;
}
.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Productos (tarjetas) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 30px;
}
.product-card {
    background: white;
    border-radius: var(--borde-radio);
    overflow: hidden;
    border: 1px solid rgba(252,130,203,0.2);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(225,46,186,0.15);
}
.product-card .photo {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-card .photo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225,46,186,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .photo .overlay {
    opacity: 1;
}
.product-card .photo .overlay .btn-add-cart {
    background: white;
    color: var(--rosa-principal);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.product-card .photo .overlay .btn-add-cart:hover {
    background: var(--rosa-principal);
    color: white;
}
.product-card h3 {
    margin: 15px 15px 5px;
    font-size: 1.1rem;
}
.product-card h3 a {
    color: var(--texto-oscuro);
    text-decoration: none;
}
.product-card .price {
    font-weight: 800;
    color: var(--rosa-principal);
    font-size: 1.2rem;
    margin: 0 15px 10px;
}
.product-card .old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}
.product-card .rating {
    margin: 0 15px 15px;
}
.product-card .rating i {
    color: var(--rosa-claro);
}
.product-card .text-danger {
    margin: 0 15px 15px;
    font-size: 0.9rem;
}

/* Footer */
.footer-modern {
    background: #FFE2F4;
    border-top: 1px solid var(--rosa-claro);
    border-radius: 0 0 35px 35px;
    padding: 40px 30px 20px;
    margin-top: 50px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}
.footer-widget h4 {
    color: var(--rosa-principal);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-widget p,
.footer-widget ul {
    color: #333;
    font-size: 0.9rem;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget ul li {
    margin-bottom: 8px;
}
.footer-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-widget a:hover {
    color: var(--rosa-principal);
}
.social-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}
.social-footer a {
    background: var(--rosa-principal);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.2s;
}
.social-footer a:hover {
    background: var(--rosa-claro);
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(225,46,186,0.2);
    color: var(--texto-gris);
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .menu-list {
        flex-direction: column;
        display: none; /* oculto hasta toggle */
    }
    .menu-list.active {
        display: flex;
    }
    .menu-toggle {
        display: inline-block;
    }
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: rgba(255,226,244,0.5);
        margin-left: 15px;
    }
    .menu-list li:hover > .sub-menu {
        /* no hacer nada en mobile, se muestra mediante clase .active si se requiere */
    }
    .hero {
        min-height: 300px;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        margin: 10px;
        border-radius: 25px;
    }
    .header-wrapper {
        border-radius: 25px 25px 0 0;
    }
    .hero {
        border-radius: 0 0 25px 25px;
    }
    .footer-modern {
        border-radius: 0 0 25px 25px;
    }
    .product-grid,
    .category-grid {
        gap: 15px;
        padding: 0 15px;
    }
    .top-bar .contact-info {
        justify-content: center;
        margin-bottom: 10px;
    }
    .social-icons-header {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .product-card .photo {
        height: 180px;
    }
}