:root {
    --blue-50: #eef7ff;
    --blue-100: #d9edff;
    --blue-200: #bfe1ff;
    --blue-400: #4aa8e0;
    --blue-500: #1f8fd0;
    --blue-600: #0f74b3;
    --blue-800: #0a4d78;
    --navy: #0b3552;
    --teal: #12a594;
    --amber: #f5a623;
    --ink: #17303f;
    --muted: #5b7284;
    --line: #dbe8f2;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(15, 74, 120, .08);
    --shadow-md: 0 12px 30px rgba(15, 74, 120, .14);
    --radius: 16px;
}

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

[hidden] { display: none !important; }

body.admin-mode .storefront { display: none; }
body.admin-mode .admin-panel { display: block; }
body.store-preview .storefront { display: block !important; }
body.store-preview .admin-panel { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
    font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #f7fbfe;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ---------- বিসমিল্লাহ বার ---------- */
.bismillah-bar {
    background: linear-gradient(90deg, #0a4d78, #1272a8 50%, #0a4d78);
    color: #eaf6ff;
    text-align: center;
    padding: 9px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}
.bismillah-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.15rem;
    letter-spacing: .5px;
    color: #ffffff;
}
.bismillah-bangla {
    font-size: .78rem;
    letter-spacing: 1.5px;
    opacity: .85;
}
.bismillah-bar {
    position: relative;
    padding-left: 130px;
    padding-right: 130px;
}
.login-btn.corner {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 6px 14px;
    font-size: .82rem;
    z-index: 5;
}
.login-btn.corner:hover { transform: translateY(-50%) scale(1.05); }
.login-btn.corner.logged-in:hover { transform: translateY(-50%) scale(1.05); }

/* ---------- হেডার (হালকা নীল) ---------- */
.site-header {
    background: linear-gradient(180deg, var(--blue-100), var(--blue-50));
    border-bottom: 1px solid var(--blue-200);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    font-size: 1.9rem;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--blue-200);
    flex-shrink: 0;
}
.shop-name {
    font-size: clamp(1.6rem, 4.2vw, 2.4rem);
    font-weight: 700;
    color: var(--blue-800);
    line-height: 1.25;
}
.shop-address {
    color: var(--blue-800);
    font-size: 1.08rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-call {
    display: flex; align-items: center; gap: 7px;
    background: var(--white);
    color: var(--blue-800);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--blue-200);
    transition: .2s;
}
.header-call:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.login-btn {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 6px 14px rgba(31, 143, 208, .3);
    border: 1px solid rgba(255, 255, 255, .35);
    transition: .2s;
    white-space: nowrap;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31, 143, 208, .4); }
.login-btn.logged-in { background: linear-gradient(135deg, #16b58c, #0f9b78); box-shadow: 0 6px 14px rgba(22, 181, 140, .3); }
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: inline-flex !important; }
.cart-btn {
    position: relative;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--blue-200);
    font-size: 1.2rem;
    transition: .2s;
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 22px; height: 22px;
    background: var(--amber);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    display: grid; place-items: center;
    padding: 0 5px;
    border: 2px solid var(--blue-50);
}

