
body {
    font-family: Arial, sans-serif;
    background-color: #e6f7ff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h2{
    text-align:center;
    margin:15px 0;
}

/* Search box */
.search-box{
    display:flex;
    justify-content:center;
    margin-bottom:15px;
}

.search-box input{
    width:300px;
    padding:10px;
    border-radius:25px;
    border:1px solid #ccc;
    outline:none;
    
}

.drawer-toggle{
    padding:10px 15px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
}

.drawer{
    position:fixed;
    top:0;
    left:-260px;
    width:260px;
    height:100%;
    background:#fff;
    box-shadow:2px 0 10px rgba(0,0,0,.2);
    transition:.3s;
    z-index:9999;
}

.drawer.open{
    left:0;
}

.drawer-header{
    display:flex;
    justify-content:space-between;
    padding:15px;
    font-weight:bold;
    border-bottom:1px solid #ddd;
}

.drawer-list{
    list-style:none;
    padding:0;
    margin:0;
}

.drawer-list li{
    padding:12px 15px;
    border-bottom:1px solid #eee;
    cursor:pointer;
}

.drawer-list li:hover{
    background:#f5f5f5;
}

/* Products */
.products{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
    gap: 15px;
    padding: 5px;
    justify-content: center;  /* ⭐ MAIN FIX */
}

.product{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    cursor:pointer;
    transition:0.3s;
}

.product:hover{
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.product-card{
    position:relative;
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    display:block;
}

.product-name{
    font-size:15px;
    margin:8px 0;
    font-weight:500;
    color:#333;
    text-align:center;
}

.product a{
    display:inline-block;
    margin-top:5px;
    text-decoration:none;
    color:#007bff;
}

/* Lightbox fullscreen */
.lightbox{
    display:none;
    position:fixed;
    z-index:9999;
    top:0; left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    justify-content:center;
    align-items:center;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:8px;
}

/* Floating View Cart */
.view-cart{
    position:fixed;
    right:0px;
    top:50%;
    transform:translateY(-50%);
    background:#007bff;
    color:#fff;
    padding:8px 8px;
    border-radius: 30px 0 0 30px;
    text-decoration:none;
    font-weight:bold;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    z-index:9999;

}

.view-cart span{
    background:red;
    color:white;
    padding:2px 8px;
    border-radius:50%;
    margin-left:5px;
}

.view-cart:hover{
    background:#0056b3;
}
.order-link {
    color: blue;
    text-decoration: underline;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
    padding:0px;
    padding-right: 12px;          /* padding */
    display: inline-block;     /* padding কাজ করার জন্য */
    font-weight: bold;
    animation: blink 1s infinite;
}

.price-box{
    position:absolute;
    bottom:-20px;
    left:50%;
    transform:translateX(-50%);

    display:flex;
    gap:6px;
    align-items:center;

    background:#fff;
    padding:6px 12px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
    z-index:5;
}

.price-label {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.discount-price {
    font-size: 16px;
    font-weight: 700;
    color: green;
}

.reg-price {
    font-size: 16px;
    color: #b0b0b0;
    text-align: right;
    font-weight: 700;
    text-decoration: line-through;
}

.order-btn{
    width:100%;
    background:#000;
    color:#fff;
    border:none;
    padding:12px;
    font-size:15px;
    cursor:pointer;
    margin-top:30px;
}

.order-btn:hover{
    background:orange;
}

/* blinking animation */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 768px) {
.product{
        /* prevent text selection */
    -webkit-user-select: none; /* Safari, Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
    width: calc(50% - 10px);    /* ⭐ 2 column */
        max-width: 200px;   
}

.products{
        display: flex;              /* ⭐ grid বাদ */
        flex-wrap: wrap;
        justify-content: center;    /* ⭐ center সবসময় */
        gap: 10px;
        padding: 10px;
    }

    .product{
        width: calc(50% - 10px);    /* ⭐ 2 column */
        max-width: 200px;           /* ⭐ optional limit */
    }
.product-card img{
    width:100%;    
    height:150px;
    object-fit:cover;  
    display:block;
}
}