/* DxM Mart — Part 1 design system
   রঙ শুধু --brand-sky ও --brand-accent ভেরিয়েবলে থাকে; Admin সেটিংস থেকে বদলানো যায়। */

:root {
    --brand-sky: #BBF7D0;
    --brand-accent: #15803D;
    --brand-dark: #14532D;
    --accent-hover: #166534;
    --brand-soft: var(--brand-soft);
    --brand-accent-rgb: 21, 128, 61;
    --brand-sky-rgb: 187, 247, 208;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #1F2937;
    --muted: #64748B;
    --border: #E5E7EB;
}

.app-body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
}

/* ── Buttons: গাঢ় আকাশি উপর সাদা লেখা (contrast পাঠযোগ্য) ── */
.btn-brand {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-brand:hover,
.btn-brand:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--brand-accent-rgb), .25);
}
.btn-outline-brand {
    color: var(--brand-accent);
    border: 1.5px solid var(--brand-accent);
    border-radius: 10px;
    font-weight: 600;
    background: transparent;
}
.btn-outline-brand:hover {
    background: var(--brand-accent);
    color: #fff;
}

.text-brand { color: var(--brand-accent) !important; }
.text-brand-dark { color: var(--brand-dark) !important; }
.bg-brand-soft { background: var(--brand-sky) !important; }

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 .2rem rgba(var(--brand-accent-rgb), .15);
}
.form-control { border-radius: 10px; }

/* ── Header ───────────────────────────────────────────────── */
.announcement-bar {
    background: var(--brand-dark);
    color: #E2E8F0;
}
.site-header .nav-link {
    color: var(--brand-dark);
    font-weight: 500;
    border-radius: 8px;
}
.site-header .nav-link:hover { color: var(--brand-accent); }
.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-sky);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}
.brand-text {
    color: var(--brand-dark);
    font-size: 1.15rem;
}
.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-sky);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── Cards & hero ─────────────────────────────────────────── */
.card-soft {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.hero-block {
    background: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-soft) 100%);
    border-radius: 20px;
}
.hero-title {
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
}
.hero-illustration {
    font-size: 9rem;
    color: var(--brand-accent);
    opacity: .85;
    line-height: 1;
}
.banner-img { max-height: 380px; object-fit: cover; }
.banner-fallback {
    min-height: 220px;
    background: linear-gradient(120deg, var(--brand-sky), #fff);
}

/* ── Category card ────────────────────────────────────────── */
.cat-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), .12);
    border-color: var(--brand-sky);
}
.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-sky);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    background: var(--card);
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
}
.empty-state i {
    font-size: 2.75rem;
    color: var(--brand-accent);
    opacity: .75;
}

/* ── Account sidebar ──────────────────────────────────────── */
.account-sidebar .nav-link {
    color: var(--brand-dark);
    border-radius: 10px;
    padding: .6rem .85rem;
    font-weight: 500;
}
.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
    background: var(--brand-sky);
    color: var(--brand-dark);
}
.welcome-card {
    background: linear-gradient(120deg, var(--brand-sky), #fff);
}

/* ── Stats ────────────────────────────────────────────────── */
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-sky);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ── Admin ────────────────────────────────────────────────── */
.admin-body { background: #F1F5F9; }
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--brand-dark);
    color: #CBD5E1;
    position: sticky;
    top: 0;
}
.admin-sidebar .nav-link {
    color: #CBD5E1;
    border-radius: 10px;
    padding: .6rem .9rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(var(--brand-sky-rgb), .15);
    color: #fff;
}
.admin-main { min-width: 0; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-accent);
    flex-shrink: 0;
}

.table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 600;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}
.footer-link:hover { color: var(--brand-accent); }
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

@media (max-width: 991px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }
}