/* ---------- নেভিগেশন ---------- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(15, 74, 120, .05);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    flex: 1;
}
.nav-link {
    display: block;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--muted);
    font-size: .98rem;
    transition: .2s;
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-link.active { background: var(--blue-100); color: var(--blue-800); }
.nav-search { position: relative; }
.nav-search input {
    width: 230px;
    padding: 9px 38px 9px 14px;
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    background: var(--blue-50);
    font-size: .92rem;
    outline: none;
    transition: .2s;
}
.nav-search input:focus { border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 3px rgba(74, 168, 224, .18); }
.search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .55; font-size: .9rem; }
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--blue-800);
    padding: 6px 10px;
}

/* ---------- হিরো ---------- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 54px 20px 40px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: #e3f8f4;
    color: #0b7a6d;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid #c2ece4;
}
.hero-title {
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.25;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 16px;
}
.hero-title span { color: var(--blue-500); }
.hero-text { color: #111111; font-weight: 700; font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: .22s;
    border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff;
    box-shadow: 0 8px 20px rgba(31, 143, 208, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 143, 208, .42); }
.btn-outline {
    background: #fff;
    color: var(--blue-600);
    border-color: var(--blue-200);
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn.full { width: 100%; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.35rem; color: var(--blue-800); font-weight: 700; }
.stat span { font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-circle {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--blue-100), var(--blue-200) 65%, #a9d6f5);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}
.hero-emoji { position: relative; font-size: 8.5rem; filter: drop-shadow(0 14px 18px rgba(10, 77, 120, .25)); z-index: 2; }
.hero-emoji.small { position: absolute; font-size: 3rem; z-index: 3; animation: float 5s ease-in-out infinite; }
.hero-emoji.small.one { top: 18%; left: 6%; }
.hero-emoji.small.two { bottom: 14%; right: 8%; animation-delay: 1.2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- ফিচার ---------- */
.features {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: .22s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.feature-icon { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.feature-card h3 { font-size: 1.05rem; color: var(--blue-800); margin-bottom: 4px; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- সেকশন কমন ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-tag {
    display: inline-block;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    padding: 5px 15px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3.6vw, 2.15rem);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 10px;
}
.section-sub { color: var(--muted); font-size: 1rem; }

/* ---------- শুঁটকি সমাহার ---------- */
.products-section { max-width: 1200px; margin: 0 auto; padding: 60px 20px 40px; }

/* অ্যাডমিন বার */
.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #e8f7f3;
    border: 1px solid #bfe9de;
    border-radius: 14px;
}
.admin-note { color: #0b7a6d; font-size: .88rem; }
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.category-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--blue-200);
    color: var(--blue-600);
    font-weight: 600;
    font-size: .9rem;
    transition: .2s;
}
.chip:hover { background: var(--blue-50); }
.chip.active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); box-shadow: 0 6px 14px rgba(31, 143, 208, .28); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort-wrap select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--blue-200);
    background: #fff;
    color: var(--ink);
    outline: none;
    cursor: pointer;
}

.slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.slider-track {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px 14px;
}
.slider-track::-webkit-scrollbar { display: none; }

.product-grid {
    display: flex;
    gap: 22px;
    padding: 2px;
}
.product-card {
    flex: 0 0 auto;
    width: 290px;
    scroll-snap-align: start;
}

