/* --- ESTILOS GLOBALES Y VARIABLES --- */
:root {
    --primary-color: #f7a7c3;
    --pink-strong: #e754a0;
    --pink-light: #fef6f8;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-color: #eee;
    --white-color: #fff;
    --shadow: rgba(0,0,0,0.08);
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

h1, h2, h3, h4 {
     font-family: "Poppins", sans-serif;
     color: var(--primary-color);
     text-align: center;
     font-weight: 700;
}
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h1 { font-weight: 600; }

/* --- ENCABEZADO Y NAVEGACIÓN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px var(--shadow);
}
.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 10px; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text-color); font-weight: 500; }
.main-nav a.active {
    color: var(--pink-strong);
    font-weight: 700;
}

.header-icons { display: flex; align-items: center; gap: 20px; }
.cart-icon { position: relative; font-size: 1.5rem; cursor: pointer; }
.hamburger { display: none; }

#cart-counter {
    position: absolute; top: -8px; right: -10px; background-color: var(--pink-strong); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; font-family: "Poppins", sans-serif; transform: scale(0); transition: transform 0.2s ease-out;
}
#cart-counter.show { transform: scale(1); }

/* --- PRODUCTOS --- */
.product-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.producto { 
    background-color: var(--white-color); 
    border: 1px solid var(--border-color); 
    border-radius: 15px; 
    text-align: center; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.image-container {
    position: relative;
}
.producto img { 
    width: 100%;
    display: block;
    height: 300px;
    object-fit: cover;
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}
.product-info .price { font-weight: bold; margin: 0; }
.product-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.producto:hover .product-overlay {
    opacity: 1;
}
.btn-add-to-cart { 
    padding: 12px 30px; 
    background-color: var(--white-color); 
    color: var(--pink-strong); 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.producto:hover .btn-add-to-cart {
    transform: translateY(0);
}

.product-hidden {
    display: none;
}

/* --- PÁGINA DE CATÁLOGO --- */
.catalog-header {
    text-align: center;
    padding: 30px;
    background-color: var(--pink-light);
    border-radius: 15px;
    margin-bottom: 50px;
}
.catalog-header h1 { margin: 0; }
.catalog-header p {
    margin: 10px 0 25px 0;
    color: #555;
}
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
#search-bar {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    width: 100%;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}
#search-bar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(247, 167, 195, 0.5);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}
.filter-btn.active {
    background-color: var(--pink-strong);
    color: var(--white-color);
    border-color: var(--pink-strong);
}

/* --- CARRITO DE COMPRAS --- */
.cart { position: fixed; top: 0; right: -100%; width: 380px; height: 100%; background: linear-gradient(180deg, var(--white-color) 0%, #fff7fb 100%); box-shadow: -12px 20px 50px rgba(0, 0, 0, 0.12); padding: 20px; transition: right 0.4s cubic-bezier(.2,.9,.3,1); z-index: 2000; display: flex; flex-direction: column; box-sizing: border-box; }
.cart.open { right: 0; }
.cart-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: #888; }
.cart h3 { text-align: left; color: var(--pink-strong); }
.cart-items { flex: 1 1 auto; overflow-y: auto; margin-bottom: 15px; }
.cart-summary { flex-shrink: 0; border-top: 1px dashed #ccc; padding-top: 1rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 10px; }
.item-info .item-name { font-weight: bold; display: block; }
.item-meta { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #666; }
.item-qty { border: 1px solid var(--border-color); border-radius: 5px; padding: 4px; }
.item-remove { background: none; border: none; color: red; cursor: pointer; font-weight: bold; font-size: 1.2rem; }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-row.total { font-weight: bold; font-size: 1.1rem; }
.shipping-options { border: none; padding: 0; margin: 10px 0; font-size: 0.9rem; }
.cart-actions { display: flex; gap: 10px; margin-top: 1rem; }
.cart-actions .primary { flex: 1; background: linear-gradient(90deg, var(--pink-strong), var(--primary-color)); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; }
#clear-cart { background-color: #eee; border: 1px solid #ddd; padding: 12px; border-radius: 8px; cursor: pointer; }

/* NUEVO: Estilos para el aviso de compra al por mayor */
.wholesale-notice {
    display: none; /* Oculto por defecto */
    background-color: #fffbe6;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    color: #856404;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wholesale-notice.show {
    display: flex;
}

/* --- MODAL DE CHECKOUT --- */
.checkout-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; }
.checkout-modal-content { background-color: #fefefe; padding: 25px; border: none; width: 90%; max-width: 500px; border-radius: 10px; position: relative; margin: 0; }
#modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; border: none; background: none; cursor: pointer; }
#delivery-form label { display: block; margin-top: 15px; margin-bottom: 5px; font-weight: bold; }
#delivery-form input { width: 100%; padding: 10px; box-sizing: border-box; border-radius: 5px; border: 1px solid #ccc; }
.modal-buttons { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-buttons button { padding: 10px 20px; border-radius: 5px; border: 1px solid #ccc; cursor: pointer; }
.modal-buttons .primary { background-color: var(--pink-strong); color: white; border: none; }

/* --- FOOTER --- */
footer { text-align: center; background: var(--pink-light); padding: 25px 0; font-size: 0.9rem; }
.footer-social-icons { margin-bottom: 10px; }
.footer-social-icons a { color: #000000; margin: 0 10px; font-size: 1.2rem; }

/* --- ESTILOS PARA LA NOTIFICACIÓN "TOAST" --- */
.custom-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%); opacity: 0; transition: transform 0.3s ease-out, opacity 0.3s ease-out; background: linear-gradient(135deg, #fffafa, #fff0f5); color: #555; padding: 14px 18px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 12px; font-family: "Poppins", sans-serif; min-width: 280px; max-width: 90%; z-index: 9999; flex-wrap: wrap; }
.custom-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon { font-size: 28px; line-height: 1; }
.toast-body { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.toast-title { font-weight: 700; color: #7a1f6f; }
.toast-subtitle { font-size: 13px; }
.toast-close-btn { background: transparent; border: none; color: #999; font-size: 20px; cursor: pointer; padding: 0 5px; position: absolute; top: 10px; right: 10px; }
.toast-buttons { display: flex; gap: 10px; margin-left: auto; }
.toast-action-btn, .toast-cancel-btn { border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.toast-action-btn { background: var(--pink-strong); color: white; }
.toast-cancel-btn { background-color: #f0f0f0; color: #333; border: 1px solid #ddd; }

/* =============================================== */
/* --- ESTILOS RESPONSIVE PARA MÓVILES --- */
/* =============================================== */
@media (max-width: 1200px) {
    .container { padding: 30px 15px; }
    h2 { font-size: 2rem; }

    header { padding: 10px 15px; }
    .logo-text { font-size: 1.2rem; }

    .main-nav { display: block; position: fixed; top: 67px; left: 0; width: 100%; height: calc(100vh - 67px); background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); transform: translateX(-100%); transition: transform 0.3s ease-in-out; z-index: 999; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: center; padding-top: 40px; gap: 25px; }
    .main-nav ul a { font-size: 1.5rem; color: var(--pink-strong); }

    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
    .hamburger-line { width: 100%; height: 3px; background-color: var(--primary-color); border-radius: 2px; transition: all 0.3s ease-in-out; }
    .hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    
    .product-grid { flex-direction: column; }
    .producto { width: 100%; box-sizing: border-box; }

    .cart { right: 0; top: 0; width: 100%; height: 100%; max-width: 100%; transform: translateY(100%); transition: transform 0.4s cubic-bezier(.2,.9,.3,1); box-shadow: none; border-radius: 0; }
    .cart.open { transform: translateY(0); }

    .checkout-modal-content { margin: auto 15px; }

    .custom-toast { width: 90%; min-width: 0; box-sizing: border-box; }
    .toast-buttons { width: 100%; margin-left: 0; margin-top: 10px; justify-content: flex-end; }
    .toast-close-btn { top: 5px; right: 5px; }
}


