/* ============================================================================
   Home Appliance PP — Public Site CSS
   Identity: light electronics-showroom theme — warm off-white canvas,
   electric blue + electric cyan accents, amber price/EMI signal color.
   Converted from the original dark-native build to a light theme, same
   --ha-* variable names/structure — see PP-WORKFLOW §9.80.
   ============================================================================
   Contents
   1.  Root palette + fonts + tokens
   2.  Base reset & typography
   3.  Mobile safety net (mandatory, verbatim)
   4.  Global layout helpers / gutters / scrollbars
   5.  Bootstrap dark overrides (forms, tables, dropdowns, alerts, etc.)
   6.  Notice bar
   7.  Header / navbar
   8.  Sticky icon category nav (.cat-nav)
   9.  Hero / slider
   10. Section rhythm + brand motif
   11. Buttons
   12. Badges (new .badge-ha + legacy .p-badge/.badge-soft)
   13. Cards — generic (.card-tn/.form-card) + product vocabulary
   14. Category tiles / brand tiles / brand strip
   15. Stats band
   16. EMI banner
   17. Filter sidebar / bar
   18. Testimonials
   19. Blog & rich content
   20. Gallery
   21. Spec table / thumb picker / star rating
   22. Contact
   23. Newsletter
   24. Membership cards
   25. Countdown widget
   26. EMI calculator widget
   27. Share buttons / cookie consent
   28. Footer
   29. Back-to-top / floating actions
   30. Page hero / breadcrumbs / pagination
   31. Auth shell (public login/forgot/reset)
   32. Responsive breakpoints
   33. Print
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. Root palette + fonts + tokens
   --------------------------------------------------------------------------- */
:root {
    /* Canonical palette — also seeded server-side in SiteSettings; keep in sync */
    --ha-ink: #F6F7F9;
    --ha-surface: #FFFFFF;
    --ha-surface-2: #F0F2F5;
    --ha-line: #E1E5EB;
    --ha-muted: #64748B;
    --ha-text: #101828;
    --ha-primary: #2F6FFF;
    --ha-primary-600: #2557D6;
    --ha-primary-soft: #E9F0FF;
    --ha-accent: #0891B2;
    --ha-accent-600: #0E7490;
    --ha-signal: #D97706;
    --ha-success: #15803D;
    --ha-danger: #DC2626;

    /* Derived soft tints (rgba, no new literal light colors) */
    --ha-accent-soft: rgba(8, 145, 178, .12);
    --ha-signal-soft: rgba(217, 119, 6, .14);
    --ha-success-soft: rgba(21, 128, 61, .14);
    --ha-danger-soft: rgba(220, 38, 38, .14);

    /* Fonts */
    --font-bn: 'Noto Sans Bengali', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Rajdhani', sans-serif;

    /* Shape / motion tokens */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 4px 16px rgba(16, 24, 40, .08);
    --shadow: 0 16px 44px rgba(16, 24, 40, .12);
    --shadow-lift: 0 22px 54px rgba(47, 111, 255, .24);
    --glow-accent: 0 0 26px rgba(8, 145, 178, .25);

    /* Backward-compat aliases: pre-migration views still carry inline style="color:var(--tn-*)"
       from the ported TechNest source (PP-WORKFLOW §9.98) — without these, those inline styles
       resolve to nothing (invisible text). Point them at the real tokens above. */
    --tn-primary: var(--ha-primary);
    --tn-primary-600: var(--ha-primary-600);
    --tn-accent: var(--ha-accent);
    --tn-dark: var(--ha-ink);
    --tn-muted: var(--ha-muted);
    --tn-text: var(--ha-text);
    --tn-surface: var(--ha-surface);
    --tn-line: var(--ha-line);
}

/* ---------------------------------------------------------------------------
   2. Base reset & typography
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ha-text);
    background: var(--ha-ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

:lang(bn), .bn { font-family: var(--font-bn); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ha-text);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .01em;
}
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(bn) h4, :lang(bn) h5, :lang(bn) h6,
.bn h1, .bn h2, .bn h3, .bn h4, .bn h5, .bn h6 { font-family: var(--font-bn); letter-spacing: 0; }

a { color: var(--ha-accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus-visible { color: var(--ha-primary); }
p { margin: 0 0 1rem; color: var(--ha-text); }
hr { border-color: var(--ha-line); opacity: 1; }
small, .small { color: var(--ha-muted); }
::selection { background: var(--ha-primary); color: #fff; }

.muted, .text-muted { color: var(--ha-muted) !important; }
.lede { font-size: 1.05rem; color: var(--ha-muted); max-width: 640px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--ha-accent); font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
}

/* Focus ring, everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--ha-primary);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   3. Mobile safety net (mandatory — do not remove any rule)
   --------------------------------------------------------------------------- */
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; }
.page-hero h1, .hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
@media (max-width: 767px) { .section, .page-hero { padding: 40px 0; } }

