/* =============================================================
   iMarket Navbar Module — CSS v1.2.3
   Seletores com #imarket-custom-nav para não conflitar com o tema
   ============================================================= */

/* =============================================================
   ESCONDER NAVBAR DO TEMA
   O tema Akira usa .custom-nav — escondemos essa, mantemos a nossa
   ============================================================= */
.custom-nav:not(#imarket-custom-nav) {
  display: none !important;
}
/* Esconder sticky-nav do tema se existir */
.sticky-nav, .dk-sticky-nav {
  display: none !important;
}
/* Drawer do carrinho do tema — acima da navbar */
#canvas-mini-cart {
  z-index: 10003 !important;
}
.canvas-backdrop {
  z-index: 10001 !important;
}

/* Esconder UI do Google Translate — manter widget funcional */
.goog-te-banner-frame { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
#google_translate_element { position: absolute; left: -9999px; top: -9999px; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }

/* Esconder elementos de header padrão do PS */
#header .header-top,
#header .header-nav,
#header .header-banner,
#header nav.navbar,
#header #_desktop_top_menu,
#header #_mobile_top_menu_wrapper,
#header #mobile_top_menu_wrapper,
#header .blockcart,
#header .user-info {
  display: none !important;
}

/* Header fica com altura zero mas overflow visivel para
   a nossa navbar (position:fixed) continuar visivel */
#header {
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Conteúdo não fica tapado pela navbar flutuante */
#wrapper, #main, .page-wrapper, main#main {
  padding-top: 80px;
}

/* =============================================================
   TOKENS
   ============================================================= */
:root {
  --im-green:       #2eab5b;
  --im-pill-bg:     linear-gradient(135deg, #0d0d0d 0%, #141418 50%, #0a0a0a 100%);
  --im-pill-border: rgba(255, 255, 255, 0.08);
  --im-pill-blur:   blur(16px);
  --im-text:        rgba(255, 255, 255, 0.78);
  --im-text-link:   rgba(255, 255, 255, 0.80);
  --im-hover-bg:    rgba(255, 255, 255, 0.08);
  --im-h:           54px;
  --im-font:        'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --im-ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================
   NAVBAR — pill único escuro desde o início, sem scroll effect
   ============================================================= */
#imarket-custom-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 1080px;
  height: var(--im-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 8px;
  background: var(--im-pill-bg);
  border: 1px solid var(--im-pill-border);
  border-radius: 50px;
  backdrop-filter: var(--im-pill-blur);
  -webkit-backdrop-filter: var(--im-pill-blur);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* =============================================================
   cn-card — base
   ============================================================= */
#imarket-custom-nav .cn-card {
  display: flex;
  align-items: center;
  transition:
    background      0.3s  ease,
    border-color    0.3s  ease,
    border-radius   0.5s  ease,
    backdrop-filter 0.3s  ease,
    padding         0.55s var(--im-ease),
    gap             0.55s var(--im-ease);
}

/* =============================================================
   LOGO
   ============================================================= */
#imarket-custom-nav .cn-logo {
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 22px;
  background: transparent;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
#imarket-custom-nav .cn-logo:hover { opacity: 0.72; }
#imarket-custom-nav .cn-logo:active { opacity: 0.6; }
#imarket-custom-nav .cn-logo svg   { height: 40px; width: auto; display: block; }
/* Logo sempre branco sobre pill escuro — bola verde mantém-se */
#imarket-custom-nav .cn-logo svg path:not([fill="#2eab5b"]) {
  fill: #ffffff;
}

/* =============================================================
   LINKS — pill próprio
   ============================================================= */
#imarket-custom-nav .cn-links {
  flex: 0 1 auto;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 8px;
  height: auto;
}

#imarket-custom-nav .cn-dd-wrap { position: relative; }

#imarket-custom-nav .cn-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  font-family: var(--im-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--im-text);
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
#imarket-custom-nav .cn-dd-trigger:hover { background: var(--im-hover-bg); color: #fff; }

#imarket-custom-nav .cn-links > a {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--im-text-link);
  text-decoration: none;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
#imarket-custom-nav .cn-links > a:hover { background: var(--im-hover-bg); color: #fff; }

#imarket-custom-nav .cn-dd-arrow {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--im-ease);
  flex-shrink: 0;
}
#imarket-custom-nav .cn-dd-wrap.open .cn-dd-arrow { transform: rotate(180deg); }

/* =============================================================
   DESKTOP DROPDOWN
   ============================================================= */
