/* ===================================
   GLOBAL
=================================== */

*{
    box-sizing:border-box;
}

/* ===================================
   PRODUCTS PAGE
=================================== */

.products-page{
    width:100%;
    padding-top:20px;
}

/* ===================================
   PRODUCTS TOPBAR
=================================== */

.products-topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.products-title h2{
    font-size:24px;
    font-weight:900;
    margin:0;
    color:#111;
}

.products-title p{
    margin-top:6px;
    color:#666;
    font-size:14px;
}

/* ===================================
   FILTERS
=================================== */

.products-filters{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.search-form{
    display:flex;
    gap:10px;
}

.search-form input{
    width:240px;
    height:44px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 14px;
    outline:none;
}

.search-form input:focus{
    border-color:#00a884;
}

.search-form button{
    height:44px;
    padding:0 18px;
    border:none;
    border-radius:10px;
    background:#00a884;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.search-form button:hover{
    background:#008c6e;
}

.sort-form select{
    height:44px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 14px;
    font-weight:700;
    outline:none;
    cursor:pointer;
}

/* ===================================
   PRODUCT GRID
=================================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:22px;
    width:100%;
}

/* ===================================
   PRODUCT CARD
=================================== */

.product-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    border:1px solid #ececec;
    overflow:hidden;
    transition:0.25s ease;
    padding:14px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* ===================================
   PRODUCT IMAGE
=================================== */

.product-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#f8f8f8;
    border-radius:12px;
    padding:10px;
}

/* ===================================
   PRODUCT LINK
=================================== */

.product-link{
    text-decoration:none;
    color:inherit;
}

/* ===================================
   PRODUCT TITLE
=================================== */

.product-card h3{
    font-size:15px;
    line-height:1.5;
    font-weight:800;
    margin-top:14px;
    margin-bottom:8px;
    color:#111;

    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:48px;
}

/* ===================================
   PRODUCT BRAND
=================================== */

.product-brand{
    font-size:13px;
    color:#666;
    margin-bottom:10px;
}

/* ===================================
   PRODUCT TYPE BADGE
=================================== */

.product-type-badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:30px;
    background:#e8fff8;
    color:#00a884;
    font-size:12px;
    font-weight:800;
    margin-bottom:12px;
}

/* ===================================
   RETAIL PRICE
=================================== */

.retail-price{
    font-size:22px;
    font-weight:900;
    color:#00a884;
    margin-bottom:14px;
}

/* ===================================
   RETAIL BUTTONS
=================================== */

.retail-actions{
    display:flex;
    gap:10px;
}

.retail-actions form{
    flex:1;
}

.btn-cart,
.btn-buy{
    width:100%;
    height:44px;
    border:none;
    border-radius:10px;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    transition:0.25s ease;
}

.btn-cart{
    background:#ff9f00;
    color:#fff;
}

.btn-buy{
    background:#fb641b;
    color:#fff;
}

.btn-cart:hover{
    opacity:0.9;
}

.btn-buy:hover{
    opacity:0.9;
}

/* ===================================
   WHOLESALE BOX
=================================== */

.wholesale-box{
    margin-top:14px;
    background:#f8fffc;
    border:1px solid #dff5ee;
    border-radius:12px;
    padding:14px;
}

.wholesale-title{
    font-size:14px;
    font-weight:900;
    color:#00a884;
    margin-bottom:12px;
}

/* ===================================
   TIER PRICING
=================================== */

.tier-pricing{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.tier-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
}

/* ===================================
   MOQ
=================================== */

.moq-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
}

.moq-input{
    width:80px;
    height:38px;
    border:1px solid #ddd;
    border-radius:8px;
    padding:0 10px;
}

/* ===================================
   B2B BUTTONS
=================================== */

.b2b-actions{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.btn-quote,
.btn-net{
    flex:1;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
}

.btn-quote{
    background:#00a884;
    color:#fff;
}

.btn-net{
    background:#f2f6ff;
    color:#111;
}

/* ===================================
   STOCK
=================================== */

.stock-text{
    display:block;
    margin-top:14px;
    font-size:13px;
    color:#666;
}

/* ===================================
   WISHLIST
=================================== */

.wishlist-float{
    position:absolute;
    top:12px;
    right:12px;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
    z-index:20;
    font-size:18px;
}

/* ===================================
   PAGINATION
=================================== */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin:40px 0;
}

.pagination a{
    min-width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff;
    border:1px solid #ddd;
    text-decoration:none;
    color:#111;
    font-weight:700;
    transition:0.25s ease;
}

.pagination a:hover,
.pagination a.active{
    background:#00a884;
    border-color:#00a884;
    color:#fff;
}

/* ===================================
   NO PRODUCTS
=================================== */

.no-products{
    padding:50px;
    text-align:center;
    font-size:18px;
    font-weight:800;
}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1200px){

    .product-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

@media(max-width:992px){

    .product-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:768px){

    .products-topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .search-form{
        width:100%;
    }

    .search-form input{
        width:100%;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .product-card img{
        height:170px;
    }

    .retail-actions{
        flex-direction:column;
    }

    .b2b-actions{
        flex-direction:column;
    }

}

@media(max-width:480px){

    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .product-card{
        padding:10px;
    }

    .product-card img{
        height:140px;
    }

    .product-card h3{
        font-size:13px;
        min-height:40px;
    }

    .retail-price{
        font-size:18px;
    }

    .btn-cart,
    .btn-buy{
        height:40px;
        font-size:12px;
    }

}