/* ---------------------------------------------------------------------------
   4. Global layout helpers
   --------------------------------------------------------------------------- */
body { overflow-x: clip; } /* clip, NOT hidden — keeps position:sticky alive */

.container { width: 100%; max-width: 1240px; }

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

.navbar-brand { min-width: 0; }
.navbar-brand .brand-name,
.brand-name {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100vw - 96px); display: inline-block; vertical-align: middle;
}

/* Slim themed scrollbar (progressive enhancement, harmless if unsupported) */
* { scrollbar-color: var(--ha-line) var(--ha-surface); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ha-surface); }
::-webkit-scrollbar-thumb { background: var(--ha-line); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ha-primary-600); }

/* ---------------------------------------------------------------------------
   5. Bootstrap dark overrides
   --------------------------------------------------------------------------- */
.card { background: var(--ha-surface); border: 1px solid var(--ha-line); color: var(--ha-text); }

.form-control, .form-select {
    background: var(--ha-surface-2); border: 1px solid var(--ha-line);
    color: var(--ha-text); border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
    background: var(--ha-surface-2); border-color: var(--ha-primary); color: var(--ha-text);
    box-shadow: 0 0 0 3px var(--ha-primary-soft);
}
.form-control::placeholder { color: var(--ha-muted); opacity: .85; }
.form-control:disabled, .form-select:disabled { background: var(--ha-surface); color: var(--ha-muted); }
.form-label { color: var(--ha-text); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.form-text { color: var(--ha-muted); font-size: .78rem; }
.form-check-input {
    background-color: var(--ha-surface-2); border: 1px solid var(--ha-line);
}
.form-check-input:checked { background-color: var(--ha-primary); border-color: var(--ha-primary); }
.form-check-input:focus { border-color: var(--ha-primary); box-shadow: 0 0 0 3px var(--ha-primary-soft); }
.form-check-label { color: var(--ha-text); }
.input-group-text { background: var(--ha-surface-2); border: 1px solid var(--ha-line); color: var(--ha-muted); }

.dropdown-menu {
    background: var(--ha-surface-2); border: 1px solid var(--ha-line);
    box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: .4rem;
}
.dropdown-item { color: var(--ha-text); border-radius: 8px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ha-primary-soft); color: var(--ha-text); }
.dropdown-divider { border-color: var(--ha-line); }
.dropdown-item-text { color: var(--ha-muted); }

.table { color: var(--ha-text); border-color: var(--ha-line); --bs-table-color: var(--ha-text); }
.table > :not(caption) > * > * { background-color: transparent; border-bottom-color: var(--ha-line); color: var(--ha-text); }
.table-hover > tbody > tr:hover > * { background-color: var(--ha-surface-2); color: var(--ha-text); }
.table thead th { color: var(--ha-muted); font-weight: 600; text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; border-bottom-color: var(--ha-line); }

.accordion-item { background: var(--ha-surface); border: 1px solid var(--ha-line); }
.accordion-button {
    background: var(--ha-surface); color: var(--ha-text); font-weight: 600;
}
.accordion-button:not(.collapsed) { background: var(--ha-surface-2); color: var(--ha-accent); box-shadow: inset 0 -1px 0 var(--ha-line); }
.accordion-body { background: var(--ha-surface); color: var(--ha-muted); }

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; }
.alert-success { background: var(--ha-success-soft); color: var(--ha-success); border-color: rgba(21,128,61,.35); }
.alert-danger { background: var(--ha-danger-soft); color: var(--ha-danger); border-color: rgba(220,38,38,.35); }
.alert-warning { background: var(--ha-signal-soft); color: var(--ha-signal); border-color: rgba(217,119,6,.35); }
.alert-info { background: var(--ha-accent-soft); color: var(--ha-accent); border-color: rgba(8,145,178,.35); }

