body{
font-family:Arial;
margin:0;
background:#f5f5f5;
}
.navbar{
display:flex;
justify-content:space-between;
align-items:center; 
padding:15px 30px;
background:#111;
color:white;
}

.navbar input{
padding:10px;
border-radius:10px;
border:none;
}
.categorias{
display:flex;
justify-content:center;
gap:10px;
padding:15px;
background:rgb(39, 39, 39);
}

.categorias button{
padding:10px 15px;
border:none;
background:#5a5555;
cursor:pointer;
border-radius:5px;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Tamaño mínimo de tarjeta */
    gap: 20px;
    padding: 30px;
    align-items: start;
}

.image-container {
    width: 100%;
    aspect-ratio: 2 / 3; 
    overflow: hidden;
    background-color: #f0f0f0;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card:hover{
transform:scale(1.03);
}

.card img {
    width: 300px;
    aspect-ratio: 3 / 4; 
    object-fit: cover;
    object-position: center; 
    display: block;
}

.card {
    background: rgb(255, 255, 255);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #eee; 
    transition: 0.3s;
}

.card:hover {
    transform: none;
    opacity: 0.8;
}

.card-content{
padding:15px;
}

.card h3{
margin:0;
}

.precio{
color:green;
font-weight:bold;
}

button{
margin-top:10px;
padding:10px;
width:100%;
border:none;
background:black;
color:white;
cursor:pointer;
}

.carrito-panel {
    position: fixed;
    top: 0;
    right: 0px;
    width: 300px;
    height: 100%;
    background: white;
    transition: right 0.3s ease;
    padding: 20px;
    z-index: 1000;
}

.cerrar-carrito {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black; 
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1100; 
}
.carrito-panel {
    position: fixed;
    top: 0;
    right: -450px; 
    width: 300px;
    height: 100%;
    background: white;
    transition: right 0.3s ease;
    z-index: 1000;
}

.carrito-panel.activo {
    right: 0; 
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px; 
}

.footer {
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
.cerrar-carrito {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.carrito-panel {
    position: fixed;
}

.carrito-panel {
    position: fixed;
}
/* Sección de Geolocalización Automática */
.geolocalizacion {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 24px 20px;
    margin: 0;
}

.geo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.geo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
}

.geo-icon svg {
    color: #1a1a2e;
    width: 20px;
    height: 20px;
}

#ubicacion-texto {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

#ubicacion-texto.cargando {
    color: #94a3b8;
    font-style: italic;
}

#ubicacion-texto.error {
    color: #f87171;
}

@media (max-width: 480px) {
    .geo-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px;
    }
    
    #ubicacion-texto {
        font-size: 14px;
    }
}
