/* ╔══════════════════════════════════════════════════════════╗
   ║  Avrupa Oto Buca — Premium Automotive Design System    ║
   ║  Dual Theme: Warm Light + Elegant Dark                 ║
   ║  Version: 5.0 · 2026-08-03                             ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── LIGHT THEME (DEFAULT) ── */
:root, html[data-theme="light"] {
  --ink: #1a1a2e;
  --text: #3d3d56;
  --muted: #7c7c8d;
  --paper: #fafaf8;
  --surface: #f2f1ed;
  --card: #ffffff;
  --line: #e4e3de;
  --brand: #c9222d;
  --brand-hover: #a91b24;
  --accent: #d4a853;
  --blue: #1d6fb5;
  --green: #2d8f5e;
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.06);
  --shadow-float: 0 8px 30px rgba(0,0,0,.1);
  --glass-bg: rgba(250,250,248,.92);
  --glass-border: rgba(0,0,0,.06);
  --hero-overlay: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.55) 100%);
  --r: 10px;
  --r-lg: 16px;
  --max-w: 1200px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── DARK THEME ── */
html[data-theme="dark"] {
  --ink: #eaeae6;
  --text: #b5b5ae;
  --muted: #7a7a72;
  --paper: #111113;
  --surface: #1a1a1e;
  --card: #222228;
  --line: #2e2e34;
  --brand: #e0333f;
  --brand-hover: #f04e5a;
  --accent: #e4b85d;
  --blue: #4da6e8;
  --green: #48c78e;
  --shadow-card: 0 2px 8px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.3);
  --shadow-float: 0 12px 40px rgba(0,0,0,.5);
  --glass-bg: rgba(17,17,19,.88);
  --glass-border: rgba(255,255,255,.06);
  --hero-overlay: linear-gradient(135deg, rgba(17,17,19,.92) 0%, rgba(17,17,19,.6) 100%);
}

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:var(--paper)}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--paper);color:var(--ink);
  -webkit-font-smoothing:antialiased;
  transition:background var(--transition),color var(--transition);
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3,h4,h5,h6{
  font-family:'Outfit','Inter',sans-serif;
  color:var(--ink);font-weight:700;letter-spacing:-.02em;
}

/* ── CONTAINER ── */
.container,.wrap,.page{
  width:100%;max-width:var(--max-w);
  margin-inline:auto;padding-inline:24px;
}

.skip{position:fixed;left:16px;top:-80px;z-index:9999;padding:8px 14px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);color:var(--ink);font-weight:600}
.skip:focus{top:16px}

/* ═══ HEADER ═══ */
.site-header{
  position:sticky;top:0;z-index:1000;
  background:var(--glass-bg);
  backdrop-filter:blur(20px) saturate(1.4);
  -webkit-backdrop-filter:blur(20px) saturate(1.4);
  border-bottom:1px solid var(--glass-border);
  transition:background var(--transition);
}

.topbar{display:flex;align-items:center;gap:16px;min-height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0;max-height:48px}

.logo-badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:4px 8px;border-radius:8px;
  background:linear-gradient(145deg,#1a1a2e,#111118);
  border:1px solid rgba(255,255,255,.08);
  flex-shrink:0;max-height:44px;overflow:hidden;
}
.logo-svg{width:132px!important;height:44px!important;max-width:132px!important;max-height:44px!important;display:block!important;flex-shrink:0!important}

.brand-title{display:flex;flex-direction:column;line-height:1.15}
.brand-title b{font-family:'Outfit',sans-serif;font-size:16px;font-weight:800;color:var(--ink)}
.brand-title small{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.03em}

nav.nav{display:flex;align-items:center;gap:2px;margin-left:auto}
nav.nav a{
  padding:8px 14px;border-radius:8px;
  font-size:13.5px;font-weight:600;color:var(--text);
  transition:all var(--transition);
}
nav.nav a:hover,nav.nav a.active{background:var(--surface);color:var(--ink)}

