*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body {
    font-family: Arial, "Noto Sans Bengali", sans-serif;
    background: #f7f8fa;
    color: #222;
    line-height: 1.5;
    overflow-x: hidden !important; /* 👈 ডান-বামে স্ক্রল বন্ধ করবে */
}

button,
input,
select,
textarea{
    font:inherit;
}

button{
    cursor:pointer;
}

a{
    text-decoration:none;
    color:inherit;
}

/* =========================
   TOP BAR
========================= */

.top-bar{
    background:#111827;
    color:#fff;
    padding:8px 20px;
    text-align:center;
    font-size:13px;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
}

.top-bar .top-bar-content{
    display:inline-block;
    padding-left:100%;
}

.top-bar.scrolling .top-bar-content{
    animation-name:topBarScroll;
    animation-timing-function:linear;
    animation-iteration-count:infinite;
}

@keyframes topBarScroll{
    0%   { transform:translateX(0); }
    100% { transform:translateX(-100%); }
}

@keyframes fadeInPopup{
    from { opacity:0; }
    to   { opacity:1; }
}

@keyframes slideUpPopup{
    from {
        transform:translateY(30px);
        opacity:0;
    }
    to {
        transform:translateY(0);
        opacity:1;
    }
}

/* =========================
   HEADER
========================= */
.header {
    background: #fff;
    min-height: 65px !important; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px !important; 
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100% !important; 
    box-sizing: border-box !important; 
    overflow: hidden; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 20px; 
    font-weight: 900;
    font-family: 'Poppins', 'Arial', sans-serif;
    letter-spacing: -0.5px;
    flex-shrink: 1; 
    overflow: hidden;
}

.logo strong {
    color: #111827;
    font-weight: 900;
}

.logo span {
    background: linear-gradient(90deg, #2563eb, #7c3aed); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo img {
    height: 32px !important; 
    width: auto !important;
    max-width: 100px; 
    object-fit: contain;
    background: transparent !important;
    mix-blend-mode: multiply; 
    display: block;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.icon-btn{
    width:42px;
    height:42px;
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    font-size:18px;
}

.icon-btn:hover{
    background:#f3f4f6;
}

.cart-badge{
    position:absolute;
    top:-4px;
    right:-3px;
    min-width:19px;
    height:19px;
    padding:0 5px;
    border-radius:20px;
    background:#ef4444;
    color:#fff;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

/* =========================
   SEARCH
========================= */

.search-box{
    width:100%;
    max-width:700px;
    margin:18px auto;
    padding:0 5%;
}

.search-box input{
    width:100%;
    height:48px;
    border:1px solid #ddd;
    border-radius:25px;
    padding:0 20px;
    outline:none;
    background:#fff;
}

.search-box input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.08);
}

/* =========================
   HERO
========================= */

.hero {
    margin: 10px auto 25px !important; /* 👈 5% এর বদলে auto */
    width: 95% !important; /* 👈 প্রস্থ ঠিক করুন */
    min-height: 280px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #2563eb);
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.5s ease;
}

.hero h1{
    font-size:36px;
    margin-bottom:10px;
}

.hero p{
    font-size:16px;
    opacity:.9;
}

.hero-btn{
    display:inline-block;
    margin-top:18px;
    padding:12px 22px;
    background:#fff;
    color:#111827;
    border-radius:10px;
    font-weight:700;
}

/* =========================
   SECTION
========================= */

section {
    width: 100% !important; 
    padding: 0 10px !important; 
    margin: 0 auto 35px;
    box-sizing: border-box !important; /* 👈 এই লাইনটি যোগ করুন */
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:18px;
}

.section-header h2{
    font-size:24px;
}

.section-header a,
.view-all{
    color:#2563eb;
    font-weight:700;
    font-size:14px;
}

/* =========================
   CATEGORIES
========================= */

.categories{
    padding-top:5px;
}
#dynamicCategories {
    width: 100% !important;
    padding: 0 !important; /* 👈 বাড়তি প্যাডিং বন্ধ করুন */
}

.all-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
}

.category-section {
    grid-column: span 4 !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    padding: 12px !important; /* 👈 প্যাডিং একটু কমিয়ে দিন */
    margin-bottom: 20px;
    box-sizing: border-box !important; /* 👈 এই লাইনটি যোগ করুন */
}

.category-grid-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
}

