/* ============================================================
   shared.css — সব পেজে একই দেখাবে
   এই ফাইলে আছে:
   1. Bottom Navigation (নিচের মেনু)
   2. Header (উপরের নেভবার)
   3. Drawer (সাইড মেনু)
   ============================================================ */

/* ── CSS VARIABLES (রঙ ও সাইজ) ── */
:root {
  --black:  #36454F;
  --gold:   #C7A74D;
  --gold2:  #D4B85A;
  --cream:  #F9F6EF;
  --muted:  #706A5D;
  --border: #E8E0D0;
  --white:  #FFFFFF;
  --red:    #E53935;
  --r:      8px;
}

/* ── BODY ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--cream);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  padding-top: 58px;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 768px) {
  body { padding-top: 64px; padding-bottom: 0; }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }


/* ════════════════════════════════
   HEADER (উপরের নেভবার)
════════════════════════════════ */
.navbar {
  background: var(--white);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: 58px;
  gap: 10px;
  position: relative;
}
@media (min-width: 768px) {
  .nav-inner { height: 64px; }
}

/* হ্যামবার্গার বাটন */
.nav-ham-left {
  background: none; border: none; cursor: pointer;
  padding: 6px;
  display: flex; flex-direction: column; gap: 4.5px; flex-shrink: 0;
}
.nav-ham-left span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px;
}
@media (min-width: 768px) { .nav-ham-left { display: none; } }

/* সার্চ আইকন */
.nav-search-icon {
  background: none; border: none; cursor: pointer;
  padding: 6px; font-size: 1.2rem; color: var(--black); flex-shrink: 0;
}
@media (min-width: 768px) { .nav-search-icon { display: none; } }

/* লোগো মাঝখানে */
.nav-logo-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
}
.logo-text .k {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--black); letter-spacing: .06em; display: block;
}
.logo-text .rule { height: 1.5px; background: var(--gold); margin: 2px 0; }
.logo-text .s {
  font-family: 'Playfair Display', serif;
  font-size: .5rem; color: var(--gold); letter-spacing: .35em; display: block;
}
@media (min-width: 768px) {
  .nav-logo-center { position: static; transform: none; }
}

/* ডান পাশের আইকন গুলো (Account, Cart) */
.nav-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-icon-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; font-size: 1.2rem; color: var(--black);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.nav-icon-btn svg { width: 22px; height: 22px; stroke: var(--black); fill: none; stroke-width: 1.8; }
.nav-cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff;
  font-size: .55rem; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 2px;
}


/* ════════════════════════════════
   DRAWER (সাইড মেনু)
   Drawer-এর সম্পূর্ণ design assets/css/header.css-এ রাখা হয়েছে।
════════════════════════════════ */

/* ════════════════════════════════
   BOTTOM NAVIGATION (নিচের মেনু)
════════════════════════════════ */
.ks-bottom-nav,
.bottom-nav {
  position: fixed !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: 100vw !important; max-width: 100vw !important;
  min-height: 64px !important;
  z-index: 999 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  align-items: center !important;
  background: var(--white) !important;
  border-top: 2px solid var(--gold) !important;
  padding: 6px 0 calc(10px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  box-shadow: 0 -4px 18px rgba(0,0,0,.12) !important;
}
@media (min-width: 768px) {
  .ks-bottom-nav, .bottom-nav { display: none !important; }
}

/* নেভ বাটন */
.ks-bnav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #9e9e9e !important;       /* inactive = ধূসর */
  font-size: .58rem !important;
  font-weight: 600 !important;
  padding: 4px 0 !important;
  cursor: pointer !important;
  transition: color .15s !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  font-family: inherit !important;
}
/* Active বা hover হলে গোল্ড রঙ */
.ks-bnav-item.active,
.ks-bnav-item:hover { color: var(--gold) !important; }

/* আইকন */
.ks-bnav-ico { font-size: 1.2rem !important; line-height: 1 !important; position: relative !important; }

/* লেবেল (নামের লেখা) */
.ks-bnav-label {
  display: block !important;
  font-size: .58rem !important;
  line-height: 1.1 !important;
  color: inherit !important;
  margin-top: 1px !important;
}

