/* =====================================================================
   Fah Taj Labs — "Water Drop" light theme
   Palette: airy aqua/white surfaces, water-blue + teal, BD green accent.
   Glassy cards, soft blue shadows, floating water-bubble background.
   Mobile-first; enhanced with CSS Grid on larger screens.
   ===================================================================== */

:root {
    /* Bangladesh-optimised palette: flag green primary, red accent,
       professional blue secondary — on a light, airy surface. */
    --green:       #00875a;   /* Bangladesh green — PRIMARY brand */
    --green-deep:  #006a4e;   /* flag green (depth) */
    --aqua:        #0aa17f;   /* green-teal (for green gradients) */
    --tech-blue:   #1565c0;   /* professional blue — secondary / trust */
    --red:         #e63946;   /* flag-inspired red — accent */
    --ink:         #0d2a3a;   /* dark navy text on light */
    --ink-soft:    #23485a;
    --muted:       #4d6b7c;   /* muted grey (readable) */
    --surface:     #ffffff;   /* cards */
    --card-bg:     #ffffff;
    --card-border: rgba(0, 106, 78, 0.13);
    --bg-1:        #eaf7f0;   /* light mint */
    --bg-2:        #f5fcf9;   /* near white with green tint */
    --navy:        #0d2a3a;   /* dark accent (used sparingly) */
    --navy-2:      #ffffff;   /* mobile-nav surface */
    --shadow:      0 10px 30px rgba(0, 106, 78, 0.10);
    --shadow-hi:   0 18px 44px rgba(0, 106, 78, 0.17);
    --radius:      16px;
    --maxw:        1140px;
    --touch:       44px;      /* min touch target */
}

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

body {
    font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 60%, #ffffff 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body.lang-bn { font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif; }

/* --- Floating water-bubble background + soft readability veil --- */
#code-bg { position: fixed; inset: 0; z-index: -2; display: block; }
.bg-overlay {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 22%, rgba(255,255,255,0.55), rgba(246,251,255,0.15) 60%, transparent 100%);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- Top notice ticker --- */
.notice-ticker {
    position: relative; z-index: 30; overflow: hidden; white-space: nowrap;
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    color: #fff; font-weight: 600; font-size: .92rem;
}
.ticker-track { display: inline-flex; gap: 60px; padding: 8px 0; animation: tickerScroll 26s linear infinite; }
.ticker-item { padding-left: 60px; }
.ticker-item a { color: #fff; text-decoration: underline; }
.notice-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; padding-left: 20px; }
}

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 106, 78, 0.06);
}
/* subtle Bangladesh flag accent (green → red) */
.site-header::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-deep) 0%, var(--green) 45%, var(--red) 100%);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }

