/* ====================================================
   MISA eShop – Main Menu v3 (Figma node 529-67709)
   Font: Inter (Inter Medium, Inter SemiBold, Inter Bold)
   ==================================================== */

/* ---------- SCOPE ---------- */
.eshop-header *,
.eshop-mobile-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- HEADER ---------- */
.td-header-wrap .td-header-menu-wrap-full {
    box-shadow: 0 24px 50px -8px rgba(10, 27, 137, 0.02), 0 4px 8.7px 6px rgba(10, 27, 137, 0.01);
}

.eshop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 6px 20px 3px rgba(116, 135, 255, 0.03), 0 3px 6px -6px rgba(10, 27, 137, 0.03);
}

.eshop-header-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 48px;
    height: 72px;
    max-width: 1920px;
    margin: 0 auto;
}

/* ---------- LOGO ---------- */
.eshop-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 0;
    text-decoration: none;
    flex-shrink: 0;
}

.eshop-logo-link img {
    width: 36px;
    height: 36px;
    display: block;
}

.eshop-logo-link:hover {
    text-decoration: none;
}

.eshop-logo-text {
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 24px;
    color: #181d27;
    white-space: nowrap;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ---------- NAV ---------- */
.eshop-main-nav {
    flex: 1 1 0;
    min-width: 0;
    
}

.eshop-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    height: 72px;
    gap: 0;
}

.eshop-nav-item {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
}

.eshop-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 72px;
    padding: 8px 12px;
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    color: #181d27;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}

.eshop-nav-link:hover,
.eshop-nav-link:focus,
.eshop-nav-item.has-dropdown:hover>.eshop-nav-link {
    color: #4155f5;
    text-decoration: none;
    border-bottom-color: #4155f5;
}

/* ---------- CHEVRON ICON ---------- */
.eshop-nav-chevron {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
    flex-shrink: 0;
}

.eshop-nav-chevron img {
    width: 100%;
    height: 100%;
    display: block;
}

.eshop-nav-item.has-dropdown:hover .eshop-nav-chevron {
    transform: rotate(180deg);
}

/* ---------- HOT BADGE ---------- */
.eshop-hot-icon {
    position: absolute;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    right: -2px;
    top: 8px;
}

.eshop-hot-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- DROPDOWN PANELS (DESKTOP) ---------- */
.eshop-nav-item.has-dropdown>.mm-dropdown {
    display: none;
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(10, 27, 137, .12);
    z-index: 1001;
}

.eshop-nav-item.has-dropdown:hover>.mm-dropdown {
    display: block;
}

/* ---------- PRODUCTS PANEL (big 3-column) ---------- */
.mm-products-panel {
    padding: 16px;
    width: 960px;
    max-width: 95vw;
}

.mm-products-inner {
    display: flex;
    gap: 24px;
}

.mm-law-banner {
    display: flex;
    gap: 16px;
    background: #f0f4ff;
    border: 1px solid #c5d2ff;
    border-radius: 12px;
    padding: 16px;
    width: 420px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s;
}

.mm-law-banner:hover {
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(65, 85, 245, .12);
}

.mm-law-img {
    flex-shrink: 0;
}

.mm-law-img img {
    border-radius: 8px;
}

.mm-law-content {
    flex: 1;
    min-width: 0;
}

.mm-law-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    background-color: #EC221F;
    padding: 4px 8px;
    border-radius: 8px;

}

.mm-law-tag span {
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #FFF;
}

.mm-law-title {
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 16px;
    color: #181d27;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mm-law-descs {
    margin-bottom: 12px;
}

.mm-law-descs div {
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.mm-law-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #FF3B30;
}

.mm-law-btn img {
    width: 16px;
}

.mm-col {
    flex: 1;
    min-width: 0;
}

.mm-col-title {
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #181d27;
    margin-bottom: 12px;
}

