/* As-Sunnah Mart - ডিজাইন লেয়ার (শুধু চেহারা; HTML/JS অপরিবর্তিত) */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@600;700&display=swap');

:root {
    --bg-color: #f3f1f7; --container-bg: #faf9fc; --text-color: #241b2e; --muted-color: #70677c;
    --border-color: #e8e3ef; --primary-color: #64198f; --primary-dark: #43105f; --primary-light: #f2eaf8;
    --price-color: #17713a; --gold: #c79a3b;
    --shadow-card: 0 2px 10px rgba(67,16,95,.07); --shadow-hover: 0 10px 24px rgba(67,16,95,.14);
}
[data-theme="dark"] {
    --bg-color: #100d14; --container-bg: #17131d; --header-bg: #1f1927; --card-bg: #221c2b; --nav-bg: #1f1927;
    --text-color: #f2eef6; --muted-color: #aea4ba; --border-color: #372e43; --primary-color: #c383e6;
    --primary-dark: #8e3fb8; --primary-light: #35224a; --price-color: #6fcf8a; --gold: #dcb866;
    --shadow-card: 0 2px 10px rgba(0,0,0,.35); --shadow-hover: 0 10px 24px rgba(0,0,0,.55);
}

/* হেডার ও সার্চ */
.header { padding: 10px 16px; border-bottom: 2px solid var(--gold); box-shadow: var(--shadow-card); }
.hdr-btn, .header .theme-toggle { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--primary-light); color: var(--primary-color); font-size: 15px; display: flex; align-items: center; justify-content: center; padding: 0; }
.search-box { padding: 14px 15px; }
.search-box input { height: 48px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-card); }
.search-box input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
.search-box .search-icon, .search-box .mic-icon { top: 30px; }
.chip, .sort-chip { padding: 7px 14px; border-radius: 10px; }

/* ব্যানার */
.hero-slider, .hero-slide { border-radius: 18px; }
.hero-slide { box-shadow: var(--shadow-card); }
.hero-caption { padding: 34px 16px 12px; font-size: 15px; background: linear-gradient(to top, rgba(40,8,58,.8), transparent); }
.hero-dot.active { background: var(--gold); }

/* ক্যাটাগরি: মেহরাব আকৃতি */
.cat-grid { border: 0; border-radius: 18px; box-shadow: var(--shadow-card); padding: 16px 0 12px; }
.cat-circle { width: 58px; height: 66px; border-radius: 29px 29px 12px 12px; border: 1.5px solid var(--gold); background: var(--primary-light); transition: transform .2s; }
.cat-item:active .cat-circle { transform: scale(.95); }
.cat-name { font-weight: 500; }

/* সেকশন শিরোনাম */
.section-header, .flash-sale-header { background: transparent; border: 0; box-shadow: none; padding: 4px 0; margin: 26px 15px 12px; font-family: 'Anek Bangla', 'Noto Sans Bengali', sans-serif; font-size: 19px; font-weight: 700; align-items: center; }
.section-header:hover, .flash-sale-header:hover { background: transparent; }
.section-header > span:first-child, .flash-sale-header > span:first-child { border-left: 4px solid var(--gold); padding-left: 10px; line-height: 1.3; }
.more-btn { font-family: 'Noto Sans Bengali', sans-serif; font-size: 12px; font-weight: 600; background: var(--primary-light); padding: 5px 12px; border-radius: 8px; }
.timer-box { font-family: 'Noto Sans Bengali', sans-serif; }
.timer-box span:not(.timer-label) { background: var(--primary-dark); color: #fff; padding: 4px 7px; border-radius: 6px; }

/* পণ্য কার্ড */
.product-card { border-radius: 16px; }
.pc-media { background: #fff; }
.pc-body { padding: 10px 11px 4px; }
.pc-title { min-height: 2.9em; }
.discount-badge { background: #c2185b; border-radius: 7px; box-shadow: none; }
.pc-icon-btn { width: 32px; height: 32px; font-size: 14px; }
.current-price { font-size: 17px; }
.add-cart { min-height: 36px; border: 0; border-radius: 10px; background: var(--primary-light); font-weight: 600; }
.add-cart:disabled { background: var(--border-color); color: var(--muted-color); }
.qty-stepper { height: 36px; border-radius: 10px; }

/* কার্ট, মোডাল, বাটন */
.cart-drawer { border-radius: 20px 0 0 20px; }
.cart-item-card { border-radius: 14px; }
.modal-content { border-radius: 22px; }
.checkout-btn, .wa-order-btn { min-height: 46px; border-radius: 12px; }
.checkout-btn { background: var(--primary-dark); }

/* ব্র্যান্ড রং (HTML-এর ইনলাইন স্টাইলসহ) */
.float-main-btn { background: linear-gradient(145deg, #7b24ad, #43105f); border: 2px solid var(--gold); }
.floating-menu.active .float-main-btn { background: #b3261e; }
.gemini-chat-window { border-radius: 20px; }

/* ফুটার */
.footer-section { border-radius: 20px; border-top: 3px solid var(--gold); line-height: 1.8; }
.footer-blog a { border-radius: 10px !important; padding: 8px 16px !important; }

/* নিচের নেভিগেশন */
.bottom-nav { padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 18px rgba(67,16,95,.12); }
.nav-item { min-width: 64px; font-weight: 500; }
.nav-item:first-child { color: var(--primary-color); font-weight: 700; }
.nav-item:first-child div { background: var(--primary-light); border-radius: 12px; }
.toast { border-radius: 12px; background: #2b1838; }