/* --- Typographic wordmark logo (software-dev feel) --- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark {
    font-family: 'JetBrains Mono', 'Consolas', 'SFMono-Regular', monospace;
    color: var(--aqua); font-weight: 700; font-size: 1.25rem; letter-spacing: -1px; line-height: 1;
}
.logo-text {
    font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700;
    font-size: 1.2rem; letter-spacing: -0.4px; color: var(--ink);
    display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; line-height: 1;
}
.logo-accent { color: var(--green); font-weight: 700; }
.brand:hover .logo-mark { color: var(--green); transition: color .2s ease; }
body.lang-bn .logo-text { font-family: 'Hind Siliguri', system-ui, sans-serif; letter-spacing: 0; }

.main-nav { display: none; margin-left: auto; gap: 22px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-toggle {
    color: var(--ink); text-decoration: none; font-weight: 600;
    border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 10px; background: #fff;
}
.nav-toggle {
    background: none; border: none; color: var(--ink); font-size: 1.4rem;
    cursor: pointer; min-width: var(--touch); min-height: var(--touch);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--touch); padding: 10px 18px; border-radius: 12px;
    font-weight: 600; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--aqua)); color: #fff; box-shadow: 0 8px 20px rgba(0,135,90,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(0,135,90,.36); }
.btn-accent  { background: linear-gradient(135deg, var(--tech-blue), #3f9be6); color: #fff; box-shadow: 0 8px 20px rgba(21,101,192,.26); }
.btn-ghost   { background: #fff; color: var(--ink); border-color: var(--card-border); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--green); }

/* --- Hero --- */
.hero { padding: 84px 0 54px; text-align: center; position: relative; }
.hero::before {
    content: ""; position: absolute; inset: -40px 0 auto 0; height: 320px; z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, rgba(22,181,196,0.18), transparent 45%),
        radial-gradient(circle at 72% 25%, rgba(0,135,90,0.16), transparent 45%);
    filter: blur(8px);
}
.hero-title { font-size: clamp(1.9rem, 5vw, 3.1rem); margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); }
.hero-subtitle { color: var(--ink-soft); font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 720px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Trust bar --- */
.trust-bar { padding: 6px 0 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-item {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
    padding: 14px 12px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
    font-size: .95rem; text-align: center;
}
.trust-ico { font-size: 1.3rem; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- How to buy steps --- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
.step-card { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green), var(--aqua)); color: #fff; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(0,135,90,.35);
}
.step-ico { font-size: 2.2rem; display: block; margin: 10px 0 8px; }
.step-card h3 { margin: 0 0 8px; color: var(--ink); }
.step-card p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Product trust list --- */
.product-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-trust li { color: var(--ink-soft); font-size: .9rem; font-weight: 500; }

/* --- Sections & cards --- */
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; color: var(--ink); letter-spacing: -0.4px; }
.solutions, .testimonials { padding: 48px 0; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(22,181,196,.4); box-shadow: var(--shadow-hi); }
.card-icon {
    width: 60px; height: 60px; border-radius: 18px;
    display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
    background: linear-gradient(135deg, var(--green), var(--aqua)); color: #fff;
    margin-bottom: 16px; box-shadow: 0 10px 24px rgba(0,135,90,.28);
}
/* Animated flowing solution icon */
.sol-icon { width: 34px; height: 34px; animation: solFloat 4.5s ease-in-out infinite; }
.sol-icon .flow {
    stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 6 4; animation: solFlow 3.4s linear infinite;
}
.solution-card:hover .card-icon { transform: scale(1.06); transition: transform .2s ease; }
.solution-card:hover .sol-icon .flow { animation-duration: 1.6s; }
@keyframes solFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes solFlow  { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) {
    .sol-icon, .sol-icon .flow { animation: none; }
    .sol-icon .flow { stroke-dasharray: none; }
}
.card-title { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.card-text  { margin: 0; color: var(--muted); }

/* --- Testimonials grid (prominent glassy cards) --- */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card {
    background: linear-gradient(160deg, #ffffff, #eef7ff);
    border: 1px solid var(--card-border); border-radius: 18px; padding: 26px 24px;
    position: relative; overflow: hidden; box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.testi-card:hover { transform: translateY(-5px); border-color: rgba(22,181,196,.45); box-shadow: var(--shadow-hi); }
.testi-icon {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    color: #fff; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--green), var(--aqua));
    box-shadow: 0 8px 20px rgba(0,135,90,.24);
}
.testi-stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 12px; }
.testi-quote { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 20px; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-avatar, .testi-avatar-ph {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none;
    border: 2px solid var(--aqua);
}
.testi-avatar-ph {
    display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: #fff;
    background: linear-gradient(135deg, var(--green), var(--aqua));
}
.testi-name { font-weight: 700; color: var(--ink); }
.testi-role { display: block; color: var(--muted); font-size: .88rem; }
.testi-logo { max-height: 26px; max-width: 90px; margin-left: auto; opacity: .8; object-fit: contain; }
@media (min-width: 720px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.card-link { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 600; }
.solution-card { text-decoration: none; color: inherit; display: block; }

.section { padding: 60px 0; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.section-cta { text-align: center; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.container-narrow { max-width: 760px; }

/* --- Flash messages --- */
.flash { padding: 12px 0; font-weight: 600; }
.flash-success { background: rgba(0, 168, 103, 0.12); color: #067a4e; border-bottom: 1px solid rgba(0,168,103,.35); }
.flash-error   { background: rgba(229, 72, 77, 0.10);  color: #c0322f; border-bottom: 1px solid rgba(229,72,77,.35); }

/* --- Stars --- */
.stars { color: #f5a623; letter-spacing: 2px; }

/* --- Post cards --- */
.post-card { text-decoration: none; color: inherit; display: block; }
.post-date { color: var(--muted); font-size: .85rem; }

/* --- CTA band --- */
.cta-band {
    text-align: center; padding: 60px 0; margin-top: 10px;
    background: linear-gradient(135deg, rgba(0,135,90,.10), rgba(22,181,196,.14));
    border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; color: var(--ink); }
.cta-band p { color: var(--ink-soft); margin: 0 0 20px; }

/* --- Page hero (inner pages) --- */
.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; color: var(--ink); }

/* --- Article --- */
.back-link { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: var(--green); }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 8px; color: var(--ink); }
.article-meta { color: var(--muted); margin: 0 0 20px; }
.article-lead { font-size: 1.15rem; color: var(--ink-soft); }
.article-body { line-height: 1.8; color: var(--ink-soft); }
.article-body p { margin: 0 0 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body h2, .article-body h3 { margin: 28px 0 12px; color: var(--ink); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.page-info { color: var(--muted); }

/* --- Feature list --- */
.feature-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-info a { color: var(--green); }
.contact-form { padding: 24px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field label { margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    background: #f4f9fe; border: 1px solid var(--card-border);
    border-radius: 12px; padding: 12px; color: var(--ink); font: inherit; min-height: var(--touch);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--aqua); border-color: transparent; background: #fff; }
@media (min-width: 760px) {
    .contact-grid { grid-template-columns: 1fr 1.4fr; }
    .field-row { grid-template-columns: 1fr 1fr; }
}

.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline-flex; } }

/* --- Auth --- */
.auth-card { max-width: 520px; margin: 0 auto; padding: 30px; }
.auth-title { margin: 0 0 18px; font-size: 1.6rem; color: var(--ink); }
.btn-block { width: 100%; margin-top: 8px; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; }
.auth-alt { margin-top: 18px; color: var(--muted); }
.auth-alt a, .auth-links a { color: var(--green); text-decoration: none; }
.auth-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; color: var(--muted); }
.resend-form { margin-top: 10px; }

/* --- Notices --- */
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; }
.notice-warn { background: rgba(245, 166, 35, 0.12); border: 1px solid rgba(245,166,35,.4); color: #9a6b06; }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }

/* --- Dashboard --- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { margin: 0 0 4px; color: var(--ink); }
.dash-grid { margin-top: 6px; }
.dash-tile { text-decoration: none; color: inherit; display: block; }
.dash-tile h3 { margin: 0 0 6px; color: var(--ink); }
.dash-count { font-size: 2rem; font-weight: 700; color: var(--green); display: block; line-height: 1; margin-bottom: 6px; }

/* --- Orders & downloads --- */
.order-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: inherit; padding: 16px; }
.order-row .order-date { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.order-right { display: flex; align-items: center; gap: 12px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--card-border); }
.dl-row:first-of-type { border-top: none; }
.dl-meta { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.license-code { display: inline-block; margin-top: 4px; font-family: 'Fira Code', monospace; background: #eaf4fd; border: 1px solid var(--card-border); padding: 3px 8px; border-radius: 6px; color: var(--green); font-size: .9rem; }
.dl-fail-icon { font-size: 3rem; margin-bottom: 10px; }

/* --- Ticket thread --- */
.thread { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.msg { border: 1px solid var(--card-border); border-radius: 14px; padding: 14px 16px; background: #fff; box-shadow: var(--shadow); }
.msg-user { border-left: 3px solid var(--tech-blue); }
.msg-staff { border-left: 3px solid var(--green); background: rgba(0,168,103,.06); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .9rem; }
.msg-head strong { color: var(--ink); }
.msg-head span { color: var(--muted); }
.msg-body { line-height: 1.7; color: var(--ink-soft); }

/* --- Filter tabs (admin) --- */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.filter-tab { padding: 7px 14px; border-radius: 20px; text-decoration: none; color: var(--muted); border: 1px solid var(--card-border); font-size: .9rem; background: #fff; }
.filter-tab:hover { color: var(--green); }
.filter-tab.active { background: linear-gradient(135deg, var(--green), var(--aqua)); color: #fff; border-color: transparent; }

/* --- Status form / two-col (admin) --- */
.status-form { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.status-form label { font-weight: 600; }
.status-form select { background: #f4f9fe; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px; color: var(--ink); }
.admin-two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
.admin-two-col code { color: var(--green); word-break: break-all; }
@media (min-width: 820px) { .admin-two-col { grid-template-columns: 1.2fr 1fr; } }

/* --- Buttons extra --- */
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .9rem; }
.btn-danger { background: var(--red); color: #fff; }

/* --- Cart link in header --- */
.cart-link { position: relative; font-size: 1.3rem; text-decoration: none; padding: 4px; }
.cart-badge { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* --- Image placeholder --- */
.img-ph { background: linear-gradient(135deg, rgba(0,135,90,.18), rgba(22,181,196,.20)); border-radius: 12px; aspect-ratio: 16/10; width: 100%; }

/* --- Marketplace toolbar --- */
.mp-toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.mp-toolbar input, .mp-toolbar select {
    background: #f4f9fe; border: 1px solid var(--card-border); border-radius: 12px;
    padding: 10px 12px; color: var(--ink); font: inherit; min-height: var(--touch);
}
.mp-count { color: var(--muted); margin: 0 0 18px; }
@media (min-width: 720px) { .mp-toolbar { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; } }

/* --- Product cards --- */
.product-grid { align-items: stretch; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-thumb { position: relative; display: block; }
.product-thumb .thumb-img, .product-thumb .img-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body a { text-decoration: none; color: inherit; }
.product-tech { color: var(--muted); font-size: .85rem; margin: 0; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; color: var(--green); }
.price del { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .85em; }

/* --- Product detail --- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 14px; }
.gallery-main, .product-gallery .img-ph { width: 100%; border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--card-border); }
.product-cat { color: var(--green); text-decoration: none; font-size: .9rem; }
.product-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 8px 0; color: var(--ink); }
.product-price-lg { font-size: 1.8rem; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.product-price-lg del { color: var(--muted); font-weight: 400; font-size: .6em; margin-left: 10px; }
.product-lead { color: var(--ink-soft); }
.product-meta-list { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--muted); margin: 16px 0; }
.product-meta-list strong { color: var(--ink); }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.product-description { margin-top: 40px; max-width: 800px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1.1fr 1fr; } }

/* --- Cart --- */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.cart-row { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); }
.cart-thumb .img-ph { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 10px; }
.cart-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-main a { color: var(--ink); text-decoration: none; }
.cart-tech { color: var(--muted); font-size: .82rem; }
.cart-price { font-weight: 700; color: var(--green); }
.btn-x { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.btn-x:hover { color: var(--red); }
.cart-summary { padding: 22px; margin-top: 10px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin-bottom: 14px; color: var(--ink); }
.cart-summary .btn-block { margin-top: 8px; }

/* --- Checkout --- */
.checkout-customer, .checkout-pay { padding: 22px; margin-bottom: 16px; }
.checkout-total { color: var(--green); font-size: 1.3rem; }
.pay-method { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; }
.pay-bkash { background: #e2136e; color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 8px; display: inline-block; }
.checkout-note { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.card h3 { margin-top: 0; color: var(--ink); }

/* --- Floating contact widget (WhatsApp / Call) --- */
.fab-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-options { display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
    opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.fab-contact[data-open="true"] .fab-options { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 30px;
    color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 26px rgba(20,90,160,.22); white-space: nowrap; }
.fab-btn svg { flex: none; }
.fab-wa { background: #25D366; }
.fab-call { background: linear-gradient(135deg, var(--green), var(--aqua)); }
.fab-toggle { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--green), var(--aqua)); color: #fff;
    display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,135,90,.4); align-self: flex-end; }
.fab-ic-close { display: none; }
.fab-contact[data-open="true"] .fab-ic-chat { display: none; }
.fab-contact[data-open="true"] .fab-ic-close { display: block; }
.fab-toggle:hover { transform: translateY(-2px); }
@media (max-width: 520px) { .fab-btn span { display: none; } .fab-btn { padding: 12px; border-radius: 50%; } }

/* --- Payment success --- */
.success-hero { text-align: center; margin-bottom: 24px; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #17c07a); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 10px 24px rgba(0,168,103,.3); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--card-border); padding: 44px 0 20px; color: var(--muted); background: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-grid h4 { color: var(--ink); margin: 0 0 12px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--green); }
.footer-muted { color: var(--muted); }
.footer-bottom { text-align: center; border-top: 1px solid var(--card-border); margin-top: 24px; padding-top: 16px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* --- Responsive: tablet & up --- */
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .main-nav { display: flex; }
    .nav-toggle { display: none; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile nav open state */
@media (max-width: 959px) {
    .main-nav.open {
        display: flex; flex-direction: column; gap: 14px;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--navy-2); padding: 18px 20px;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 12px 24px rgba(20,90,160,.12);
    }
}