.header-cta{display:flex;align-items:center;gap:8px;flex-shrink:0}

.theme-toggle-btn{
  height:36px;padding:0 12px;border-radius:8px;
  font-size:12px;font-weight:700;cursor:pointer;
  border:1px solid var(--line);background:var(--surface);color:var(--ink);
  transition:all var(--transition);
}
.theme-toggle-btn:hover{border-color:var(--brand)}

.header-phone{
  padding:7px 14px;border-radius:8px;
  font-size:13px;font-weight:800;white-space:nowrap;
  color:var(--blue);
  background:rgba(29,111,181,.06);border:1px solid rgba(29,111,181,.15);
  transition:all var(--transition);
}
html[data-theme="dark"] .header-phone{color:var(--blue);background:rgba(77,166,232,.08);border-color:rgba(77,166,232,.2)}
.header-phone:hover{background:rgba(29,111,181,.12)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:42px;padding:0 20px;border-radius:var(--r);
  font-size:14px;font-weight:700;cursor:pointer;
  border:1px solid var(--line);background:var(--card);color:var(--ink);
  transition:all var(--transition);
}
.btn:hover{border-color:var(--brand);box-shadow:var(--shadow-card);transform:translateY(-1px)}

.btn.red,.header-wa{
  background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important;
  box-shadow:0 2px 8px rgba(201,34,45,.25);
}
.btn.red:hover,.header-wa:hover{
  background:var(--brand-hover)!important;
  box-shadow:0 4px 16px rgba(201,34,45,.35);transform:translateY(-1px);
}

