/* Jurcom – MOBILNA naslovna (učitava se samo na "/" i samo do 767 px; desktop i tablet se ne mijenjaju) */
@media (max-width: 767px) {
  body.is-home { background: #f3f6fb; padding-bottom: 84px; }

  /* 1. Zaglavlje: meni lijevo, logo u sredini, favoriti i korpa desno */
  body.is-home .hdr { box-shadow: 0 1px 0 #e3e9f3; }
  body.is-home .hdr-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px 6px; padding-top: 10px; padding-bottom: 12px; }
  body.is-home .hdr-row > .icon-btn { grid-column: 1; grid-row: 1; }
  body.is-home .logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  body.is-home .hdr .logo-full { height: 36px; }
  body.is-home .hdr-actions { grid-column: 3; grid-row: 1; }
  body.is-home .search { grid-column: 1 / -1; grid-row: 2; order: 0; max-width: none; }

  /* 2. Pretraga */
  body.is-home .search input { height: 48px; border-radius: 14px 0 0 14px; background: #f7f9fd; font-size: 16px; }
  body.is-home .search button { border-radius: 0 14px 14px 0; width: 60px; }

  /* 3. Kategorije – vodoravni niz sa plavim ikonama */
  body.is-home .catstrip .wrap { gap: 10px; padding-top: 14px; padding-bottom: 6px; }
  body.is-home .catstrip a { width: 74px; font-size: .76rem; font-weight: 700; color: #0a2363; }
  body.is-home .catstrip span { width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(11, 37, 69, .08); border: 1px solid #e8eef8; color: #0e4fdb; }
  body.is-home .catstrip span .ic { width: 30px; height: 30px; stroke-width: 1.7; }

  /* 4. Kompaktan glavni baner */
  body.is-home .hero { display: none !important; }
  body.is-home .mhero { display: block; padding: 10px 14px 0; }
  .mhero-in { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 6px; min-height: 214px; padding: 18px 12px 18px 18px; border-radius: 20px; color: #fff;
    background: radial-gradient(70% 90% at 90% 15%, rgba(63, 208, 255, .22) 0, transparent 60%), radial-gradient(80% 120% at 100% 100%, #1546d8 0, transparent 70%), linear-gradient(135deg, #071a44 0%, #0b2a72 48%, #0d47c9 100%);
    box-shadow: 0 10px 28px rgba(7, 26, 68, .28); }
  .mhero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .mhero-txt { position: relative; z-index: 1; min-width: 0; }
  .mhero-eyebrow { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 5px 9px; border-radius: 8px; border: 1.5px solid #3fd0ff; color: #fff; background: rgba(63, 208, 255, .12); box-shadow: 0 0 12px rgba(63, 208, 255, .25); }
  .mhero-h { color: #fff; font-size: 1.42rem; line-height: 1.12; font-weight: 900; letter-spacing: -.02em; margin: 10px 0 6px; padding-left: 10px; border-left: 4px solid #3fd0ff; }
  .mhero-txt p { margin: 0 0 12px; font-size: .84rem; line-height: 1.4; color: #dbe7ff; }
  .mhero-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: #0e4fdb; color: #fff; font-weight: 800; font-size: .88rem; text-decoration: none !important; box-shadow: 0 0 0 1.5px rgba(63, 208, 255, .55), 0 6px 18px rgba(14, 79, 219, .45); white-space: nowrap; }
  .mhero-art { position: relative; z-index: 1; height: 170px; }
  .mhero-art span { position: absolute; display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(63, 208, 255, .35); }
  .mhero-art img { width: 100%; height: 100%; object-fit: contain; }
  .mh-laptopi { width: 92%; height: 58%; top: 6%; right: 2%; transform: rotate(-3deg); }
  .mh-mobiteli { width: 38%; height: 50%; bottom: 2%; left: 2%; transform: rotate(-6deg); }
  .mh-slusalice { width: 44%; height: 46%; bottom: 0; right: 0; transform: rotate(5deg); }

  /* 4b. Pogodnosti ispod banera (kao u referenci) */
  body.is-home .mben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 14px 0; background: #fff; border: 1px solid #e3ebf7; border-radius: 16px; box-shadow: 0 2px 10px rgba(10, 35, 99, .06); }
  body.is-home .mben a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px 10px; text-align: center; font-size: .68rem; line-height: 1.2; font-weight: 700; color: #0a2363; text-decoration: none; }
  body.is-home .mben a + a { border-left: 1px solid #e8eef8; }
  body.is-home .mben .ic { width: 22px; height: 22px; color: #0e4fdb; }

  /* 5. Najtraženiji proizvodi – odmah ispod banera */
  body.is-home .mtop { display: block; margin: 18px 0 6px; }
  .mtop-h { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 900; margin: 0 0 12px; }
  .mtop-h::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: linear-gradient(#3fd0ff, #0e4fdb); }
  .mtop-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: none; }
  .mtop-rail::-webkit-scrollbar { display: none; }
  .mtop-rail > .card { scroll-snap-align: start; }

  /* Ostatak naslovne: bez dupliranja kategorija (niz gore ih već prikazuje) */
  body.is-home .bbar-sec { display: none; }   /* na mobitelu pogodnosti već stoje ispod banera */

  /* 6. Donja navigacija – ne prekriva sadržaj */
  body.is-home .ftr { padding-bottom: 86px; }
}

@media (max-width: 370px) {
  .mhero-in { grid-template-columns: 1.15fr .85fr; padding: 16px 10px 16px 14px; min-height: 200px; }
  .mhero-h { font-size: 1.22rem; }
  .mhero-txt p { font-size: .78rem; }
  .mhero-btn { padding: 9px 11px; font-size: .82rem; }
  .mhero-art { height: 150px; }
  .mtop-rail { grid-auto-columns: 47%; }
}

@media (max-width: 330px) {
  .mhero-btn { white-space: normal; padding: 8px 10px; }
  .mhero-in { grid-template-columns: 1.25fr .75fr; }
}
