.products-page{
    background:#f5f7fb;
}

.products-hero{
    padding:55px 0;
    background:linear-gradient(135deg,#0f172a,#1e40af);
    color:#fff;
}

.products-hero span{
    display:inline-flex;
    background:rgba(255,255,255,.14);
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    margin-bottom:14px;
}

.products-hero h1{
    font-size:46px;
    font-weight:950;
    margin-bottom:12px;
}

.products-hero p{
    color:#dbeafe;
    max-width:760px;
    line-height:1.8;
}

.products-section{
    padding:38px 0 70px;
}

.products-section > .container{
    position:relative;
    display:block;
    min-height:650px;
}

.products-filter-bar{
    position:absolute;
    left:0;
    top:0;
    width:280px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    box-shadow:0 14px 34px rgba(15,23,42,.06);
    display:flex;
    flex-direction:column;
    gap:14px;
}

.filter-search,
.filter-item{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.products-filter-bar label{
    font-size:12px;
    font-weight:900;
    color:#64748b;
    margin-bottom:2px;
    line-height:1;
}

.products-filter-bar input,
.products-filter-bar select{
    width:100%;
    height:42px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:0 11px;
    background:#f8fafc;
    outline:none;
    font-size:13px;
    font-weight:700;
}

.products-filter-bar input::placeholder{
    font-size:13px;
    color:#64748b;
}

.products-filter-bar input:focus,
.products-filter-bar select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.10);
    background:#fff;
}

.filter-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:6px;
}

.filter-actions .primary-btn,
.filter-actions .secondary-btn{
    width:100%;
    height:44px;
    padding:0 18px;
    font-size:13px;
    border-radius:12px;
    white-space:nowrap;
    display:flex;
    align-items:center;
    justify-content:center;
}

.products-top{
    margin-left:304px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:14px 18px;
    margin-bottom:24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.products-top h2{
    font-size:20px;
    font-weight:950;
    margin:0 0 3px;
}

.products-top p{
    margin:0;
    color:#64748b;
    font-size:14px;
    font-weight:600;
}

.clear-filter-link{
    color:#2563eb;
    font-weight:900;
    font-size:14px;
    text-decoration:none;
    white-space:nowrap;
}

.product-grid{
    margin-left:304px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.product-card{
    position:relative;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 14px 34px rgba(15,23,42,.07);
    transition:.25s ease;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 26px 58px rgba(15,23,42,.14);
}

.product-badges{
    position:absolute;
    top:14px;
    left:14px;
    z-index:5;
    display:flex;
    gap:7px;
}

.product-badge{
    padding:7px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
}

.badge-new{
    background:#dcfce7;
    color:#166534;
}

.badge-featured{
    background:#eff6ff;
    color:#2563eb;
}

.product-actions{
    position:absolute;
    top:14px;
    right:14px;
    z-index:5;
    display:grid;
    gap:8px;
}

.product-actions form{
    margin:0;
}

.product-icon-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 22px rgba(15,23,42,.10);
    cursor:pointer;
}

.product-icon-btn:hover{
    background:#2563eb;
    color:#fff;
}

.product-img{
    height:250px;
    background:linear-gradient(180deg,#f8fafc,#eef4ff);
    display:flex;
    align-items:center;
    justify-content:center;
    border-bottom:1px solid #eef2f7;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:30px;
}

.no-product-img{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#64748b;
}

.no-product-img span{
    font-size:44px;
    margin-bottom:8px;
}

.no-product-img p{
    margin:0;
    font-weight:800;
}

.product-info{
    padding:20px;
}

.product-info small{
    color:#64748b;
    font-weight:800;
}

.product-info h3{
    font-size:17px;
    line-height:1.45;
    min-height:50px;
    margin:8px 0;
}

.product-info h3 a{
    color:#0f172a;
    text-decoration:none;
}

.product-info h3 a:hover{
    color:#2563eb;
}

.brand-name{
    font-size:13px;
    color:#64748b;
    margin-bottom:10px;
}

.product-price{
    font-size:24px;
    font-weight:950;
    color:#2563eb;
    margin-bottom:14px;
}

.product-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.stock-badge{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.stock-badge.in,
.stock-badge.high,
.stock-badge.available{
    background:#dcfce7;
    color:#166534;
}

.stock-badge.low{
    background:#fef3c7;
    color:#92400e;
}

.stock-badge.out{
    background:#fee2e2;
    color:#991b1b;
}

.cart-mini-btn,
.add-cart-btn{
    border:none;
    background:#2563eb;
    color:#fff;
    padding:10px 14px;
    border-radius:14px;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.cart-mini-btn:hover,
.add-cart-btn:hover{
    background:#1d4ed8;
    color:#fff;
}

.cart-mini-btn.disabled{
    background:#e5e7eb;
    color:#64748b;
    cursor:not-allowed;
}

.empty-products{
    grid-column:1 / -1;
    background:#fff;
    padding:54px;
    text-align:center;
    border-radius:24px;
    border:1px solid #e5e7eb;
}

.empty-products h3{
    font-size:28px;
    font-weight:950;
    margin-bottom:8px;
}

.empty-products p{
    color:#64748b;
    margin-bottom:20px;
}

.wholesale-price-banner{
    margin-top:18px;
    display:inline-flex;
    padding:11px 16px;
    border-radius:999px;
    background:rgba(249,115,22,.16);
    color:#fff;
    font-weight:800;
    border:1px solid rgba(255,255,255,.25);
}

.wholesale-price-banner.pending{
    background:rgba(254,243,199,.22);
}

.badge-wholesale{
    background:#0f3d2e;
    color:#fff;
}

.product-price del{
    display:block;
    margin-top:4px;
    color:#94a3b8;
    font-size:13px;
    font-weight:600;
}

.price-note{
    margin-top:6px;
    font-size:12px;
    color:#0f3d2e;
    font-weight:800;
}

.wholesale-btn{
    background:#0f3d2e!important;
    color:#fff!important;
}

@media(max-width:1200px){
    .products-filter-bar{
        width:260px;
    }

    .products-top,
    .product-grid{
        margin-left:284px;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){
    .products-section > .container{
        min-height:auto;
    }

    .products-filter-bar{
        position:relative;
        left:auto;
        top:auto;
        width:100%;
        margin-bottom:20px;
    }

    .products-top,
    .product-grid{
        margin-left:0;
    }

    .products-top{
        margin-bottom:24px;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:650px){
    .products-hero{
        padding:38px 0;
    }

    .products-hero h1{
        font-size:32px;
    }

    .products-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .product-grid{
        grid-template-columns:1fr;
    }
}