/* --- Paleta de Colores y Estilos Base --- */
:root {
    --primary-color: #4A4A4A;          /* Texto principal oscuro y cálido */
    --secondary-color: #E5739D;        /* Rosado principal para acentos */
    --accent-color: #A8D8EA;           /* Azul suave como color secundario */
    --light-pink-bg: #FFF5F7;          /* Rosado extra claro para fondos */
    --light-color: #f8f9fa;            /* Gris claro */
    --dark-color: #212529;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--light-pink-bg) 100%);
    color: var(--primary-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* --- Cabecera --- */
.main-header {
    background-color: #e9419; /* ¡Este es tu nuevo color! */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo img {
    max-height: 50px;
}
.header-right {
    display: flex;
    align-items: center;
}
.header-cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- Estilos para la Sección Héroe --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
}
.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.btn-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 115, 157, 0.4);
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 115, 157, 0.5);
}

/* --- Nuevo Diseño para Grid de Categorías --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}
.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    position: relative;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(229, 115, 157, 0.2);
}
.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card .category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
    transition: all 0.4s ease;
}
.category-card h3 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-family: var(--font-headings);
}
.category-card::before {
    content: 'Ver Más →';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 115, 157, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.category-card:hover::before {
    opacity: 1;
}
.category-card:hover .category-info {
    transform: translateY(100%);
    opacity: 0;
}

/* --- Modal --- */
.modal {
    display: none; /* Corregido: Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

/* Clase que se añade con JS para mostrar el modal centrado */
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover {
    color: black;
}

/* --- Estilos de la Página de Categoría --- */
.page-title {
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}
.error {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding: 2rem;
}

/* --- Grid de Productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    padding-bottom: 2rem;
}
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-card .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card .product-info {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}
.product-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.product-price {
    font-size: 1.2rem;
    font-weight: bold;
}
.product-price .price {
    color: var(--primary-color);
}
.product-price .sale-price {
    color: var(--secondary-color);
    font-weight: bold;
}
.product-price .original-price, .product-price-detail .original-price {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-left: 0.5rem;
    text-decoration: line-through;
}
.product-price .from-price {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
    margin-right: 0.25rem;
}
.sold-out {
    font-weight: bold;
    color: #e74c3c;
    background-color: #f9e2e0;
    padding: 5px 10px;
    border-radius: 5px;
}

/* --- Estilos de la Página de Detalle del Producto --- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
@media (min-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr 1fr;
    }
}
.product-gallery .gallery-main img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.gallery-thumbnails .thumbnail-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.gallery-thumbnails .thumbnail-item:hover {
    border-color: var(--secondary-color);
}
.product-details-info h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}
.product-price-detail {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.product-price-detail .sale-price { color: var(--secondary-color); }
.product-price-detail .price { color: var(--primary-color); }
.product-price-detail .original-price { font-size: 1.5rem; }
.product-price-detail .from-price { font-size: 1.5rem; color: #7f8c8d; font-weight: normal; }
.product-description {
    line-height: 1.7;
    margin-bottom: 2rem;
}
.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 480px) {
    .purchase-actions {
        flex-direction: row;
        align-items: center;
    }
}
.quantity-selector {
    display: flex;
}
.quantity-selector input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 1rem;
    -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}
.quantity-btn:hover {
    background-color: #ddd;
}
.add-to-cart-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    flex-grow: 1;
}
.add-to-cart-btn:hover {
    background-color: #d6608a;
    transform: translateY(-2px);
}
.add-to-cart-btn i {
    margin-right: 0.5rem;
}

/* --- Estilos para Botones de Compartir --- */
.social-share-section {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.social-share-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--primary-color);
}
.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    cursor: pointer;
}
.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.share-btn.facebook { background-color: #1877F2; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.instagram { 
    background: #405DE6;
}

/* --- Estilos del Contador del Carrito --- */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: none;
    justify-content: center;
    align-items: center;
}
.mobile-bottom-nav .nav-item { position: relative; }
.mobile-bottom-nav .cart-counter { top: -2px; right: 15px; }

/* --- Diseño Moderno para la Página del Carrito --- */
.cart-summary {
    max-width: 1200px;
    margin: 2rem auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}
