* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
body {
    background: #f3f7fc;
    padding: 1rem 0.75rem 2rem 0.75rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}
.app {
    max-width: 820px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e3ecf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}
.bar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.menu-icon {
    font-size: 1.3rem;
    color: #0b1b2f;
    cursor: pointer;
    padding: 0.2rem;
    background: none;
    border: none;
}
.menu-icon:hover {
    color: #2563eb;
}
.site-name {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    color: #0b1b2f;
    text-decoration: none;
}
.site-name span {
    font-weight: 300;
    color: #3e5e7e;
}
.bar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.icon-btn {
    font-size: 1.2rem;
    color: #1f3d5c;
    cursor: pointer;
    transition: 0.1s;
    background: none;
    border: none;
    padding: 0.2rem;
    position: relative;
    text-decoration: none;
}
.icon-btn:hover {
    color: #2563eb;
}
.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 40px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}
.back-link:hover {
    text-decoration: underline;
}
.footer-legal {
    font-size: 0.6rem;
    color: #3a5f7e;
    border-top: 1px solid #e5edf6;
    padding-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem 1rem;
}
.footer-legal a {
    color: #1f4a78;
    text-decoration: none;
    margin-right: 0.6rem;
}
.footer-legal a:hover {
    text-decoration: underline;
}
.alert {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.85rem;
}
.alert-danger {
    background: #fce8ec;
    color: #b33a4a;
    border: 1px solid #f5d0d6;
}
.alert-success {
    background: #e3f5eb;
    color: #1c6b4a;
    border: 1px solid #c8ecd8;
}
.side-menu-overlay {
    position: fixed; inset: 0; background: rgba(11, 27, 47, 0.4); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: 0.2s; z-index: 100;
}
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu {
    position: fixed; top: 0; left: 0; height: 100%; width: 280px; max-width: 82%;
    background: #ffffff; z-index: 101; transform: translateX(-100%); transition: 0.25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08); display: flex; flex-direction: column;
}
.side-menu.open { transform: translateX(0); }
.side-menu-header {
    display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #eef3fa;
}
.menu-close-btn { background: none; border: none; font-size: 1.1rem; color: #4d6a8f; cursor: pointer; padding: 0.3rem; }
.side-menu-links { display: flex; flex-direction: column; padding: 0.6rem; overflow-y: auto; }
.side-menu-links a, .side-menu-links .pwa-install-btn, .side-menu-links .pwa-installed-badge {
    display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0.9rem; border-radius: 14px;
    color: #1f2c40; text-decoration: none; font-size: 0.92rem; font-weight: 500;
}
.side-menu-links .pwa-install-btn { width: 100%; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.side-menu-links .pwa-installed-badge { color: #1c6b4a; }
.side-menu-links .pwa-installed-badge i { color: #1c6b4a !important; }
.side-menu-links a:hover, .side-menu-links .pwa-install-btn:hover { background: #f5f9ff; }
.side-menu-links a i, .side-menu-links .pwa-install-btn i { width: 20px; text-align: center; color: #4d6a8f; }
.side-menu-links a.danger { color: #b33a4a; }
.side-menu-links a.danger i { color: #b33a4a; }
@media (max-width: 550px) {
    .top-bar { padding: 0.5rem 1rem; }
}

/* Shared "no image uploaded" placeholder — same look as the admin panel's product list
   placeholder (assets/css/admin.css .thumb.no-image), used wherever a product image would
   normally render (cards, cart, checkout, product gallery) so a missing image
   shows the same plain grey icon everywhere instead of a broken-image icon, a stand-in
   stock photo, or a differently-colored placeholder depending on the page. */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4fb;
    color: var(--mut, #566a84);
    font-size: 1.4rem;
}

/* ===== Shared by the new design (safe on every page: all colours fall back to the old look) ===== */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes psBeamSpin { to { --a: 360deg; } }

.bar-right { gap: 0.55rem; }
/* BN | EN switch (top bar): the coloured knob slides to the current language (driven by html[lang]) */
.icon-btn.lang-toggle {
    position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 68px; height: 30px; padding: 3px;
    border-radius: 999px; border: 1px solid var(--line, #dce5ef); background: var(--card2, #f3f7fc); color: var(--mut, #546a85);
    font-family: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer;
}
.lang-toggle .lk {
    position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px; background: var(--acc, #2563eb);
    box-shadow: 0 3px 8px -3px color-mix(in srgb, var(--acc, #2563eb) 70%, transparent); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[lang="en"] .lang-toggle .lk { transform: translateX(100%); }
.lang-toggle .lo { position: relative; z-index: 1; text-align: center; transition: color 0.2s; }
html[lang="bn"] .lang-toggle .lo-bn, html[lang="en"] .lang-toggle .lo-en { color: var(--btn-fg, #fff); }
@media (prefers-reduced-motion: reduce) { .lang-toggle .lk, .lang-toggle .lo { transition: none; } }
/* smaller phones: slimmer switch + tighter icon gaps so the top bar never overflows */
@media (max-width: 420px) { .icon-btn.lang-toggle { width: 54px; height: 26px; padding: 2px; font-size: 0.64rem; } .lang-toggle .lk { top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 2); } .bar-right { gap: 0.4rem; } }
@media (max-width: 350px) { .icon-btn.lang-toggle { width: 48px; height: 24px; font-size: 0.6rem; } .bar-right { gap: 0.3rem; } }
.lang-toggle:active, .theme-toggle:active { transform: scale(0.9); }
/* dark/light switch — only shown on pages that use the new theme (html.ps-v2) */
.theme-toggle { display: none; }
html.ps-v2 .theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