/* ═════════ Navigation (reference design অনুসারে) ═════════ */
.site-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    z-index: 1020;
}
.header-link {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .92rem;
    padding: .45rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.header-link:hover,
.header-link.is-active {
    background: var(--brand-sky);
    color: var(--brand-dark);
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
}
.avatar-link { text-decoration: none; }
.avatar-link:hover .avatar-circle { box-shadow: 0 0 0 3px var(--brand-sky); }

/* ── সাইট বার (ডেস্কটপ sidebar + মোবাইল off-canvas) ── */
.sidebar-col {
    background: #fff;
    border-right: 1px solid var(--border);
}
.sticky-side {
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin: .5rem .75rem .35rem;
}
.side-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .6rem .8rem;
    border-radius: 12px;
    color: var(--brand-dark);
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
    background: none;
    border: 0;
    text-align: left;
    transition: background .2s, color .2s;
}
.side-link i {
    color: var(--brand-accent);
    width: 1.2rem;
    text-align: center;
}
.side-link:hover { background: var(--brand-sky); }
.side-link.is-active {
    background: var(--brand-sky);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--brand-accent);
}
.side-logout { color: #DC2626; }
.side-logout i { color: #DC2626; }

.mobile-menu { width: 290px; }

/* ── মোবাইল নিচের tab bar ── */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: .25rem;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
}
.bottom-nav-item i { font-size: 1.25rem; }
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--brand-accent); }
@media (max-width: 991.98px) {
    .app-body { padding-bottom: 74px; }
}

/* ── জনপ্রিয় ক্যাটাগরি স্লাইডার ── */
.cat-slider-wrap { position: relative; }
.cat-track {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: .5rem .25rem 1rem;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-bubble {
    flex: 0 0 auto;
    width: 96px;
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
    color: var(--brand-dark);
}
.cat-bubble-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto .5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-sky), #fff);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-accent);
    box-shadow: 0 6px 16px rgba(var(--brand-accent-rgb), .12);
    transition: transform .2s, box-shadow .2s;
}
.cat-bubble:hover .cat-bubble-icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(var(--brand-accent-rgb), .2);
}
.cat-bubble-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
}
.cat-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    display: none;
    align-items: center;
    justify-content: center;
}
.cat-nav:hover {
    background: var(--brand-accent);
    color: #fff;
}
.cat-prev { left: -8px; }
.cat-next { right: -8px; }
@media (min-width: 768px) {
    .cat-nav { display: flex; }
}


/* ═════════ থিম কার্ড (Admin) ═════════ */
.theme-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .7rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
}
.theme-card:hover { border-color: var(--brand-sky); }
.theme-card.is-selected {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .15);
}
.theme-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, .08);
}
.theme-swatch-custom { background-size: cover; }

/* ═════════ ভাষা পরিবর্তন ═════════ */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.lang-switch:hover {
    background: var(--brand-sky);
    color: var(--brand-dark);
}
.lang-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 .4rem;
}
.lang-option {
    text-align: center;
    padding: .45rem .3rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--brand-dark);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.lang-option.is-active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

/* ═════════ Phase A: পণ্য কার্ড ═════════ */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(var(--brand-accent-rgb), .14);
    border-color: var(--brand-sky);
}
.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F1F5F9;
    overflow: hidden;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--muted);
    background: linear-gradient(145deg, var(--brand-soft), #fff);
}
.product-placeholder-lg { min-height: 360px; border-radius: 16px; }
.badge-off,
.badge-new,
.badge-out {
    position: absolute;
    top: 10px;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
}
.badge-off { left: 10px; background: var(--brand-accent); }
.badge-new { left: 10px; top: 42px; background: #0EA5E9; }
.badge-out { right: 10px; bottom: 10px; top: auto; background: #475569; }
.badge-off-inline {
    background: var(--brand-accent);
    color: #fff;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .8rem;
    font-weight: 700;
}
.product-name {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--brand-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    margin-bottom: .4rem;
}
.price-now { font-weight: 800; font-size: 1.05rem; color: var(--brand-accent); }
.price-big { font-weight: 800; font-size: 1.8rem; color: var(--brand-accent); }
.price-old { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand-dark);
}
.stock-pill {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}
.stock-pill.in { background: #DCFCE7; color: #166534; }
.stock-pill.out { background: #F1F5F9; color: #475569; }

/* ── পণ্যের বিস্তারিত: gallery ── */
.gallery-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.gallery-main img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 4px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--brand-soft);
    transition: border-color .2s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.gallery-thumb.is-active,
.gallery-thumb:hover { border-color: var(--brand-accent); }

/* ── ভ্যারিয়েন্ট pill ── */
.variant-pill {
    padding: .5rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .88rem;
    transition: all .15s;
}
.variant-pill:hover:not(:disabled) { border-color: var(--brand-accent); }
.variant-pill.is-selected {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}
.variant-pill:disabled {
    opacity: .45;
    text-decoration: line-through;
    cursor: not-allowed;
}

.btn-whatsapp {
    background: #128C7E;
    border-color: #128C7E;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
}
.btn-whatsapp:hover { background: #0E6E63; border-color: #0E6E63; color: #fff; }

.product-description { line-height: 1.8; color: var(--text); }

/* ── Tabs (হোমপেজের পণ্য) ── */
.product-tabs {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 999px;
}
.product-tab {
    padding: .45rem 1.1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.product-tab.is-active {
    background: var(--brand-accent);
    color: #fff;
}

/* ── সার্চ ── */
.header-search {
    position: relative;
    align-items: center;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}
.header-search i {
    position: absolute;
    left: 14px;
    color: var(--muted);
}
.header-search input {
    width: 100%;
    padding: .55rem 1rem .55rem 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #F8FAFC;
    font-size: .92rem;
}
.header-search input:focus {
    outline: none;
    border-color: var(--brand-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .15);
}
.header-search .btn { position: absolute; right: 4px; border-radius: 999px; }
.search-page-form {
    position: relative;
    max-width: 640px;
}
.search-page-form i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}
.search-page-form input {
    width: 100%;
    padding: .75rem 7rem .75rem 2.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 1rem;
}
.search-page-form input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .15);
}
.search-page-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 999px;
}