.btn.light{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
.btn.dark{background:var(--card)!important;border-color:var(--line)!important;color:var(--ink)!important}

.menu-btn{
  display:none;width:42px;height:42px;
  border:1px solid var(--line);border-radius:10px;
  background:var(--surface);color:var(--ink);font-size:20px;cursor:pointer;
  align-items:center;justify-content:center;
  transition:all var(--transition);
}
.menu-btn:hover{border-color:var(--brand);background:var(--card)}

.drawer{
  position:fixed;top:0;right:0;width:290px;max-width:85vw;height:100vh;height:100dvh;
  z-index:1001;background:var(--card,#ffffff);border-left:1px solid var(--line);
  box-shadow:-10px 0 40px rgba(0,0,0,.4);
  display:flex;flex-direction:column;
  transform:translateX(100%);visibility:hidden;
  transition:transform .3s cubic-bezier(.16,1,.3,1),visibility .3s ease;
}
html[data-theme="dark"] .drawer{background:#18181c!important}
.drawer.active{transform:translateX(0);visibility:visible}
.drawer-backdrop{
  position:fixed;inset:0;z-index:995;
  background:rgba(0,0,0,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  opacity:0;pointer-events:none;visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;
}
.drawer-backdrop.active{opacity:1;pointer-events:auto;visibility:visible}
.mobile-nav{display:flex;flex-direction:column;gap:4px;padding:20px 16px}
.mobile-nav a{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;border-radius:10px;
  font-weight:800;font-size:16px;color:var(--ink)!important;
  transition:all var(--transition);
}
html[data-theme="dark"] .mobile-nav a{color:#f0f0ec!important}
.mobile-nav a:hover,.mobile-nav a:active{background:var(--surface);color:var(--brand)!important}

/* ═══ HERO ═══ */
.home-hero{
  position:relative;min-height:520px;
  display:flex;align-items:center;overflow:hidden;
  background:var(--paper);
}
.home-hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.home-hero__shade{position:absolute;inset:0;background:var(--hero-overlay);z-index:1}

.home-hero__content{position:relative;z-index:2;padding-block:64px}

.eyebrow{
  display:inline-block;margin-bottom:14px;padding:5px 12px;
  border-radius:20px;font-size:11.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;
  background:rgba(212,168,83,.1);border:1px solid rgba(212,168,83,.2);color:var(--accent);
}
.eyebrow.dark{background:rgba(201,34,45,.08);border-color:rgba(201,34,45,.18);color:var(--brand)}

.home-hero h1{
  max-width:640px;font-size:clamp(2.2rem,4.5vw,3.6rem);
  line-height:1.08;font-weight:800;letter-spacing:-.03em;
  color:#fff;
}
.home-hero__lead{max-width:540px;margin-top:20px;font-size:1.05rem;line-height:1.65;color:rgba(255,255,255,.72)}
.home-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.home-hero__facts{display:flex;flex-wrap:wrap;gap:20px;margin-top:32px;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.5)}
.home-hero__facts span{padding-left:16px;position:relative}
.home-hero__facts span::before{content:"";position:absolute;left:0;top:5px;width:6px;height:6px;border-radius:50%;background:var(--brand)}

/* ═══ CATEGORY RAIL ═══ */
.category-rail{border-block:1px solid var(--line);background:var(--surface)}
.category-rail__grid{display:grid;grid-template-columns:repeat(4,1fr)}
.category-rail__grid>a{
  min-height:96px;display:grid;grid-template-columns:32px 1fr 18px;
  align-items:center;gap:12px;padding:20px 18px;
  border-right:1px solid var(--line);
  font-size:14px;color:var(--ink);transition:all var(--transition);
}
.category-rail__grid>a:last-child{border-right:none}
.category-rail__grid>a:hover{background:var(--card)}
.category-rail__grid b{display:block;font-weight:700;margin-bottom:2px}
.category-rail__grid small{font-size:12px;color:var(--muted);font-weight:500}
.category-index{color:var(--brand);font-size:12px;font-weight:800;font-family:'Outfit',sans-serif}
.category-rail__grid i{color:var(--muted);font-style:normal;font-size:14px;transition:color var(--transition)}
.category-rail__grid>a:hover i{color:var(--brand)}

/* ═══ SECTIONS ═══ */
.home-section{padding-block:80px}
.services-section{background:var(--paper)}

.split-heading{display:grid;grid-template-columns:380px 1fr;gap:56px;align-items:start}
.section-intro{position:sticky;top:100px}
.section-intro h2,.new-section-head h2{font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.12;color:var(--ink)}
.section-intro>p:not(.eyebrow),.new-section-head p{color:var(--muted);font-size:1rem;line-height:1.65;margin-top:16px}

.text-link{
  display:inline-flex;align-items:center;gap:6px;margin-top:20px;
  font-size:14px;font-weight:700;color:var(--brand);
  transition:gap var(--transition);
}
.text-link:hover{gap:10px}

/* Services */
.service-list{border-top:1px solid var(--line)}
.service-row{
  display:grid;grid-template-columns:36px 1fr 40px;
  align-items:center;gap:20px;padding-block:24px;
  border-bottom:1px solid var(--line);
  transition:all var(--transition);
}
.service-row:hover{padding-left:8px}
.service-row>span{color:var(--brand);font-size:12px;font-weight:800;font-family:'Outfit',sans-serif;align-self:start;padding-top:6px}
.service-row h3{font-size:20px;color:var(--ink);margin-bottom:6px}
.service-row p{color:var(--muted);font-size:14px;line-height:1.55;max-width:520px}
.service-row>a{
  width:40px;height:40px;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:50%;
  color:var(--muted);font-size:14px;font-style:normal;
  transition:all var(--transition);
}
.service-row:hover>a{border-color:var(--brand);background:var(--brand);color:#fff}

/* ═══ PRODUCT BAND ═══ */
.product-band{background:var(--surface);border-block:1px solid var(--line)}
.section-head,.new-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:40px}

.home-products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.pcard{
  overflow:hidden;border-radius:var(--r-lg);
  border:1px solid var(--line);background:var(--card);
  box-shadow:var(--shadow-card);
  transition:all .3s cubic-bezier(.4,0,.2,1);
}
.pcard:hover{transform:translateY(-4px);box-shadow:var(--shadow-float);border-color:var(--brand)}
.pcard-img{
  height:200px;padding:16px;display:flex;align-items:center;justify-content:center;
  background:#ffffff !important;border-bottom:1px solid var(--line);
}
.pcard-img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal !important;filter:drop-shadow(0 4px 10px rgba(0,0,0,0.12));transition:transform .3s ease}
.pcard:hover .pcard-img img{transform:scale(1.04)}
.pcard-body{padding:20px}
.pcard-brand{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--brand);margin-bottom:6px}
.pcard-title{font-size:14.5px;font-weight:700;line-height:1.35;color:var(--ink)}
.pcard-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}
.pcard-price{font-size:1.05rem;font-weight:800;color:var(--blue)}
.pcard-bottom>span{font-size:12px;font-weight:700;color:var(--muted)}

/* ═══ FITMENT ═══ */
.fitment-section{background:var(--paper)}
.fitment-layout{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.fitment-copy h2{font-size:clamp(1.6rem,2.5vw,2.2rem);line-height:1.15;color:var(--ink)}
.fitment-copy p{color:var(--muted);font-size:1rem;line-height:1.65;margin:16px 0 24px}

.fitment-steps{list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:0}
.fitment-steps li{
  display:grid;grid-template-columns:40px 1fr;gap:16px;
  padding:20px 0;border-bottom:1px solid var(--line);align-items:center;
}
.fitment-steps li span{
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:8px;background:var(--surface);border:1px solid var(--line);
  font-size:13px;font-weight:800;color:var(--brand);font-family:'Outfit',sans-serif;
}
.fitment-steps b{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.fitment-steps small{font-size:13px;color:var(--muted);font-weight:500}

/* ═══ LOCATION ═══ */
.location-section{background:var(--surface);border-block:1px solid var(--line)}
.location-layout h2{font-size:clamp(1.6rem,2.5vw,2.2rem);line-height:1.15;color:var(--ink);max-width:600px}
.area-list{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.area-list span{
  padding:8px 16px;border-radius:8px;
  background:var(--card);border:1px solid var(--line);
  font-size:13px;font-weight:700;color:var(--ink);
  transition:all var(--transition);
}
.area-list span:hover{border-color:var(--brand);color:var(--brand)}

/* ═══ CONTACT ═══ */
.contact-section{background:var(--paper)}

/* ═══ PREMIUM FOOTER ═══ */
.master-footer{
  position:relative;overflow:hidden;
  background:#111113;color:#a0a09a;
  padding:0 0 0 0;
}
.master-footer::before{
  content:"";display:block;height:3px;
  background:linear-gradient(90deg,var(--brand) 0%,#d4a853 50%,var(--brand) 100%);
  background-size:200% 100%;animation:fShimmer 8s ease infinite;
}
@keyframes fShimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

.master-footer>.container{position:relative;z-index:1}

/* CTA Band */
.footer-cta-band{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;
  margin:48px 0;padding:28px 32px;border-radius:var(--r-lg);
  background:linear-gradient(135deg,rgba(201,34,45,.1) 0%,rgba(212,168,83,.06) 100%);
  border:1px solid rgba(201,34,45,.15);
}
.footer-cta-band p{margin:0;color:#d4d4ce;font-size:.98rem;font-weight:500;line-height:1.55}
.footer-cta-band p strong{color:#f0f0ec;font-weight:800}
.footer-cta-btns{display:flex;gap:10px;flex-shrink:0}
.footer-cta-btns a{
  display:inline-flex;align-items:center;gap:8px;padding:11px 20px;
  border-radius:var(--r);font-size:.88rem;font-weight:700;transition:all var(--transition);
}
.btn-footer-wa{background:#25d366;color:#fff;border:none;box-shadow:0 3px 12px rgba(37,211,102,.25)}
.btn-footer-wa:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(37,211,102,.4)}
.btn-footer-call{background:rgba(255,255,255,.06);color:#d4d4ce;border:1px solid rgba(255,255,255,.12)}
.btn-footer-call:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22)}

/* Footer Grid */
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px}

.footer-brand-block{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.footer-logo-mark{
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  border-radius:10px;background:linear-gradient(145deg,#222228,#18181c);
  border:1px solid rgba(255,255,255,.08);flex-shrink:0;
}
.footer-brand-name{display:flex;flex-direction:column}
.footer-brand-name strong{color:#f0f0ec;font-size:1rem;font-weight:800;font-family:'Outfit',sans-serif;line-height:1.2}
.footer-brand-name small{color:#6a6a64;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}

.footer-col p{color:#8a8a82;font-size:.88rem;line-height:1.65;margin:0 0 8px}

.footer-contact-item{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;color:#b5b5ae;font-size:.87rem;line-height:1.45}
.fci-icon{
  flex-shrink:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;
  border-radius:7px;background:rgba(255,255,255,.04);font-size:13px;
}
.footer-contact-item a{color:#4da6e8;font-weight:700;transition:color var(--transition)}
.footer-contact-item a:hover{color:#7cc2f0}

.footer-col h4{
  color:#e0e0dc;font-size:.78rem;font-weight:800;
  text-transform:uppercase;letter-spacing:.08em;
  margin:0 0 16px;padding-bottom:10px;
  border-bottom:2px solid rgba(201,34,45,.3);display:inline-block;
}

.footer-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.footer-links li{border-bottom:1px solid rgba(255,255,255,.03)}
.footer-links li:last-child{border-bottom:none}
.footer-links a{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 0;color:#b5b5ae;font-size:.87rem;font-weight:500;
  transition:all var(--transition);
}
.footer-links a::after{content:"→";font-size:.75rem;color:transparent;transition:all var(--transition);transform:translateX(-4px)}
.footer-links a:hover{color:#f0f0ec;padding-left:4px}
.footer-links a:hover::after{color:var(--brand);transform:translateX(0)}

.footer-bottom{
  padding:20px 0;border-top:1px solid rgba(255,255,255,.05);
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:.8rem;color:#5a5a54;
}

/* ═══ CONTACT CARD GRID ═══ */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  font-size: 0.9rem;
}

/* ═══ FLOATING WHATSAPP BUTTON ═══ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ═══ ULTRA-SLEEK MOBILE BOTTOM NAVIGATION BAR ═══ */
.mobile-bottom-bar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 500px;
  margin: 0 auto;
}
.mobile-bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  color: #8e8e93;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  line-height: 1;
  position: relative;
}
.mobile-bottom-bar__item svg,
.mobile-bottom-bar svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  fill: currentColor;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease;
}
.mobile-bottom-bar__item:active {
  transform: scale(0.94);
}
.mobile-bottom-bar__item:hover,
.mobile-bottom-bar__item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.mobile-bottom-bar__item.active::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e31e2f;
}
.mobile-bottom-bar__item--wa {
  color: #25d366 !important;
}
.mobile-bottom-bar__item--call {
  color: #38bdf8 !important;
}

/* ═══ RESPONSIVE ═══ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media(max-width:1024px){
  nav.nav{display:none}
  .menu-btn{display:inline-flex}
  .split-heading{grid-template-columns:1fr;gap:32px}
  .section-intro{position:static}
  .home-products{grid-template-columns:repeat(2,1fr)}
  .fitment-layout{grid-template-columns:1fr;gap:32px}
  .footer-grid{grid-template-columns:repeat(2,1fr);gap:28px}
  .category-rail__grid{grid-template-columns:repeat(2,1fr)}
  .footer-cta-band{flex-direction:column;text-align:center;padding:24px 20px}
  .footer-cta-btns{justify-content:center}
}
@media(max-width:768px){
  body {
    padding-bottom: 0 !important;
  }
  .master-footer, footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    background: #111113 !important;
  }
  .mobile-bottom-bar {
    display: block !important;
  }
  .topbar {
    justify-content: space-between;
    gap: 8px;
  }
  .header-cta .theme-toggle-btn {
    display: inline-flex !important;
  }
  .header-cta .header-phone,
  .header-cta .header-wa {
    display: none !important;
  }
  .floating-whatsapp {
    display: none !important;
  }
  .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
@media(max-width:640px){
  .container,.wrap,.page{padding-inline:12px}
  .home-products{grid-template-columns:1fr}
  .category-rail__grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-cta-btns{flex-direction:column;width:100%}
  .footer-cta-btns a{justify-content:center}
  .footer-bottom{flex-direction:column;text-align:center}
  .home-hero h1{font-size:1.8rem}
  .home-hero{min-height:400px}
  .topbar{min-height:56px}
}
@media(max-width:480px){
  .brand-title small {
    display: none !important;
  }
  .brand-title b {
    font-size: 14px;
  }
  .logo-badge {
    padding: 2px 4px;
    max-height: 36px;
  }
  .logo-svg {
    width: 95px !important;
    height: 30px !important;
  }
  .home-hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .home-hero__actions .btn {
    width: 100%;
  }
}

/* ═══ ARTICLE & COMPONENT COMPATIBILITY FIXES ═══ */
.card, .article, .hero-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.hero-card h1, .hero-card h2, .article h1, .article h2, .article h3, .article h4, .article h5, .article h6 {
  color: var(--ink) !important;
}

.article p, .article ul, .article ol, .article li {
  color: var(--text) !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
}

.article b, .article strong {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.sub, .hero-card .sub {
  color: var(--muted) !important;
  font-weight: 600 !important;
}

/* Chips and Tags */
.chip, .hero-card .chip {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.tag, .kws .tag {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

/* TOC (Table of Contents Sidebar) */
.toc {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
}

.toc h2 {
  color: var(--ink) !important;
}

.toc a {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  transition: all var(--transition) !important;
}

.toc a:hover {
  background: var(--card) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* Header & Floatbar fixes for legacy pages */
header {
  background: var(--glass-bg) !important;
  border-bottom: 1px solid var(--glass-border) !important;
}

.brand-title small {
  color: var(--muted) !important;
}

.floatbar {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-float) !important;
}

/* ═══ SLEEK FLOATBAR & WIDGET OVERLAP FIX ═══ */
@media (min-width: 769px) {
  .floatbar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .floatbar {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    height: 52px !important;
    padding: 6px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    border-radius: 999px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
    z-index: 900 !important;
  }

  .floatbar .btn {
    flex: 1 1 0% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Shift floating chatbot & assistant buttons above bottom bar on mobile */
  .chatbot-fab,
  .shop-assistant-fab {
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    z-index: 950 !important;
  }

  .chatbot-fab-text,
  .shop-assistant-fab-note {
    display: none !important;
  }
}

/* ═══ HEADER CHATBOT INTEGRATION & OVERFLOW PROTECTION ═══ */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 60px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.brand-title {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.brand-title b, .brand-title small {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

nav.nav, .topbar .nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.header-chatbot-btn {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(201,34,45,0.12)) !important;
  border: 1px solid rgba(201,34,45,0.3) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  height: 38px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  white-space: nowrap !important;
}

.header-chatbot-btn:hover {
  background: var(--brand) !important;
  color: #ffffff !important;
  border-color: var(--brand) !important;
  transform: translateY(-1px);
}

/* Hide intrusive floating tooltips at bottom */
.chatbot-fab-text,
.shop-assistant-fab-note {
  display: none !important;
}

@media (max-width: 1024px) {
  .brand-title small {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-chatbot-btn {
    padding: 0 10px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
  .brand-title b {
    font-size: 14px !important;
  }
}

/* ═══ CHAT CONTAINER ELEVATION & CLEARANCE FIX ═══ */
.chatbot-container,
.shop-assistant-container {
  z-index: 99999 !important;
}

@media (max-width: 768px) {
  .chatbot-container,
  .shop-assistant-container {
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 140px) !important;
    z-index: 99999 !important;
  }
}