.section-header-title {
    text-align: center !important; 
    background: linear-gradient(to right, #fff0f5, #ffffff) !important; 
    padding: 12px !important; 
    border-radius: 12px !important; 
    margin-bottom: 15px !important; 
    color: #d11a6e !important; 
    font-weight: 800 !important; 
    border: 1px solid #fbcfe8 !important; 
    font-size: 18px !important; 
    letter-spacing: 1px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important;
}

.category-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* এটি লেখা ও ছবিকে সুন্দরভাবে ভাগ করবে */
    transition: 0.3s;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-height: 160px; /* কার্ডের ন্যূনতম উচ্চতা বাড়ানো হলো */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* হালকা ছায়া */
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.category-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    background: #f8fafc;
}

.category-card div {
    font-size: 13px; /* ফন্ট সাইজ বাড়ানো হলো */
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 0 2px;
}
/* =========================
   OFFER
========================= */

.offer{
    margin: 20px 0 !important; /* ৫% মার্জিন বাদ দেওয়া হলো */
    padding: 25px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    min-height: 180px;
}

.offer h2{
    margin-bottom:5px;
}

/* =========================
   PRODUCTS
========================= */

.products{
    padding-bottom:30px;
}

#dynamicProducts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.product-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    overflow:hidden;
    position:relative;
    transition:.2s;
}

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.product-image{
    width:100% !important;
    height:160px !important;
    min-height:160px !important;
    max-height:160px !important;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden !important;
    position:relative;
}

.product-image img{
    width:100% !important;
    height:160px !important;
    min-height:160px !important;
    max-height:160px !important;
    object-fit:cover !important;
    display:block;
}

.product-image .no-image{
    font-size:42px;
    color:#9ca3af;
}

.product-info{
    padding:15px;
}

.product-category{
    color:#6b7280;
    font-size:12px;
    margin-bottom:4px;
}

.product-name{
    font-size:16px;
    font-weight:700;
    margin-bottom:8px;
}

.product-rating{
    font-size:13px;
    color:#f59e0b;
    margin-bottom:7px;
}

.product-price{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.current-price{
    font-size:20px;
    font-weight:800;
    color:#111827;
}

.old-price{
    color:#9ca3af;
    text-decoration:line-through;
    font-size:13px;
}

.discount-badge{
    position:absolute;
    top:10px;
    left:10px;
   background:#dc2626;
    color:#fff;
    padding:5px 9px;
    border-radius:7px;
    font-size:11px;
    font-weight:700;
    z-index:2;
}

.product-actions{
    display:flex;
    gap:8px;
}

.product-actions button{
    flex:1;
    min-height:42px;
    border:none;
    border-radius:9px;
    font-weight:700;
}

.add-cart-btn{
    background:#111827;
    color:#fff;
}

.add-cart-btn:hover{
    background:#2563eb;
}

.buy-now-btn{
    background:#2563eb;
    color:#fff;
}

.buy-now-btn:hover{
    background:#1d4ed8;
}

/* =========================
   PRODUCT SIZE
========================= */

.product-size-wrap{
    margin:10px 0 12px;
}

.product-size-title{
    font-size:12px;
    font-weight:700;
    margin-bottom:7px;
    color:#374151;
}

.product-size-options{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.product-size-btn{
    min-width:38px;
    height:34px;
    padding:0 9px;
    border:1px solid #d1d5db;
    background:#fff;
    border-radius:7px;
    font-size:12px;
    font-weight:700;
}

.product-size-btn.active{
    background:#111827;
    color:#fff;
    border-color:#111827;
}

.product-size-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    text-decoration:line-through;
}

/* =========================
   NO PRODUCT
========================= */

.no-product{
    grid-column:1/-1;
    text-align:center;
    padding:50px 20px;
    background:#fff;
    border-radius:15px;
    color:#6b7280;
}

/* =========================
   SERVICES
========================= */

.services{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.service-box{
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    padding:20px;
    text-align:center;
}

.service-icon{
    font-size:28px;
    margin-bottom:8px;
}

.service-box h3{
    font-size:15px;
    margin-bottom:4px;
}

.service-box p{
    color:#6b7280;
    font-size:12px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111827;
    color: #fff;
    padding: 40px 5% 80px;
    margin-top: 30px;
    text-align: center; /* 👈 এটি যোগ করলে সব টেক্সট মাঝখানে আসবে */
}


.footer-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    max-width:1400px;
    margin:auto;
}

.footer h3{
    margin-bottom:12px;
}

.footer p,
.footer a{
    color:#d1d5db;
    font-size:13px;
    display:block;
    margin:6px 0;
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:62px;
    background:#fff;
    border-top:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:space-around;
    z-index:2000;
}

.bottom-nav a{
    flex:1;
    text-align:center;
    font-size:11px;
    color:#6b7280;
}

.bottom-nav a span{
    display:block;
    font-size:20px;
    margin-bottom:2px;
}

.bottom-nav a.active{
    color:#2563eb;
    font-weight:700;
}



/* =========================
   TOAST
========================= */

.toast{
    position:fixed;
    left:50%;
    bottom:85px;
    transform:translateX(-50%) translateY(20px);
    background:#111827;
    color:#fff;
    padding:11px 18px;
    border-radius:9px;
    font-size:13px;
    opacity:0;
    pointer-events:none;
    transition:.25s;
    z-index:5000;
}

.toast.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

/* =========================
   CHECKOUT
========================= */

.checkout-page{
    min-height:100vh;
    background:#f7f8fa;
}

.checkout-container{
    width:92%;
    max-width:1100px;
    margin:30px auto 100px;
}

.checkout-grid{
    display:grid;
    grid-template-columns:1.4fr .8fr;
    gap:22px;
}

.checkout-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:15px;
    padding:22px;
    margin-bottom:18px;
}

