/* =========================================
   MODERN E-COMMERCE THEME (Fixes Giant Icons & Layouts)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-blue: #1e3a8a; 
    --secondary-blue: #2563eb; 
    --bg-color: #f8fafc; /* Very light cool gray */
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* UI Elements */
    --radius-sm: 6px;
    --radius-md: 10px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; padding-bottom: 70px; }
@media (min-width: 769px) { body { padding-bottom: 0; } }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   MOBILE BOTTOM MENU
   ========================================= */
.mobile-bottom-menu { 
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; 
    background: var(--white); box-shadow: 0 -4px 15px rgba(0,0,0,0.08); 
    z-index: 1000; justify-content: space-around; padding: 10px 0; 
    border-top: 1px solid var(--border-color); border-radius: 15px 15px 0 0;
}
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.menu-item.active { color: var(--secondary-blue); }
.menu-item svg { width: 22px !important; height: 22px !important; }
@media (max-width: 768px) { .mobile-bottom-menu { display: flex; } }

/* =========================================
   BANNER TO CATEGORY FIX
   ========================================= */
.bannerSwiper { margin-top: 15px; margin-bottom: 0 !important; border-radius: var(--radius-md); overflow: hidden; }

/* =========================================
   CATEGORY SWIPER (PC: 6, Mobile: 3)
   ========================================= */
.category-wrapper { 
    display: flex; gap: 10px; overflow-x: auto; 
    padding: 15px 0 5px 0; scrollbar-width: none; 
}
.category-wrapper::-webkit-scrollbar { display: none; }

.category-box { 
    flex: 0 0 calc((100% - 50px) / 6); 
    background: var(--white); border: 1px solid var(--border-color); 
    border-radius: var(--radius-md); padding: 15px 5px; text-align: center; 
}
.category-icon { width: 45px !important; height: 45px !important; border-radius: 50%; margin: 0 auto 10px; display: block; object-fit: contain; padding: 5px; background: #f1f5f9; }
.category-name { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }

@media (max-width: 768px) {
    .category-box { flex: 0 0 calc((100% - 20px) / 3); padding: 10px 5px; }
    .category-icon { width: 40px !important; height: 40px !important; margin-bottom: 6px; }
    .category-name { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* =========================================
   PERFECT PRODUCT CARDS
   ========================================= */
.section-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 12px; margin-top: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 8px;
}
.section-title { font-size: 1.2rem; font-weight: 800; color: var(--primary-blue); }
.view-more { font-size: 0.8rem; font-weight: 700; color: var(--white); background: var(--primary-blue); padding: 4px 12px; border-radius: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.product-card { 
    width: 100%; height: 100%; 
    background: var(--white); 
    border-radius: var(--radius-sm); 
    border: 1px solid var(--border-color); 
    display: flex; flex-direction: column; position: relative;
    transition: 0.3s;
}
.product-card:hover { border-color: var(--secondary-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

.sale-badge { 
    position: absolute; top: -1px; right: -1px; 
    background: #10b981; color: white; padding: 4px 10px; 
    font-size: 0.7rem; font-weight: 700; border-radius: 0 6px 0 10px; z-index: 2; 
}

.product-img { 
    width: 100%; aspect-ratio: 4/3; object-fit: contain; 
    padding: 15px; border-bottom: 1px solid #f8fafc;
}

.product-title { 
    font-size: 0.85rem; font-weight: 600; color: var(--text-dark); 
    text-align: center; margin: 10px 8px 5px; line-height: 1.4; height: 2.8em; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-price { 
    display: flex; justify-content: center; align-items: center; gap: 8px; 
    margin: 5px 8px 10px; margin-top: auto; 
}
.old-price { text-decoration: line-through; color: var(--secondary-blue); font-size: 0.8rem; font-weight: 600; opacity: 0.7; }
.new-price { color: var(--secondary-blue); font-weight: 800; font-size: 1rem; }

.btn-buy { 
    margin: 0 10px 10px; 
    background: var(--primary-blue); color: white; 
    border-radius: 4px; padding: 8px; font-size: 0.85rem; 
    display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 600; border: none; cursor: pointer;
}
.btn-buy svg { width: 16px !important; height: 16px !important; }
.product-card:hover .btn-buy { background: var(--secondary-blue); }

/* =========================================
   GIANT ICON FIX (Info Cards)
   ========================================= */
.info-cards-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 30px 0; }
@media (min-width: 768px) { .info-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.info-card { background: var(--white); border: 1px solid var(--border-color); padding: 25px 20px; border-radius: var(--radius-md); text-align: center; }
.info-icon svg { 
    width: 45px !important; /* ম্যাজিক: আইকন আর বিশাল হবে না! */
    height: 45px !important; 
    margin: 0 auto 15px; 
    color: var(--primary-blue); 
    display: block;
}
.info-title { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.info-desc { color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   SHORT & PROFESSIONAL FOOTER
   ========================================= */
.pro-footer {
    background: #ffffff; border-top: 1px solid var(--border-color);
    padding: 25px 0; margin-top: 40px;
}
.pro-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.pro-footer-links { display: flex; gap: 20px; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.pro-footer-links a:hover { color: var(--primary-blue); }
.pro-footer-copyright { font-size: 0.85rem; color: #94a3b8; }
@media (min-width: 768px) { .pro-footer-inner { flex-direction: row; justify-content: space-between; } }