/* ── ক্যাটাগরি slider: ছবি ── */
.cat-bubble-icon { overflow: hidden; }
.cat-bubble-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── ছবি পিকার (সব জায়গায় একই) ── */
.media-picker {
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    padding: 12px;
    background: #FAFCFF;
}
.media-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-bottom: 8px;
}
.media-selected:empty { display: none; }
.media-chip {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--brand-accent);
    overflow: hidden;
    background: #fff;
}
.media-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(15, 23, 42, .75);
    color: #fff;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}
.media-thumb {
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, transform .15s;
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-thumb:hover { transform: scale(1.04); }
.media-thumb.is-picked {
    border-color: var(--brand-accent);
    opacity: .55;
}

.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.admin-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--muted);
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.media-grid-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    background: #fff;
}
.media-grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

/* ═════════ Phase B: কার্ট, checkout, অর্ডার ═════════ */
.icon-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background .2s;
}
.icon-link:hover { background: var(--brand-sky); color: var(--brand-dark); }
.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.icon-link .nav-badge { top: -6px; right: -6px; }
.bottom-nav-item .nav-icon-wrap i { font-size: 1.25rem; }

.product-card-wrap { position: relative; height: 100%; }
.wish-btn-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 3; }
.wish-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform .15s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.is-on { color: #E11D48; }
.wish-btn-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wish-btn-lg.is-on { color: #E11D48; border-color: #FDA4AF; }

.min-w-0 { min-width: 0; }

.qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.qty-box button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #F8FAFC;
    font-size: 1.1rem;
    color: var(--brand-dark);
}
.qty-box button:disabled { opacity: .4; }
.qty-box input {
    width: 56px;
    height: 40px;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: #fff;
}
.qty-box span {
    min-width: 44px;
    text-align: center;
    font-weight: 700;
}
.qty-box-sm button { width: 32px; height: 32px; }
.qty-box-sm span { line-height: 32px; min-width: 36px; }

.cart-line {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-invalid-line { opacity: .75; }
.cart-line-img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-img .product-placeholder { font-size: 1.4rem; }
.cart-name {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .95rem;
    display: block;
}
.cart-line-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.qty-form { margin: 0; }

.summary-card { background: #fff; }
.sticky-summary { position: sticky; top: 90px; }

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    margin: 0;
    transition: border-color .15s, box-shadow .15s;
}
.option-card:hover { border-color: var(--brand-sky); }
.option-card.is-selected {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .12);
}
.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    flex-shrink: 0;
    position: relative;
}
.option-card.is-selected .option-radio { border-color: var(--brand-accent); }
.option-card.is-selected .option-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand-accent);
}
.manual-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px dashed var(--brand-sky);
}
.pay-number {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}
.pay-number span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pay-number strong { color: var(--brand-dark); letter-spacing: .03em; }

.success-icon {
    font-size: 4rem;
    color: var(--brand-accent);
    line-height: 1;
}
.order-number-box {
    background: var(--brand-soft);
    border-radius: 14px;
    padding: 14px;
}

