/* Marquee / top-header styles */
.top-header {
  width: 100%;
  background: #d5d5d5;
  padding: 6px 0;
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: black;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
   color: black;
  gap: 70px;
  line-height: 1;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
    color: black;
}

.marquee-content a {
  color: black;
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
    color: black;
    text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 6px;
}

.marquee-content .mq-ico {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: block;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile nav styles */
.xoo-wsc-sc-subt  {
        display: none !important;
  }

.language-selector {
  display: none;
}

@media (min-width: 769px) {
      .mobile-only  {
        display: none !important;
  }
}

@media (max-width: 768px) {
   .hidden-mobile  {
        display: none !important;
  }

  .language-selector {
    display: flex;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    color: white;
    cursor: pointer;
  }

  .language-selector img {
    width: 24px;
    height: auto;
  }

  .language-selector span {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
  }
}

@media (max-width: 768px) {
  .mobile-menu-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14.8px;
    background: white;
    border: none;
    color: black;
    cursor: pointer;
    z-index: 10000;
  }

  .mobile-menu-close:hover {
    color: #ccc;
  }
}

.mobile-menu-toggle {
  display: none;
  font-size: 33px;
  color: white;
  cursor: pointer;
}

.navbar-center {
  display: flex;
  gap: 5px;
  align-items: center;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-center {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background-color: #111;
    padding: 40px 20px;
    transition: left 0.3s ease-in-out;
    z-index: 999999999;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
  }

  .navbar-center a {
    color: white;
    font-size: 18px;
    margin: 10px 0;
    text-decoration: none;
  }

  .navbar-center.active {
    left: 0;
  }

  .navbar-right {
    display: none;
  }
}

/* Language modal styles */
a:focus, input:focus, textarea:focus, button:focus {
    outline: none !important;
}

.language-modal {
  display: none;
  position: fixed;
  z-index: 9999999998;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.language-modal-content {
  background: #fff;
  border-radius: 4px;
  padding: 40px 30px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.language-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.language-modal-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #111;
}

.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  text-align: left;
}

.language-option:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
}

.language-options a {
  text-decoration: none;
}

.language-option img {
  width: 24px;
  height: auto;
  border-radius: 3px;
}