#imarket-custom-nav .cn-desktop-dd {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 185px;
  background: rgba(12, 12, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s var(--im-ease);
  z-index: 10000;
}
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd {
  opacity: 1; visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
#imarket-custom-nav .cn-desktop-dd a {
  display: flex; align-items: center;
  padding: 9px 14px;
  font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s, color 0.15s;
}
#imarket-custom-nav .cn-desktop-dd a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(3px) !important; }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a              { opacity: 1; transform: translateY(0); }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a:nth-child(1) { transition-delay: 0.03s; }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a:nth-child(2) { transition-delay: 0.07s; }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a:nth-child(3) { transition-delay: 0.10s; }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a:nth-child(4) { transition-delay: 0.13s; }
#imarket-custom-nav .cn-dd-wrap.open .cn-desktop-dd a:nth-child(5) { transition-delay: 0.16s; }

/* =============================================================
   HAMBURGER
   ============================================================= */
#imarket-custom-nav .cn-hamburger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent; border: none;
  border-radius: 50%; cursor: pointer; gap: 5px;
  transition: background 0.2s;
}
#imarket-custom-nav .cn-hamburger:hover { background: var(--im-hover-bg); }
#imarket-custom-nav .cn-ham-bar {
  display: block; width: 20px; height: 1.8px;
  background: rgba(255,255,255,0.85); border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease, width 0.22s ease;
  transform-origin: center;
}
#imarket-custom-nav .cn-hamburger.open .cn-ham-bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
#imarket-custom-nav .cn-hamburger.open .cn-ham-bar:nth-child(2) { opacity: 0; width: 0; }
#imarket-custom-nav .cn-hamburger.open .cn-ham-bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* =============================================================
   ACTIONS — pill próprio
   ============================================================= */
#imarket-custom-nav .cn-actions {
  flex-shrink: 0;
  gap: 2px;
  padding: 0 4px 0 6px;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}

#imarket-custom-nav .cn-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent; border: none;
  border-radius: 50%; cursor: pointer;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
#imarket-custom-nav .cn-icon-btn svg { width: 19px; height: 19px; stroke: currentColor; transition: transform 0.2s ease; }
#imarket-custom-nav .cn-icon-btn:hover     { background: var(--im-hover-bg); color: #fff; }
#imarket-custom-nav .cn-icon-btn:hover svg { transform: scale(1.15); }
#imarket-custom-nav .cn-icon-btn:active svg{ transform: scale(0.88); }

.cn-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 3px;
  background: var(--im-green); color: #fff;
  font-size: 9px; font-weight: 700; font-family: var(--im-font);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  opacity: 0; transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
.cn-badge.show { opacity: 1; transform: scale(1); }
.cn-badge.bump { animation: imbump 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes imbump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* =============================================================
   CTA ENTRAR
   ============================================================= */
#imarket-custom-nav .cn-cta-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--im-green); color: #fff;
  border: none; border-radius: 50px;
  font-family: var(--im-font); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(46,171,91,0.30);
  text-decoration: none;
}
#imarket-custom-nav .cn-cta-login svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#imarket-custom-nav .cn-cta-login:hover  { background: #27a354; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,171,91,0.40); }
#imarket-custom-nav .cn-cta-login:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(46,171,91,0.25); }

/* =============================================================
   LANGUAGE SELECTOR
   ============================================================= */
#imarket-custom-nav .cn-lang-wrap {
  position: relative;
  display: flex; align-items: center;
  margin-left: 2px;
}
#imarket-custom-nav .cn-lang-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  background: transparent; border: none; border-radius: 50px;
  font-family: var(--im-font); font-size: 12.5px; font-weight: 700;
  color: rgba(255,255,255,0.72);
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s; letter-spacing: 0.04em;
}
#imarket-custom-nav .cn-lang-trigger:hover { background: var(--im-hover-bg); color: #fff; }
.cn-lang-flag { width: 18px; height: 13px; border-radius: 2px; display: block; flex-shrink: 0; overflow: hidden; }
#imarket-custom-nav .cn-lang-arrow {
  width: 11px; height: 11px;
  stroke: currentColor; stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.22s var(--im-ease); flex-shrink: 0;
}
#imarket-custom-nav .cn-lang-wrap.open .cn-lang-arrow { transform: rotate(180deg); }
.cn-lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 110px;
  background: rgba(12,12,26,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s var(--im-ease);
  z-index: 10001;
}
#imarket-custom-nav .cn-lang-wrap.open .cn-lang-dropdown {
  opacity: 1; visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.cn-lang-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  text-decoration: none;
  font-family: var(--im-font); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s, color 0.15s;
  cursor: pointer; border: none; background: transparent;
  width: 100%; text-align: left;
}
.cn-lang-opt:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cn-lang-opt.cn-lang-active { color: #fff; }
.cn-lang-opt.cn-lang-active::after {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--im-green);
  margin-left: auto; flex-shrink: 0;
}

/* =============================================================
   MOBILE MENU
   ============================================================= */
