/* ==========================================================================
   isplati.se — mobile-v2 (23.11.2026)
   Sloj za mobilni doživljaj: lepljivi kompaktni header, full-screen pretraga,
   bottom-sheet filteri, čitljive kartice, provere cena i „ljudski" detalji.
   Učitava se POSLE svih straničnih stilova. Ne dira desktop izgled.
   ========================================================================== */

:root {
    --mv2-hdr: 108px;
    --mv2-hdr-compact: 60px;
    --mv2-radius: 18px;
    --mv2-ease: cubic-bezier(.2, .7, .3, 1);
    --mv2-shadow: 0 16px 40px -18px rgba(11, 19, 32, .35), 0 2px 8px rgba(11, 19, 32, .06);
}

/* Sugestije moraju da budu iznad reda kategorija, ne ispod njega. */
.hdr-bar { position: relative; z-index: 4; }
.nav-cats-row { position: relative; z-index: 3; }

@media (max-width: 1023.98px) {
    :root { --mv2-hdr: 108px; }
    html { -webkit-tap-highlight-color: transparent; }
    body { padding-bottom: 0; }
    a, button, summary, input, select { -webkit-tap-highlight-color: transparent; }
    /* Nema horizontalnog „skrolovanja cele strane" ni na 320px. */
    body { overflow-x: hidden; }
}

/* --------------------------------------------------------------------------
   1) OGLASI — dok AdSense ne odobri sajt nema praznih okvira ni crnih iframe-ova.
   Filled jedinica dobija .adslot--filled iz mobile-v2.js i tek tada se prikazuje.
   -------------------------------------------------------------------------- */
.adslot:not(.adslot--filled):not(.adslot--admin) { display: none !important; }
.adslot--live { display: none !important; }
.adslot--live.adslot--filled { display: block !important; }
.adslot--live iframe { max-width: 100% !important; pointer-events: none; }
.adslot--live.adslot--filled iframe { pointer-events: auto; }
.adslot--empty, .adslot--hidden { display: none !important; }
.adslot[data-ad-slot="mobile_anchor"] { display: none !important; }

@media (max-width: 1023.98px) {
    .adslot { display: none !important; }
    .adslot.adslot--filled { display: block !important; margin: 16px auto !important; }
}

