/* Products Page specific styles */

.products-layout {
    display: flex;
    gap: 30px;
    padding-top: 20px;
}

.mini-search {
    height: 45px;
    flex: 0.6;
    margin: 0 40px;
}

.mini-search .plus-icon { font-size: 20px; }
.mini-search .ai-btn { padding: 5px 10px; font-size: 11px; }

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

/* Products Grid */
.products-grid-container {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-header h2 {
    font-size: 20px;
    color: var(--text-dark);
}

.sort-dropdown {
    font-size: 13px;
    color: var(--text-medium);
}

.sort-dropdown select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.badge.discount { background: #ff4757; }
.badge.bestseller { background: var(--primary-yellow); color: #333; }

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-info {
    flex: 1;
}

.brand-name {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 14px;
    color: var(--text-dark);
    margin: 5px 0;
    line-height: 1.4;
}

.rating {
    font-size: 10px;
    color: #ccc;
    margin-bottom: 10px;
}

.text-warning { color: var(--primary-yellow); }

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary-yellow);
    color: #333;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary-yellow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
}

.page-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.page-btn.next {
    width: auto;
    padding: 0 15px;
    gap: 5px;
}