.checkout-card h2{
    font-size:19px;
    margin-bottom:18px;
}

.form-group{
    margin-bottom:14px;
}

.form-group label{
    display:block;
    font-size:13px;
    font-weight:700;
    margin-bottom:6px;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:8px;
    padding:11px 12px;
    outline:none;
    background:#fff;
}

.form-group textarea{
    min-height:90px;
    resize:vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563eb;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.payment-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px;
    border:1px solid #ddd;
    border-radius:9px;
    margin-bottom:9px;
}

.payment-option:hover{
    border-color:#2563eb;
}

.payment-option input{
    accent-color:#2563eb;
}

.order-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.order-item:last-child{
    border-bottom:none;
}

.order-item-info{
    flex:1;
}

.order-item-name{
    font-weight:700;
    font-size:14px;
}

.order-item-meta{
    color:#6b7280;
    font-size:12px;
}

.place-order-btn{
    width:100%;
    border:none;
    background:#16a34a;
    color:#fff;
    padding:14px;
    border-radius:10px;
    font-weight:800;
    font-size:15px;
}

.place-order-btn:hover{
    background:#15803d;
}

/* =========================
   ORDER SUCCESS
========================= */

.success-container{
    width:92%;
    max-width:850px;
    margin:35px auto 100px;
}

.success-card{
    background:#fff;
    border-radius:16px;
    border:1px solid #eee;
    padding:25px;
    margin-bottom:18px;
}

.success-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    background:#dcfce7;
    color:#16a34a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:35px;
    margin:0 auto 15px;
}

.success-title{
    text-align:center;
    margin-bottom:5px;
}

.success-subtitle{
    text-align:center;
    color:#6b7280;
    margin-bottom:25px;
}

.info-row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:9px 0;
    border-bottom:1px solid #eee;
}

.info-row:last-child{
    border-bottom:none;
}

.info-label{
    color:#6b7280;
}

.payment-badge,
.status-badge{
    display:inline-block;
    padding:5px 10px;
    border-radius:20px;
    background:#eff6ff;
    color:#2563eb;
    font-size:12px;
    font-weight:700;
}

.success-actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.success-actions a,
.success-actions button{
    flex:1;
    text-align:center;
    border:none;
    border-radius:9px;
    padding:12px;
    font-weight:700;
}

.continue-btn{
    background:#111827;
    color:#fff;
}

.print-btn{
    background:#e5e7eb;
    color:#111827;
}

/* =========================
   ACCOUNT
========================= */

.account-container{
    width:92%;
    max-width:800px;
    margin:30px auto 100px;
}

.account-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:15px;
    padding:22px;
    margin-bottom:18px;
}

.account-card h2{
    margin-bottom:15px;
}

.account-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:9px;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    margin-top:8px;
}

.secondary-btn{
    background:#e5e7eb;
    color:#111827;
}

.danger-btn{
    background:#ef4444;
    color:#fff;
}

/* =========================
   MY ORDERS
========================= */

.orders-container{
    width:92%;
    max-width:1000px;
    margin:30px auto 100px;
}

.my-order-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:15px;
    padding:18px;
    margin-bottom:15px;
}

.order-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding-bottom:12px;
    border-bottom:1px solid #eee;
}

.order-id{
    font-weight:800;
}