/* কার্ট badge (লাল গোলা সংখ্যা) */
.ks-bnav-badge {
  position: absolute !important;
  top: -5px !important; right: -9px !important;
  background: var(--red) !important; color: #fff !important;
  font-size: .5rem !important; font-weight: 700 !important;
  min-width: 14px !important; height: 14px !important;
  border-radius: 7px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 2px !important;
}

/* Modal খোলা থাকলে bottom nav লুকাবে */
body.ks-modal-open .ks-bottom-nav,
body.ks-modal-open .bottom-nav { display: none !important; }

/* Shared floating contact bubbles */
.ks-contact-bubbles{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:850;display:flex;flex-direction:column;align-items:center;gap:10px}
.ks-contact-actions{display:flex;flex-direction:column;gap:10px;align-items:center;visibility:hidden;pointer-events:none}
.ks-contact-bubble{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff!important;box-shadow:0 5px 18px rgba(0,0,0,.24);transition:transform .2s ease,box-shadow .2s ease}
.ks-contact-actions .ks-contact-bubble{opacity:0;transform:translateY(16px) scale(.72)}
.ks-contact-bubbles.is-open .ks-contact-actions{visibility:visible;pointer-events:auto}
.ks-contact-bubbles.is-open .ks-contact-bubble{opacity:1;transform:translateY(0) scale(1)}
.ks-contact-bubbles.is-open .ks-contact-bubble:nth-child(1){transition-delay:.04s}.ks-contact-bubbles.is-open .ks-contact-bubble:nth-child(2){transition-delay:.08s}
.ks-contact-bubble:hover,.ks-contact-bubble:focus-visible{transform:translateY(-2px) scale(1.06);box-shadow:0 8px 22px rgba(0,0,0,.3)}
.ks-contact-bubble:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ks-contact-bubble svg{width:25px;height:25px;fill:currentColor}
.ks-contact-wa{background:#25d366}.ks-contact-call{background:#20d49a}
.ks-contact-toggle{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#050505;color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.3);transition:transform .2s ease,box-shadow .2s ease}
.ks-contact-toggle:hover,.ks-contact-toggle:focus-visible{transform:scale(1.06);box-shadow:0 8px 22px rgba(0,0,0,.35)}
.ks-contact-toggle:focus-visible{outline:3px solid var(--gold,#b38b2e);outline-offset:2px}
.ks-contact-toggle svg{width:26px;height:26px;fill:currentColor}.ks-close-icon{display:none}.ks-contact-bubbles.is-open .ks-chat-icon{display:none}.ks-contact-bubbles.is-open .ks-close-icon{display:block}
body.ks-modal-open .ks-contact-bubbles{display:none}
@media(prefers-reduced-motion:reduce){.ks-contact-bubble,.ks-contact-toggle{transition:none!important}}
@media(min-width:768px){.ks-contact-bubbles{right:24px;bottom:28px}}
html[data-language="bn"] body,
html[data-language="bn"] button,
html[data-language="bn"] input,
html[data-language="bn"] select,
html[data-language="bn"] textarea {
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ks-language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(199, 167, 77, .45);
  border-radius: 999px;
  background: rgba(249, 246, 239, .12);
}

.ks-language-switcher button {
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.ks-language-switcher button.is-active {
  background: var(--gold, #C7A74D);
  color: #26333c;
}

.ks-language-switcher button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--gold, #C7A74D);
}

.ks-language-switcher-mobile {
  display: inline-flex;
  width: fit-content;
  margin: 4px 18px 14px;
  color: var(--black);
  background: #fff;
  border-color: rgba(199, 167, 77, .7);
  box-shadow: 0 4px 12px rgba(38, 51, 60, .08);
}

.ks-language-switcher-mobile button {
  min-width: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5F5A50;
}

.ks-language-switcher-mobile button.is-active {
  color: #26333c;
}

@media (max-width: 767px) {
  .ks-language-switcher-desktop { display: none; }
}

@media (min-width: 768px) {
  .ks-language-switcher-mobile { display: none; }
}
