/* ============================================================
   TechNest — Computer Accessories Shop — Public Site CSS
   Identity: "Electric Indigo" — clean, bright, techy retail.
   Indigo #4F46E5 + cyan #06B6D4 on cool-white, crisp cards,
   subtle circuit-grid motif, snappy hover-lift. Light theme.
   ============================================================ */

:root {
    --tn-primary: #4F46E5;     /* electric indigo */
    --tn-primary-700: #4338CA;
    --tn-accent: #06B6D4;      /* cyan */
    --tn-accent-600: #0891B2;
    --tn-ink: #0F172A;         /* slate-900 */
    --tn-dark: #0F172A;
    --tn-bg: #F8FAFC;          /* cool off-white, never pure #fff */
    --tn-surface: #FFFFFF;
    --tn-muted: #64748B;       /* slate-500 */
    --tn-line: #E2E8F0;        /* slate-200 */
    --tn-primary-soft: #EEF0FF;
    --tn-accent-soft: #E0F7FB;
    --tn-warn: #F59E0B;
    --tn-danger: #EF4444;
    --tn-success: #16A34A;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow: 0 14px 40px rgba(15, 23, 42, .10);
    --shadow-lift: 0 22px 54px rgba(79, 70, 229, .18);
    --font-display: 'Space Grotesk', 'Hind Siliguri', system-ui, sans-serif;
    --font-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
    --font-bn: 'Hind Siliguri', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--tn-ink);
    background: var(--tn-bg);
    line-height: 1.65;
    overflow-x: clip; /* §31 safety net — clip, not hidden (keeps sticky header) */
}

[lang="bn"] body, html[lang="bn"] { font-family: var(--font-bn); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--tn-ink); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--tn-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tn-accent-600); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1240px; }
.text-primary-tn { color: var(--tn-primary) !important; }
.bg-soft { background: var(--tn-primary-soft); }

/* ---------- Buttons ---------- */
.btn-cta {
    background: var(--tn-primary); color: #fff; border: none; border-radius: 12px;
    padding: .62rem 1.5rem; font-weight: 600; font-family: var(--font-display);
    display: inline-flex; align-items: center; gap: .45rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .26);
}
.btn-cta:hover { background: var(--tn-primary-700); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 70, 229, .38); }
.btn-accent { background: var(--tn-accent); box-shadow: 0 8px 20px rgba(6, 182, 212, .3); }
.btn-accent:hover { background: var(--tn-accent-600); box-shadow: 0 12px 26px rgba(6, 182, 212, .4); }
.btn-outline-cta {
    background: transparent; color: var(--tn-primary); border: 2px solid var(--tn-primary); border-radius: 12px;
    padding: .56rem 1.4rem; font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: .45rem; transition: all .18s ease;
}
.btn-outline-cta:hover { background: var(--tn-primary); color: #fff; }
.btn-soft { background: var(--tn-primary-soft); color: var(--tn-primary); border: none; border-radius: 12px; padding: .55rem 1.3rem; font-weight: 600; }
.btn-soft:hover { background: #e0e3ff; color: var(--tn-primary-700); }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--tn-dark); color: #fff; font-size: .9rem; padding: .5rem 0; text-align: center; }
.notice-bar a, .notice-bar span { color: inherit; }
.notice-bar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--tn-line); transition: box-shadow .25s ease, padding .25s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .navbar { padding-top: .65rem; padding-bottom: .65rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; font-family: var(--font-display); font-weight: 800; }
.brand-logo { max-height: 44px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--tn-primary), var(--tn-accent)); color: #fff; display: inline-grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.brand-name { font-size: 1.3rem; color: var(--tn-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 140px); }
.navbar-nav .nav-link { font-weight: 600; color: var(--tn-ink); padding: .4rem .8rem; border-radius: 10px; transition: color .15s ease, background .15s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--tn-primary); background: var(--tn-primary-soft); }
.header-search .form-control { border-radius: 999px; border: 1px solid var(--tn-line); background: var(--tn-bg); min-width: 180px; }
.header-search .form-control:focus { border-color: var(--tn-primary); box-shadow: 0 0 0 .2rem rgba(79,70,229,.15); }
.lang-toggle { font-weight: 600; color: var(--tn-ink); display: inline-flex; align-items: center; }
.lang-toggle:hover { color: var(--tn-primary); }
.header-icon { position: relative; width: 42px; height: 42px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--tn-ink); font-size: 1.2rem; transition: background .15s ease, color .15s ease; }
.header-icon:hover { background: var(--tn-primary-soft); color: var(--tn-primary); }
.header-icon .count-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--tn-accent); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--tn-dark); color: #fff; }
.hero-slide { position: relative; min-height: 72vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.86) 0%, rgba(15,23,42,.55) 55%, rgba(79,70,229,.25) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 2rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.hero-content p { font-size: 1.15rem; opacity: .94; margin-bottom: 1.6rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--tn-surface); }
.section.soft { background: var(--tn-primary-soft); }
.section.ink { background: var(--tn-dark); color: #fff; }
.section.ink h1, .section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.start { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--tn-accent-600); font-weight: 700; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .7rem; }
.lede { color: var(--tn-muted); font-size: 1.08rem; }
/* signature "diode" underline motif */
.tn-underline { display: inline-block; width: 72px; height: 6px; margin-top: .4rem; border-radius: 999px; background: linear-gradient(90deg, var(--tn-primary) 0 55%, var(--tn-accent) 55% 100%); }