.im-mobile-menu {
  position: fixed;
  top: calc(var(--im-h) + 20px);
  left: 12px;
  width: 260px;
  z-index: 2000;
  background: linear-gradient(160deg, #111114 0%, #0d0d0d 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.28s var(--im-ease), visibility 0.28s var(--im-ease), transform 0.28s var(--im-ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.im-mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.im-mob-handle-wrap { display: none; }
.im-mob-parent { flex: 1; overflow-y: auto; padding: 8px 0 32px; }
.im-mob-row   { display: flex; align-items: center; }
.im-mob-split { justify-content: space-between; padding: 0 8px 0 0; }
.im-mob-split-label {
  flex: 1; padding: 13px 20px;
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.88); text-decoration: none;
  transition: color 0.18s;
}
.im-mob-split-label:hover { color: #fff; }
.im-mob-split-chevron {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: none; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.18s;
}
.im-mob-split-chevron:hover { background: rgba(255,255,255,0.12); }
.im-mob-chevron {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.7); stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.28s var(--im-ease);
}
.im-mob-split.open .im-mob-chevron { transform: rotate(180deg); }
.im-mob-sub { overflow: hidden; max-height: 0; transition: max-height 0.38s var(--im-ease); }
.im-mob-sub.open { max-height: 360px; }
.im-mob-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 32px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.im-mob-sub-link:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.9); padding-left: 38px; }
.im-mob-sub-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--im-green); flex-shrink: 0; opacity: 0.7; }
.im-mob-link {
  display: block; padding: 13px 20px;
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.88); text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.im-mob-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.im-mob-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 20px; }

/* =============================================================
   BACKDROP
   ============================================================= */