.badge.text-bg-light { background-color: var(--ha-surface-2) !important; color: var(--ha-text) !important; }
.badge.text-bg-primary { background-color: var(--ha-primary) !important; color: #fff !important; }

.pagination .page-link { background: var(--ha-surface); border-color: var(--ha-line); color: var(--ha-text); }
.pagination .page-link:hover { background: var(--ha-surface-2); color: var(--ha-accent); }
.pagination .page-item.active .page-link { background: var(--ha-primary); border-color: var(--ha-primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--ha-surface); color: var(--ha-muted); border-color: var(--ha-line); }

.modal-content { background: var(--ha-surface); color: var(--ha-text); border: 1px solid var(--ha-line); }
.modal-header, .modal-footer { border-color: var(--ha-line); }

.navbar-toggler { border-color: var(--ha-line); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23101828' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.carousel-indicators [data-bs-target] { background-color: #fff; opacity: .5; }
.carousel-indicators .active { opacity: 1; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; }

/* ---------------------------------------------------------------------------
   6. Notice bar — thin top strip
   --------------------------------------------------------------------------- */
.notice-bar {
    background: var(--ha-primary-soft); color: var(--ha-accent);
    font-size: .84rem; font-weight: 600; text-align: center;
    padding: .5rem 1rem; border-bottom: 1px solid var(--ha-line);
}
.notice-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.notice-bar .container { display: flex; align-items: center; justify-content: center; gap: .5rem; }

/* ---------------------------------------------------------------------------
   7. Header / navbar
   --------------------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ha-line);
    position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { padding: .7rem 0; }

.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-brand .brand-logo { max-height: 42px; width: auto; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--ha-primary), var(--ha-accent));
    color: #fff; font-size: 1.15rem; box-shadow: var(--glow-accent);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ha-text); letter-spacing: .01em; }

.navbar-nav .nav-link {
    color: var(--ha-muted); font-weight: 600; font-size: .92rem;
    padding: .55rem .9rem !important; border-radius: var(--radius-sm);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active { color: var(--ha-text); background: var(--ha-surface-2); }
.navbar-nav .dropdown-toggle::after { border-top-color: currentColor; opacity: .7; }

.header-search { position: relative; }
.header-search .form-control { width: 220px; border-radius: 999px; padding-left: 1rem; }

.header-icon {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; color: var(--ha-text);
    background: var(--ha-surface-2); border: 1px solid var(--ha-line);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.header-icon:hover { background: var(--ha-primary-soft); color: var(--ha-accent); border-color: var(--ha-primary); }
.count-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ha-signal); color: var(--ha-ink); font-size: .66rem; font-weight: 800;
    border-radius: 999px; line-height: 1; border: 2px solid var(--ha-ink);
}
.lang-toggle { border-radius: 999px; }

/* ---------------------------------------------------------------------------
   8. Sticky icon category nav
   --------------------------------------------------------------------------- */
.cat-nav {
    position: sticky; top: 0; z-index: 1020;
    background: var(--ha-surface); border-bottom: 1px solid var(--ha-line);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
}
.cat-nav-track {
    display: flex; align-items: stretch; gap: .35rem;
    max-width: 1240px; margin: 0 auto; padding: 0 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.cat-nav-track::-webkit-scrollbar { display: none; height: 0; }

.cat-nav-item {
    scroll-snap-align: start; flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem; padding: .65rem .9rem;
    color: var(--ha-muted); text-decoration: none; white-space: nowrap;
    font-size: .74rem; font-weight: 700; letter-spacing: .01em;
    border-bottom: 2px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cat-nav-icon { display: inline-flex; }
.cat-nav-icon svg {
    width: 24px; height: 24px; fill: currentColor; color: var(--ha-accent);
    transition: color .2s var(--ease), filter .2s var(--ease);
}
.cat-nav-item:hover { color: var(--ha-text); }
.cat-nav-item:hover .cat-nav-icon svg { color: var(--ha-text); }
.cat-nav-item.active {
    color: var(--ha-text); border-color: var(--ha-primary);
}
.cat-nav-item.active .cat-nav-icon svg {
    color: var(--ha-accent);
    filter: drop-shadow(0 0 7px rgba(8, 145, 178, .35));
}

/* ---------------------------------------------------------------------------
   9. Hero / slider
   --------------------------------------------------------------------------- */
.hero { position: relative; background: var(--ha-ink); overflow: hidden; }
.hero .carousel-inner, .hero .carousel-item { min-height: inherit; }

.hero-slide {
    position: relative; min-height: 62vh; display: flex; align-items: center;
    background-size: cover; background-position: center; background-color: var(--ha-surface);
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(16,24,40,.35) 0%, rgba(16,24,40,.55) 55%, rgba(16,24,40,.78) 100%),
        linear-gradient(90deg, rgba(16,24,40,.92) 0%, rgba(16,24,40,.45) 48%, rgba(16,24,40,.78) 100%);
}
/* Hero always sits on a photo behind a dark scrim, independent of the page theme —
   force light text here so it stays legible regardless of the global light palette. */
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 3.5rem 0; color: #fff; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    color: #fff; font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; margin-bottom: .9rem;
}
.hero h1, .hero-content h1 {
    font-family: var(--font-display); font-weight: 700; line-height: 1.06;
    font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .9rem; color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-content p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; }

.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; opacity: .7; }
.hero .carousel-control-prev:hover, .hero .carousel-control-next:hover { opacity: 1; }

/* ---------------------------------------------------------------------------
   10. Section rhythm + brand motif
   --------------------------------------------------------------------------- */
.section { padding: 76px 0; position: relative; }
.section.alt { background: var(--ha-surface); }
.section.soft { background: linear-gradient(180deg, var(--ha-ink) 0%, var(--ha-surface) 100%); }
.section.ink { background: var(--ha-ink); border-top: 1px solid var(--ha-line); border-bottom: 1px solid var(--ha-line); }

.section-head { max-width: 640px; margin: 0 auto 2.4rem; text-align: center; }
.section-head.start { margin: 0 0 2.2rem; text-align: left; max-width: 620px; }

.section-title {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    color: var(--ha-text); margin: .4rem 0 0;
}
.section-title.h4 { font-size: 1.4rem; }

/* recurring brand motif: skewed electric-blue-to-cyan accent rule */
.section-title::after, .tn-underline {
    content: ''; display: block; width: 62px; height: 4px; margin-top: .7rem;
    background: linear-gradient(90deg, var(--ha-primary), var(--ha-accent));
    border-radius: 3px; transform: skewX(-14deg);
}
.section-head:not(.start) .section-title::after,
.section-head:not(.start) .tn-underline,
.section.ink .section-title::after,
.section.ink .tn-underline { margin-inline: auto; }
.section-head.start .section-title::after,
.section-head.start .tn-underline { margin-inline: 0; }

/* ---------------------------------------------------------------------------
   11. Buttons
   --------------------------------------------------------------------------- */
.btn { border-radius: 999px; font-weight: 600; }

.btn-cta {
    background: var(--ha-primary); border: 1px solid var(--ha-primary); color: #fff;
    font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    font-size: .85rem; padding: .68rem 1.5rem; border-radius: 999px;
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-cta:hover, .btn-cta:focus-visible {
    background: var(--ha-primary-600); border-color: var(--ha-primary-600); color: #fff;
    transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 111, 255, .28);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta.btn-lg { padding: .85rem 2rem; font-size: .95rem; }
.btn-cta.btn-sm { padding: .45rem 1.05rem; font-size: .76rem; }

.btn-outline-cta {
    background: transparent; border: 1px solid var(--ha-line); color: var(--ha-text);
    font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    font-size: .85rem; padding: .68rem 1.5rem; border-radius: 999px;
    transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.btn-outline-cta:hover { border-color: var(--ha-primary); color: var(--ha-accent); background: var(--ha-primary-soft); }
.btn-outline-cta.btn-lg { padding: .85rem 2rem; font-size: .95rem; }

.btn-soft {
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); color: var(--ha-text);
    font-weight: 600; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-soft:hover { background: var(--ha-primary-soft); border-color: var(--ha-primary); color: var(--ha-accent); }

.btn-accent {
    background: var(--ha-success); border: 1px solid var(--ha-success); color: var(--ha-ink);
    font-weight: 700; transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-accent:hover { background: #136C34; color: var(--ha-ink); transform: translateY(-2px); }

.btn-primary { background: var(--ha-primary); border-color: var(--ha-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ha-primary-600); border-color: var(--ha-primary-600); }
.btn-outline-primary { color: var(--ha-accent); border-color: var(--ha-primary); }
.btn-outline-primary:hover { background: var(--ha-primary); color: #fff; }
.btn-outline-secondary { color: var(--ha-muted); border-color: var(--ha-line); }
.btn-outline-secondary:hover { background: var(--ha-surface-2); color: var(--ha-text); border-color: var(--ha-line); }
.btn-outline-danger { color: var(--ha-danger); border-color: rgba(220,38,38,.5); }
.btn-outline-danger:hover { background: var(--ha-danger); border-color: var(--ha-danger); color: #fff; }

/* ---------------------------------------------------------------------------
   12. Badges
   --------------------------------------------------------------------------- */
.badge-ha, .p-badge, .badge-soft {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .32rem .7rem; border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: .72rem;
    letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.badge-soft {
    background: var(--ha-surface-2); color: var(--ha-muted); border: 1px solid var(--ha-line);
    text-transform: none; font-family: var(--font-body); font-weight: 600; letter-spacing: 0;
}
.badge-soft:hover { color: var(--ha-text); }
.badge-soft.badge-accent, .badge-soft.stock-in { background: var(--ha-success-soft); color: var(--ha-success); border-color: rgba(21,128,61,.35); }
.badge-soft.stock-out { background: var(--ha-danger-soft); color: var(--ha-danger); border-color: rgba(220,38,38,.35); }

.badge-ha--new, .p-badge.new {
    background: var(--ha-primary-soft); color: var(--ha-accent); border: 1px solid rgba(47,111,255,.4);
}
.badge-ha--sale, .p-badge.sale {
    background: var(--ha-signal-soft); color: var(--ha-signal); border: 1px solid rgba(217,119,6,.4);
}
.badge-ha--featured, .p-badge.best {
    background: var(--ha-accent-soft); color: var(--ha-accent); border: 1px solid rgba(8,145,178,.4);
}
.prod-badges { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: flex; flex-direction: column; gap: .35rem; }

.tier-badge { background: var(--ha-surface-2) !important; color: var(--ha-text) !important; border: 1px solid var(--ha-line); }

/* ---------------------------------------------------------------------------
   13. Cards — generic + product vocabulary
   --------------------------------------------------------------------------- */
.form-card {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
}

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.35rem;
}

.product-card, .card-tn {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover, .card-tn:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(47, 111, 255, .45);
}

.product-card-img, .card-img {
    position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ha-surface-2);
}
.product-card-img img, .card-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease);
}
.product-card-img:hover img, .card-img:hover img, a.card-img:hover img,
.product-card:hover .product-card-img img, .card-tn:hover .card-img img {
    transform: scale(1.06);
}

.card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--ha-primary-soft); color: var(--ha-accent); font-size: 1.3rem; margin-bottom: .9rem;
}
.brand-line { color: var(--ha-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }

.price-tag, .old-price + .price-tag { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ha-signal); }
.price-old, .old-price { color: var(--ha-muted); text-decoration: line-through; font-size: .84rem; font-weight: 500; margin-left: .45rem; }

/* height:100% ONLY via Bootstrap's .h-100 utility scoped inside a grid — never on the base class */
.row > [class*="col"] > .product-card.h-100,
.row > [class*="col"] > .card-tn.h-100 { height: 100%; }

/* ---------------------------------------------------------------------------
   14. Category tiles / brand tiles / brand strip
   --------------------------------------------------------------------------- */
.cat-tile {
    display: block;
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    padding: 1.4rem 1rem; text-align: center;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--ha-primary); box-shadow: var(--shadow-lift); }
.cat-tile .ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ha-primary-soft); color: var(--ha-accent); font-size: 1.4rem;
}
.cat-tile .ic svg { width: 26px; height: 26px; fill: currentColor; }