.status-pill {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
    white-space: nowrap;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #E0E7FF; color: #3730A3; }
.status-shipped { background: #CFFAFE; color: #155E75; }
.status-delivered { background: #DCFCE7; color: #166534; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.order-row:hover { background: var(--brand-soft); border-radius: 12px; }
.order-row:last-child { border-bottom: 0; }

.btn-brand:disabled,
.btn-outline-brand:disabled { opacity: .5; }

/* ═════════ Phase C: flash deal, কুপন, trust strip, footer, chat ═════════ */
.badge-flash {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: linear-gradient(90deg, #F97316, #EF4444);
    color: #fff;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}
.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .9rem;
    color: var(--brand-dark);
}
.cd-time {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #fff;
    background: var(--brand-accent);
    border-radius: 8px;
    padding: .2rem .55rem;
    letter-spacing: .04em;
}
.coupon-box {
    background: var(--brand-soft);
    border: 1px dashed var(--brand-sky);
    border-radius: 12px;
    padding: 10px 12px;
}
.trust-strip { background: transparent; }
.trust-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    height: 100%;
}
.trust-card i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.trust-card strong { display: block; font-size: .88rem; color: var(--brand-dark); }
.trust-card span { font-size: .75rem; color: var(--muted); }
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.social-btn:hover { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.chat-fab {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--accent-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), .35);
    text-decoration: none;
    animation: chatPulse 2.4s ease-in-out infinite;
}
.chat-fab:hover { color: #fff; transform: scale(1.06); }
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), .35); }
    50% { box-shadow: 0 10px 34px rgba(var(--brand-accent-rgb), .55); }
}
@media (max-width: 991.98px) {
    .chat-fab { bottom: 86px; right: 14px; }
}