.slide-arrow {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue-600);
    border: 1px solid var(--blue-200);
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 5;
    transition: .2s;
}
.slide-arrow:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); transform: scale(1.05); }
.slide-arrow[hidden] { display: none; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    min-height: 16px;
}
.dot {
    width: 9px; height: 9px;
    border-radius: 999px;
    background: var(--blue-200);
    transition: .25s;
    padding: 0;
}
.dot.active { background: var(--blue-500); width: 26px; }

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: .25s;
    animation: fadeUp .4s ease both;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-thumb {
    position: relative;
    height: 172px;
    display: grid;
    place-items: center;
    font-size: 4rem;
    background: linear-gradient(140deg, var(--blue-50), var(--blue-100));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-edit-btns {
    position: absolute;
    top: 10px; right: 10px;
    display: none;
    gap: 6px;
    z-index: 5;
}
body.admin-mode .card-edit-btns { display: flex; }
.card-edit-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(10, 77, 120, .18);
    font-size: .82rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    transition: .2s;
}
.card-edit-btn.edit:hover { background: var(--blue-500); transform: scale(1.1); }
.card-edit-btn.del:hover { background: #d9534f; transform: scale(1.1); }
.product-thumb.tone-1 { background: linear-gradient(140deg, #e6f6ff, #c9e8fb); }
.product-thumb.tone-2 { background: linear-gradient(140deg, #eafaf6, #c9f0e6); }
.product-thumb.tone-3 { background: linear-gradient(140deg, #fff6e8, #ffe6c2); }
.product-thumb.tone-4 { background: linear-gradient(140deg, #f3efff, #ddd3fb); }
.product-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--amber);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(245, 166, 35, .35);
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.12rem; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.product-desc { font-size: .87rem; color: var(--muted); line-height: 1.55; margin-bottom: 12px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.product-price { font-size: 1.28rem; font-weight: 700; color: var(--blue-600); }
.product-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.product-unit { font-size: .82rem; color: var(--muted); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; }
.add-cart-btn {
    width: 100%;
    padding: 11px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    transition: .2s;
}
.add-cart-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.add-cart-btn:active { transform: scale(.98); }
.add-cart-btn.added { background: linear-gradient(135deg, #16b58c, #0f9b78); }
.empty-products { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 40px 0; }

/* ---------- আমাদের সম্পর্কে ---------- */
.about-section {
    background: linear-gradient(180deg, #fff, var(--blue-50));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 66px 20px;
    margin-top: 30px;
}
.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
    align-items: center;
}
.about-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.about-art::before {
    content: "";
    position: absolute;
    inset: 8% 6%;
    border-radius: 28px;
    background: radial-gradient(circle at 30% 25%, var(--blue-100), var(--blue-200));
    box-shadow: var(--shadow-md);
    transform: rotate(-4deg);
}
.about-emoji { position: relative; font-size: 8rem; z-index: 2; filter: drop-shadow(0 12px 16px rgba(10, 77, 120, .2)); }
.about-badge {
    position: absolute;
    top: 6%; right: 4%;
    z-index: 3;
    background: var(--amber);
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: .9rem;
}
.about-content .section-tag { margin-bottom: 12px; }
.about-content p { color: var(--muted); margin-bottom: 14px; }
.about-list { list-style: none; margin: 18px 0 26px; display: grid; gap: 9px; }
.about-list li { font-weight: 500; color: var(--ink); }
.about-counters { display: flex; gap: 30px; flex-wrap: wrap; }
.counter strong { display: block; font-size: 1.7rem; color: var(--blue-600); font-weight: 700; line-height: 1.2; }
.counter span { font-size: .85rem; color: var(--muted); }

/* ---------- যোগাযোগ ---------- */
.contact-section { max-width: 1200px; margin: 0 auto; padding: 66px 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: .2s;
}
.info-card:hover { border-color: var(--blue-200); transform: translateX(3px); }
.info-icon { font-size: 1.4rem; }
.info-card h3 { font-size: 1rem; color: var(--blue-800); margin-bottom: 2px; }
.info-card p { color: var(--muted); font-size: .93rem; }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--blue-800); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--blue-200);
    border-radius: 11px;
    font-size: .96rem;
    outline: none;
    transition: .2s;
    resize: vertical;
    background: var(--blue-50);
}
.field input:focus, .field textarea:focus {
    border-color: var(--blue-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 168, 224, .18);
}
.form-msg { text-align: center; margin-top: 12px; font-weight: 600; font-size: .92rem; min-height: 20px; }
.form-msg.ok { color: #0f9b78; }
.form-msg.err { color: #d9534f; }

/* ---------- ফুটার ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--navy), #072b42);
    color: #c9dcea;
    padding: 46px 20px 0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 34px;
}
.footer-brand { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.footer-text { font-size: .92rem; line-height: 1.7; opacity: .85; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1.02rem; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.footer-links a { opacity: .85; transition: .2s; }
.footer-links a:hover { opacity: 1; color: #fff; padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 16px;
    font-size: .85rem;
    opacity: .8;
}

/* ---------- কার্ট ড্রয়ার ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 43, 66, .5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 90;
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(400px, 92vw);
    height: 100%;
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -12px 0 34px rgba(7, 43, 66, .22);
}
.cart-drawer.show { transform: translateX(0); }
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--blue-50);
}
.cart-head h3 { color: var(--blue-800); font-size: 1.1rem; }
.cart-close { font-size: 1.2rem; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; transition: .2s; }
.cart-close:hover { background: var(--blue-100); color: var(--blue-800); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty span { font-size: 3rem; display: block; margin-bottom: 10px; }
.cart-item {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
}
.cart-item-thumb {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    background: var(--blue-50);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .98rem; color: var(--navy); margin-bottom: 3px; }
.cart-item-info .ci-price { font-size: .88rem; color: var(--blue-600); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.qty-btn {
    width: 27px; height: 27px;
    border-radius: 8px;
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    color: var(--blue-600);
    font-weight: 700;
    display: grid; place-items: center;
    transition: .2s;
}
.qty-btn:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.qty-val { min-width: 26px; text-align: center; font-weight: 600; }
.cart-remove { color: #d9534f; font-size: .82rem; font-weight: 600; }
.cart-remove:hover { text-decoration: underline; }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 20px 20px; background: var(--blue-50); }
.cart-customer { margin-bottom: 14px; }
.cart-customer h4 { font-size: .95rem; color: var(--blue-800); margin-bottom: 8px; }
.cart-customer input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--blue-200);
    border-radius: 10px;
    font-size: .92rem;
    outline: none;
    transition: .2s;
    background: #fff;
    margin-bottom: 7px;
}
.cart-customer input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(74, 168, 224, .18); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1.05rem; }
.cart-total strong { font-size: 1.35rem; color: var(--blue-800); }
.cart-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- টোস্ট ---------- */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 80px);
    background: var(--navy);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: .3s;
    z-index: 200;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- অ্যাডমিন প্যানেল ---------- */
.admin-panel {
    display: none;
    min-height: 100vh;
    background: #f2f7fb;
    padding-bottom: 60px;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(135deg, var(--navy), #0b5080);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
}
.admin-brand { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-brand strong { color: #fff; }
.admin-sub { font-size: .8rem; opacity: .75; font-weight: 400; }
.admin-top-actions { display: flex; gap: 8px; }
.admin-top-actions .btn { color: var(--navy); background: #fff; border-color: #fff; }
.admin-tabs {
    position: sticky;
    top: 62px;
    z-index: 29;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(10, 60, 100, .06);
}
.admin-tab {
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--muted);
    transition: .2s;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}
.admin-tab:hover { background: var(--blue-100); color: var(--blue-800); }
.admin-tab.active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.tab-count {
    display: inline-block;
    background: var(--amber);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    padding: 1px 7px;
    margin-left: 4px;
}
.admin-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 20px;
}
.admin-sec-title { font-size: 1.35rem; color: var(--navy); margin-bottom: 18px; }
.admin-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-sec-head .admin-sec-title { margin-bottom: 14px; }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 4px;
}
.dash-card span { font-size: 1.6rem; }
.dash-card strong { font-size: 1.6rem; color: var(--navy); }
.dash-card small { color: var(--muted); }
.dash-blue { border-top: 4px solid var(--blue-500); }
.dash-green { border-top: 4px solid #16b58c; }
.dash-amber { border-top: 4px solid var(--amber); }
.dash-teal { border-top: 4px solid #12a594; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-product-list { display: grid; gap: 10px; }
.admin-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.adp-thumb {
    width: 54px; height: 54px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: var(--blue-50);
    overflow: hidden;
    flex-shrink: 0;
}
.adp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adp-info { flex: 1; min-width: 160px; }
.adp-info strong { display: block; color: var(--navy); }
.adp-info span { color: var(--muted); font-size: .87rem; }
.adp-actions { display: flex; gap: 8px; }
.adp-btn {
    padding: 9px 14px;
    border-radius: 9px;
    font-weight: 600;
    font-size: .85rem;
    color: #fff;
    transition: .2s;
    border: none;
}
.adp-btn.edit { background: var(--blue-500); }
.adp-btn.edit:hover { background: var(--blue-600); }
.adp-btn.del { background: #d9534f; }
.adp-btn.del:hover { background: #b03a37; }

.admin-list { max-height: 60vh; padding-right: 6px; }

.content-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.content-edit-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: .22s;
    display: grid;
    gap: 6px;
    font-size: .95rem;
}
.content-edit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.content-edit-card strong { color: var(--blue-800); font-size: 1.05rem; }
.content-edit-card span { color: var(--muted); font-size: .86rem; }

.settings-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    max-width: 460px;
}
.settings-card h3 { color: var(--blue-800); margin-bottom: 14px; }
.settings-card .row + .row { margin-top: 18px; }
.server-status {
    margin: 0 0 8px;
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
}
.server-last { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.server-note {
    margin: 14px 0 0;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.6;
    background: var(--blue-50);
    border-radius: 10px;
    padding: 10px 12px;
}
.server-note.warn { background: #fff6e6; color: #7a5b00; }
.server-note.warn code {
    background: #ffe9b8;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: .78rem;
}
.settings-card .btn + .btn { margin-top: 10px; }

@media (max-width: 720px) {
    .admin-tabs { top: 0; position: static; }
    .admin-tab { flex: 1; min-width: 120px; text-align: center; }
    .admin-topbar { position: static; }
}

/* ---------- লগইন মোডাল ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 43, 66, .55);
    backdrop-filter: blur(3px);
    display: grid;
    place-items: center;
    z-index: 150;
    padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
    position: relative;
    width: min(380px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 34px 30px 28px;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeUp .35s ease both;
    border-top: 5px solid var(--blue-500);
}
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--muted);
    font-size: 1rem;
    transition: .2s;
}
.modal-close:hover { background: var(--blue-100); color: var(--blue-800); }
.modal-icon { font-size: 2.6rem; margin-bottom: 8px; }
.modal-title { font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.modal-card .field { text-align: left; }
.modal-hint {
    margin-top: 12px;
    font-size: .8rem;
    color: var(--muted);
    background: var(--blue-50);
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
}

/* অর্ডার সফল মোডাল */
.modal-card.success-card {
    width: min(400px, 100%);
    text-align: center;
    padding: 32px 26px 24px;
}
.modal-card.success-card .modal-icon {
    font-size: 3.2rem;
    margin-bottom: 10px;
}
.success-msg {
    color: var(--muted);
    font-size: .97rem;
    line-height: 1.7;
    margin: 6px 0 2px;
}
.success-ref {
    display: inline-block;
    margin: 10px 0 2px;
    font-size: .9rem;
    color: var(--navy);
    background: var(--blue-50);
    padding: 5px 14px;
    border-radius: 999px;
}

/* পণ্য এডিট মোডাল */
.modal-card.edit-card {
    width: min(500px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    text-align: left;
    padding: 30px 28px 26px;
}
.modal-card.edit-card .modal-icon,
.modal-card.edit-card .modal-title,
.modal-card.edit-card .modal-sub { text-align: center; }
.edit-form { margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--blue-200);
    border-radius: 11px;
    font-size: .95rem;
    background: var(--blue-50);
    color: var(--ink);
    outline: none;
    transition: .2s;
}
.field select:focus { border-color: var(--blue-400); background: #fff; }
.field-gap { height: 6px; }
.about-admin-bar { max-width: 1160px; margin: 0 auto 26px; }
.image-preview {
    margin-top: 10px;
    border: 2px dashed var(--blue-200);
    border-radius: 12px;
    min-height: 96px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    font-size: .86rem;
    padding: 8px;
    background: var(--blue-50);
}
.image-preview img {
    max-height: 150px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.link-btn {
    margin-top: 9px;
    color: #d9534f;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: underline;
}
.link-btn:hover { color: #b03a37; }
.edit-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 16px;
}
@media (max-width: 480px) {
    .bismillah-bar { padding-left: 62px; padding-right: 62px; }
    .bismillah-arabic { font-size: .92rem; }
    .bismillah-bangla { font-size: .66rem; letter-spacing: .5px; }
    .shop-name { font-size: 1.25rem; }
    .hero { padding: 18px 14px 20px; gap: 18px; }
    .hero-badge { font-size: .75rem; padding: 5px 12px; margin-bottom: 10px; }
    .hero-title { font-size: 1.55rem; line-height: 1.28; margin-bottom: 10px; }
    .hero-text { font-size: .9rem; margin-bottom: 14px; }
    .hero-actions { margin-bottom: 16px; }
    .hero-actions .btn { flex: 1 1 100%; padding: 11px 16px; font-size: .95rem; }
    .hero-stats .stat strong { font-size: 1rem; }
    .hero-stats .stat span { font-size: .7rem; }
    .hero-art { min-height: 150px; }
    .hero-circle { width: 150px; height: 150px; }
    .hero-emoji { font-size: 4rem; }
    .features { gap: 10px; padding: 0 14px; margin-bottom: 8px; }
    .feature-card { padding: 14px 12px; }
    .feature-icon { font-size: 1.3rem; margin-bottom: 4px; }
    .feature-card h3 { font-size: .9rem; }
    .feature-card p { font-size: .78rem; line-height: 1.45; }
    .section-head { margin-bottom: 22px; }
    .section-tag { font-size: .72rem; padding: 4px 12px; margin-bottom: 8px; }
    .section-title { font-size: 1.35rem; }
    .section-sub { font-size: .85rem; }
    .products-section { padding: 34px 14px 24px; }
    .about-section { padding: 34px 14px; }
    .about-art { min-height: 150px; }
    .about-counters .counter strong { font-size: 1.5rem; }
    .about-counters .counter span { font-size: .72rem; }
    .contact-section { padding: 34px 14px; }
    .site-footer { padding: 28px 16px 0; }
    .footer-grid { gap: 20px; padding-bottom: 20px; }
    .footer-text { font-size: .82rem; }
    .footer-bottom { padding: 12px 16px; }
    .field-row { grid-template-columns: 1fr; }
    .edit-actions { grid-template-columns: 1fr; }
    .admin-tabs { overflow-x: auto; }
    .admin-tab { min-width: 96px; font-size: .8rem; padding: 11px 12px; }
    .admin-panel { padding: 0; }
    .admin-content { padding: 18px 14px 32px; }
    .admin-topbar { gap: 6px; padding: 12px 14px; }
    .admin-sec-title { font-size: 1.2rem; }
    .dashboard-cards { grid-template-columns: 1fr 1fr; }
    .product-card { width: 188px; }
    .btn { padding: 11px 16px; }
    .footer-pay { gap: 8px; }
}

/* ভিজিটর বার্তা মোডাল */
.modal-card.msg-card {
    width: min(560px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 22px;
    text-align: left;
}
.modal-card.msg-card .modal-icon,
.modal-card.msg-card .modal-title,
.modal-card.msg-card .modal-sub { text-align: center; }
.msg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 12px;
}
.btn.small { padding: 8px 16px; font-size: .85rem; }
.msg-list {
    overflow-y: auto;
    display: grid;
    gap: 12px;
    padding-right: 4px;
}
.msg-item {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: 14px;
    padding: 14px 16px;
}
.msg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.msg-top strong { color: var(--navy); font-size: 1rem; }
.msg-time { color: var(--muted); font-size: .8rem; }
.msg-phone { color: var(--blue-600); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.msg-text { color: var(--ink); font-size: .95rem; background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.msg-del {
    margin-top: 10px;
    color: #d9534f;
    font-weight: 600;
    font-size: .84rem;
}
.msg-del:hover { text-decoration: underline; }

/* অর্ডার তালিকা */
.order-addr { color: var(--blue-800); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.order-items {
    display: grid;
    gap: 4px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: .9rem;
}
.order-items span { color: var(--ink); }
.order-total-row { margin-top: 8px; }
.order-total-row strong { color: var(--blue-800); font-size: 1rem; }

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-art { order: -1; min-height: 250px; }
    .hero-circle { width: 240px; height: 240px; }
    .hero-emoji { font-size: 6.5rem; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-art { min-height: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 90px; }
    .bismillah-bar { padding-left: 96px; padding-right: 96px; }
    .bismillah-arabic { font-size: 1rem; }
    .login-btn.corner { right: 8px; padding: 5px 10px; font-size: .74rem; }
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 10px 14px;
        gap: 2px;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-inner { position: relative; flex-wrap: wrap; }
    .nav-search { flex: 1; }
    .nav-search input { width: 100%; }
    .header-inner { justify-content: center; text-align: center; }
    .brand { flex-direction: column; text-align: center; gap: 8px; }
    .shop-address { justify-content: center; }
    .call-text { display: none; }
    .header-call { padding: 10px 12px; }
    .features { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .sort-wrap { justify-content: space-between; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-card { width: 210px; }
    .product-thumb { height: 130px; font-size: 3rem; }
    .product-body { padding: 13px; }
    .about-counters { gap: 20px; }
}