.brand-tile {
    display: flex; align-items: center; justify-content: center;
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius-sm);
    padding: 1rem; min-height: 84px;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.brand-tile img { max-height: 40px; max-width: 100%; object-fit: contain; filter: grayscale(1) opacity(.55); transition: filter .3s var(--ease); }
.brand-tile:hover { transform: translateY(-3px); border-color: var(--ha-primary); }
.brand-tile:hover img { filter: grayscale(0) brightness(1) opacity(1); }
.brand-tile-name { color: var(--ha-text); }

.brand-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.25rem); }
.brand-strip .brand-logo {
    max-height: 34px; width: auto; filter: grayscale(1) opacity(.55);
    transition: filter .3s var(--ease), transform .3s var(--ease);
}
.brand-strip .brand-logo:hover { filter: grayscale(0) brightness(1) opacity(1); transform: scale(1.08); }

/* ---------------------------------------------------------------------------
   15. Stats band
   --------------------------------------------------------------------------- */
.stats-band {
    background: var(--ha-surface-2); border-top: 1px solid var(--ha-line); border-bottom: 1px solid var(--ha-line);
    padding: 2.75rem 0;
}
.stats-band .stat-item { text-align: center; }

.stat-tile {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    padding: 1.75rem 1rem; text-align: center;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat-tile:hover { transform: translateY(-3px); border-color: var(--ha-primary); }
.stat-ic, .stat-item .stat-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; margin-bottom: .6rem;
    background: var(--ha-accent-soft); color: var(--ha-accent); font-size: 1.25rem;
}