/* ═════════ Phase D: রিভিউ ও রেটিং ═════════ */
.stars { color: #F59E0B; font-size: .95rem; letter-spacing: 1px; }
.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: 0; }
.review-admin-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.star-picker { flex-direction: row-reverse; justify-content: flex-end; }
.star-pick {
    font-size: 1.6rem;
    color: #CBD5E1;
    cursor: pointer;
    transition: color .15s;
}
.star-pick:hover,
.star-pick:hover ~ .star-pick,
input[name="rating"]:checked ~ .star-pick { color: #F59E0B; }

/* ═════════ Phase D2: support টিকেট ═════════ */
.support-thread { display: flex; flex-direction: column; gap: 12px; }
.support-msg {
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 88%;
    border: 1px solid var(--border);
}
.support-msg.from-customer { background: #fff; align-self: flex-start; }
.support-msg.from-admin { background: var(--brand-soft); align-self: flex-end; border-color: var(--brand-sky); }

/* ═════════ Header আইকন (সব একই আকার ও সারি) ═════════ */
.site-header .header-row { min-height: 60px; }
.site-header .icon-btn,
.site-header .avatar-link,
.site-header .lang-switch {
    height: 40px;
}
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--brand-sky); color: var(--brand-dark); }
.brand-logo { height: 38px; width: auto; }
.avatar-link .avatar-circle { width: 40px; height: 40px; }
.header-search { position: relative; max-width: 620px; width: 100%; margin: 0 auto; }
.header-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-search input { width: 100%; padding: .6rem 1rem .6rem 2.4rem; border-radius: 999px; border: 1px solid var(--border); background: #F8FAFC; }
.header-search input:focus { outline: none; border-color: var(--brand-accent); background: #fff; box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .15); }

/* ═════════ সরু সাইডবার ═════════ */
.side-link { padding: .5rem .6rem; font-size: .86rem; gap: .55rem; }
.side-link i { width: 1rem; font-size: .95rem; }
.side-label { margin: .4rem .5rem .3rem; }
.mobile-menu { width: 260px; }

/* ═════════ প্রোফাইল ═════════ */
.profile-hero {
    background: linear-gradient(135deg, var(--brand-accent), var(--accent-hover));
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(var(--brand-accent-rgb), .25);
}
.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-stat {
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-stat:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.profile-stat span { font-weight: 800; font-size: 1.1rem; }
.profile-stat small { opacity: .85; font-size: .75rem; }
.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
    transition: background .2s, border-color .2s;
}
.quick-link i:first-child { color: var(--brand-accent); font-size: 1.05rem; }
.quick-link:hover { background: var(--brand-soft); border-color: var(--brand-sky); color: var(--brand-dark); }

/* ═════════ ওয়ালেট ═════════ */
.wallet-card {
    background: linear-gradient(135deg, #0F172A, var(--brand-accent));
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .2);
}
.wallet-amount { font-size: 2rem; font-weight: 800; margin: 4px 0; }

/* ═════════ ভূমিকা ও অনুমতি ═════════ */
.perm-group { border: 1px solid var(--border); border-radius: 14px; padding: 14px; height: 100%; background: #fff; }

/* ═════════ Phase G: হোম ট্যাব বাটন ═════════ */
.product-tabs { display: flex; flex-wrap: wrap; gap: 8px; background: transparent; border: 0; padding: 0; }
.product-tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.15rem; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--border);
    color: var(--brand-dark); font-weight: 600; font-size: .92rem;
    text-decoration: none; box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
    transition: all .2s;
}
.product-tab i { font-size: 1rem; color: var(--brand-accent); }
.product-tab:hover { border-color: var(--brand-sky); transform: translateY(-1px); color: var(--brand-dark); }
.product-tab.is-active {
    background: linear-gradient(135deg, var(--brand-accent), var(--accent-hover));
    border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(var(--brand-accent-rgb), .3);
}
.product-tab.is-active i { color: #fff; }

/* ═════════ রিভিউ মিডিয়া ═════════ */
.review-media-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.review-media-item { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #000; }

/* ═════════ ক্রেতা sidebar: ভাঁজ-করা গ্রুপ ═════════ */
.side-group-btn {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .55rem .7rem; margin-top: 6px; border-radius: 12px;
    background: none; border: 0; text-align: left;
    color: var(--brand-dark); font-weight: 700; font-size: .86rem;
}
.side-group-btn i:first-child { color: var(--brand-accent); }
.side-group-btn:hover { background: var(--brand-soft); }
.side-group-btn .chev { margin-left: auto; font-size: .75rem; transition: transform .2s; }
.side-group-btn:not(.collapsed) .chev { transform: rotate(180deg); }
.side-link.sub { padding: .4rem .6rem .4rem 2rem; font-weight: 500; font-size: .84rem; }
.side-link.sub span { white-space: normal; }

/* ═════════ Admin: dropdown গ্রুপ sidebar ═════════ */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px; flex-shrink: 0; background: var(--brand-dark); color: #CBD5E1;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px;
    display: flex; flex-direction: column;
}
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-link {
    display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem;
    border-radius: 10px; color: #CBD5E1; text-decoration: none; font-size: .86rem;
}
.admin-link i { width: 1.1rem; text-align: center; }
.admin-link.sub { padding-left: 2.2rem; font-size: .82rem; }
.admin-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-link.is-active { background: rgba(187,247,208,.18); color: #fff; font-weight: 700; }
.admin-group-btn {
    display: flex; align-items: center; gap: .6rem; width: 100%; margin-top: 6px;
    padding: .5rem .7rem; border-radius: 10px; background: none; border: 0;
    color: #fff; font-weight: 700; font-size: .8rem; text-align: left; letter-spacing: .02em;
}
.admin-group-btn:hover { background: rgba(255,255,255,.06); }
.admin-group-btn .chev { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.admin-group-btn:not(.collapsed) .chev { transform: rotate(180deg); }
.admin-logout { margin-top: auto; padding-top: 12px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
    background: #fff; border-bottom: 1px solid var(--border); padding: 10px 16px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
@media (max-width: 991.98px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: relative; width: 100%; height: auto; max-height: 75vh; }
}

/* ═════════ Phase H: ক্রেতার sidebar সরল ও সরু ═════════ */
.mobile-menu { width: min(270px, 80vw) !important; max-width: 80vw !important; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group-btn {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .55rem .7rem; margin: 4px 0 0; border: 0; border-radius: 10px;
    background: transparent; box-shadow: none; text-align: left;
    font-size: .9rem; font-weight: 600; color: var(--brand-dark);
}
.side-group-btn:hover, .side-group-btn:focus { background: var(--brand-soft); box-shadow: none; }
.side-group-btn span { flex: 1; }
.side-group-btn > i:first-child { color: var(--brand-accent); font-size: 1rem; width: 1.2rem; text-align: center; }
.side-group-btn .chev { font-size: .75rem; transition: transform .2s; }
.side-group-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.side-link.sub { padding: .4rem .6rem .4rem 2.1rem; font-size: .86rem; font-weight: 500; }
.side-link.sub span { white-space: normal; }
.side-nav .collapse:not(.show) { display: none; }
