:root {
    --bg-cream: #F2F2EB; /* El color cremita que pediste */
    --card-white: #FFFFFF;
    --text-black: #111111;
    --accent-green: #00D636; /* El verde neón de tus precios */
    --gray-text: #666666;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-cream);
    color: var(--text-black);
    padding-bottom: 80px;
}

/* Barra Dolar */
.ticker-bar {
    background: var(--text-black);
    color: var(--card-white);
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    position: sticky; top: 0; z-index: 100;
}
#dolar-price { color: var(--accent-green); }

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header { text-align: center; margin-bottom: 30px; }
.logo { width: 80px; margin-bottom: 10px; }
.subtitle { font-size: 0.8rem; letter-spacing: 2px; font-weight: 600; opacity: 0.6; }

/* Tabs (Botones de filtro) */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    background: #e6e6e0; /* Un crema un poco más oscuro */
    padding: 5px;
    border-radius: 50px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
    font-family: 'Oswald', sans-serif; /* Fuente tipo Instagram */
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background: var(--text-black);
    color: var(--card-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Grilla de Productos */
.grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna en celus */
    gap: 20px;
}

/* Tarjeta de Producto */
.card {
    background: var(--card-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

/* Etiquetas (100%, GB) */
.badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex; gap: 5px;
    z-index: 2;
}
.badge {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.badge.battery { background: var(--accent-green); color: black; }

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.card-content { padding: 15px; }

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-desc { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 15px; }

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.price-usd {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--text-black);
}

.price-ars {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
}

.btn-buy {
    width: 100%;
    margin-top: 15px;
    background: var(--text-black);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

/* Botón flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    background: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
}

footer { text-align: center; font-size: 0.8rem; margin-top: 40px; color: #999; }


/* --- NUEVOS AGREGADOS --- */

/* Grilla de Info (Canje/Pagos) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card i {
    font-size: 1.2rem;
    color: var(--text-black);
}

.info-card strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.info-card span {
    color: var(--gray-text);
    font-size: 0.7rem;
}

/* Buscador */
.search-container {
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

#search-input:focus {
    border-color: var(--text-black);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- ESTILO LISTA COMPACTA (Para Búsquedas) --- */
.product-row {
    display: flex;
    align-items: center;
    background: var(--card-white);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    gap: 15px;
    transition: transform 0.2s;
}

.product-row:active { transform: scale(0.98); background: #fafafa; }

.row-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* Corrección para que la info se vea ordenada verticalmente */
.row-info {
    flex: 1;
    display: flex;
    flex-direction: column; /* Esto pone la etiqueta ARRIBA del nombre */
    justify-content: center;
    gap: 2px; /* Espacio chiquito entre etiqueta y nombre */
}

.mini-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content; /* Para que no ocupe todo el ancho */
    margin-bottom: 2px;
}

.row-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    line-height: 1.1; /* Para que no quede muy separado */
    text-transform: uppercase;
    color: var(--text-black);
}

.row-details {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-top: 2px;
}

.row-price-block {
    text-align: right;
    min-width: 80px;
}

.row-usd {
    font-weight: 700;
    color: var(--text-black);
    font-size: 1rem;
}

.row-ars {
    font-size: 0.7rem;
    color: var(--gray-text);
}

/* Badge chiquito para la lista */
.mini-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eee;
    color: #555;
    margin-right: 5px;
    font-weight: 700;
}

/* --- BOTÓN WHATSAPP EN LA FILA DE BÚSQUEDA --- */
.btn-row-wpp {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-left: 5px; /* Un poco de aire con el precio */
}

.btn-row-wpp:active {
    transform: scale(0.9); /* Efecto de pulsación */
    background-color: #1DA851;
}