.cart-items-column {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.order-summary {
    background-color: var(--light-pink-bg);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.order-summary h3 {
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item .item-info { flex-grow: 1; }
.cart-item h4 { margin: 0 0 0.25rem 0; }
.cart-item p { margin: 0; color: #555; }
.cart-item .item-options { font-size: 0.9rem; color: #666; }
.item-price-info { text-align: right; }
.item-price { font-weight: bold; font-size: 1.1rem; }
.remove-item-btn {
    background: none;
    border: 1px solid #ccc;
    color: #999;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s;
}
.remove-item-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.cart-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.total-row.grand-total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--primary-color);
}
.empty-cart-message {
    text-align: center;
    padding: 3rem 1rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.form-check input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
}
.form-check label small {
    display: block;
    color: #555;
    font-weight: normal;
}
.order-summary .form-check {
    margin-top: 1.5rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fde4ec;
}
.total-row#express-fee-line {
    color: var(--secondary-color);
    font-weight: bold;
}
.social-header-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}
.social-header-links a {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}
.social-header-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- Estilos para Modal de Categorías Móvil --- */
.mobile-categories-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.mobile-categories-list li a {
    display: block;
    padding: 1rem;
    background-color: var(--light-color);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.mobile-categories-list li a:hover {
    background-color: var(--secondary-color);
    color: white;
}
.mobile-bottom-nav .disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Estilos Modernos para Selectores --- */
.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-wrapper::after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--secondary-color);
    font-size: 14px;
}
.form-control.product-option-select,
#shipping-select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 40px 12px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--primary-color);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control.product-option-select:focus,
#shipping-select.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(229, 115, 157, 0.2);
}

/* --- Estilos para Ventana de Búsqueda Móvil --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}
.search-modal.active {
    display: block;
    opacity: 1;
}
.search-modal-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}
.close-search-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}
.search-modal-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
    margin-bottom: 2rem;
}
.search-modal-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}
.search-modal-results {
    overflow-y: auto;
}
.search-result-item-mobile {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Estilos para Botones del Carrito (CORREGIDOS) --- */
.send-whatsapp-btn, .clear-cart-btn {
    width: 100%;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.send-whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: 2px solid #25D366;
}
.send-whatsapp-btn:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}
.clear-cart-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-top: 0.5rem;
}
.clear-cart-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* --- Estilos para "Próximamente" --- */

/* En la página principal */
.category-card.coming-soon {
    cursor: default;
    position: relative;
}
.category-card.coming-soon::after {
    content: 'Próximamente';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.0 rem; /* <- ESTA LÍNEA */
    font-weight: bold;
    font-family: var(--font-headings);
    z-index: 2;
}

.category-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.category-card.coming-soon:hover::before {
    opacity: 0; /* Desactiva el otro hover */
}

/* En el panel de admin */
tr.coming-soon-row {
    background-color: #fef3cd; /* Amarillo claro */
}
tr.coming-soon-row td {
    opacity: 0.7;
}

/* Añade esto a tu body o a un div contenedor principal */
body {
    background: #000 url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: move-stars 50s linear infinite;
}

@keyframes move-stars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.marquee {
    width: 100%;
    background-color: var(--secondary-color); /* Color rosado */
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-animation 15s linear infinite;
}

@keyframes marquee-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- NUEVOS ESTILOS --- */

/* Fondo Rosado con Estrellas en Movimiento */
body {
    background-color: #fce4ec; /* Tono de rosa pastel */
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: move-stars 200s linear infinite;
}

@keyframes move-stars {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

/* Línea de Texto con Movimiento (Marquesina) */
.marquee {
    width: 100%;
    background-color: #e91e63; /* Un rosa más vibrante */
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-animation 20s linear infinite;
    font-size: 1.1em;
}

@keyframes marquee-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Estilos para el Carrusel de Imagenes */
.swiper-container {
    width: 100%;
    max-width: 900px; /* Ajusta el ancho máximo según tu preferencia */
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Personaliza los colores de las flechas y paginación */
:root {
    --swiper-theme-color: #e91e63;
}


