/* ============================================================
   জাওয়ালা ড্রপ — ড্রপশিপিং স্টোরফ্রন্ট স্টাইল
   জাওয়ালা ব্র্যান্ড: নেভি #0f3460 · টিল #0e8f7e · সোনালি #c9a227
   মোবাইল-ফার্স্ট (HANDOFF §12), glassmorphism (জাওয়ালা পরিবার)
   ============================================================ */
:root {
    --brand-deep: #0f3460;
    --brand: #0e8f7e;
    --brand-2: #12a58c;
    --gold: #c9a227;
    --ink: #1c2b3a;
    --muted: #64748b;
    --bg: #eef4f4;
    --card: #ffffff;
    --line: #e2e8ee;
    --danger: #c0392b;
    --ok: #178a50;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(15, 52, 96, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Hind Siliguri', 'Tiro Bangla', system-ui, sans-serif;
    font-size: 16px; line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Hind Siliguri', 'Tiro Bangla', serif; margin: 0 0 .4em; line-height: 1.35; }

/* ---------- টপ-স্ট্রিপ (ট্রাস্ট-ব্যাজ) ---------- */
.topstrip {
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand));
    color: #fff; font-size: 13px; padding: 6px 12px;
}

/* ---------- হেডার ---------- */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-container {
    max-width: 1180px; margin: 0 auto; padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
}
.logo-area { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo-text h1 { font-size: 19px; font-weight: 700; margin: 0; color: var(--brand-deep); }
.logo-text p { margin: 0; font-size: 11.5px; color: var(--muted); }
.search-form {
    flex: 1; display: flex; max-width: 430px; margin: 0 8px;
    background: #f1f5f8; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
}
.search-form input { flex: 1; border: 0; background: transparent; padding: 9px 16px; font: inherit; font-size: 14.5px; outline: none; }
.search-form button { border: 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; }
#nav-links { display: flex; align-items: center; gap: 4px; }
#nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14.5px; }
#nav-links a.active, #nav-links a:hover { background: rgba(14,143,126,.10); color: var(--brand); }
#nav-links .lang-select { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 6px; font: inherit; font-size: 13px; background: #fff; }
.cart-pill {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 12px; border-radius: 999px; color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow);
}
.cart-count {
    background: var(--gold); color: #14310e00; color: #fff; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center;
}
.menu-toggle { display: none; background: 0; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2.6px; background: var(--brand-deep); margin: 4.5px 0; border-radius: 3px; }
.sidebar-panel { display: none; }

