/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Container principal - Flexbox pentru layout side-by-side */
.products-container {
    display: flex;
    gap: 2rem; /* Spacing premium între coloane */
    max-width: 1200px; /* Limită pentru ecrane mari, centrare */
    margin: 0 auto;
    padding: 2rem;
    background: #f9f9f9; /* Fundal subtil premium */
    border-radius: 12px; /* Colțuri rotunjite elegant */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Umbră soft pentru adâncime */
}

/* Sidebar fixă pentru filtre - Sticky pentru scroll */
.sidebar-filters {
    width: 300px; /* Lățime fixă, ajustabilă după nevoie */
    position: sticky;
    top: 20px; /* Offset de la top, sub header */
    height: fit-content;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease; /* Tranziție premium la hover/focus */
}

.sidebar-filters:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); /* Efect hover elegant */
}

/* Stilizare filtre (ex. Woo widgets) - Premium look */
.sidebar-filters .widget {
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif; /* Font premium; adaugă via Google Fonts */
}

.sidebar-filters .widget-title {
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-filters ul li {
    list-style: none;
    margin-bottom: 0.75rem;
}

.sidebar-filters input[type="checkbox"] {
    accent-color: #d4af37; /* Culoare aurie premium */
}

/* Main grid pentru produse - Ajustabil cu auto-fit */
.products-grid {
    flex-grow: 1; /* Ocupă spațiul rămas */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-ajustare, min 250px/card */
    gap: 1.5rem;
}

/* Carduri produse - Design super premium */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Tranziții fluide */
    text-align: center;
    padding: 1rem;
}

.product-card:hover {
    transform: translateY(-5px); /* Lift efect premium */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.product-card .title {
    font-size: 1.2rem;
    color: #222;
    margin: 1rem 0 0.5rem;
    font-family: 'Inter', sans-serif;
}

.product-card .price {
    font-size: 1.1rem;
    color: #d4af37; /* Auriu pentru preț */
    font-weight: bold;
}

.product-card .add-to-cart {
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Buton rotunjit premium */
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s;
}

.product-card .add-to-cart:hover {
    background: #555;
}

/* Responsive - Colaps sidebar pe mobile */
@media (max-width: 768px) {
    .products-container {
        flex-direction: column; /* Stack vertical */
    }
    
    .sidebar-filters {
        width: 100%; /* Full width */
        position: static; /* Nu sticky pe mobile */
        margin-bottom: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Mai mici pe mobile */
    }
}