/* =====================================================================
   SHOPSMART — Navigation Menu + Floating Assistant Widget
   Separate, self-contained stylesheet.
   Include on every page with:
     <link rel="stylesheet" href="shopsmart-nav.css">
   ===================================================================== */

/* ---------- Logo (Shop + Smart in two colors) ---------- */
.ss-logo {
  font-family: 'Poppins', 'Segoe UI', Verdana, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  cursor: pointer;
  user-select: none;
}
.ss-logo .ss-shop { color: #ffffff; }
.ss-logo .ss-smart { color: #29b6f6; }
.ss-logo .ss-dot { color: #29b6f6; font-size: 26px; line-height: 0; margin-left: 1px; }

/* ---------- Hamburger trigger ---------- */
.ss-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #16171b;
  border: 1.5px solid #24252b;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  color: #f2f2f4;
  font-family: 'Poppins', 'Segoe UI', Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease;
}
.ss-menu-trigger:hover { border-color: #29b6f6; }
.ss-menu-trigger svg {
  width: 20px;
  height: 20px;
  stroke: #cfd0d6;
  fill: none;
  stroke-width: 1.8;
}

/* ---------- Overlay backdrop ---------- */
.ss-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ss-nav-backdrop.ss-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Slide-in panel ---------- */
.ss-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  max-width: 86vw;
  background: #111217;
  border-right: 1.5px solid #24252b;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .28s ease;
  overflow-y: auto;
  font-family: 'Poppins', 'Segoe UI', Verdana, sans-serif;
}
.ss-nav-panel.ss-open { transform: translateX(0); }

.ss-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(120deg, #0d3b4f 0%, #111217 80%);
  border-bottom: 1.5px solid #24252b;
}
.ss-nav-header .ss-logo { font-size: 21px; }
.ss-nav-close {
  background: none;
  border: none;
  color: #cfd0d6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.ss-nav-close:hover { color: #ff4d4f; }

.ss-nav-home-link {
  display: block;
  padding: 16px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 8px solid #0a0a0a;
}
.ss-nav-home-link:hover { color: #29b6f6; }

.ss-nav-section {
  padding: 14px 20px 18px;
  border-bottom: 8px solid #0a0a0a;
}
.ss-nav-section h3 {
  color: #6c6d76;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ss-nav-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ss-nav-section li a {
  display: block;
  padding: 9px 0;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #1c1d22;
  transition: color .15s ease, padding-left .15s ease;
}
.ss-nav-section li:last-child a { border-bottom: none; }
.ss-nav-section li a:hover {
  color: #29b6f6;
  padding-left: 4px;
}
.ss-nav-section li a .ss-brand { color: inherit; }
.ss-nav-section li a .ss-brand .ss-shop { color: inherit; font-weight: 500; }
.ss-nav-section li a .ss-brand .ss-smart { color: #29b6f6; font-weight: 700; }

/* ---------- Floating assistant widget (robot + customer service) ---------- */
.ss-float-widget {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  touch-action: none;
}

.ss-robot-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: grab;
  position: relative;
  background: radial-gradient(circle at 32% 28%, #6fe3ff 0%, #29b6f6 45%, #0d6ea8 100%);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.45),
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.5),
    inset 0 -6px 10px rgba(0,40,60,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: ss-float-bob 3.2s ease-in-out infinite;
}
.ss-robot-btn:active { cursor: grabbing; animation-play-state: paused; }
.ss-robot-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.5),
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.55),
    inset 0 -6px 10px rgba(0,40,60,0.55);
}
.ss-robot-btn svg { width: 36px; height: 36px; pointer-events: none; }

@keyframes ss-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.ss-robot-btn:hover { animation-play-state: paused; }

.ss-cs-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #24252b;
  cursor: pointer;
  background: #16171b;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, transform .15s ease;
}
.ss-cs-btn:hover { border-color: #29b6f6; transform: scale(1.08); }
.ss-cs-btn svg { width: 22px; height: 22px; stroke: #cfd0d6; fill: none; stroke-width: 1.8; }

.ss-cs-label {
  position: absolute;
  right: 78px;
  top: 78px;
  background: #16171b;
  border: 1.5px solid #24252b;
  color: #f2f2f4;
  font-family: 'Poppins', 'Segoe UI', Verdana, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.ss-float-widget:hover .ss-cs-label { opacity: 1; }

@media (max-width: 560px) {
  .ss-float-widget { right: 12px; }
  .ss-robot-btn { width: 54px; height: 54px; }
  .ss-robot-btn svg { width: 30px; height: 30px; }
  .ss-cs-btn { width: 40px; height: 40px; }
}