/* HELIKS mobilna adaptacija – korak 1. Desktop pravila nisu izmenjena. */
.heliks-mobile-header{display:none}
@media screen and (max-width:900px){
  html,body{margin:0!important;padding:0;width:100%;min-width:0}
  body{font-size:15px}
  .heliks-desktop-header,.heliks-desktop-footer,.mmenu,#toggle,.feature,.feature2{display:none!important}
  .heliks-mobile-header{display:block;width:100%;box-sizing:border-box;background:#fff;font-family:Chivo,Arial,sans-serif}
  .heliks-mobile-bar{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 12px;box-sizing:border-box;border-bottom:4px solid #d71920}
  #heliks-menu-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;padding:0;border:1px solid #ccc;border-radius:5px;background:#fff;color:#222;font-size:26px;cursor:pointer}
  .heliks-mobile-brand{color:#b71920!important;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:1px}
  .heliks-mobile-basket{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:42px;margin-left:auto;color:#b71920!important;text-decoration:none}
.heliks-mobile-basket-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}
.heliks-mobile-basket-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.heliks-mobile-basket-count{position:absolute;top:1px;right:-2px;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#b71920;color:#fff;font:700 11px/1 Arial,sans-serif}
.heliks-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  #heliks-mobile-nav{background:#fff;border-bottom:1px solid #ccc;padding:4px 12px 10px}
  #heliks-mobile-nav[hidden]{display:none!important}
  #heliks-mobile-nav a{display:block;padding:11px 10px;border-bottom:1px solid #eee;color:#222!important;text-decoration:none;font-size:15px}
  #heliks-mobile-nav a:last-child{border-bottom:0}
  .glavna,.glavna2{width:100%!important;max-width:100%;background:none;border:0;border-collapse:collapse}
  .glavna>tbody>tr>td[width="140"],.glavna>tbody>tr>td[width="170"],
  .glavna2>tbody>tr>td[width="140"],.glavna2>tbody>tr>td[width="170"]{display:none!important}
  .glavna>tbody>tr>td[width="540"],.glavna2>tbody>tr>td[width="540"]{display:table-cell;width:100%!important;max-width:100%;box-sizing:border-box}
  .glavna>tbody>tr>td[width="540"]>table,.glavna2>tbody>tr>td[width="540"]>table{width:100%!important;max-width:100%}
  .glavna img,.glavna2 img{max-width:100%;height:auto}
}

/* Korak 1a: isključivo naslovna strana (index.php). */
@media screen and (max-width:900px){
  .glavna.heliks-home{width:100%!important;table-layout:fixed}
  .glavna.heliks-home>tbody>tr>td[width="540"]>table.def{width:100%!important;table-layout:fixed}
  .glavna.heliks-home .defpozadina,.glavna.heliks-home .stamna{overflow-wrap:break-word}
  .glavna.heliks-home .defpozadina h3{max-width:100%;padding:0 12px;box-sizing:border-box;font-size:18px}
  .glavna.heliks-home .defpozadina p{margin-left:16px;margin-right:16px;line-height:1.45}
  .glavna.heliks-home .defpozadina img[align="left"]{float:none!important;display:block;margin:12px auto 16px!important;max-width:calc(100% - 24px);height:auto}
  .glavna.heliks-home #taleb-incerto{box-sizing:border-box;width:calc(100% - 32px)!important;height:auto!important;margin:16px auto!important;display:flow-root}
  .glavna.heliks-home #taleb-incerto-slika{float:none!important;position:static!important;width:100%}
  .glavna.heliks-home #taleb-incerto-slika img{display:block;width:100%!important;height:auto!important}
  .glavna.heliks-home #modul{box-sizing:border-box;width:calc(100% - 32px)!important;height:auto!important;margin:16px auto!important;padding:12px;display:flow-root}
  .glavna.heliks-home #jesenski-slika{float:none!important;margin:0 auto 16px!important;width:max-content;max-width:100%;position:relative}
  .glavna.heliks-home #jesenski-slika img{max-width:100%!important;height:auto!important}
  .glavna.heliks-home #jesenski-ponuda{float:none!important;width:100%!important;box-sizing:border-box;margin:0!important;font-size:18px!important;line-height:1.35!important}
}

/* Korak 1b: dinamička mobilna naslovna iz svih AKTIVNIH odeljaka bočnih kolona. */
.heliks-mobile-home{display:none}
@media screen and (max-width:900px){
  .glavna.heliks-home{display:none!important}
  .heliks-home-ready .glavna.heliks-home{display:none!important}
  .heliks-home-ready .heliks-mobile-home{display:block;width:100%;max-width:700px;margin:0 auto;padding:12px 12px 32px;box-sizing:border-box;font-family:Chivo,Arial,sans-serif}
  .heliks-mobile-home .heliks-home-sale{display:block;box-sizing:border-box;background:#b71920;color:#fff!important;text-align:center;text-decoration:none;font-size:18px;line-height:1.35;font-weight:700;border-radius:5px;padding:16px 12px;margin:4px 0 18px}
  .heliks-mobile-home .heliks-home-section{margin:0 0 22px}
  .heliks-mobile-home h2{margin:18px 0 12px;padding:0 0 8px;border-bottom:3px solid #bd1522;color:#333;font-size:19px;line-height:1.3;text-align:left}
  .heliks-mobile-home .heliks-home-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
  .heliks-mobile-home .heliks-home-book{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:11px 8px;background:#f2ebd9;border:1px solid #e3dbc8;border-radius:4px;box-sizing:border-box;color:#155b82!important;text-decoration:none}
  .heliks-mobile-home .heliks-home-book[hidden]{display:none!important}
  .heliks-mobile-home .heliks-home-book img{display:block;width:100%;max-width:130px;height:170px;object-fit:contain;object-position:center}
  .heliks-mobile-home .heliks-home-book span{display:block;width:100%;font-size:14px;line-height:1.3;text-align:center;overflow-wrap:anywhere;font-weight:700}
  .heliks-mobile-home .heliks-home-toggle{display:block;margin:12px 0 0 auto;padding:8px 12px;border:1px solid #b71920;border-radius:4px;background:#fff;color:#b71920;font:700 14px Chivo,Arial,sans-serif;cursor:pointer}
  .heliks-mobile-home .heliks-home-fallback{font-size:15px;line-height:1.45;padding:8px 0}
  .heliks-mobile-home .heliks-home-fallback img{max-width:100%;height:auto}
  .heliks-mobile-home .heliks-home-more{display:block;text-align:center;background:#eee7d8;padding:12px;color:#b71920!important;font-size:15px;font-weight:700;text-decoration:none;border-radius:4px;margin:16px 0}
}

/* Korak 2: naslovnica i dugme za kupovinu na pojedinacnim stranicama knjiga. */
@media screen and (max-width:900px){
  #slikaipodaci #slikakorice{float:none!important;display:block;width:max-content;max-width:calc(100% - 70px);margin:0 auto 18px!important}
  #slikaipodaci #podacioknjizi{float:none!important;width:auto!important;max-width:calc(100% - 70px);margin-left:35px!important;margin-right:35px!important}
  #slikaipodaci{padding-bottom:28px}
}


/* Korak 3: kartice korpe, isključivo korpa.php na telefonima/tabletima. */
@media screen and (max-width:900px){
  .glavna.heliks-cart-page{table-layout:fixed}
  .glavna.heliks-cart-page>tbody>tr>td[width="540"]>table.def{table-layout:fixed}
  .heliks-cart-page #ispis_korpe{width:100%;box-sizing:border-box;padding:12px 14px 26px;font-size:15px;line-height:1.45;overflow-wrap:break-word}
  .heliks-cart-page .simpleCart_items{float:none!important;clear:both;width:100%!important;max-width:100%;margin:4px 0 14px!important;box-sizing:border-box;font-family:Chivo,Arial,sans-serif}
  .heliks-cart-page .simpleCart_items>div{width:100%;box-sizing:border-box}
  .heliks-cart-page .simpleCart_items .headerRow{display:none!important}
  .heliks-cart-page .simpleCart_items .itemRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"name name" "price quantity" "total remove";gap:14px 12px;float:none!important;clear:both;width:100%!important;height:auto!important;box-sizing:border-box;margin:0 0 12px!important;padding:16px 14px!important;background:#fffaf1;border:1px solid #d7cbb5;border-radius:6px;font-size:14px}
  .heliks-cart-page .simpleCart_items .itemRow>div{float:none!important;width:auto!important;min-width:0;margin:0!important;padding:0!important;text-align:left!important;overflow-wrap:anywhere}
  .heliks-cart-page .simpleCart_items .itemRow .item-name{grid-area:name;padding-bottom:12px!important;border-bottom:1px solid #e6dccb;font-size:16px;font-weight:700;line-height:1.4}
  .heliks-cart-page .simpleCart_items .itemRow .item-name a{color:#155b82!important;text-decoration:none;font-weight:700}
  .heliks-cart-page .simpleCart_items .itemRow .item-price{grid-area:price}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity{grid-area:quantity}
  .heliks-cart-page .simpleCart_items .itemRow .item-total{grid-area:total;font-size:16px;font-weight:700;color:#222}
  .heliks-cart-page .simpleCart_items .itemRow .item-remove{grid-area:remove;align-self:end;text-align:right!important}
  .heliks-cart-page .simpleCart_items .itemRow .item-price::before,.heliks-cart-page .simpleCart_items .itemRow .item-quantity::before,.heliks-cart-page .simpleCart_items .itemRow .item-total::before{display:block;margin-bottom:4px;font-size:12px;line-height:1.2;font-weight:400;color:#666}
  .heliks-cart-page .simpleCart_items .itemRow .item-price::before{content:"Cena"}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity::before{content:"Količina"}
  .heliks-cart-page .simpleCart_items .itemRow .item-total::before{content:"Ukupno"}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity input{display:block;box-sizing:border-box;width:65px!important;height:42px!important;margin:0!important;padding:5px!important;border:1px solid #aaa;border-radius:4px;background:#fff;font-size:16px!important;text-align:center}
  .heliks-cart-page .simpleCart_items .itemRow .item-remove a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:80px;box-sizing:border-box;padding:0 12px;border:1px solid #d7adb0;border-radius:4px;background:#fff;color:#ad1525!important;text-decoration:none;font-weight:700;font-size:14px}
  .heliks-cart-page #ispis_korpe>br{display:none}
  .heliks-cart-page #ispis_korpe>div[style*="border-bottom"]{height:0!important;margin:16px 0!important;clear:both}
  .heliks-cart-page #ispis_korpe>div[align="right"]{margin:0 0 14px!important;text-align:right!important;font-size:15px}
  .heliks-cart-page #ispis_korpe .button_korak{display:block;box-sizing:border-box;width:100%;min-height:52px;margin:8px 0 0;padding:14px 12px;border-radius:5px;text-decoration:none;font-size:14px;line-height:1.4}
  .heliks-cart-page #ispis_korpe .text_korak{height:auto;line-height:1.4}
  .heliks-cart-page #ispis_korpe #brart,.heliks-cart-page #ispis_korpe #nap1{margin-left:0!important}
}

/* Korak 4: podaci.php — mobilni obrazac poručioca, bez izmene validacije. */
@media screen and (max-width:900px){
  .glavna.heliks-data-page{table-layout:fixed}
  .heliks-data-page>tbody>tr>td[width="540"]>table.def{table-layout:fixed}
  .heliks-data-page .stamna h3{font-size:17px;line-height:1.35;margin:0!important;padding:7px 12px!important;overflow-wrap:break-word}
  .heliks-data-page .defpozadina{overflow-wrap:break-word}
  .heliks-data-page #body_form.wrapper{width:100%!important;max-width:540px;margin:0 auto;box-sizing:border-box;background:#f2ebd9;font:15px/1.45 Chivo,Roboto,Arial,sans-serif}
  .heliks-data-page #contact-form.fPodaci{width:100%!important;max-width:100%;margin:0;padding:16px 12px;box-sizing:border-box;background:#f2ebd9}
  .heliks-data-page #contact-form p.help{font-size:14px!important;line-height:1.45;margin:0 0 8px;padding:0 2px 10px}
  .heliks-data-page #contact-form fieldset{box-sizing:border-box;min-width:0;width:100%;margin:0;padding:12px;border:1px solid #d9d2bf;background:#e9f2ef}
  .heliks-data-page #contact-form .fieldgroup{float:none;width:100%;padding:0}
  .heliks-data-page #contact-form .fieldgroup>div{float:none;position:relative;display:block;width:100%;box-sizing:border-box;padding:0 0 15px!important}
  .heliks-data-page #contact-form .fieldgroup>div:last-child{padding-bottom:0!important}
  .heliks-data-page #contact-form .fieldgroup>div>label:not(.error){float:none;display:block;width:100%;box-sizing:border-box;margin:0 0 5px;padding:0;color:#222;font-size:14px;font-weight:700;line-height:1.45}
  .heliks-data-page #contact-form .fieldgroup>div>label em{position:static!important;color:#bd1522}
  .heliks-data-page #contact-form .fieldgroup input{display:block;width:100%!important;min-width:0;max-width:100%;height:44px;box-sizing:border-box;margin:0;padding:9px 10px;border:1px solid #a6aaa9;border-radius:4px;background:#fff;color:#111;font:16px/1.3 Arial,sans-serif}
  .heliks-data-page #contact-form .fieldgroup input:focus{border-color:#216f87;outline:2px solid #a9dce8;outline-offset:1px}
  .heliks-data-page #contact-form .fieldgroup input:disabled{background:#e9e9e9;color:#555;opacity:1}
  .heliks-data-page #contact-form .fieldgroup label.error{float:none!important;display:block;width:100%!important;max-width:100%;box-sizing:border-box;margin:5px 0 0!important;padding:0!important;text-align:left;color:#ad1525;font-size:13px;line-height:1.45}
  .heliks-data-page #contact-form .fieldgroup input.error{border:2px solid #ad1525}
  .heliks-data-page .heliks-data-next{box-sizing:border-box;width:100%;max-width:540px;margin:12px auto 0!important;padding:0 12px;text-align:center}
  .heliks-data-page .heliks-data-next .button_korak{display:block;width:100%;min-height:52px;box-sizing:border-box;margin:0;padding:14px 8px;border-radius:5px;line-height:1.4;font-size:14px;text-decoration:none}
  .heliks-data-page .heliks-data-next .text_korak{height:auto;line-height:1.4}
  .heliks-data-page .heliks-data-next+br,.heliks-data-page .heliks-data-next+br+br{display:none}
  .heliks-data-page .heliks-data-note{box-sizing:border-box;max-width:540px;margin:14px auto 22px!important;padding:0 14px;font-size:13px!important;line-height:1.5}
}


/* Korak 5: izbor nacina placanja i potvrda, samo mobilni prikaz. */
.heliks-payment-mobile-label{display:none}
@media screen and (max-width:900px){
  .glavna.heliks-payment-page,.glavna.heliks-confirm-page{table-layout:fixed}
  .heliks-payment-page>tbody>tr>td[width="540"]>table.def,.heliks-confirm-page>tbody>tr>td[width="540"]>table.def{table-layout:fixed}
  .heliks-payment-page .stamna h3,.heliks-confirm-page .stamna h3{box-sizing:border-box;margin:0!important;padding:7px 12px!important;font-size:17px;line-height:1.35;overflow-wrap:break-word}
  .heliks-payment-page .defpozadina,.heliks-confirm-page .defpozadina{box-sizing:border-box;overflow-wrap:anywhere}
  .heliks-payment-page .defpozadina{padding:8px 12px 24px}
  .heliks-payment-page .heliks-payment-option{box-sizing:border-box;margin:8px 0 0;padding:16px 14px;background:#fffaf1;border:1px solid #d7cbb5;border-radius:6px;color:#222;font-size:15px;line-height:1.5}
  .heliks-payment-page .heliks-payment-option strong{color:#145a88!important}
  .heliks-payment-page .heliks-payment-option .heliks-payment-click,.heliks-payment-page .heliks-payment-option .heliks-payment-period,.heliks-payment-page .heliks-payment-option .heliks-payment-desktop-label{display:none}
  .heliks-payment-page .heliks-payment-select{display:block;box-sizing:border-box;width:100%;min-height:50px;margin:15px 0 0;padding:13px 9px;border:1px solid #b71920;border-radius:5px;background:#b71920;color:white!important;text-align:center;text-decoration:none;font:700 15px/1.4 Chivo,Arial,sans-serif}
  .heliks-payment-page .heliks-payment-select .heliks-payment-mobile-label{display:inline;color:white!important}
  .heliks-payment-page .heliks-payment-select:focus-visible,.heliks-confirm-page button:focus-visible,.heliks-confirm-page #dugme-poruci:focus-visible{outline:3px solid #225e83;outline-offset:3px}
  .heliks-payment-page .heliks-payment-option+br{display:none}
  .heliks-payment-page #placanje_pouzecem .heliks-payment-option{margin-top:12px}
  .heliks-payment-page #placanje_pouzecem>br{display:none}
  .heliks-payment-page #troskovi_dostave{margin-top:14px}
  .heliks-payment-page #troskovi_dostave p{box-sizing:border-box;margin:0;padding:12px;background:#eee7d8;border-radius:4px;font-size:14px;line-height:1.5}
  .heliks-confirm-page .defpozadina{padding:8px 12px 25px}
  .heliks-confirm-page .potvr{margin-left:0!important;margin-right:0!important;font-size:15px!important;line-height:1.5;overflow-wrap:anywhere}
  .heliks-confirm-page .potvr.autoprored{margin-top:5px;margin-bottom:4px}
  .heliks-confirm-page .potvr:not(.autoprored){display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin-top:12px!important;margin-bottom:10px!important}
  .heliks-confirm-page .potvr button{box-sizing:border-box;min-height:40px;margin:0!important;padding:8px 12px!important;border:1px solid #999;border-radius:4px;background:#fff;font:700 14px/1.25 Chivo,Arial,sans-serif;cursor:pointer}
  .heliks-confirm-page .potvr span[style*="vertical-align"]{vertical-align:baseline!important}
  .heliks-confirm-page .heliks-confirm-method span[style*="vertical-align"]{display:block;flex:0 0 100%}
  .heliks-confirm-page table.heliks-confirm-prices{width:100%!important;max-width:100%;margin:8px 0 18px!important;table-layout:fixed;border-collapse:collapse;font-family:Chivo,Arial,sans-serif}
  .heliks-confirm-page table.heliks-confirm-prices tbody{font-size:14px!important}
  .heliks-confirm-page .heliks-confirm-prices td{box-sizing:border-box;min-width:0;padding:8px 3px;vertical-align:top;line-height:1.4;overflow-wrap:break-word}
  .heliks-confirm-page .heliks-confirm-prices td:first-child{width:57%!important}
  .heliks-confirm-page .heliks-confirm-prices td:last-child{width:43%!important;text-align:right;white-space:normal}
  .heliks-confirm-page .heliks-confirm-prices .simpleCart_total,.heliks-confirm-page .heliks-confirm-prices .simpleCart_shipping,.heliks-confirm-page .heliks-confirm-prices .simpleCart_grandTotal{white-space:nowrap;font-size:14px}
  .heliks-confirm-page .heliks-confirm-prices tr:has(.simpleCart_grandTotal){border-top:1px solid #ccc;font-weight:700}
  .heliks-confirm-page .heliks-confirm-submit{box-sizing:border-box;margin:18px 0 4px!important;text-align:center!important}
  .heliks-confirm-page #dugme-poruci{display:block;box-sizing:border-box;width:100%;min-height:52px;margin:0;padding:14px 12px;border-radius:5px;text-decoration:none;font-size:15px;line-height:1.4}
  .heliks-confirm-page #dugme-poruci .text_korak{height:auto;line-height:1.4}
}

/* Korak 6: katalozi izdanja.php i izdanja_jt.php, samo mobilni prikaz. */
.heliks-catalog-controls{display:none}
@media screen and (max-width:900px){
  .glavna.heliks-catalog-page{table-layout:fixed;background:#fff!important}
  .heliks-catalog-page>tbody>tr>td[width="540"]>table.def{table-layout:fixed;background:#fff}
  .heliks-catalog-page .defpozadina{background:#fff!important;box-sizing:border-box;overflow-wrap:anywhere}
  .heliks-catalog-page .defpozadina>p{box-sizing:border-box;margin:0!important;padding:12px 15px 20px;font-size:15px;line-height:1.5}
  .heliks-catalog-page #spisakizdanja{box-sizing:border-box;width:100%;padding:0 12px 24px}
  .heliks-catalog-page #spisakizdanja ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;width:100%;box-sizing:border-box;position:static;float:none;margin:0;padding:0;list-style:none;overflow:visible}
  .heliks-catalog-page #spisakizdanja ul li{display:flex;flex-direction:column;align-items:center;min-width:0;width:auto;box-sizing:border-box;margin:0;padding:11px 8px;background:#f2ebd9;border:1px solid #e3dbc8;border-radius:4px;color:#155b82;text-align:center}
  .heliks-catalog-page.heliks-catalog-managed #spisakizdanja li.heliks-catalog-hidden{display:none!important}
  .heliks-catalog-page #spisakizdanja li>a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:175px;text-decoration:none}
  .heliks-catalog-page #spisakizdanja li img{display:block;box-sizing:border-box;width:auto;max-width:100%;height:auto;max-height:170px;object-fit:contain;border:0!important}
  .heliks-catalog-page #spisakizdanja li p{display:block;box-sizing:border-box;width:100%;margin:8px 0 0;padding:0;color:#155b82;font-size:13px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
  .heliks-catalog-page #spisakizdanja li .velikaslova{display:block;margin:0 0 5px;font-size:14px;line-height:1.3;font-weight:700}
  .heliks-catalog-page #spisakizdanja li p a{color:#155b82!important;text-decoration:none}
  .heliks-catalog-page #spisakizdanja li p span[style*="color: #444444"]{display:block;margin-bottom:6px;font-size:12px;line-height:1.3}
  .heliks-catalog-page #spisakizdanja li p span[style*="color: black"]{font-size:12px;line-height:1.4}
  .heliks-catalog-page .heliks-catalog-controls{display:block;box-sizing:border-box;margin:20px 0 0;padding:15px 10px;background:#f6f6f6;border-radius:5px;text-align:center}
  .heliks-catalog-page .heliks-catalog-status{margin:0 0 12px;padding:0;font-size:14px;line-height:1.4;color:#444}
  .heliks-catalog-page .heliks-catalog-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
  .heliks-catalog-page .heliks-catalog-actions button{flex:1 1 135px;min-height:46px;box-sizing:border-box;padding:10px 12px;border:1px solid #b71920;border-radius:5px;background:#b71920;color:#fff;font:700 14px/1.4 Chivo,Arial,sans-serif;cursor:pointer}
  .heliks-catalog-page .heliks-catalog-actions button.heliks-catalog-all{background:#fff;color:#b71920}
  .heliks-catalog-page .heliks-catalog-actions button[hidden]{display:none!important}
  .heliks-catalog-page .heliks-catalog-actions button:focus-visible{outline:3px solid #155b82;outline-offset:2px}
}

/* Korak 6a: kompaktan tekst kartica i brojac knjiga u punoj sirini. */
@media screen and (max-width:900px){
  .heliks-catalog-page #spisakizdanja li p>br{display:none}
  .heliks-catalog-page #spisakizdanja li .velikaslova{margin-bottom:3px}
  .heliks-catalog-page #spisakizdanja li p span[style*="color: #444444"]{margin-bottom:3px}
  .heliks-catalog-page #spisakizdanja .heliks-catalog-status{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0 0 14px;padding:0;text-align:center;font:400 14px/1.4 Chivo,Arial,sans-serif;color:#444}
}

/* Korak 7: naslov knjige umesto tamne trake, samo stranice knjiga i samo mobilno. */
@media screen and (max-width:900px){
  table.def:has(#slikaipodaci)>tbody>tr:first-child>td.stamna{background:#f2ebd9!important;border:0!important;height:auto!important;padding:18px 20px 10px!important;text-align:left}
  table.def:has(#slikaipodaci)>tbody>tr:first-child>td.stamna>.stangla{display:block;margin:0;padding:0;color:#242424!important;font:700 22px/1.3 Chivo,Arial,sans-serif;white-space:normal;overflow-wrap:break-word}
  table.def:has(#slikaipodaci)>tbody>tr:first-child>td.stamna>.znakgt{display:none!important}
}

/* Korak 8: slike u OPISU KNJIGE na mobilnim ekranima. Ne utice na korice i desktop. */
@media screen and (max-width:900px){
  table.def:has(#slikaipodaci){width:100%!important;max-width:100%;table-layout:fixed}
  table.def:has(#slikaipodaci)>tbody>tr>td.secpozadina{box-sizing:border-box;max-width:100%;overflow-wrap:break-word}
  table.def:has(#slikaipodaci)>tbody>tr>td.secpozadina img{max-width:100%!important;height:auto!important;box-sizing:border-box}
  table.def:has(#slikaipodaci)>tbody>tr>td.secpozadina img[align],
  table.def:has(#slikaipodaci)>tbody>tr>td.secpozadina img[style*="float"]{display:block;float:none!important;max-width:calc(100% - 24px)!important;margin:12px auto 16px!important}
}

/* Ručna doterivanja naslovnice, bedža i preloma naslova (korisnik, novembar 2026). */
@media screen and (max-width:900px){
  #slikaipodaci #slikakorice > img{width:180px!important;height:auto!important}
  #slikaipodaci #akcijskipopust{left:-25px;bottom:-12px;transform:scale(1.2);transform-origin:left bottom}
  table.def:has(#slikaipodaci)>tbody>tr:first-child>td.stamna>.stangla{text-indent:-6px}
}

/* Korak 9: mobilne kontrole korpe; desktop prikaz zadržava stari link „Obriši”. */
.heliks-cart-page .heliks-cart-control{display:none}
@media screen and (max-width:900px){
  .heliks-cart-page .simpleCart_items .itemRow{grid-template-areas:"name name" "price total" "quantity quantity";gap:13px 12px}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity{display:grid;grid-template-columns:44px 60px 44px 44px;grid-template-rows:auto 44px;gap:6px 8px;align-items:center;justify-content:start}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity::before{grid-column:1/-1;grid-row:1;margin:0;font-size:12px}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity input{grid-column:2;grid-row:2;width:60px!important;height:44px!important}
  .heliks-cart-page .simpleCart_items .itemRow .item-remove{display:none!important}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-control{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:1px solid #b8b0a4;border-radius:5px;background:#fff;color:#252525;font:700 23px/1 Arial,sans-serif;cursor:pointer;touch-action:manipulation}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-minus{grid-column:1;grid-row:2}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-plus{grid-column:3;grid-row:2}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-trash{grid-column:4;grid-row:2;margin-left:0;border-color:#d7adb0;color:#b71920}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-trash svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-control:disabled{opacity:.35;cursor:not-allowed}
  .heliks-cart-page .simpleCart_items .itemRow .item-quantity .heliks-cart-control:focus-visible{outline:3px solid #155b82;outline-offset:2px}
}

/* Korak 10: nenametljivo obaveštenje o uspešnom dodavanju knjige, samo mobilno. */
.heliks-cart-toast{display:none}
@media screen and (max-width:900px){
  .heliks-cart-toast{display:block;position:fixed;z-index:9999;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:13px 18px;border-radius:9px;background:#236644;color:#fff;font:600 14px/1.4 Chivo,Arial,sans-serif;text-align:center;box-shadow:0 5px 22px rgba(0,0,0,.24);opacity:0;visibility:hidden;transform:translate(-50%,10px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;pointer-events:none}
  .heliks-cart-toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}
  .heliks-cart-toast::before{content:'✓';display:inline-block;margin-right:9px;font-size:17px;font-weight:700}
}
@media (prefers-reduced-motion:reduce){.heliks-cart-toast{transition:none!important}}

/* Korak 13: zajednička pretraga u zaglavlju (telefon + desktop). */
.heliks-search-toggle{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:38px;height:36px;padding:7px;border:0;border-radius:4px;background:#b71920;color:#fff;cursor:pointer}
.heliks-search-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.heliks-search-desktop-toggle{position:absolute;left:790px;top:0;z-index:1001}
.heliks-search-mobile-toggle{display:none}
.heliks-search-toggle:focus-visible,.heliks-search-panel button:focus-visible,.heliks-search-panel a:focus-visible,.heliks-search-panel input:focus-visible{outline:3px solid #155b82;outline-offset:2px}
.heliks-search-panel{position:absolute;top:37px;left:404px;z-index:1100;width:424px;max-width:calc(100vw - 20px);max-height:calc(100vh - 50px);overflow-y:auto;box-sizing:border-box;padding:15px;background:#fff;border:1px solid #cbbdbb;border-top:4px solid #b71920;border-radius:0 0 7px 7px;box-shadow:0 8px 25px rgba(0,0,0,.22);font:14px/1.4 Chivo,Arial,sans-serif;color:#222}
.heliks-search-panel[hidden],.heliks-search-more[hidden]{display:none!important}
.heliks-search-panel label{display:block;margin:0 0 8px;font-weight:700;font-size:15px}
.heliks-search-input-row{display:flex;align-items:stretch;gap:8px}
#heliks-search-input{flex:1;min-width:0;height:43px;box-sizing:border-box;padding:8px 10px;background:#fff;border:1px solid #aaa;border-radius:5px;font:16px Chivo,Arial,sans-serif;color:#222}
#heliks-search-close{flex:0 0 42px;border:1px solid #ddd;border-radius:5px;background:#f7f7f7;color:#333;font:26px/1 Arial,sans-serif;cursor:pointer}
.heliks-search-count{width:auto!important;margin:12px 0 7px!important;padding:0!important;color:#555;font:13px/1.4 Chivo,Arial,sans-serif}
.heliks-search-results{list-style:none;margin:0;padding:0}
.heliks-search-results li{margin:0;padding:0;line-height:normal}
.heliks-search-results li+li{border-top:1px solid #ece5df}
.heliks-search-results a{display:flex;align-items:center;gap:10px;min-height:55px;padding:9px 3px;color:#155b82!important;text-decoration:none;box-sizing:border-box}
.heliks-search-results a:hover{background:#f8f2e8}
.heliks-search-results img{display:block;flex:0 0 39px;width:39px;height:57px;object-fit:contain}
.heliks-search-result-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.heliks-search-result-title{font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.heliks-search-result-author{font-size:12px;color:#555;line-height:1.35}
.heliks-search-more{display:block;width:100%;min-height:42px;margin:10px 0 0;padding:8px 10px;background:#fff;color:#b71920;border:1px solid #b71920;border-radius:4px;font:700 14px Chivo,Arial,sans-serif;cursor:pointer}
@media screen and (max-width:900px){
  .heliks-search-desktop-toggle{display:none}
  .heliks-mobile-bar{gap:8px;padding-left:9px;padding-right:9px}
  .heliks-search-mobile-toggle{display:inline-flex;flex:0 0 40px;width:40px;height:42px;padding:9px;background:#fff;color:#b71920;border:1px solid #ddd}
  .heliks-search-panel{position:fixed;top:54px;left:0;right:0;width:100%;max-width:none;max-height:calc(100dvh - 64px);border-left:0;border-right:0;border-radius:0;padding:15px 16px}
  .heliks-search-results a{min-height:61px}
}