.stat-num {
    font-family: var(--font-display); font-weight: 700; color: var(--ha-accent);
    font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1;
}
.stat-label { color: var(--ha-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .4rem; }

/* ---------------------------------------------------------------------------
   16. EMI banner
   --------------------------------------------------------------------------- */
.emi-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--ha-primary) 0%, var(--ha-accent-600) 65%, var(--ha-accent) 100%);
    color: #fff; border-radius: var(--radius); padding: 1.6rem 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    box-shadow: var(--shadow);
}
.emi-banner::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.22), transparent 60%);
}
.emi-banner .emi-banner-title, .emi-banner strong {
    font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
    position: relative; z-index: 1;
}
.emi-banner p { color: rgba(255,255,255,.88); margin: .25rem 0 0; position: relative; z-index: 1; }
.emi-banner .btn-cta { background: var(--ha-ink); border-color: var(--ha-ink); color: var(--ha-primary); position: relative; z-index: 1; }
.emi-banner .btn-cta:hover { background: var(--ha-surface-2); border-color: var(--ha-surface-2); color: var(--ha-primary-600); }

/* ---------------------------------------------------------------------------
   17. Filter sidebar / bar
   --------------------------------------------------------------------------- */
.filter-sidebar, .filter-bar, .tn-form.form-card {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    padding: 1.4rem;
}
.filter-sidebar .form-label, .filter-bar .form-label {
    color: var(--ha-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
}
.filter-sidebar h6, .filter-bar h6 { font-family: var(--font-display); color: var(--ha-text); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ---------------------------------------------------------------------------
   18. Testimonials
   --------------------------------------------------------------------------- */
.testi-card {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius);
    padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.testi-card:hover { transform: translateY(-4px); border-color: var(--ha-primary); }
.stars { color: var(--ha-signal); }
.testi-card .quote { color: var(--ha-text); font-style: italic; margin-bottom: 1rem; }
.testi-card .who { font-weight: 700; color: var(--ha-text); font-family: var(--font-display); }

/* ---------------------------------------------------------------------------
   19. Blog & rich content
   --------------------------------------------------------------------------- */
.blog-content, .rich-content { color: var(--ha-text); line-height: 1.8; }
.blog-content h2, .blog-content h3, .rich-content h2, .rich-content h3 { margin-top: 1.6rem; }
.blog-content a, .rich-content a { color: var(--ha-accent); text-decoration: underline; text-underline-offset: 3px; }
.blog-content blockquote, .rich-content blockquote {
    border-left: 3px solid var(--ha-primary); background: var(--ha-surface-2); padding: 1rem 1.25rem;
    color: var(--ha-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-content img, .rich-content img { border-radius: var(--radius-sm); }
.blog-content table, .rich-content table { color: var(--ha-text); }

/* ---------------------------------------------------------------------------
   20. Gallery
   --------------------------------------------------------------------------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-card { position: relative; }
.gallery-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ha-surface-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-zoom {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(16, 24, 40, .45); color: #fff; font-size: 1.6rem; opacity: 0;
    transition: opacity .3s var(--ease);
}
.gallery-thumb:hover .gallery-zoom { opacity: 1; }
.gallery-caption { color: var(--ha-muted); font-size: .88rem; padding-top: .6rem; }

/* ---------------------------------------------------------------------------
   21. Spec table / thumb picker / star rating
   --------------------------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--ha-line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: .55rem .2rem; color: var(--ha-text); }
.spec-table td:first-child { color: var(--ha-muted); width: 42%; font-weight: 600; }

.thumb-pick {
    width: 62px; height: 62px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    border: 2px solid var(--ha-line); background: var(--ha-surface-2); flex: 0 0 auto;
    transition: border-color .2s var(--ease);
}
.thumb-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pick:hover, .thumb-pick.active { border-color: var(--ha-primary); }

/* ---------------------------------------------------------------------------
   22. Contact
   --------------------------------------------------------------------------- */
.contact-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ha-primary-soft); color: var(--ha-accent); font-size: 1.1rem;
}
.link-tn { color: var(--ha-text); }
.link-tn:hover { color: var(--ha-accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ha-line); line-height: 0; }
.map-embed iframe { width: 100%; min-height: 320px; border: 0; }

/* ---------------------------------------------------------------------------
   23. Newsletter
   --------------------------------------------------------------------------- */
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form .form-control { flex: 1 1 220px; }

.tn-newsletter-card { text-align: center; }
.tn-newsletter-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem;
    background: var(--ha-primary-soft); color: var(--ha-accent); font-size: 1.6rem;
}
.tn-newsletter-perks li { color: var(--ha-muted); }
.tn-newsletter-perks .bi { color: var(--ha-success); }

/* ---------------------------------------------------------------------------
   24. Membership cards
   --------------------------------------------------------------------------- */
.membership-card { position: relative; }
.membership-card.popular, .membership-card.is-popular { border-color: var(--ha-primary); box-shadow: var(--shadow-lift); }
.membership-pop { position: absolute; top: -.6rem; right: 1rem; }
.benefit-list li { color: var(--ha-muted); padding: .3rem 0; }

/* ---------------------------------------------------------------------------
   25. Countdown widget
   --------------------------------------------------------------------------- */
.countdown { display: flex; gap: .75rem; flex-wrap: wrap; }
.countdown-unit {
    background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius-sm);
    min-width: 78px; padding: .9rem .5rem; text-align: center; flex: 1 1 78px;
    box-shadow: var(--shadow-sm);
}
.countdown-num {
    display: block; font-family: var(--font-display); font-weight: 700; color: var(--ha-accent);
    font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1;
}
.countdown-label { display: block; color: var(--ha-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .35rem; }
.countdown-sm { gap: .4rem; }
.countdown-sm .countdown-unit { min-width: 46px; padding: .45rem .3rem; }
.countdown-sm .countdown-num { font-size: 1.05rem; }
.countdown-sm .countdown-label { font-size: .6rem; margin-top: .15rem; }
.countdown-expired { color: var(--ha-muted); font-size: .85rem; font-style: italic; }

/* ---------------------------------------------------------------------------
   26. EMI calculator widget
   --------------------------------------------------------------------------- */
.emi-calc { background: var(--ha-surface); border: 1px solid var(--ha-line); border-radius: var(--radius); padding: 1.6rem; }
.emi-calc h5, .emi-calc h6 { font-family: var(--font-display); color: var(--ha-text); }
.emi-result {
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
}
.emi-result .price-tag { font-size: 1.6rem; }
.emi-result-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--ha-line); color: var(--ha-muted); }
.emi-result-row:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   27. Share buttons / cookie consent
   --------------------------------------------------------------------------- */