.order-date{
    font-size:12px;
    color:#6b7280;
}

.order-products{
    padding-top:10px;
}

.order-product-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:7px 0;
    font-size:13px;
}

.order-status{
    margin-top:12px;
}

/* =========================
   ADMIN BASIC
========================= */

.admin-body{
    background:#f4f6f8;
}

.admin-container{
    width:94%;
    max-width:1450px;
    margin:25px auto 50px;
}

.admin-header{
    background:#111827;
    color:#fff;
    padding:16px 5%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}

.admin-header h1{
    font-size:21px;
}

.admin-badge{
    background:#2563eb;
    padding:5px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
}

.admin-stats,
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:20px;
}

.stat-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    padding:18px;
}

.stat-card h3{
    font-size:13px;
    color:#6b7280;
    margin-bottom:7px;
}

.stat-card strong{
    font-size:25px;
}

.admin-section{
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    padding:20px;
    margin-bottom:18px;
}

.admin-section h2{
    font-size:19px;
    margin-bottom:15px;
}

.admin-menu{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}

.admin-menu button{
    border:1px solid #e5e7eb;
    background:#fff;
    padding:13px 10px;
    border-radius:9px;
    font-weight:700;
}

.admin-menu button:hover{
    background:#eff6ff;
    border-color:#bfdbfe;
}

/* =========================
   ADMIN TABLE
========================= */

.table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:700px;
}

th,
td{
    padding:11px;
    text-align:left;
    border-bottom:1px solid #eee;
    font-size:13px;
}

th{
    background:#f9fafb;
    font-weight:800;
}

.status-select{
    padding:8px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

/* =========================
   ADMIN MODAL
========================= */

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:4000;
}

.modal.active{
    display:flex;
}

.modal-content{
    width:min(700px,100%);
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:15px;
    padding:22px;
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:18px;
}

.modal-close{
    width:35px;
    height:35px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    font-size:20px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
}

.form-grid .full{
    grid-column:1/-1;
}

.admin-form-group{
    margin-bottom:12px;
}

.admin-form-group label{
    display:block;
    font-size:12px;
    font-weight:700;
    margin-bottom:5px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea{
    width:100%;
    padding:10px;
    border:1px solid #d1d5db;
    border-radius:8px;
    outline:none;
}

.admin-form-group textarea{
    min-height:100px;
}

.admin-submit{
    width:100%;
    padding:12px;
    border:none;
    border-radius:9px;
    background:#2563eb;
    color:#fff;
    font-weight:800;
    margin-top:8px;
}

/* =========================
   ADMIN PRODUCT/CATEGORY LIST
========================= */

.item-card{
    border:1px solid #eee;
    border-radius:12px;
    padding:12px;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
    background:#fff;
}

.item-card-image{
    width:65px;
    height:65px;
    border-radius:9px;
    background:#f3f4f6;
    overflow:hidden;
    flex-shrink:0;
}

.item-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.item-card-info{
    flex:1;
}

.item-card-title{
    font-weight:800;
    font-size:14px;
}

.item-card-meta{
    color:#6b7280;
    font-size:12px;
}

.item-card-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.item-card-actions button{
    border:1px solid #ddd;
    background:#fff;
    padding:7px 10px;
    border-radius:7px;
    font-size:11px;
}

.item-card-actions .delete{
    color:#dc2626;
    border-color:#fecaca;
}

/* =========================
   SWITCH
========================= */

.switch-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:10px 0;
}

.switch{
    position:relative;
    width:46px;
    height:25px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    inset:0;
    background:#d1d5db;
    border-radius:30px;
    transition:.2s;
}

.slider:before{
    content:"";
    position:absolute;
    width:19px;
    height:19px;
    left:3px;
    top:3px;
    background:#fff;
    border-radius:50%;
    transition:.2s;
}

.switch input:checked + .slider{
    background:#2563eb;
}

.switch input:checked + .slider:before{
    transform:translateX(21px);
}

/* =========================
   IMAGE PREVIEW
========================= */

.image-preview{
    width:120px;
    height:120px;
    border:1px dashed #bbb;
    border-radius:10px;
    background:#f9fafb;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-top:8px;
}

.image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
   SIZE STOCK
========================= */

.size-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.size-stock-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}