.im-backdrop {
  position: fixed; inset: 0; z-index: 1900;
  background: rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.im-backdrop.show { opacity: 1; visibility: visible; }

/* =============================================================
   SEARCH OVERLAY
   ============================================================= */
.im-search-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5,5,15,0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 100px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.im-search-overlay.open { opacity: 1; visibility: visible; }
.im-search-box {
  width: min(600px, 92vw);
  background: rgba(20,20,36,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  display: flex; flex-direction: column;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.28s var(--im-ease);
  overflow: hidden;
}
.im-search-overlay.open .im-search-box { transform: translateY(0) scale(1); }
.im-search-row {
  display: flex; align-items: center; width: 100%;
}
.im-search-row .s-icon {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.4); stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  margin: 0 12px 0 18px; flex-shrink: 0;
}
.im-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--im-font); font-size: 16px; font-weight: 500;
  color: #fff; padding: 18px 0;
}
.im-search-input::placeholder { color: rgba(255,255,255,0.3); }
.im-search-close {
  width: 42px; height: 42px; background: none; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin: 0 8px; border-radius: 50%; flex-shrink: 0;
  transition: background 0.18s, transform 0.25s;
}
.im-search-close:hover { background: rgba(255,255,255,0.08); transform: rotate(90deg); }
.im-search-close svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.6); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Live search results */
.im-search-results {
  display: none;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 6px 8px 8px;
}
.im-search-results.has-results { display: block; }
.im-search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--im-font);
  transition: background 0.15s;
}
.im-search-result-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.im-search-result-img {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.im-search-result-info { flex: 1; min-width: 0; }
.im-search-result-name {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.im-search-result-price {
  font-size: 12px; font-weight: 500;
  color: var(--im-green);
  margin-top: 1px;
}
.im-search-no-results {
  padding: 16px 12px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.im-search-results::-webkit-scrollbar { width: 4px; }
.im-search-results::-webkit-scrollbar-track { background: transparent; }
.im-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* =============================================================
   CANVAS DRAWERS
   ============================================================= */
.im-canvas-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.im-canvas-backdrop.show { opacity: 1; visibility: visible; }

.im-canvas-widget {
  position: fixed; top: 0; height: 100%; width: 360px;
  background: #fff; z-index: 10002;
  border-radius: 18px 0 0 18px;
  box-shadow: 0 0 30px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.19,1,0.22,1), visibility 0.5s cubic-bezier(0.19,1,0.22,1), transform 0.5s cubic-bezier(0.19,1,0.22,1);
}
.im-canvas-widget.im-canvas-right { right: 0; transform: translateX(60px); }
.im-canvas-widget.im-open-canvas  { opacity: 1; visibility: visible; transform: translateX(0); }

.im-canvas-widget-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07); flex-shrink: 0;
}
.im-title-canvas-widget {
  font-family: var(--im-font); font-size: 17px; font-weight: 700;
  color: #1d1d1b; cursor: pointer; margin: 0;
}
.im-canvas-close-btn {
  width: 32px; height: 32px; background: #f5f5f7;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s, transform 0.25s;
}
.im-canvas-close-btn:hover { background: #e5e5ea; transform: rotate(90deg); }
.im-canvas-close-btn svg { width: 12px; height: 12px; stroke: #1d1d1b; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.im-canvas-widget-content { flex: 1; overflow-y: auto; padding: 24px; -webkit-overflow-scrolling: touch; }

.im-canvas-login-desc {
  font-size: 14px; color: #6e6e73; line-height: 1.5; margin-bottom: 20px;
  padding: 14px 16px; background: #f0f7ff; border-radius: 10px; border: 1px solid #cce0ff;
}
.im-canvas-field-label { display: block; font-size: 13px; font-weight: 600; color: #1d1d1b; margin-bottom: 6px; }
.im-canvas-field-label span { color: #e53e3e; margin-left: 2px; }
.im-canvas-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 10px;
  font-family: var(--im-font); font-size: 15px; color: #1d1d1b;
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; margin-bottom: 16px;
}
.im-canvas-input:focus { border-color: var(--im-green); box-shadow: 0 0 0 3px rgba(46,171,91,0.12); }
.im-canvas-btn-primary {
  width: 100%; padding: 13px;
  background: #1d1d1b; color: #fff; border: none; border-radius: 10px;
  font-family: var(--im-font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  display: block; text-align: center; text-decoration: none;
}
.im-canvas-btn-primary:hover { background: #333; transform: translateY(-1px); }
.im-canvas-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0; color: #b0b0b0; font-size: 13px;
}
.im-canvas-divider::before, .im-canvas-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.1); }
.im-canvas-footer-links { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.im-canvas-footer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: #f5f5f7; border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  color: #1d1d1b; transition: background 0.2s;
}
.im-canvas-footer-link:hover { background: #eaeaec; }
.im-canvas-footer-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Spinner */
@keyframes imSpin { to { transform: rotate(360deg); } }

/* Mini-cart product list */
.im-cart-items { display: flex; flex-direction: column; gap: 16px; }
.im-cart-item {
  display: flex; gap: 14px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.im-cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.im-cart-item-img {
  width: 72px; height: 72px; border-radius: 10px;
  background: #f5f5f7; overflow: hidden; flex-shrink: 0;
}
.im-cart-item-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.im-cart-item-info { flex: 1; min-width: 0; }
.im-cart-item-name {
  font-family: var(--im-font); font-size: 14px; font-weight: 600;
  color: #1d1d1b; text-decoration: none; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.15s;
}
.im-cart-item-name:hover { color: var(--im-green); }
.im-cart-item-attr {
  font-size: 12px; color: #8e8e93; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.im-cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.im-cart-item-qty {
  font-family: var(--im-font); font-size: 12px; font-weight: 500;
  color: #8e8e93;
}
.im-cart-item-price {
  font-family: var(--im-font); font-size: 14px; font-weight: 700;
  color: #1d1d1b;
}
.im-cart-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.im-cart-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.im-cart-total-label {
  font-family: var(--im-font); font-size: 14px; font-weight: 600; color: #6e6e73;
}
.im-cart-total-value {
  font-family: var(--im-font); font-size: 18px; font-weight: 800; color: #1d1d1b;
}

.im-canvas-cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 16px; text-align: center; padding: 40px 0;
}
.im-canvas-cart-empty svg { width: 52px; height: 52px; stroke: #c0c0c0; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.im-canvas-cart-empty h4 { font-size: 16px; font-weight: 700; color: #1d1d1b; }
.im-canvas-cart-empty p  { font-size: 13px; color: #6e6e73; max-width: 200px; line-height: 1.5; }
.im-canvas-cart-empty a  {
  display: inline-block; padding: 11px 24px;
  background: #1d1d1b; color: #fff;
  text-decoration: none; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.im-canvas-cart-empty a:hover { background: #333; transform: translateY(-1px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  #imarket-custom-nav {
    width: calc(100% - 24px);
  }
  #imarket-custom-nav .cn-links     { display: none; }
  #imarket-custom-nav .cn-hamburger { display: flex; order: -1; flex-shrink: 0; }
  #imarket-custom-nav .cn-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 16px;
    order: 0;
  }
  #imarket-custom-nav .cn-actions {
    order: 1; flex-shrink: 0;
  }
  #imarket-custom-nav .cn-cta-label { display: none; }
  #imarket-custom-nav .cn-cta-login {
    padding: 0; width: 36px; height: 36px;
    border-radius: 50%; background: transparent; box-shadow: none;
    color: rgba(255,255,255,0.80);
    display: flex; align-items: center; justify-content: center;
  }
  #imarket-custom-nav .cn-cta-login:hover { background: rgba(255,255,255,0.08); transform: none; box-shadow: none; }
  #imarket-custom-nav .cn-cta-login svg { width: 19px; height: 19px; }
  #imarket-custom-nav .cn-lang-wrap { display: none; }
}
@media (max-width: 480px) {
  .im-canvas-widget { width: 90%; border-radius: 0; }
  #imarket-custom-nav { width: calc(100% - 16px); }
}
