body { margin: 0; font-family: Arial, sans-serif; background: #f5f5f5; }

/* Banner de Geolocalización */
.geo-banner {
    display: none;
    background: #333;
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.geo-botones { margin-top: 10px; }
.geo-banner button {
    width: auto !important;
    display: inline-block;
    padding: 6px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
}
.btn-permitir { background: #28a745 !important; }
.btn-rechazar { background: #dc3545 !important; }

#ubicacion-info { font-size: 0.85em; color: #555; padding-bottom: 10px; }

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav span { margin: 10px; cursor: pointer; font-weight: bold; }

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.producto { background: white; padding: 10px; border: 1px solid #eee; position: relative; transition: 0.3s; }
.producto img { width: 100%; height: 280px; object-fit: cover; cursor: pointer; }

button { width: 100%; background: black; color: white; padding: 10px; border: none; cursor: pointer; }
button:hover { background: #333; }

.like { position: absolute; top: 10px; right: 10px; cursor: pointer; font-size: 20px; }
.badge { position: absolute; top: 10px; left: 10px; background: black; color: white; padding: 5px; font-size: 11px; }

/* Carrito */
.carrito-panel {
    position: fixed;
    right: -320px;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
    transition: 0.4s;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 3000;
}
.carrito-panel.activo { right: 0; }

/* Modales */
.modal-img {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 4000;
    justify-content: center; align-items: center;
}
.modal-img.activo { display: flex; }
.modal-img img { max-width: 90%; max-height: 90%; }

.checkout {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 5000;
    justify-content: center; align-items: center;
}
.checkout.activo { display: flex; }
.checkout-box { background: white; padding: 20px; border-radius: 10px; width: 300px; display: flex; flex-direction: column; gap: 10px; }

input, select { padding: 10px; margin: 5px 0; width: 100%; box-sizing: border-box; }

/* Submenu */
.menu-ropa { position: relative; display: inline-block; }
.submenu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    min-width: 100px;
}
.menu-ropa:hover .submenu { display: block; }
.submenu span { display: block; padding: 5px; cursor: pointer; }
.submenu span:hover { background: #eee; }