
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:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
    padding:0px;
}

.product{
    width:150px;
    background:#e6f7ff;
    border-radius:5px;
    box-shadow:0 0 5px rgba(0,0,0,0.1);
    padding:10px;
    cursor:pointer;
    user-select:none;
    text-align:center;

    height:auto;          /* ✅ default, but safe */
}



.product img{
    width:100%;
    height:auto;          /* ✅ MUST */
    max-width:150px;
    max-height:150px;
    object-fit:contain;
    background:#e6f7ff;
    border-radius:5px;
}


.product-name{
    text-align: center;
    color: black;
    font-weight: bold;
    margin: 6px 0;
}

.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:20px;
    top:50%;
    transform:translateY(-50%);
    background:#007bff;
    color:#fff;
    padding:14px 18px;
    border-radius: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-text {
display: flex;
    justify-content: center; /* left to right */
    align-items: center;         /* vertical center */
    gap: 10px;
}

.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;
}

/* 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 */
}
.product img{
    max-width:150px;
    max-height:150px;
    object-fit:contain;
}
