/* ================= SHOP MINIMALISTA & PREMIUM ================= */
.store-page {
    padding-top: 120px;
    min-height: 100vh;
}

/* 1. Contenedor más ancho y pegado a la izquierda */
.store-container {
    display: grid;
    grid-template-columns: 200px 1fr; /* Sidebar más delgado */
    gap: 50px;
    max-width: 96%; /* Ocupa casi toda la pantalla */
    margin: 0 auto;
}

/* ================= 2. SIDEBAR INVISIBLE (Hacia la izquierda) ================= */
.store-sidebar {
    background: transparent;
    border: none;
    padding: 0; /* Le quitamos el relleno para que se pegue más al borde */
    position: sticky;
    top: 120px;
    height: fit-content;
    z-index: 10; /* Asegura que puedas darles clic sin que el fondo lo bloquee */
}

.sidebar-block { margin-bottom: 35px; }
.sidebar-block h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Buscador Sutil */
.search-box { position: relative; }
.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 0;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}
.search-box input:focus { border-color: var(--primary-teal); outline: none; }
.search-box i { position: absolute; right: 0; top: 10px; color: #666; pointer-events: none; }

/* Categorías */
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-item {
    padding: 8px 0;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}
.filter-item:hover { color: white; transform: translateX(5px); }
.filter-item.active { color: var(--primary-teal); font-weight: 600; }

/* Rango de Presupuesto */
input[type="range"] {
    width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; -webkit-appearance: none; margin-top: 10px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-teal); cursor: pointer;
}

/* ================= 3. GRID: 4 PRODUCTOS POR FILA ================= */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fuerza 4 columnas exactas */
    gap: 25px;
}

/* ================= 4. CARDS: IMÁGENES AL 100% ================= */
.product-card {
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* IMPORTANTE: Hace que la imagen no se salga de las curvas */
    padding: 0; /* Quitamos el padding de la tarjeta general */
}

.product-card:hover { transform: translateY(-5px); border-color: rgba(14, 165, 233, 0.4); }

/* Contenedor de la foto ocupa todo el espacio arriba */
.product-img-container {
    background: rgba(255, 255, 255, 0.02);
    height: 200px; /* Altura estandarizada */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la foto llene todo el rectángulo sin distorsionarse */
}

/* La información de texto abajo */
.product-info {
    padding: 20px; /* Le ponemos el relleno solo a los textos */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #666; font-weight: 700; margin-bottom: 5px; }
.product-title { font-size: 1.1rem; margin: 0 0 15px 0; color: #e5e5e5; }
.product-price { font-size: 1.2rem; font-weight: 700; color: white; margin-top: auto; }

/* Botón de Agregar al carrito (Ajustado a tu JS actual) */
.btn.btn-muted {
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) { .hardware-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { 
    .hardware-grid { grid-template-columns: repeat(2, 1fr); } 
    .store-container { grid-template-columns: 1fr; } 
    .store-sidebar { position: relative; top: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; margin-bottom: 20px; }
}
@media (max-width: 600px) { .hardware-grid { grid-template-columns: 1fr; } }