#products-container{
    
}
#product-container{
   width:100%;
   background:white;
}
.s-prod1{
   width: 16%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 3px;
    height: 230px;
    position: relative;
    padding:2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease;
    float:left;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    vertical-align: top;
}

.s-prod1:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-imager {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.s-pcontent {
    padding: 8px 5px;
    bottom:0;
}

.product-name {
    font-size: 14px;
    text-transform:capitalize;
    height: 32px; 
    text-align:left;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;          /* necessary for line clamp */
    -webkit-line-clamp: 2;         /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.product-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-align:center;
    margin-top: 10px;
}

.buy-now-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #FFBF00; /* your brand color */
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.buy-now-btn:hover {
    background-color: #e04e00; /* slightly darker on hover */
    transform: translateY(-2px);
    color:white;
}
/* Minimalistic spinner */
#loading {
    display: none;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #444;
}

/* Loader */
.loader {
    border: 3px solid #eee;
    border-top: 3px solid #555;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: auto;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Product cards */
.product-card { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.4s ease; 
    margin-bottom: 10px;
}
.product-card.show { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Back to top */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #555;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}
#back-to-top:hover {
    background: #333;
}

/* Lazy image placeholder */
.lazy-img {
    background: #f5f5f5;
    height: 100px;
    display: block;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    
.s-prod1{
   width: 32%;
   margin: 1px;
}
.profile-box {
    flex-direction: column;    /* 🔥 make left & right go apart */
    justify-content: center;
    gap: 6px;
    padding: 5px;
}
.profile-right{
    width:100%;
}
.profile-left{
    width:100%;
}
}