/* --------------------------------------------------------------------------
   2) HEADER — lepljiv, kompaktan, app-like. Kategorije se sklanjaju na skrol.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .hdr {
        position: sticky; top: 0; z-index: 70;
        background: #0B1320; color: #fff;
        border-bottom: 0;
        padding-top: env(safe-area-inset-top, 0px);
        transition: box-shadow .2s var(--mv2-ease), transform .25s var(--mv2-ease);
    }
    .hdr::after {
        content: ""; position: absolute; inset: auto 0 -1px; height: 1px;
        background: rgba(255, 255, 255, .08); pointer-events: none;
    }
    .hdr.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
    .hdr-bar {
        min-height: 60px; padding-block: 9px; row-gap: 8px;
        column-gap: 8px; flex-wrap: wrap; align-items: center;
        transition: min-height .2s var(--mv2-ease), padding .2s var(--mv2-ease);
    }
    .hdr.is-compact .hdr-bar { min-height: 52px; padding-block: 6px; }
    .hdr-logo img { width: clamp(104px, 32vw, 128px); height: auto; }
    .hdr-actions { gap: 2px; }
    .hdr-actions .iconbtn { width: 40px; height: 40px; }
    .hdr-actions .mkt > summary { min-height: 38px; padding: 6px 10px; border-radius: 999px; }
    .hdr .mkt > summary { background: #16202F; border-color: #2C3A4D; }
    .hdr-search { padding-bottom: 0; flex: 1 1 100%; order: 10; }
    .hdr .searchbox, .hdr .searchbox.searchbox-lg {
        height: 44px; border: 0; border-radius: 12px;
        background: #FFFFFF; padding: 0 4px 0 12px; gap: 6px;
        box-shadow: inset 0 0 0 1px rgba(11, 19, 32, .08);
    }
    .hdr .searchbox:focus-within { box-shadow: 0 0 0 3px rgba(166, 255, 0, .55); }
    .hdr .searchbox input { height: 40px; font-size: 15px; }
    .hdr .searchbox .sbx-go { width: 28px; margin: 0; color: #0B1320; }
    .hdr .searchbox .sbx-ai { display: none; }
    .hdr .nav-cats-row {
        margin-inline: -8px; overflow: hidden;
        transition: max-height .22s var(--mv2-ease), opacity .18s var(--mv2-ease);
        max-height: 56px; opacity: 1;
    }
    .hdr.is-compact .nav-cats-row { max-height: 0; opacity: 0; pointer-events: none; }
    .hdr .nav-cats { min-height: 46px; padding-block: 3px; gap: 2px; }
    .hdr .nav-cats a { min-height: 38px; padding: 0 10px; font-size: 13px; }
    .mm-row .mm-nav { min-height: 46px; }
    .mm-btn { min-height: 38px !important; font-size: 13px !important; border-radius: 999px; }
    /* Na početnoj: header nosi pravu pretragu, hero je bez duplikata. */
    body:has(.home .hero) .hdr-search { display: block; }
    body:has(.home .hero) .hdr .mm-row { display: block; }
    .home .hero-search-area > .home-search { display: none; }
    .home .hero-search-area > .ai-bar { display: flex; }
    .home .hero { padding-block: 18px 20px; }
    .home .hero .eyebrow { font-size: 11px; letter-spacing: .1em; }
    .home .hero .h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.06; letter-spacing: -.03em; }
    .home .hero .hero-lead { font-size: 15px; line-height: 22px; }
    .home .popular { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
    .home .popular .cap { display: none; }
    .home .popular::-webkit-scrollbar { display: none; }
    .home .hero .chip { flex: none; }
    .home .perks { gap: 2px 12px; }
    .home .perk { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   3) FULL-SCREEN PRETRAGA — tap na polje otvara mirnu, fokusiranu površinu.
   -------------------------------------------------------------------------- */
.msearch-cancel { display: none !important; }
.msearch-idle { display: none; }

@media (max-width: 1023.98px) {
    body.msearch-open { overflow: hidden !important; }
    body.msearch-open .hdr {
        position: fixed !important; inset: 0 !important;
        height: 100dvh; z-index: 200 !important;
        background: #FFFFFF !important; color: #0B1320 !important;
        padding-top: env(safe-area-inset-top, 0px);
        display: flex; flex-direction: column; overflow: hidden;
    }
    body.msearch-open .hdr::after { display: none; }
    body.msearch-open .hdr-bar {
        display: block; flex: none; padding: 12px 12px 10px;
        background: #FFFFFF; border-bottom: 1px solid #ECEFED;
    }
    body.msearch-open .hdr-logo,
    body.msearch-open .hdr-actions,
    body.msearch-open .nav-cats-row { display: none !important; }
    body.msearch-open .hdr-search { width: 100%; padding: 0; }
    body.msearch-open .searchbox,
    body.msearch-open .searchbox.searchbox-lg {
        height: 50px; border-radius: 14px; background: #F3F5F4;
        box-shadow: inset 0 0 0 1px #E3E8E5; padding: 0 4px 0 12px;
    }
    body.msearch-open .searchbox:focus-within { box-shadow: inset 0 0 0 1px #0B1320; }
    body.msearch-open .searchbox input { font-size: 16px; }
    body.msearch-open .msearch-cancel {
        display: inline-flex !important; align-items: center; justify-content: center;
        flex: none; min-height: 40px; padding: 0 10px 0 6px;
        border: 0; background: transparent; color: #00754F;
        font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
    }
    body.msearch-open .suggestions {
        position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 74px);
        bottom: 0; max-width: none; max-height: none;
        margin: 0; padding: 8px 10px calc(90px + env(safe-area-inset-bottom, 0px));
        border: 0; border-radius: 0; box-shadow: none; background: #FFFFFF;
        overflow-y: auto; overscroll-behavior: contain; z-index: 201;
    }
    body.msearch-open .suggestions[hidden] { display: none !important; }
    body.msearch-open .suggest-heading {
        position: sticky; top: 0; z-index: 2; background: #FFFFFF;
        padding: 12px 8px 6px; font-size: 11px; letter-spacing: .08em;
    }
    body.msearch-open .suggest-option a {
        min-height: 58px; padding: 8px; border-radius: 14px;
    }
    body.msearch-open .suggest-option a:hover,
    body.msearch-open .suggest-option.is-active a { background: #F7FFE8; box-shadow: inset 0 0 0 1px #E4F6C2; }
    body.msearch-open .suggest-thumb { width: 48px; height: 48px; border-radius: 12px; }
    body.msearch-open .suggest-text { font-size: 15px; line-height: 20px; }
    body.msearch-open .suggest-price { font-size: 15px; }
    body.msearch-open .suggest-option.is-all a { min-height: 60px; background: #F5F7F6; border-radius: 14px; }
    .msearch-idle {
        position: fixed; left: 0; right: 0;
        top: calc(env(safe-area-inset-top, 0px) + 74px); bottom: 0;
        display: none; flex-direction: column; gap: 22px;
        padding: 20px 20px calc(96px + env(safe-area-inset-bottom, 0px));
        background: #FFFFFF; overflow-y: auto; z-index: 200;
    }
    body.msearch-open .msearch-idle { display: flex; }
    body.msearch-open form.has-query .msearch-idle { display: none; }
    .msearch-idle h3 {
        margin: 0 0 10px; font-size: 12px; line-height: 16px;
        font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B7480;
    }
    .msearch-idle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .msearch-idle-chips .chip {
        min-height: 42px; font-size: 14px;
        background: #FFFFFF !important; color: #0B1320 !important; border-color: #DDE3E0 !important;
    }
    .msearch-idle-chips .chip:active { background: #F0FFD6 !important; }
    .msearch-idle .msearch-recent { display: flex; flex-wrap: wrap; gap: 8px; }
    .msearch-recent button {
        display: inline-flex; align-items: center; gap: 7px; min-height: 42px;
        padding: 0 12px; border: 1px solid #E3E8E5; border-radius: 999px;
        background: #F5F7F6; color: #0B1320; font: inherit; font-size: 14px; font-weight: 600;
    }
    .msearch-recent button svg { width: 15px; height: 15px; color: #6B7480; }
}

/* --------------------------------------------------------------------------
   4) FILTERI — pravi bottom sheet, miran ritam, jasni prekidači.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    body:has(dialog.filter-dialog[open]) { overflow: hidden; }
    dialog.filter-dialog {
        position: fixed; inset: auto 0 0 0; margin: 0;
        width: 100%; max-width: 100%; height: auto;
        max-height: 92dvh; padding: 0; border: 0; outline: 0;
        border-radius: 22px 22px 0 0; overflow: hidden;
        background: #FFFFFF; color: #0B1320;
        box-shadow: 0 -24px 60px rgba(11, 19, 32, .28);
        animation: mv2-sheet-in .28s var(--mv2-ease);
    }
    dialog.filter-dialog::backdrop {
        background: rgba(11, 19, 32, .46);
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    }
    @keyframes mv2-sheet-in {
        from { transform: translateY(18px); opacity: .6; }
        to { transform: translateY(0); opacity: 1; }
    }
    .filter-dialog .filter-sheet-panel { height: auto; max-height: 92dvh; border-radius: 22px 22px 0 0; }
    .filter-dialog .filter-sheet-panel::before {
        content: ""; display: block; position: absolute; top: 8px; left: 50%;
        width: 40px; height: 4px; margin-left: -20px; border-radius: 99px;
        background: #D5DBD8; z-index: 3;
    }
    .filter-dialog .filter-sheet-head {
        position: relative; height: 64px; padding: 18px 8px 8px 18px;
        border-bottom: 1px solid #ECEFED; background: #FFFFFF;
    }
    .filter-dialog .filter-sheet-head h2 { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; }
    .filter-dialog .filter-sheet-close { width: 40px; height: 40px; border-radius: 999px; background: #F3F5F4; }
    .filter-dialog .filter-sheet-close:hover { background: #E9EDEB; }
    .filter-dialog .filter-body {
        padding: 6px 18px 20px; background: #FFFFFF;
        display: flex; flex-direction: column; gap: 2px;
        max-height: calc(92dvh - 190px); overflow-y: auto;
        overscroll-behavior: contain;
    }
    .filter-dialog .filter-group {
        padding: 10px 0; border-top: 1px solid #F0F3F1; margin: 0 !important;
    }
    .filter-dialog .filter-group:first-child { border-top: 0; }
    .filter-dialog .mg > summary {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        min-height: 44px; cursor: pointer; list-style: none;
        font-size: 16px; line-height: 22px; font-weight: 800; color: #0B1320;
    }
    .filter-dialog .mg > summary::-webkit-details-marker { display: none; }
    .filter-dialog .mg > summary .mg-count {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 22px; height: 22px; padding: 0 7px; margin-inline-start: 8px;
        border-radius: 999px; background: #0B1320; color: #A6FF00;
        font-size: 11px; font-weight: 800;
    }
    .filter-dialog .mg > summary .mg-chev { width: 18px; height: 18px; color: #5A6472; transition: transform .18s var(--mv2-ease); flex: none; }
    .filter-dialog .mg[open] > summary .mg-chev { transform: rotate(180deg); }
    .filter-dialog .mg-body { padding: 6px 0 10px; display: flex; flex-direction: column; gap: 0; }
    .filter-dialog .filter-check,
    .filter-dialog .filter-radio {
        display: flex; align-items: center; gap: 12px;
        min-height: 48px; padding: 4px 2px; border-radius: 10px;
        font-size: 15px; line-height: 20px; text-decoration: none; color: #0B1320;
    }
    .filter-dialog .filter-check:active,
    .filter-dialog .filter-radio:active { background: #F5F7F6; }
    .filter-dialog .filter-label { flex: 1 1 auto; min-width: 0; font-weight: 600; }
    .filter-dialog .filter-count { flex: none; color: #8E9A93; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .filter-dialog input[type="checkbox"],
    .filter-dialog input[type="radio"] {
        -webkit-appearance: none; appearance: none;
        width: 24px; height: 24px; min-height: 0; margin: 0; flex: none;
        border: 1.5px solid #C5CEC9; background: #FFFFFF; border-radius: 7px;
        display: grid; place-items: center; transition: border-color .12s, background .12s;
    }
    .filter-dialog input[type="radio"] { border-radius: 50%; }
    .filter-dialog input[type="checkbox"]:checked,
    .filter-dialog input[type="radio"]:checked { background: #0B1320; border-color: #0B1320; }
    .filter-dialog input[type="checkbox"]:checked::after {
        content: ""; width: 12px; height: 7px; margin-top: -2px;
        border-left: 2.5px solid #A6FF00; border-bottom: 2.5px solid #A6FF00;
        transform: rotate(-45deg);
    }
    .filter-dialog input[type="radio"]:checked::after {
        content: ""; width: 9px; height: 9px; border-radius: 50%; background: #A6FF00;
    }
    .filter-dialog .filter-radio, .filter-dialog .filter-radio .filter-label { text-decoration: none; }
    .filter-dialog .filter-radio[aria-current="true"] {
        background: #F0FFD6; box-shadow: inset 0 0 0 1px #DDF5AE;
    }
    .filter-dialog .filter-radio[aria-current="true"] .filter-label { font-weight: 800; }
    .filter-dialog .filter-more > summary {
        min-height: 44px; display: flex; align-items: center; gap: 6px;
        font-size: 14px; font-weight: 700; color: #00754F; cursor: pointer;
    }
    .filter-dialog .filter-sheet-foot {
        gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #ECEFED; background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    .filter-dialog .filter-sheet-foot .btn { min-height: 50px; border-radius: 12px; font-size: 15px; }
    .filter-dialog .filter-sheet-foot .btn-primary { flex: 1.5 1 0; }

    /* Aktivni filteri iznad rezultata — vidljivo, uklonjivo jednim dodirom. */
    .listing-active { gap: 6px; margin-bottom: 12px; }
    .listing-active .chip {
        min-height: 38px; padding: 0 10px 0 12px; font-size: 13px;
        background: #FFFFFF; border-color: #C5CEC9;
    }
}

/* --------------------------------------------------------------------------
   5) LISTING — lepljiva kontrolna traka; kartice dišu, ali ne jedu ekran.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .listing-layout.has-filters { display: block !important; }
    .listing-filters, .facetbar-form { display: none !important; }
    .listing { padding-top: 10px; }
    .listing-crumbs { margin: 4px 0 10px; font-size: 12px; line-height: 18px; }
    .listing-crumbs ol { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }
    .listing-crumbs ol::-webkit-scrollbar { display: none; }
    .listing-title { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
    .listing-meta { font-size: 13px; line-height: 18px; }
    .listing-head { margin-bottom: 8px; }
    .listing-controls {
        display: flex; align-items: center; gap: 10px; justify-content: space-between;
        position: sticky; top: calc(var(--mv2-hdr-h, var(--mv2-hdr-compact)) + env(safe-area-inset-top, 0px));
        z-index: 40; margin: 0 -16px 10px; padding: 8px 16px;
        background: rgba(245, 247, 246, .94);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(221, 227, 224, .8);
    }
    .listing-controls .filter-toggle {
        min-height: 44px; border-radius: 999px; padding-inline: 16px;
        font-weight: 700; background: #FFFFFF; border-color: #C5CEC9;
    }
    .listing-controls .catalog-sort { min-width: 0; margin-left: auto; }
    .listing-controls .catalog-sort select { min-height: 44px; border-radius: 999px; font-weight: 700; max-width: 56vw; background-color: #FFFFFF; }
    .listing-controls .catalog-sort label { display: none; }
    .listing-subline { margin-bottom: 12px; }
    .listing-subcats { scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
    .listing-subcats::-webkit-scrollbar { display: none; }
    .listing-subcats .chip { min-height: 38px; font-size: 13px; background: #FFFFFF; }
    .product-grid { gap: 10px; }
    .product-grid .product-tile { border-radius: 16px; overflow: hidden; }
    .product-tile .product-tile-media { border-radius: 12px; }
    .product-tile .product-tile-media { max-height: 190px; }
    .product-tile .product-tile-media img { max-height: 170px; }
    .product-tile .product-tile-fav,
    .product-tile .product-tile-compare { width: 38px; height: 38px; border: 0; box-shadow: 0 4px 12px rgba(11, 19, 32, .14); background: rgba(255, 255, 255, .96); }
    .product-tile .product-tile-fav .i,
    .product-tile .product-tile-compare .i { width: 18px; height: 18px; }
    .product-tile .product-tile-name { font-size: 14px; line-height: 19px; }
    .product-tile .product-tile-price { font-size: 17px; line-height: 22px; }
    .product-tile .product-tile-cta { min-height: 42px; border-radius: 11px; font-size: 13.5px; }
    .listing-empty { border-radius: 16px; }
    .compare-tray { bottom: calc(var(--bottomnav-h, 58px) + 8px) !important; border-radius: 16px 16px 0 0; }
}

/* --------------------------------------------------------------------------
   6) PROIZVOD — galerija umerena, cena vidljiva, lepljiva CTA traka.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .pp { padding-bottom: 8px; }
    .pp-top { padding-top: 8px; }
    .pp-crumb { margin: 0 0 10px; font-size: 12px; line-height: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .pp-crumb ol { flex-wrap: nowrap; }
    .pp-crumb::-webkit-scrollbar { display: none; }
    .pp-hero { gap: 14px; }
    .pp-gal-col .gal, .pp-gal-col .stage { border-radius: 16px; }
    .pp-gal-col .stage { aspect-ratio: 4 / 3; max-height: 300px; }
    .pp-gal-col .stage svg { width: 44px; height: 44px; opacity: .6; }
    .pp-title { font-size: clamp(24px, 6.8vw, 30px); line-height: 1.12; letter-spacing: -.025em; margin: 6px 0 10px; }
    .bbx { border-radius: 16px; padding: 14px; }
    .bbx .pxl { font-size: clamp(30px, 9vw, 38px); }
    .bb-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
    .bb-actions > .btn, .bb-actions > details { flex: 1 1 0; min-width: 0; }
    .bb-actions .btn { min-height: 48px; border-radius: 12px; font-size: 14px; }
    .pp { padding-bottom: 82px; }
    .pp-tabs { position: sticky; top: calc(var(--mv2-hdr-h, var(--mv2-hdr-compact)) + env(safe-area-inset-top, 0px)); z-index: 35; background: rgba(245, 247, 246, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .pp-tabs a, .pp-tabs button { min-height: 46px; }
    .offer, .pp-offer, .buybox { border-radius: 14px; }
    .mpp-bar {
        position: fixed; left: 10px; right: 10px;
        bottom: calc(var(--bottomnav-h, 58px) + 8px + env(safe-area-inset-bottom, 0px));
        z-index: 45; display: flex; align-items: center; gap: 10px;
        min-height: 64px; padding: 8px 8px 8px 14px;
        border-radius: 16px; background: #0B1320; color: #FFFFFF;
        box-shadow: 0 18px 40px -12px rgba(11, 19, 32, .55), 0 2px 8px rgba(11, 19, 32, .2);
        transform: translateY(18px); opacity: 0; pointer-events: none;
        transition: transform .22s var(--mv2-ease), opacity .2s var(--mv2-ease);
    }
    .mpp-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
    .mpp-bar-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 1px; }
    .mpp-bar-txt small { font-size: 10.5px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E9A93; }
    .mpp-bar-txt b { font-size: 17px; line-height: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mpp-bar .btn { flex: none; min-height: 48px; border-radius: 12px; font-size: 14px; padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   7) KATEGORIJE, BRENDOVI, PRODAVNICE — lakši grid, veći dodirni ciljevi.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .cats-page, .cns { padding-top: 14px; }
    .cat-grid, .cats-grid { gap: 10px; }
    .cat-card, .cats-card { border-radius: 16px; min-height: 74px; }
    .directory-grid.listing-dir { gap: 10px; }
    .directory-grid.listing-dir > * { border-radius: 16px; }
}

/* --------------------------------------------------------------------------
   8) DONJA NAVIGACIJA — jasno aktivno stanje, lagana „app" traka.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .bottomnav {
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid rgba(221, 227, 224, .9);
        box-shadow: 0 -8px 24px -18px rgba(11, 19, 32, .3);
    }
    .bottomnav a {
        position: relative; min-height: 56px; gap: 1px; padding-top: 5px;
        font-size: 10.5px; line-height: 13px; font-weight: 700; color: #6B7480;
        transition: color .15s;
    }
    .bottomnav a .i { width: 22px; height: 22px; stroke-width: 1.9; }
    .bottomnav a.on, .bottomnav a[aria-current] { color: #0B1320; }
    .bottomnav a.on .i, .bottomnav a[aria-current] .i { color: #0B1320; }
    .bottomnav a.on::before, .bottomnav a[aria-current]::before {
        content: ""; position: absolute; top: 2px; left: 50%;
        width: 34px; height: 26px; margin-left: -17px; border-radius: 9px;
        background: #F0FFD6; z-index: -1;
    }
    .bottomnav a:active { background: #F5F7F6; }
}

/* --------------------------------------------------------------------------
   9) PODNOŽJE — na telefonu sekcije su sklopljene, brend i pravni tekst ostaju.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .foot { margin-top: 32px; }
    .foot-in { padding-top: 8px; }
    .fgrid { gap: 0; grid-template-columns: minmax(0, 1fr); }
    .fgrid > .fbrand { padding: 18px 0 14px; border-bottom: 1px solid #25303F; }
    .fbrand img { height: 34px; width: auto; }
    .fbrand p { font-size: 13px; line-height: 20px; }
    .facc { border-bottom: 1px solid #25303F; }
    .facc > summary {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        min-height: 54px; margin: 0; list-style: none; cursor: pointer;
        font-weight: 800; font-size: 14px; line-height: 20px; color: #FFFFFF;
    }
    .facc > summary::-webkit-details-marker { display: none; }
    .facc > summary svg { width: 18px; height: 18px; flex: none; color: #8E9A93; transition: transform .18s var(--mv2-ease); }
    .facc[open] > summary svg { transform: rotate(180deg); }
    .facc .fcol h2 { display: none; }
    .facc .fcol ul { padding-bottom: 8px; }
    .facc .fcol a { min-height: 40px; }
    .facc-src { display: none !important; }
    .foot-note { font-size: 12px; line-height: 18px; margin-top: 18px; }
    .foot-bottom { gap: 8px; }
}

/* --------------------------------------------------------------------------
   10) MEGA MENI — pun ekran, bez slučajnog skrola, sa pretragom na vrhu.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    body:has(.mm[open]) .hdr-bar { position: static !important; z-index: auto !important; }
    body:has(.mm[open]) .nav-cats-row { position: static !important; z-index: auto !important; }
    body:has(.mm[open]) .mm-panel { z-index: 20 !important; }
    body:has(.mm[open]) .mm-scrim { display: none !important; }
    .mm-panel {
        right: 0 !important; width: 100% !important; max-width: 100% !important;
        bottom: 0 !important; padding-bottom: env(safe-area-inset-bottom, 0px);
        border: 0 !important; border-radius: 0 !important;
        box-shadow: none !important;
    }
    .mm-sheet-head {
        min-height: 62px; padding-top: max(10px, env(safe-area-inset-top, 0px));
        background: #FFFFFF !important; color: #0B1320 !important;
        border-bottom: 1px solid #ECEFED;
    }
    .mm-sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
    .mm-close { background: #F3F5F4 !important; border-radius: 999px !important; color: #0B1320 !important; font-size: 24px !important; }
    #mm-panel .mm-l1-link { min-height: 56px !important; padding-inline: 18px !important; font-size: 15.5px !important; }
    #mm-panel .mm-l1-link.on { background: #F0FFD6 !important; color: #0B1320 !important; }
    #mm-panel a.mm-ms-link {
        display: flex; align-items: center; gap: 10px;
        margin: 10px 14px 6px; min-height: 46px; padding: 0 14px;
        border-radius: 12px; background: #F3F5F4; color: #6B7480;
        font-size: 14px; font-weight: 600; text-decoration: none;
    }
    #mm-panel a.mm-ms-link svg { width: 18px; height: 18px; flex: none; color: #0B1320; }
    .mm-sub { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* --------------------------------------------------------------------------
   11) KOLAČIĆI — kompaktna kartica, dugmad preko cele širine i bez skoka.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .ckb {
        left: 8px !important; right: 8px !important;
        bottom: calc(var(--bottomnav-h, 58px) + 8px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 18px !important;
        max-height: 70dvh; overflow-y: auto;
        box-shadow: 0 18px 50px -14px rgba(11, 19, 32, .45) !important;
    }
    .ckb-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ckb-actions .ckb-settings { grid-column: 1 / -1; order: 3; }
    .ckb-actions .btn { min-height: 46px; border-radius: 11px; }
}

/* Inline strelice u linkovima: bez ovoga SVG bez širine iskoči kao crni trougao. */
a > svg:not([class]):not([width]),
button > svg:not([class]):not([width]),
summary > svg:not([class]):not([width]) { width: 16px; height: 16px; flex: none; }
.bbx-trend-link svg { width: 15px; height: 15px; flex: none; stroke-width: 2; }

/* --------------------------------------------------------------------------
   12) SITNICE KOJE SE PRIMEĆUJU — fokus, skrol, selekcija, animacije.
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    :focus-visible { outline-offset: 3px; }
    ::selection { background: #A6FF00; color: #0B1320; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mv2-hdr-compact) + 12px); }
    body.msearch-open, body:has(dialog[open]) { overscroll-behavior: contain; }
    img { max-width: 100%; }
    .wrap { padding-left: 16px; padding-right: 16px; }
    .sect { padding-top: 24px; }
    .shead { gap: 6px; }
    .shead > h2 { font-size: 21px; line-height: 26px; }
    .shead > p { font-size: 13px; line-height: 19px; }
    .shead > a { min-height: 44px; }
    .bento { gap: 8px; }
    .bt { border-radius: 14px; }
    .home .bento .bt { height: 100%; min-height: 104px; padding: 12px; gap: 10px; }
    .home .bento .bt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .home .bento .bt small:not(.feat-count) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .hdr, .hdr-bar, .nav-cats-row, .mpp-bar, dialog.filter-dialog { transition: none !important; animation: none !important; }
}
