/* --- Estilos extraídos de index.html --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', Arial, sans-serif; background-color: #121212; color: #f5f5f5; line-height: 1.6; }

/* --- HEADER --- */
header { background-color: #1e1e1e; border-bottom: 3px solid #e21b7f; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; flex-wrap: wrap; gap: 15px; transition: top 0.4s ease-in-out; }
.header-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-size: 1.6rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.logo span.pink { color: #e21b7f; }
.logo span.green { color: #2bb673; }
.authorized-container { display: flex; align-items: center; gap: 12px; background-color: #121212; padding: 6px 14px; border-radius: 30px; border: 1px solid #333; }
.authorized-text { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: #b3b3b3; letter-spacing: 1px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
nav a { color: #b3b3b3; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s; }
nav a:hover, nav a.active { color: #e21b7f; }
.btn-login-nav { background-color: transparent; border: 1px solid #2bb673; color: #2bb673; padding: 6px 15px; border-radius: 20px; cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; display: inline-block; transition: all 0.3s; }
.btn-login-nav:hover { background-color: #2bb673; color: #fff; }
.btn-vendor-nav { display: none; background-color: #2bb673; color: #fff !important; padding: 6px 15px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.btn-logout { display: none; color: #ff4d4d !important; cursor: pointer; }

/* --- CARRITO Y WHATSAPP --- */
.cart-icon-btn { background-color: #e21b7f; color: white; border: none; padding: 10px 18px; border-radius: 30px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(226, 27, 127, 0.4); transition: transform 0.2s; }
.cart-icon-btn:hover { transform: scale(1.05); }
.cart-count { background-color: #fff; color: #e21b7f; border-radius: 50%; padding: 2px 7px; font-size: 0.8rem; }
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%; background-color: #1e1e1e; box-shadow: -5px 0 25px rgba(0,0,0,0.7); z-index: 3000; transition: right 0.3s ease; display: flex; flex-direction: column; border-left: 1px solid #333; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 1.3rem; text-transform: uppercase; }
.close-cart { font-size: 1.8rem; cursor: pointer; color: #8c8c8c; }
.close-cart:hover { color: #fff; }
.cart-items-container { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background-color: #121212; padding: 10px; border-radius: 6px; border: 1px solid #222; }
.item-details h4 { font-size: 0.95rem; margin-bottom: 4px; }
.item-details p { color: #e21b7f; font-weight: bold; font-size: 0.9rem; }
.btn-remove { background: none; border: none; color: #ff4d4d; cursor: pointer; font-weight: bold; }
.cart-footer { padding: 20px; border-top: 1px solid #333; background-color: #161616; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
.btn-checkout { width: 100%; background-color: #2bb673; color: white; border: none; padding: 14px; border-radius: 50px; font-weight: bold; text-transform: uppercase; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
.btn-checkout:hover { background-color: #219653; }
.whatsapp-float { position: fixed; bottom: 25px; left: 25px; background-color: #25d366; color: #fff; width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 2500; transition: all 0.3s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); background-color: #20ba5a; }

/* --- SECCIONES BASE --- */
.hero { background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.95)), url('https://images.unsplash.com/photo-1518310383802-640c2de311b2?q=80&w=1200') no-repeat center center/cover; height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 3rem; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.hero p { font-size: 1.3rem; color: #fff; margin-bottom: 30px; }
.hero p span { color: #e21b7f; font-weight: 600; }
.btn { background-color: #e21b7f; color: #fff; padding: 14px 35px; text-decoration: none; font-weight: bold; text-transform: uppercase; border-radius: 50px; box-shadow: 0 4px 15px rgba(226, 27, 127, 0.4); }
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.section-title { font-size: 2rem; color: #fff; text-transform: uppercase; margin-bottom: 40px; position: relative; padding-bottom: 12px; text-align: center; }
.section-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 80px; height: 3px; background-color: #e21b7f; }
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 70px; }
.category-card { background-color: #1e1e1e; border-radius: 8px; padding: 45px 20px; border: 1px solid #333; text-align: center; transition: all 0.3s ease;}
.category-card:hover { border-color: #e21b7f; background-color: rgba(226, 27, 127, 0.08); transform: translateY(-3px); }
.category-card h3 { text-transform: uppercase; margin-bottom: 10px; }
.category-card p { color: #b3b3b3; font-size: 0.95rem; }

/* --- PRODUCTOS --- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.product-card { background-color: #1e1e1e; border-radius: 10px; border: 1px solid #333; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.image-gallery-container { position: relative; }
.product-img {
    width: 100%;
    height: 600px; /* Cambiado de 280px a 400px para formato 9:16 */
    object-fit: cover; /* Mantiene la proporción y recorta si es necesario */
    border-bottom: 1px solid #333;
    display: block;
}
.thumb-gallery { display: flex; gap: 5px; padding: 8px; background: #161616; border-bottom: 1px solid #333; overflow-x: auto; }
.thumb-img { width: 45px; height: 45px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; }
.thumb-img:hover, .thumb-img.active { opacity: 1; border-color: #e21b7f; }
.thumb-img.natura-active { border-color: #2bb673; }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-tag { background-color: #e21b7f; color: #fff; font-size: 0.75rem; font-weight: bold; padding: 4px 10px; text-transform: uppercase; border-radius: 4px; position: absolute; top: 15px; left: 15px; z-index: 10; }
.product-tag.natura { background-color: #2bb673; }
.product-title { color: #fff; font-size: 1.15rem; margin-bottom: 5px; font-weight: 600; }
.product-details-spec { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 0.85rem; color: #b3b3b3; }
.color-preview-container { display: flex; align-items: center; gap: 6px; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #fff; display: inline-block; }
.product-price { font-size: 1.3rem; color: #e21b7f; font-weight: 700; margin-bottom: 15px; }
.product-price.natura-price { color: #2bb673; }
.product-price span { font-size: 0.9rem; color: #8c8c8c; text-decoration: line-through; margin-left: 10px; }
.btn-buy { display: block; background-color: transparent; color: #e21b7f; border: 2px solid #e21b7f; text-align: center; padding: 12px; text-decoration: none; font-weight: bold; text-transform: uppercase; border-radius: 50px; cursor: pointer; width: 100%; transition: all 0.3s; margin-top: 10px; }
.btn-buy:hover { background-color: #e21b7f; color: #fff; }
.btn-buy.btn-natura { color: #2bb673; border-color: #2bb673; }
.btn-buy.btn-natura:hover { background-color: #2bb673; color: #fff; }
.btn-edit-prod { display: none; background-color: #333; color: #fff; border: 1px solid #555; padding: 8px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; text-transform: uppercase; font-weight: bold; margin-top: 5px; width: 100%; }
.btn-edit-prod:hover { background-color: #444; border-color: #2bb673; }

/* --- MODAL Y FOOTER --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); z-index: 4000; display: none; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background-color: #1e1e1e; border: 1px solid #333; border-radius: 12px; width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { text-transform: uppercase; color: #fff; font-size: 1.3rem;}
.close-modal { font-size: 1.8rem; cursor: pointer; color: #8c8c8c; }
.close-modal:hover { color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { display: block; font-size: 0.8rem; color: #b3b3b3; margin-bottom: 5px; text-transform: uppercase; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 12px; background-color: #121212; border: 1px solid #444; border-radius: 6px; color: #fff; font-family: inherit; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #2bb673; }
.images-section { background: #161616; padding: 15px; border-radius: 6px; border: 1px solid #2a2a2a; margin-bottom: 15px; }
.btn-drive-folder { background-color: #4285F4; color: white; text-decoration: none; padding: 10px 15px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.85rem; margin-bottom: 15px; border: none; cursor: pointer; transition: background 0.3s; }
.btn-drive-folder:hover { background-color: #3367d6; }
.images-section h4 { font-size: 0.85rem; text-transform: uppercase; margin-bottom: 10px; color: #2bb673; }
.btn-save-prod { width: 100%; background-color: #2bb673; color: #fff; border: none; padding: 14px; border-radius: 50px; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: background 0.3s; margin-top: 10px; }
.btn-save-prod:hover { background-color: #219653; }
footer { background-color: #1e1e1e; padding: 40px 20px; text-align: center; margin-top: 80px; border-top: 1px solid #333; }
footer p { color: #8c8c8c; font-size: 0.95rem; }

@media (max-width: 768px) {
    header { padding: 15px 20px; justify-content: center; text-align: center; }
    .header-left { flex-direction: column; width: 100%; justify-content: center; }
    nav { justify-content: center; width: 100%; gap: 10px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
}