.size-stock-row input{
    flex:1;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .header{
        padding:11px 4%;
    }

    .hero{
        margin-left:4%;
        margin-right:4%;
    }

    section{
        width:92%;
    }

    .services{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .checkout-grid{
        grid-template-columns:1fr;
    }

    .admin-stats,
    .stats{
        grid-template-columns:repeat(2,1fr);
    }

    .admin-menu{
        grid-template-columns:repeat(2,1fr);
    }
}


    @media(max-width:600px){

    .top-bar{
        font-size:11px;
    }

    .logo{
        font-size:20px;
    }

    .header{
        min-height:62px;
    }

    .icon-btn{
        width:38px;
        height:38px;
    }

    .hero{
        min-height:180px;
        padding:25px 20px;
        border-radius:14px;
    }

    .hero h1{
        font-size:27px;
    }
/* ✅ ৪টি কার্ড রাখার জন্য নিখুঁত সেটিংস */
.all-categories-grid,
.category-grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important; 
}

/* ✅ ক্যাটাগরি কার্ড ফিক্স */
.category-card {
    padding: 4px !important; 
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; 
    align-items: center !important;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    height: 100% !important; 
    min-height: auto !important; 
    gap: 0 !important; 
}

.category-card img {
    height: 65px !important; 
    width: 100% !important;
    object-fit: cover !important; 
    border-radius: 6px !important;
    margin-bottom: 5px !important; /* 👈 এখানে ৫ পিক্সেল করে দিন */
    background: #f8fafc;
    display: block !important;
}

/* ✅ লেখার অংশ ফিক্স */
.category-card div {
    font-size: 9.5px !important; 
    line-height: 1.1 !important; 
    font-weight: 700 !important;
    color: #374151 !important;
    text-align: center !important;
    word-break: break-word !important;
    padding: 0 !important; 
    margin: 0 !important; 
    display: -webkit-box !important; 
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-grow: 0 !important; 
    height: auto !important; 
}
    .category-icon{
        width:45px;
        height:45px;
        font-size:20px;
    }

    .category h3,
    .category-name{
        font-size:11px;
    }

    #dynamicProducts{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .product-image{
        height:170px;
    }

    .product-info{
        padding:10px;
    }

    .product-name{
        font-size:13px;
    }

    .current-price{
        font-size:16px;
    }

    .product-actions{
        flex-direction:column;
    }

    .product-actions button{
        min-height:38px;
        font-size:12px;
    }

    .services{
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .service-box{
        padding:13px 8px;
    }

    .service-box h3{
        font-size:12px;
    }

    .footer{
        padding-bottom:80px;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
        gap:15px;
    }

    .form-row,
    .form-grid{
        grid-template-columns:1fr;
    }

    .form-grid .full{
        grid-column:auto;
    }

    .success-actions{
        flex-direction:column;
    }

    .info-row{
        flex-direction:column;
        gap:2px;
    }

    .admin-stats,
    .stats{
        grid-template-columns:1fr 1fr;
    }

    .admin-menu{
        grid-template-columns:1fr 1fr;
    }

    .item-card{
        align-items:flex-start;
    }

    .item-card-actions{
        width:100%;
    }

    .modal{
        padding:10px;
    }

    .modal-content{
        padding:16px;
    }

    .size-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(min-width:901px){

    .bottom-nav{
        display:none;
    }

    #dynamicProducts{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .product-image{
        height:260px;
    }
}

/* =========================
   PRINT
========================= */

@media print{

    .bottom-nav,
    .header,
    .top-bar,
    .success-actions,
    button{
        display:none !important;
    }

    body{
        background:#fff;
    }

    .success-card{
        border:none;
        box-shadow:none;
    }
} /* কার্ট আইটেমের ছবি ও টেক্সট সুন্দর করা */
.cart-item {
    align-items: center; /* আইটেমগুলো মাঝখানে রাখবে */
    padding: 15px 0;     /* একটু বেশি স্পেসিং */
}

.cart-item-image {
    width: 50px;         /* ছবির সাইজ একটু বড় */
    height: 50px;
    border-radius: 12px; /* রাউন্ড কর্নার */
}

.cart-item-name {
    font-size: 15px;
    color: #111;         /* গাঢ় রঙ */
}

.cart-item-price {
    color: #2563eb;      /* দামটি নীল রঙে দেখাবে */
    font-size: 15px;
}

/* ডিলিট বাটনটিকে সুন্দর করা */
.remove-cart {
    background: #ffe6e6;
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
}

/* চেকআউট বাটন আরও সুন্দর */
.checkout-btn{
    width:100%;
    border:0;
    background:#2563eb;
    color:#fff;
    padding:15px;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    margin-top:14px;
    cursor:pointer;
    transition:0.3s;
}