.language-option span {
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

@media (max-width: 768px) {
  .language-options {
    grid-template-columns: 1fr;
    gap: 6px 20px;
  }
  .language-option span {
    font-size: 13px;
  }
}

/* Navbar styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.navbar {
  background-color: black;
  padding: 5px 20px 5px 10px;
}

.header .container {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
      padding-left: 15px;
    padding-right: 15px;
}

.header .navbar-left .logo {
  height: auto;
}

.header .navbar-center a {
color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px !important;
}

.header .navbar-center a:hover {
  text-decoration: underline;
}

.header .navbar-right {
  display: flex;
  align-items: center;
}

.header .language-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 1);
  margin-right: 20px;
}

.header .language-selector:hover {
    cursor:pointer;
}

.language-selector .flag {
  width: 20px;
  height: 15px;
  margin-right: 5px;
}

.language-selector span {
  color: white;
  font-size: 14px;
  font-weight: 400;
}

.icon {
  margin: 0 10px;
}

.icon img {
  width: 24px;
  height: 24px;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #971b1b !important;
  color: white;
  font-size: 12px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
}

/* Site layout override styles */
.site-search {
    display: none;
}
.site-header-cart {
    display: none;
}
.site-branding {
    width: 100% !important;
    float: none;
    margin: 0 auto;
    text-align: center;
}
.woocommerce-active .site-header .main-navigation {
    width: 100% !important;
    margin-right: 0;
    clear: both;
    text-align: center;
}

@media (min-width: 768px) {
    .col-full {
        max-width: 1400px;
    }
}

@media (min-width: 768px) {
    .storefront-full-width-content.single-product div.product .woocommerce-product-gallery,
    .single-product div.product .woocommerce-product-gallery {
        width: 48% !important;
        margin-right: 2% !important;
        float: left !important;
    }
    .storefront-full-width-content.single-product div.product .summary,
    .single-product div.product .summary {
        width: 48% !important;
        float: right !important;
        margin-right: 0 !important;
    }
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: none;
}


/* Last menu item as a pill button (inverse of Huel: white pill, black text) */
.header .navbar-center a.nav-link--pill {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: #f5a623;
  color: black !important;
  padding: 6px 11px;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0 !important;
}
.header .navbar-center a.nav-link--pill:hover {
  background: #e0951c;
  text-decoration: none;
}

/* ==========================================================================
   Mobilni izbornik — kartice (samo <=768px; desktop nav ostaje netaknut)
   ========================================================================== */
.nmm-top, .nmm-foot, .nmm-backdrop { display: none; }

@media (max-width: 768px) {
  .nmm-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 999999998;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .nmm-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* panel */
  .navbar-center {
    width: min(88vw, 370px);
    left: min(-88vw, -370px);
    /* 100vh na telefonu racuna i traku preglednika -> dvh je stvarna visina */
    height: 100vh; height: 100dvh;
    padding: 0 14px calc(24px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    background: #0d0d0d;
    box-shadow: 12px 0 34px rgba(0,0,0,.45);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    font-family: 'Inter', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: left .28s cubic-bezier(.22,.61,.36,1);
    gap: 0;
  }

  /* glava */
  .nmm-top {
    display: flex; align-items: center; justify-content: flex-end;
    margin: 0 -14px; padding: 12px 16px 10px; position: sticky; top: 0; z-index: 3;
    background: #0d0d0d;
  }
  .mobile-menu-close {
    position: static; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.10); color: #fff; border: 0; font-size: 0; cursor: pointer;
  }
  .mobile-menu-close:hover, .mobile-menu-close:active { background: #fff; color: #111; }

  /* stavke = bijele kartice */
  .navbar-center > a,
  .navbar-center .nav-item > .nav-link {
    display: flex !important; align-items: center; justify-content: space-between;
    width: 100%; box-sizing: border-box;
    margin: 0 0 10px !important; padding: 18px 16px !important;
    background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
    color: #111 !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: -.01em;
    line-height: 1.25 !important; text-decoration: none; border: 0;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  /* flex-stupac inace stisne stavke umjesto da omoguci skrolanje */
  .navbar-center > *,
  .navbar-center .nav-item { flex: 0 0 auto; }
  .navbar-center .nav-item { width: 100%; }
  .navbar-center .nav-item > .nav-link { font-weight: 700 !important; }
  .navbar-center .nav-item > .nav-link { margin-bottom: 10px !important; }
  .navbar-center > a:active,
  .navbar-center .nav-item > .nav-link:active { transform: scale(.985); box-shadow: 0 1px 6px rgba(0,0,0,.10); }

  /* strelica desno */
  .navbar-center > a:after,
  .navbar-center .nav-item > .nav-link:after {
    content: ""; width: 8px; height: 8px; flex: 0 0 auto; margin-left: 12px;
    border-right: 2.2px solid #111; border-bottom: 2.2px solid #111;
    transform: rotate(-45deg); opacity: .55;
  }

  /* istaknuta kartica (rasprodaja) — na vrh */
  /* ista zaobljenost kao ostale kartice (desktop pravilo ima vecu tezinu) */
  .header .navbar-center > a.nav-link--pill,
  .navbar-center > a.nav-link--pill {
    background: #ff8a00; color: #fff !important; box-shadow: none;
    border-radius: 9px !important; padding: 18px 16px !important; letter-spacing: -.01em !important;
  }
  .navbar-center > a.nav-link--pill:after {
    content: ""; width: 34px; height: 34px; border: 0; border-radius: 50%; transform: none; opacity: 1;
    background: rgba(0,0,0,.22) center/13px 13px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  }

  /* podnozje: pomoc + jezik */
  .nmm-foot { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; }
  .nmm-foot-title {
    margin: 0 0 9px 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: rgba(255,255,255,.45);
  }
  /* podnozje ima drugaciji stil od stavki izbornika: prozirno, s tankim rubom */
  .nmm-contact {
    display: flex !important; align-items: center; gap: 11px;
    margin: 0 0 9px !important; padding: 12px 14px !important;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
    box-shadow: none;
    color: #fff !important; font-size: 14.5px !important; font-weight: 500 !important;
    text-decoration: none;
  }
  .nmm-contact:after { display: none !important; }
  .nmm-ico {
    width: 30px; height: 30px; flex: 0 0 auto; border-radius: 7px;
    background: rgba(255,255,255,.10); color: #fff; display: flex; align-items: center; justify-content: center;
  }
  .nmm-lang {
    display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
    margin-top: 0; padding: 12px 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
    box-shadow: none; color: rgba(255,255,255,.92); font-size: 14.5px; font-weight: 500; cursor: pointer;
  }
  .nmm-lang .flag { width: 22px; height: auto; border-radius: 4px; }
  .nmm-lang-arrow { margin-left: auto; color: #fff; opacity: .45; }
  .nmm-foot-title--lang { margin-top: 18px; }
  .nmm-foot { padding-bottom: 10px; }

  .navbar-center .language-selector.mobile-only { display: none !important; }
  body.nmm-open { overflow: hidden; }
}
