/* --- ESTILOS GLOBALES Y VARIABLES --- */
:root {
    --primary-color: #7044a3;
    --pink-strong: #4c2b70;
    --pink-light: #f4eff9;
    --text-color: #211a27;
    --light-gray: #f8f5fb;
    --border-color: #e9e2f0;
    --white-color: #fff;
    --shadow: rgba(0,0,0,0.08);
}
.product-art { height: 300px; display: grid; place-items: center; overflow: hidden; background: #eee8f5; }
.product-art img { width: 76%; height: 90%; object-fit: contain; margin: 0; filter: drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-lilac { background: #eee5f7; }.tone-rose { background: #f5e9f3; }.tone-night { background: #e5e9f5; }.tone-sun { background: #f6f0df; }.tone-sky { background: #e5eef4; }
.tone-rose img { filter: hue-rotate(36deg) saturate(.8) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-night img { filter: hue-rotate(115deg) saturate(.72) brightness(.82) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-sun img { filter: hue-rotate(190deg) saturate(.76) brightness(1.05) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.tone-sky img { filter: hue-rotate(85deg) saturate(.7) brightness(1.03) drop-shadow(0 10px 12px rgba(37, 22, 53, .14)); }
.product-info .product-tag { display: inline-block; margin: 0 0 8px; color: var(--primary-color); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.catalog-empty { width: 100%; padding: 28px; color: #62596a; text-align: center; }
.stock-status { margin: 8px 0 0; color: #42734a; font-size: .84rem; font-weight: 600; }
.stock-status.is-low { color: #9a6500; }
.stock-status.is-out { color: #a63232; }
.btn-add-to-cart:disabled { color: #fff; background: #8a8490; cursor: not-allowed; transform: none; }
.whatsapp-float { position: fixed; z-index: 2500; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 30px; background: #20bd5a; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 5px 18px rgba(0,0,0,.2); }
.whatsapp-float i { font-size: 1.35rem; }
.whatsapp-choices { position: fixed; z-index: 2500; right: 22px; bottom: 82px; display: grid; gap: 8px; }
.whatsapp-choices[hidden] { display: none; }
.whatsapp-choices a { padding: 11px 15px; border-radius: 10px; background: #fff; color: #211a27; box-shadow: 0 4px 15px rgba(0,0,0,.16); text-decoration: none; font-size: .9rem; }

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(--pink-strong);
     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-mark { color: var(--primary-color); font-size: 1.35rem; margin-right: 9px; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--text-color); letter-spacing: -.04em; }
.logo-text span { color: var(--primary-color); font-weight: 500; }
.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: radial-gradient(circle at 90% 0%, #e9ddf3, transparent 45%), var(--pink-light);
    border-radius: 15px;
    margin-bottom: 50px;
}
.catalog-header h1 { margin: 0; }
.catalog-header .eyebrow { display: block; }
.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(112, 68, 163, 0.2);
}

.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:disabled {
    color: #766c7d;
    background: #eeeaf1;
    border-style: dashed;
    cursor: not-allowed;
}
.filter-coming-soon { display: block; margin-top: 2px; font-size: .62rem; font-weight: 400; }
.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%, #f8f4fb 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, #delivery-form select { width: 100%; padding: 10px; box-sizing: border-box; border-radius: 5px; border: 1px solid #ccc; font: inherit; }
.cart-summary select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font: inherit; }
.pickup-city-field[hidden] { display: none; }
.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(--text-color); color: #f7f3fa; padding: 25px 0; font-size: 0.9rem; }
.footer-social-icons { margin-bottom: 10px; }
.footer-social-icons a { color: #f7f3fa; margin: 0 10px; font-size: 1.2rem; }
.footer-brand { color: #f7f3fa; font-weight: 700; }
footer img { width: 150px; height: auto; vertical-align: middle; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 10px 24px 28px; display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 30px; text-align: left; }
.footer-content p { color: #d5cedc; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { margin: 0 0 5px; color: #fff; text-align: left; font-size: 1rem; }
.footer-column a, .footer-column > span { color: #e4dfea; text-decoration: none; line-height: 1.5; }
.footer-column a:hover { color: #c8a9e7; }
.footer-column i { color: #c8a9e7; margin-right: 5px; }
.footer-pending { color: #b9afc3; font-size: .82rem; }
.wompi-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #6c5b79; border-radius: 8px; color: white !important; font-weight: 700; }
.footer-bottom { border-top: 1px solid #413847; padding: 16px 24px 0; }
.footer-bottom p { margin: 8px 0; }
.footer-bottom img { display: inline-block; margin-top: 8px; }
@media (max-width: 700px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}
@media (max-width: 460px) {
    .footer-content { grid-template-columns: 1fr; padding-right: 20px; padding-left: 20px; }
}

/* --- 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, #fff, #f4eff9); 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: var(--pink-strong); }
.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; }
    .producto { max-width: 420px; }
    .product-overlay { position: static; width: auto; height: auto; padding: 12px; background: transparent; opacity: 1; }
    .btn-add-to-cart { transform: none; color: white; background: var(--pink-strong); }

    .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; }
}