.share-row { color: var(--ha-muted); }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); color: var(--ha-text);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.share-btn:hover { background: var(--ha-primary-soft); color: var(--ha-accent); border-color: var(--ha-primary); }

.aic-cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080;
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1rem 1.25rem;
}
.aic-cookie-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.aic-cookie-text { color: var(--ha-muted); margin: 0; flex: 1 1 280px; }
.aic-cookie-icon { color: var(--ha-accent); }
.aic-cookie-link { color: var(--ha-accent); text-decoration: underline; }
.aic-cookie-accept { flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
   28. Footer
   --------------------------------------------------------------------------- */
.footer-ha, .site-footer {
    background: var(--ha-surface); border-top: 1px solid var(--ha-line);
    padding-top: 3.5rem; position: relative; margin-top: 2rem;
}
.footer-accent {
    position: absolute; top: -1px; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--ha-primary) 0%, var(--ha-accent) 40%, transparent 75%);
}
.footer-ha h5, .site-footer h5 { color: var(--ha-text); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ha-text); }
.footer-logo { max-height: 38px; }
.footer-about { color: var(--ha-muted); }
.footer-social { display: flex; gap: .55rem; margin-top: 1rem; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); color: var(--ha-text);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--ha-primary-soft); color: var(--ha-accent); border-color: var(--ha-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--ha-muted); }
.footer-links a:hover { color: var(--ha-accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; color: var(--ha-muted); }
.footer-contact li { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .7rem; }
.footer-contact a { color: var(--ha-muted); }
.footer-contact a:hover { color: var(--ha-accent); }
.footer-bottom { border-top: 1px solid var(--ha-line); margin-top: 2.5rem; padding: 1.2rem 0; text-align: center; }
.dev-credit { color: var(--ha-muted); font-size: .85rem; }
.dev-credit .bi-heart-fill { color: var(--ha-danger); }
.dev-credit a { color: var(--ha-accent); font-weight: 600; }

/* ---------------------------------------------------------------------------
   29. Back-to-top / floating actions
   --------------------------------------------------------------------------- */
.float-actions {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
    display: flex; flex-direction: column; gap: .6rem; align-items: flex-end;
}
.fa-whatsapp, .fa-call {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; color: #fff;
    box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.fa-whatsapp { background: var(--ha-success); }
.fa-call { background: var(--ha-primary); }
.fa-whatsapp:hover, .fa-call:hover { transform: translateY(-3px) scale(1.05); color: #fff; }

.back-to-top {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1035;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ha-surface-2); border: 1px solid var(--ha-line); color: var(--ha-text);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: var(--ha-primary); color: #fff; transform: translateY(-3px); }
/* stack above the WhatsApp/Call cluster when both are present */
.float-actions ~ .back-to-top, .back-to-top { bottom: calc(1.1rem + 118px); }

/* ---------------------------------------------------------------------------
   30. Page hero / breadcrumbs / pagination wrapper
   --------------------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(160deg, var(--ha-surface) 0%, var(--ha-ink) 100%);
    border-bottom: 1px solid var(--ha-line);
    padding: 64px 0; text-align: center;
}
.page-hero h1 { margin: 0 0 .5rem; }
.crumbs { color: var(--ha-muted); font-size: .86rem; margin-bottom: .6rem; }
.crumbs a { color: var(--ha-muted); }
.crumbs a:hover { color: var(--ha-accent); }

/* ---------------------------------------------------------------------------
   31. Auth shell (public login / forgot / reset / access-denied)
   --------------------------------------------------------------------------- */
.auth-shell {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 15% 15%, rgba(47,111,255,.14), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(8,145,178,.10), transparent 55%),
        var(--ha-ink);
}
.auth-card {
    width: 100%; max-width: 420px; background: var(--ha-surface); border: 1px solid var(--ha-line);
    border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow);
}
.auth-card .sub { color: var(--ha-muted); }
.auth-card h1, .auth-card h2, .auth-card h3 { color: var(--ha-text); }

/* ---------------------------------------------------------------------------
   32. Responsive breakpoints
   --------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 991.98px) {
    .section { padding: 60px 0; }
    .hero-slide { min-height: 54vh; }
    .header-search { display: none !important; }
    .stats-band { padding: 2rem 0; }
    .emi-banner { padding: 1.3rem 1.5rem; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .section { padding: 44px 0; }
    .page-hero { padding: 44px 0; }
    .hero-slide { min-height: 46vh; }
    .hero-content { padding: 2.2rem 0; }
    .section-head, .section-head.start { margin-bottom: 1.6rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
    .footer-ha, .site-footer { padding-top: 2.5rem; }
    .float-actions { right: .75rem; bottom: .75rem; }
    .back-to-top { right: .75rem; bottom: calc(.75rem + 108px); width: 42px; height: 42px; }
    .fa-whatsapp, .fa-call { width: 46px; height: 46px; }
    .cat-nav-item { padding: .55rem .7rem; font-size: .68rem; }
    .cat-nav-icon svg { width: 22px; height: 22px; }
    .emi-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .countdown-unit { min-width: 64px; padding: .7rem .4rem; }
}

/* Small phone */
@media (max-width: 480px) {
    .brand-name { max-width: 46vw; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .65rem; }
    .btn-cta, .btn-outline-cta { padding: .58rem 1.15rem; font-size: .78rem; }
    .auth-card { padding: 1.5rem; }
    .form-card { padding: 1.25rem; }
    .stat-num, .countdown-num { font-size: 1.5rem; }
}

/* ---------------------------------------------------------------------------
   33. Print
   --------------------------------------------------------------------------- */
@media print {
    .site-header, .cat-nav, .notice-bar, .float-actions, .back-to-top,
    .footer-ha, .site-footer, .aic-cookie-banner { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}