.mm-col-title-ai {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mm-col-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-link {
    display: block;
    padding: 8px 12px;
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #252b37;
    text-decoration: none;
    border-radius: 6px;
    transition: background .1s, color .1s;
}

.mm-link:hover {
    background: #f5f6ff;
    color: #4155f5;
    text-decoration: none;
}

.mm-ai-list {
    list-style: disc;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-ai-list li {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* ---------- SOLUTIONS PANEL ---------- */
.mm-solutions-panel {
    padding: 24px;
    width: 1020px;
    max-width: 95vw;
}

.mm-solutions-inner {
    display: flex;
    gap: 24px;
}

.mm-sol-left {
    width: 420px;
    flex-shrink: 0;
}

.mm-sol-right {
    flex: 1;
    display: flex;
    gap: 24px;
    min-width: 0;
}

.mm-ind-group {
    flex: 1;
    min-width: 0;
}

.mm-ind-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mm-ind-group-title-1 {
    background: linear-gradient(270deg, #FFFFFF 14.92%, #F2EDFF 93.92%);
}

.mm-ind-group-title-2 {
    background: linear-gradient(90deg, #E2F0FE 0%, #FFFFFF 100%);
}

.mm-ind-group-title .mm-bold {
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #181d27;
}

.mm-ind-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-ind-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #252b37;
    text-decoration: none;
    border-radius: 6px;
    transition: background .1s, color .1s;
}

.mm-ind-item:hover {
    background: #f5f6ff;
    color: #4155f5;
    text-decoration: none;
}

.mm-ind-item:hover img {
    filter: invert(19%) sepia(98%) saturate(7487%) hue-rotate(255deg) brightness(96%) contrast(106%);
}

.mm-ind-item img {
    flex-shrink: 0;
}

.mm-arrow {
    margin-left: auto;
    opacity: 0;
    transition: opacity .15s;
    font-size: 14px;
}

.mm-ind-item:hover .mm-arrow {
    opacity: 1;
}

/* ---------- PRICING PANEL ---------- */
.mm-pricing-panel {
    padding: 24px;
    width: 520px;
    max-width: 95vw;
}

.mm-pricing-inner {
    display: flex;
    gap: 24px;
}

/* ---------- KNOWLEDGE & SUPPORT PANEL ---------- */
.mm-knowledge-panel {
    padding: 8px 0;
    width: 220px;
}

.mm-knowledge-link {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #252b37;
    text-decoration: none;
    border-radius: 6px;
    transition: background .1s, color .1s;
}

.mm-knowledge-link:hover {
    background: #f5f6ff;
    color: #4155f5;
    text-decoration: none;
}

/* ---------- SUPPORT PANEL (wider) ---------- */
.mm-support-panel {
    padding: 8px 0;
    width: 340px;
    max-width: 95vw;
}

/* ---------- MOBILE LAW BANNER ---------- */
.mm-mob-law {
    display: block;
    margin: 8px 20px 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f4ff, #fff8f5);
    border-radius: 10px;
    border: 1px solid #e5ebff;
    text-decoration: none;
}

.mm-mob-law:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(65, 85, 245, .08);
}

.mm-mob-law-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #181d27;
    margin-bottom: 4px;
}

.mm-mob-law div {
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* ---------- LANGUAGE ---------- */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1f2328;
    cursor: pointer;
}

svg.dropdown-arrow {
    display: none;
}

.language-dropdown-toggle span.language-name.notranslate:after {
    content: url(/mshopkeeper/images/main-menu/ic-chevron-down.svg);
    padding-left: 4px;
    width: 16px;
    height: 16px;
}

span.language-name.notranslate {
    display: flex;
    align-items: center;
    width: fit-content;
    font-family: 'Inter medium';
}

.language-dropdown-toggle::before {
    display: none;
}

.language-dropdown {
    width: fit-content;
}

.eshop-header .language-link {
    padding: 10px 12px;
}

.eshop-header .language-dropdown-toggle {
    padding: 10px 16px;
}

/* ---------- RIGHT SECTION ---------- */
.eshop-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.eshop-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Login button — outlined with gradient text */
a.eshop-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 22px;
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    border: 2px solid transparent;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    background: linear-gradient(#FFF, #FFF) padding-box, linear-gradient(61.32deg, #4155F5 -13.94%, #875BF7 92.5%) border-box;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
}

a.eshop-btn-login span {
    background: linear-gradient(61deg, var(--Brand-600, #4155F5) -13.94%, var(--Violet-500, #875BF7) 92.5%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eshop-btn-login:hover {
    opacity: .85;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(65, 85, 245, .2);
    background:
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg,
      #ff6ec4,
      #7873f5,
      #4ade80,
      #22d3ee,
      #ff6ec4) border-box;
    background-size: 200% 200%;
    animation: borderMove 3s linear infinite;
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Register button — gradient fill */
a.eshop-btn-register {
    position: relative;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 20px;
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.2px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4155f5 0%, #6b3dfa 100%);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
}

.eshop-btn-register::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(90deg,
      #ff6ec4,
      #7873f5,
      #22d3ee,
      #4ade80,
      #ff6ec4);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.eshop-btn-register:hover {
    opacity: 1;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(65, 85, 245, .35);
}

.eshop-btn-register:hover::before {
  opacity: 1;
  animation: shadowMove 4s linear infinite;
}

@keyframes shadowMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* ---------- MOBILE HAMBURGER ---------- */
.eshop-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.eshop-mobile-toggle img {
    width: 24px;
    height: 28px;
    display: block;
}

/* ---------- SPACER ---------- */
.eshop-header-spacer {
    height: 72px;
}

/* ====================================================
   MOBILE OVERLAY
   ==================================================== */
.eshop-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .45);
}

.eshop-mobile-overlay.open {
    display: block;
}

.eshop-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1101;
    display: flex;
    flex-direction: column;
}

.eshop-mobile-overlay.open .eshop-mobile-panel {
    transform: translateX(0);
}

/* Mobile header */
.eshop-mobile-pnl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2ff;
    flex-shrink: 0;
}

.eshop-mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.eshop-mobile-logo-link img {
    width: 32px;
    height: 32px;
}

.eshop-mobile-logo-text {
    font-family: 'Inter SemiBold', 'Inter', Arial, sans-serif;
    font-size: 18px;
    color: #181d27;
}

.eshop-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshop-mobile-close img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Mobile lang */
.eshop-mobile-lang {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2ff;
}

.eshop-mobile-lang a {
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #252b37;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.eshop-mobile-lang a.active,
.eshop-mobile-lang a:hover {
    background: #f0f2ff;
    color: #4155f5;
    border-color: #4155f5;
}

/* Mobile nav */
.eshop-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.eshop-mobile-nav-list {
    list-style: none;
}

/* Accordion item */
.eshop-mobile-acc-item {
    border-bottom: 1px solid #f5f6ff;
}

.eshop-mobile-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 15px;
    color: #181d27;
    user-select: none;
}

.eshop-mobile-acc-trigger a {
    color: inherit;
    text-decoration: none;
}

.eshop-mobile-acc-trigger .mm-acc-chevron {
    transition: transform .2s;
    flex-shrink: 0;
}

.eshop-mobile-acc-trigger .mm-acc-chevron img {
    width: 16px;
    height: 16px;
    display: block;
}

.eshop-mobile-acc-item.open .mm-acc-chevron {
    transform: rotate(180deg);
}

.eshop-mobile-acc-body {
    display: none;
    background: #f9faff;
    padding: 4px 0 8px;
}

.eshop-mobile-acc-item.open>.eshop-mobile-acc-body {
    display: block;
}

/* Mobile dropdown links */
.mm-mob-link {
    display: block;
    padding: 10px 28px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #252b37;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
}

.mm-mob-link:hover {
    color: #4155f5;
    border-left-color: #4155f5;
    background: #f5f6ff;
    text-decoration: none;
}

/* Mobile law item */
.mm-mobile-law {
    display: block;
    margin: 8px 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f4ff, #fff5f0);
    border-radius: 10px;
    border: 1px solid #e5ebff;
    text-decoration: none;
}

.mm-mobile-law:hover {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(65, 85, 245, .08);
}

.mm-mobile-law-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #181d27;
    margin-bottom: 6px;
}

