﻿.products-page {
    padding: 20px 25px 40px;
}

/* =========================
       FILTER BAR
       ========================= */

.filter-bar {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.filter-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

    .filter-item.search {
        flex: 2;
        min-width: 240px;
    }

.filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.filter-control {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    padding: 6px 10px;
    width: 100%;
    background: #fff;
}

    .filter-control:focus {
        border-color: #696cff;
        box-shadow: 0 0 0 2px rgba(105,108,255,.1);
        outline: none;
    }

.filter-buttons {
    display: flex;
    gap: 8px;
}

.btn-filter {
    height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
}

.btn-apply {
    background: #696cff;
    color: #fff;
}

.btn-clear {
    background: #f1f1f2;
    color: #555;
}

/* =========================
       RESULT HEADER
       ========================= */

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.products-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.product-count {
    color: #777;
    font-size: 13px;
    margin-left: 8px;
    font-weight: 400;
}

/* =========================
       PRODUCT GRID
       ========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all .2s ease;
    min-width: 0;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,.08);
    }

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
}

    .wishlist-btn:hover {
        color: #e53935;
    }

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
    text-decoration: none !important;
}

    .rating i {
        text-decoration: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .rating a {
        text-decoration: none !important;
    }

.price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.add-cart-btn {
    width: 100%;
    height: 34px;
    border: 1px solid #696cff;
    background: #fff;
    color: #696cff;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

    .add-cart-btn:hover {
        background: #696cff;
        color: #fff;
    }

/* =========================
       NO PRODUCTS
       ========================= */

.no-products {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 70px 20px;
    text-align: center;
    color: #777;
}

    .no-products i {
        font-size: 45px;
        margin-bottom: 15px;
        color: #bbb;
    }

/* =========================
       RESPONSIVE
       ========================= */

@@media (max-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-item {
        min-width: 180px;
    }
}

@@media (max-width: 768px) {
    .products-page {
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .filter-item.search {
        grid-column: span 2;
    }

    .filter-buttons {
        grid-column: span 2;
    }
}

@@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-info {
        padding: 9px;
    }

    .product-name {
        font-size: 13px;
    }

    .current-price {
        font-size: 14px;
    }

    .add-cart-btn {
        font-size: 12px;
    }
}