.checkout-btn:hover{
    background:#1d4ed8;
}

.checkout-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
      /* PRODUCT IMAGE SIZE FIX */
.product-image{
    width:100% !important;
    height:160px !important;
    max-height:160px !important;
}

.product-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}
  /* =========================
   CART OVERLAY
========================= */
.cart-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:3000;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.cart-overlay.active{
    opacity:1;
    visibility:visible;
}

/* =========================
   CART DRAWER
========================= */
.cart-drawer{
    position:fixed;
    top:0;
    right:0;
    width:100%;
    max-width:420px;
    height:100vh;
    background:#fff;
    z-index:3001;
    transform:translateX(100%);
    transition:.3s;
    display:flex;
    flex-direction:column;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
    overflow:hidden;
}

.cart-drawer.active{
    transform:translateX(0);
}

/* =========================
   CART HEADER
========================= */
.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border-bottom:1px solid #eee;
    background:#fff;
    flex-shrink:0;
}

.cart-header h2{
    margin:0;
    font-size:18px;
}

.cart-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#f1f5f9;
    font-size:18px;
    cursor:pointer;
}

/* =========================
   CART ITEMS (SCROLL AREA)
========================= */
.cart-items{
    flex:1;
    overflow-y:auto;
    padding:15px;
}

.empty-cart{
    text-align:center;
    padding:60px 20px;
    color:#999;
    font-size:14px;
    line-height:1.8;
}

/* =========================
   CART FOOTER (STICKY)
========================= */
.cart-footer{
    padding:15px 18px;
    border-top:1px solid #eee;
    background:#fff;
    flex-shrink:0;
    box-shadow:0 -4px 12px rgba(0,0,0,.05);
}

.cart-summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 0;
    font-size:14px;
}

.cart-summary-row.cart-total{
    font-size:17px;
    font-weight:bold;
    border-top:1px solid #eee;
    margin-top:6px;
    padding-top:12px;
    color:#111827;
}
 .cart-item-image-img{
    width:40px !important;
    height:40px !important;
    object-fit:cover !important;
    border-radius:10px;
    display:block;
} /* =========================
   BOTTOM NAV - 4 BUTTON
========================= */

.bottom-nav{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    align-items:center;
    gap:6px;
    padding:8px 10px;
    height:70px;
}

.bottom-nav button{
    border:0;
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    padding:7px 3px;
    border-radius:12px;
    font-size:11px;
    font-weight:700;
    color:#555;
    cursor:pointer;
}

.bottom-nav .nav-icon{
    font-size:21px;
    line-height:1;
}

.bottom-nav button:hover{
    background:#f3f4f6;
}
      
/* =========================
   SOCIAL FLOATING BUTTONS
========================= */

.social-float {
    position: fixed;
    right: 18px;
    bottom: 85px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2500;
}

.social-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: socialPulse 2.5s infinite;
}

.social-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    animation: none;
}

.whatsapp-btn {
    background: #25D366;
}

.facebook-btn {
    background: #1877F2;
}

@keyframes socialPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
    }
}

@media (min-width: 901px) {
    .social-float {
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 400px) {
    .social-float-btn {
        width: 46px;
        height: 46px;
    }
    
    .social-float-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}
      /* =========================
   WISHLIST HEART
========================= */

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.wishlist-btn:active {
    transform: scale(0.9);
}

.wishlist-btn.active {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
/* =========================================
   PREMIUM FOOTER STYLES (LIGHT THEME)
========================================= */

.footer {
    background: #ffffff !important;
    padding: 40px 20px 90px 20px !important; 
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
    color: #111827;
    text-align: center;
}

.premium-footer-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* সাবটাইটেল */
.premium-footer-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* কন্টাক্ট বক্স */
.premium-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.premium-footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #374151; 
    font-size: 15px;
    font-weight: 600;
    background: #f3f4f6;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.premium-footer-item:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.footer-icon {
    font-size: 20px;
}

/* সোশ্যাল বাটন */
.premium-footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.premium-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.premium-social-btn.fb-btn {
    background: #1877F2;
}

.premium-social-btn.wa-btn {
    background: #25D366;
}

.premium-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

/* কপিরাইট (এখানে কালার গাঢ় করা হয়েছে) */
.premium-footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.premium-footer-bottom small {
    color: #4b5563; /* 👈 এই কালারটি গাঢ় করা হয়েছে PageSpeed এররের জন্য */
    font-size: 13px;
    font-weight: 500;
}