/* assets/css/style.css - Local BD E-commerce Theme */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif; /* বাংলা লেখার জন্য বেস্ট ফন্ট */
}

body {
    background-color: #f4f4f4; /* দারাজ বা বিডিশপের মতো গ্রে ব্যাকগ্রাউন্ড */
    color: #333;
    overflow-x: hidden;
}

a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* টপবার */
.topbar { background-color: #ececec; padding: 5px 0; font-size: 13px; color: #555; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }

/* মেইন হেডার */
.main-header { background-color: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.logo a { font-size: 28px; font-weight: 700; color: #f85606; /* ই-কমার্স অরেঞ্জ */ }

/* সার্চ বক্স */
.search-box { flex: 1; min-width: 250px; max-width: 600px; }
.search-box form { display: flex; border: 2px solid #f85606; border-radius: 4px; overflow: hidden; }
.search-box input { flex: 1; padding: 10px 15px; border: none; font-size: 14px; outline: none; }
.search-box button { background: #f85606; color: #fff; border: none; padding: 0 20px; cursor: pointer; font-size: 16px; transition: 0.2s; }
.search-box button:hover { background: #d04604; }

/* কার্ট আইকন */
.header-right { display: flex; align-items: center; }
.cart-icon { display: flex; align-items: center; gap: 8px; color: #333; font-size: 20px; position: relative; font-weight: 600; }
.cart-count { background: #f85606; color: #fff; font-size: 12px; height: 20px; width: 20px; display: flex; justify-content: center; align-items: center; border-radius: 50%; position: absolute; top: -10px; left: -10px; }
.cart-text { font-size: 15px; }

/* ক্যাটাগরি মেনু */
.category-nav { background-color: #f85606; }
.nav-links { display: flex; list-style: none; overflow-x: auto; white-space: nowrap; }
.nav-links::-webkit-scrollbar { display: none; } /* স্ক্রলবার লুকানো */
.nav-links li a { display: block; padding: 12px 20px; color: #fff; font-size: 15px; font-weight: 500; transition: background 0.2s; }
.nav-links li a:hover { background-color: #d04604; }

/* ব্যানার */
.banner-section { margin-top: 20px; }
.banner { background: linear-gradient(to right, #ffefd5, #fff5e6); border: 1px solid #ffe4c4; padding: 30px; border-radius: 8px; text-align: center; }
.banner h2 { color: #f85606; font-size: 24px; margin-bottom: 5px; }
.banner p { color: #555; font-size: 16px; }

/* প্রোডাক্ট সেকশন */
.products-section { margin-top: 30px; margin-bottom: 50px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: #fff; padding: 15px; border-radius: 4px; border-bottom: 2px solid #f85606; }
.section-header .title { font-size: 20px; color: #333; }
.section-header .view-all { color: #f85606; font-weight: 500; }

/* প্রোডাক্ট গ্রিড */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }

/* প্রোডাক্ট কার্ড - লোকাল স্টাইল */
.product-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.card-image { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f9f9f9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 10px; right: 10px; background: #f85606; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 3px; font-weight: bold; }

.card-details { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 14px; margin-bottom: 8px; line-height: 1.4; height: 40px; overflow: hidden; } /* ২ লাইনের বেশি দেখাবে না */
.product-title a { color: #333; transition: color 0.2s; }
.product-title a:hover { color: #f85606; }

.product-price { margin-bottom: 12px; margin-top: auto; }
.current-price { color: #f85606; font-size: 18px; font-weight: 700; display: block; }
.old-price { color: #9e9e9e; font-size: 13px; text-decoration: line-through; }

.order-btn { display: block; text-align: center; background: #fff; color: #f85606; border: 1px solid #f85606; padding: 8px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: 0.2s; }
.order-btn:hover { background: #f85606; color: #fff; }

/* ফুটার */
.main-footer { background: #fff; border-top: 1px solid #e2e2e2; padding: 30px 0; margin-top: 40px; }
.text-center { text-align: center; }

/* রেস্পন্সিভ ভিউ (মোবাইল) */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 10px; }
    .search-box { width: 100%; max-width: 100%; order: 3; }
    .header-right { position: absolute; top: 15px; right: 15px; }
    .topbar { display: none; } /* মোবাইলে টপবার হাইড */
    
    /* মোবাইলে প্রোডাক্ট ২ কলামে দেখানোর জন্য */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { font-size: 13px; }
    .current-price { font-size: 16px; }
}