/* ---------- ফ্ল্যাশ ---------- */
.flash { max-width: 1180px; margin: 12px auto -4px; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; }
.flash-ok { background: #e8f7ef; color: var(--ok); border: 1px solid #bfe8d0; }
.flash-err { background: #fdeeee; color: var(--danger); border: 1px solid #f5c8c4; }

main { max-width: 1180px; margin: 0 auto; padding: 18px 14px 40px; min-height: 55vh; }

/* ---------- বাটন ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; font: inherit; font-weight: 600;
    padding: 11px 22px; border-radius: 12px; transition: .15s;
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #d9b23a, #c9a227); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--brand-deep); border: 1.8px solid var(--brand-deep); }
.btn-danger { background: #fdeeee; color: var(--danger); border: 1px solid #f5c8c4; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- হিরো ---------- */
.hero {
    border-radius: 22px; overflow: hidden; position: relative;
    background: linear-gradient(120deg, var(--brand-deep) 0%, #14508c 45%, var(--brand) 100%);
    color: #fff; padding: 44px 30px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero .kicker { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 14px; font-size: 13px; margin-bottom: 12px; }
.hero h2 { font-size: clamp(24px, 4.6vw, 40px); font-weight: 700; margin-bottom: 8px; }
.hero p { font-size: clamp(14.5px, 2vw, 17px); opacity: .94; max-width: 560px; margin: 0 0 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-gold { font-size: 16px; padding: 13px 30px; }
.hero .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.6px solid rgba(255,255,255,.45); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-row span {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px; padding: 7px 13px; font-size: 13px;
}

/* ---------- সেকশন-শিরোনাম ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.sec-head h3 { font-size: 21px; margin: 0; color: var(--brand-deep); position: relative; padding-left: 14px; }
.sec-head h3::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 4px; background: linear-gradient(var(--gold), var(--brand)); }
.sec-head a { font-size: 13.5px; font-weight: 600; }

/* ---------- ক্যাটাগরি-কার্ড ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-card {
    background: var(--card); border-radius: var(--radius); padding: 18px 14px; text-align: center;
    border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,52,96,.05); transition: .15s; color: inherit;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-card .c-emoji { font-size: 30px; }
.cat-card .c-name { font-weight: 600; margin-top: 6px; color: var(--brand-deep); }
.cat-card .c-count { font-size: 12px; color: var(--muted); }

/* ---------- প্রোডাক্ট-কার্ড গ্রিড ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.p-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); transition: .15s; color: inherit; display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-thumb { position: relative; aspect-ratio: 1/1; background: #f4f7f9; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.b-off { background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 2px 8px; }
.b-cod { background: var(--brand); color: #fff; font-size: 11px; border-radius: 8px; padding: 2px 8px; }
.p-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-cat { font-size: 11.5px; color: var(--muted); }
.p-name { font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.p-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price { color: var(--brand); font-weight: 700; font-size: 16.5px; }
.p-compare { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }
.p-off { color: var(--danger); font-size: 12.5px; font-weight: 700; }
.p-card .btn { margin-top: auto; }

/* ---------- স্ট্যাটাস-ব্যাজ ---------- */
.st-badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 10px; }
.st-pending { background: #fff6e0; color: #a06b00; }
.st-confirmed { background: #e8f1fd; color: #1c5fb8; }
.st-packed { background: #f1e8fd; color: #6a37c9; }
.st-shipped { background: #e9f6fd; color: #0d7bab; }
.st-delivered { background: #e8f7ef; color: var(--ok); }
.st-cancelled { background: #fdeeee; color: var(--danger); }
.st-returned { background: #fdeeee; color: #b03a2e; }
.st-refunded { background: #eceef1; color: #55606c; }

/* ---------- প্রোডাক্ট ডিটেইলস ---------- */
.pd { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .pd { grid-template-columns: 1.05fr 1fr; } }
.pd-gallery { position: relative; }
.pd-main {
    border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line);
    aspect-ratio: 1/1; box-shadow: var(--shadow);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; }
.pd-thumbs img.sel { border-color: var(--brand); }
.pd-info h1 { font-size: clamp(20px, 3vw, 27px); color: var(--brand-deep); margin-bottom: 2px; }
.pd-en { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.pd-price { font-size: 27px; font-weight: 700; color: var(--brand); }
.pd-compare { text-decoration: line-through; color: var(--muted); }
.pd-off { color: var(--danger); font-weight: 700; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.pd-cta form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.6px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f4f7f9; width: 38px; height: 44px; font-size: 19px; cursor: pointer; color: var(--brand-deep); }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 600; outline: none; }
.pd-short { color: var(--ink); margin: 10px 0 0; }
.pd-desc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 22px; line-height: 1.9; }
.pd-desc h3 { color: var(--brand-deep); font-size: 18px; }
.delivery-note { background: #f0f9f6; border: 1px solid #cdeade; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: #14614f; margin: 10px 0; }

/* ---------- ফর্ম ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--brand-deep); }
.form-input, select.form-input, textarea.form-input {
    width: 100%; border: 1.6px solid var(--line); border-radius: 12px; padding: 11px 14px;
    font: inherit; background: #fff; outline: none; transition: .15s;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,143,126,.13); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 12px rgba(15,52,96,.05); }
.panel h2, .panel h3 { color: var(--brand-deep); }
.auth-wrap { max-width: 460px; margin: 26px auto; }
.auth-wrap .panel { padding: 28px; }

/* ---------- কার্ট টেবিল ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.cart-item img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.ci-name { font-weight: 600; color: var(--brand-deep); }
.ci-price { color: var(--brand); font-weight: 700; }
.ci-line { color: var(--muted); font-size: 13.5px; }
.cart-sums { margin-left: auto; max-width: 380px; width: 100%; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.sum-row.total { border-top: 2px solid var(--brand-deep); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 17px; color: var(--brand-deep); }
.empty-state { text-align: center; padding: 50px 16px; color: var(--muted); }
.empty-state .big { font-size: 52px; }

/* ---------- চেকআউট ---------- */
.co-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .co-grid { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.pay-opt { display: flex; align-items: flex-start; gap: 10px; border: 1.8px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.pay-opt.sel { border-color: var(--brand); background: #f0f9f6; }
.pay-opt input { margin-top: 4px; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }
.pay-trx { display: none; margin-top: 8px; }
.pay-trx.show { display: block; }

/* ---------- ট্র্যাকিং ---------- */
.track-steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.track-steps li { position: relative; padding: 0 0 22px 34px; }
.track-steps li::before {
    content: ""; position: absolute; left: 9px; top: 6px; bottom: -2px; width: 2.5px; background: var(--line);
}
.track-steps li:last-child::before { display: none; }
.track-steps li::after {
    content: ""; position: absolute; left: 2px; top: 4px; width: 15px; height: 15px; border-radius: 50%;
    background: #fff; border: 3px solid var(--line);
}
.track-steps li.done::after { background: var(--brand); border-color: var(--brand); }
.track-steps li.done::before { background: var(--brand); }
.track-steps li b { color: var(--brand-deep); }
.track-steps li span { display: block; font-size: 12.5px; color: var(--muted); }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.order-box .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 13.5px; }

/* ---------- অ্যাডমিন ---------- */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-tabs a { padding: 8px 15px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.adm-tabs a.sel { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
    background: linear-gradient(135deg, var(--brand-deep), #14508c); color: #fff;
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.stat.alt { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.stat.gold { background: linear-gradient(135deg, #d9b23a, #c9a227); }
.stat .n { font-size: 23px; font-weight: 700; }
.stat .l { font-size: 12.5px; opacity: .92; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13.8px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: #f4f7f9; color: var(--brand-deep); font-size: 12.8px; white-space: nowrap; }
.tbl tr:hover td { background: #fafcfd; }
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.tbl img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini-input { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 13px; width: 110px; }

/* ---------- ফুটার ---------- */
footer { background: var(--brand-deep); color: #cfe0ee; margin-top: 30px; padding: 34px 16px 22px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.f-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 17px; margin-bottom: 8px; }
.f-desc { font-size: 13.5px; opacity: .85; }
.f-cod { background: rgba(255,255,255,.1); display: inline-block; border-radius: 10px; padding: 6px 12px; font-size: 13px; }
footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 8px; }
footer .footer-grid a { display: block; color: #cfe0ee; font-size: 13.5px; padding: 3px 0; opacity: .9; }
footer .footer-grid a:hover { color: #fff; opacity: 1; }
.f-copy { text-align: center; font-size: 12.5px; opacity: .75; margin: 26px auto 0; max-width: 1180px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }

/* ---------- পেজিনেশন (শেয়ার্ড listPagination ক্লাসসহ) ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; color: var(--ink); }
.pagination .cur { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.pg-wrap { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; }
.pg-wrap .pg-count { font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.pg-btn { padding: 7px 13px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; color: var(--ink); cursor: pointer; font-family: inherit; }
.pg-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.pg-dots { color: var(--muted); }

/* ---------- রিভিউ ---------- */
.review-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 10px; }
.review-box .who { font-weight: 600; color: var(--brand-deep); font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- মোবাইল ---------- */
@media (max-width: 900px) {
    .search-form { display: none; }
    body.nav-open .search-form { display: flex; order: 5; width: 100%; max-width: none; margin: 4px 0 2px; }
    .header-container { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    #nav-links { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .cart-pill { margin-left: auto; }
    body.nav-open #nav-links {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 10px 14px 14px; box-shadow: var(--shadow);
    }
    body.nav-open #nav-links a { padding: 11px 12px; font-size: 15.5px; }
    .hero { padding: 32px 20px; }
    .cart-item { grid-template-columns: 64px 1fr; }
    .cart-item img { width: 64px; height: 64px; }
    .ci-right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}