.mm-mobile-law-title img {
    width: 16px;
}

.mm-mobile-law-desc div {
    font-family: 'Inter Medium', 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Mobile group title (inside accordion body) */
.mm-mob-group-title {
    padding: 8px 20px 4px;
    font-family: 'Inter Bold', 'Inter', Arial, sans-serif;
    font-size: 13px;
    color: #181d27;
    margin-top: 12px;
}

/* Mobile AI list */
.mm-mob-ai-list {
    padding: 4px 28px 8px;
}
.mm-mob-ai-list div {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    padding: 2px 0;
}

/* Mobile footer */
.eshop-mobile-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f0f2ff;
    flex-shrink: 0;
}

.eshop-mobile-footer .eshop-btn-login,
.eshop-mobile-footer .eshop-btn-register {
    flex: 1;
    min-width: 0;
}

/* ====================================================
   THEME OVERRIDES
   ==================================================== */


/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1500px) {
    .eshop-header-container {
        padding: 0 12px;
        gap: 12px;
    }

    .eshop-logo-link {
        padding: 16px 0;
    }

    .eshop-nav-link {
        padding: 8px 8px;
        font-size: 13px;
    }

    .eshop-logo-text {
        font-size: 20px;
    }

    .eshop-header-right {
        gap: 12px;
    }

    a.eshop-btn-login {
        padding: 10px 12px;
        min-width: unset;
    }

    .eshop-btn-register {
        padding: 12px;
        min-width: unset;
    }
}

@media (max-width: 1299px) {

    .eshop-main-nav,
    .eshop-header-right {
        display: none;
    }

    .eshop-mobile-toggle {
        display: flex;
    }

    .eshop-header-container {
        padding: 0 16px;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .eshop-logo-text {
        font-size: 18px;
    }
}