/* ---------- Product / generic cards ---------- */
.card-tn { background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-tn.h-100 { display: flex; flex-direction: column; }
.card-tn:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #c7caff; }
.card-tn .card-img { aspect-ratio: 1/1; overflow: hidden; background: #fff; position: relative; }
.card-tn .card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s ease; }
.card-tn:hover .card-img img { transform: scale(1.06); }
.card-tn .card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1 1 auto; }
.card-tn h3, .card-tn h4 { font-size: 1.06rem; margin: 0; }
.card-tn .muted { color: var(--tn-muted); font-size: .9rem; }
.card-tn .brand-line { color: var(--tn-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--tn-primary-soft); color: var(--tn-primary); display: grid; place-items: center; font-size: 1.55rem; margin-bottom: .4rem; }

/* product badges (corner) */
.prod-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.p-badge { border-radius: 999px; padding: .2rem .6rem; font-size: .7rem; font-weight: 700; color: #fff; box-shadow: var(--shadow-sm); }
.p-badge.new { background: var(--tn-accent); }
.p-badge.sale { background: var(--tn-danger); }
.p-badge.best { background: var(--tn-primary); }
.p-badge.feat { background: var(--tn-warn); color: #3b2c00; }

.price-tag { color: var(--tn-primary); font-weight: 800; font-family: var(--font-display); font-size: 1.12rem; }
.old-price { color: var(--tn-muted); text-decoration: line-through; font-weight: 500; margin-left: .4rem; font-size: .85em; }
.badge-soft { background: var(--tn-primary-soft); color: var(--tn-primary); border-radius: 999px; padding: .25rem .7rem; font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.badge-accent { background: var(--tn-accent-soft); color: var(--tn-accent-600); }
.badge-warn { background: #FEF3C7; color: #92670A; }
.stock-in { color: var(--tn-success); font-weight: 700; }
.stock-out { color: var(--tn-danger); font-weight: 700; }

/* ---------- Category / brand tiles ---------- */
.cat-tile { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; display: block; }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7caff; }
.cat-tile .ic { font-size: 2rem; color: var(--tn-primary); }
.brand-tile { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--radius-sm); padding: 1rem; display: grid; place-items: center; min-height: 92px; transition: box-shadow .2s ease, transform .2s; }
.brand-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-tile img { max-height: 56px; object-fit: contain; }

/* ---------- Stats ---------- */
.stat-tile { text-align: center; padding: 1.5rem 1rem; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--tn-primary); }
.stat-label { color: var(--tn-muted); font-weight: 600; }
.stat-ic { font-size: 1.8rem; color: var(--tn-accent); margin-bottom: .3rem; }
.section.ink .stat-label { color: #cbd5e1; }
.section.ink .stat-num { color: #fff; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.testi-card .quote { color: var(--tn-ink); font-size: 1.02rem; }
.testi-card .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.testi-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { color: var(--tn-warn); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--tn-primary), var(--tn-primary-700)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: "\F3E1"; font-family: "bootstrap-icons"; position: absolute; right: -10px; bottom: -30px; font-size: 11rem; opacity: .10; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; }
.page-hero .crumbs { opacity: .9; margin-top: .5rem; }
.page-hero .crumbs a { color: #fff; opacity: .85; }

/* ---------- Forms ---------- */
.tn-form .form-label { font-weight: 600; color: var(--tn-ink); }
.tn-form .form-control, .tn-form .form-select { border-radius: var(--radius-sm); border: 1px solid var(--tn-line); padding: .6rem .85rem; }
.tn-form .form-control:focus, .tn-form .form-select:focus { border-color: var(--tn-primary); box-shadow: 0 0 0 .2rem rgba(79,70,229,.15); }
.form-card { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; }

/* ---------- Tables ---------- */
.spec-table, .fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .fee-table th { background: var(--tn-primary); color: #fff; text-align: left; padding: .8rem 1rem; }
.spec-table td, .fee-table td { padding: .75rem 1rem; border-top: 1px solid var(--tn-line); }
.spec-table tr:nth-child(even) td, .fee-table tr:nth-child(even) td { background: var(--tn-bg); }

/* ---------- Pagination ---------- */
.pagination { gap: .35rem; }
.pagination .page-link { border-radius: 10px !important; border: 1px solid var(--tn-line); color: var(--tn-ink); margin: 0 2px; }
.pagination .active .page-link { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tn-dark); color: #cbd5e1; padding: 0 0 1.4rem; position: relative; }
.footer-accent { height: 6px; background: linear-gradient(90deg, var(--tn-primary) 0 55%, var(--tn-accent) 55% 100%); }
.site-footer .container { padding-top: 56px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; display: inline-flex; align-items: center; }
.footer-logo { max-height: 50px; }
.footer-about { color: #94a3b8; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--tn-primary); transform: translateY(-3px); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; color: #94a3b8; min-width: 0; }
.footer-contact li i { color: var(--tn-accent); margin-top: .2rem; }
.footer-contact a { color: #94a3b8; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.newsletter-form { display: flex; gap: .5rem; margin-top: .6rem; }
.newsletter-form .form-control { border-radius: 999px; border: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; font-size: .9rem; color: #94a3b8; }
.footer-bottom a { color: var(--tn-accent); }

/* ---------- Floating actions + back to top ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .65rem; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow); transition: transform .18s ease; }
.float-actions a:hover { transform: scale(1.08); color: #fff; }
.fa-whatsapp { background: #25D366; }
.fa-call { background: var(--tn-primary); }
.back-to-top { position: fixed; right: 18px; bottom: 86px; z-index: 1039; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--tn-dark); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   §12.1 Mobile safety-net + §31 overflow trio
   ============================================================ */
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container, .container-fluid { overflow-wrap: break-word; }
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; }

@media (max-width: 1199.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { background: #fff; border: 1px solid var(--tn-line); border-radius: var(--radius); padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow); }
    .navbar-nav .nav-link { padding: .55rem .6rem; }
    .header-search { margin: .5rem 0; }
    .header-search .form-control { width: 100%; }
    .section { padding: 60px 0; }
    .hero-slide { min-height: 60vh; }
}

@media (max-width: 767px) {
    .section, .page-hero { padding: 44px 0; }
    .section-head { margin-bottom: 2rem; }
    .float-actions a { width: 48px; height: 48px; }
    .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .brand-name { font-size: 1.1rem; }
}

@media print {
    .site-header, .site-footer, .float-actions, .back-to-top, .notice-bar { display: none !important; }
    body { background: #fff; }
}
