/* Auto Beli — mobile app shell (bottom tab bar, sticky buy bar). Desktop is untouched. */
.ab-app-tabbar,.ab-app-buybar{display:none}

@media (max-width:820px){
  html{-webkit-tap-highlight-color:transparent}
  body{overscroll-behavior-y:none;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  body.woocommerce-checkout,body.woocommerce-cart{padding-bottom:0}
  a,button,input,select,textarea,label{touch-action:manipulation}

  /* compact, app-like header that tucks away while scrolling down */
  .ab-site-header{position:sticky;top:0;z-index:900;transition:transform .25s ease,box-shadow .25s ease}
  .ab-site-header.ab-app-hidden{transform:translateY(-100%)}
  .ab-site-header.ab-app-scrolled{box-shadow:0 2px 14px rgba(5,43,86,.18)}
  .ab-header-actions .ab-cart-link,.ab-header-actions a[aria-label="Moj nalog"]{display:none}

  .ab-app-tabbar{
    display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:950;
    height:calc(64px + env(safe-area-inset-bottom,0px));padding:0 4px env(safe-area-inset-bottom,0px);
    background:rgba(255,255,255,.97);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);
    border-top:1px solid rgba(5,43,86,.10);box-shadow:0 -6px 24px rgba(5,43,86,.08)
  }
  .ab-app-tab{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;
    color:#5b6b7f;text-decoration:none;font:600 11px/1.1 inherit;letter-spacing:.01em;position:relative
  }
  .ab-app-tab-icon{position:relative;display:grid;place-items:center;width:56px;height:30px;border-radius:16px;transition:background-color .2s ease,color .2s ease}
  .ab-app-tab.is-active{color:#052b56}
  .ab-app-tab.is-active .ab-app-tab-icon{background:rgba(7,54,108,.12)}
  .ab-app-tab:active .ab-app-tab-icon{background:rgba(7,54,108,.18);transform:scale(.96)}
  .ab-app-tab-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .ab-app-badge{
    position:absolute;top:-2px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    background:#d62d20;color:#fff;font:700 11px/18px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff
  }
  .ab-app-badge[hidden]{display:none}

  /* sticky buy bar on product pages, sits above the tab bar */
  .ab-app-buybar{
    position:fixed;left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:940;
    display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:18px;
    background:#052b56;color:#fff;box-shadow:0 10px 30px rgba(5,43,86,.35);
    transform:translateY(16px);opacity:0;pointer-events:none;transition:transform .25s ease,opacity .25s ease
  }
  .ab-app-buybar.is-visible{transform:none;opacity:1;pointer-events:auto}
  .ab-app-buybar[hidden]{display:flex}
  .ab-app-buybar-info{display:flex;flex-direction:column;min-width:0;flex:1}
  .ab-app-buybar-title{font-size:12px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ab-app-buybar-price{font-size:17px;line-height:1.2}
  .ab-app-buybar-price .woocommerce-Price-amount{color:#fff}
  .ab-app-buybar-btn{
    flex:none;border:0;border-radius:14px;padding:13px 18px;background:#fff;color:#052b56;
    font:700 15px/1 inherit;cursor:pointer
  }
  .ab-app-buybar-btn:active{transform:scale(.97)}
  .ab-app-buybar-btn.is-loading{opacity:.7}

  /* things that would sit under the bars */
  .woocommerce-store-notice,.abe-consent--bottom{bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
  .pam-sticky-atc,.ab-sticky-atc{display:none!important}
  .ab-mobile-product-bar{bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;z-index:940!important}

  /* app-like touch targets and inputs (16px stops iOS zoom on focus) */
  input,select,textarea{font-size:16px}
  .ab-btn,.button,button.single_add_to_cart_button{min-height:48px}
}

@media (max-width:820px) and (prefers-reduced-motion:reduce){
  .ab-site-header,.ab-app-buybar{transition:none}
}

/* installed app (standalone) gets a little extra polish */
@media (display-mode:standalone){
  body{user-select:none;-webkit-user-select:none}
  input,textarea,[contenteditable],.woocommerce-product-details__short-description,.entry-content{user-select:text;-webkit-user-select:text}
}

/* Inner pages WITHOUT a photo header: header, dropdown (mega) menu, sticky header and mobile menu
   in brand blue #052b56. The front page and every page that opens with a dark photo header
   (.ab-inner-media-hero: O nama, Kontakt, Blog, Materijali…) keep the dark menu so it matches the photo.
   (Browsers without :has() simply keep the dark menu everywhere.) */
body.auto-beli-theme:not(.home):not(:has(.ab-inner-media-hero)) .ab-site-header,
body.auto-beli-theme:not(.home):not(:has(.ab-inner-media-hero)) .ab-site-header.ab-app-scrolled{background:#052b56!important;border-color:rgba(255,255,255,.12)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
body.auto-beli-theme:not(.home):not(:has(.ab-inner-media-hero)) .ab-mega-menu{background:#052b56!important;background-image:none!important;border-color:rgba(255,255,255,.12)!important}
body.auto-beli-theme:not(.home):not(:has(.ab-inner-media-hero)) .ab-mega-cta{background:#07366c!important;border-color:rgba(255,255,255,.14)!important}
body.auto-beli-theme:not(.home):not(:has(.ab-inner-media-hero)) .ab-mobile-drawer-panel{background:#052b56!important}

/* Configurator: steps skipped because only one (or no) choice exists for the vehicle */
.pam-config-note{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:#eef4fb;border:1px solid #c9dcf0;color:#073a6e;font-size:14px;line-height:1.45}
.pam-config-note p{margin:0}
.pam-config-note p+p{margin-top:6px}
.pam-config-note p::before{content:"ℹ";display:inline-block;width:1.4em;font-weight:700}
[data-pam-step-tab].is-skipped{opacity:.5}

/* Footer – podaci o firmi */
.ab-footer-company dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0 0 14px;font-size:13.5px;line-height:1.45}
.ab-footer-company dt{color:rgba(255,255,255,.5);font-weight:600;white-space:nowrap}
.ab-footer-company dd{margin:0;color:rgba(255,255,255,.82);overflow-wrap:anywhere}
.ab-site-footer .ab-footer-company dd a{display:inline;margin:0;color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
.ab-site-footer .ab-footer-company dd a:hover{text-decoration-color:#fff}
.ab-footer-company .ab-sep{color:rgba(255,255,255,.5)}
@media(min-width:1181px){.ab-footer-grid-rich{grid-template-columns:1fr 1fr 1fr 1.45fr}}
@media(max-width:820px){.ab-footer-company dl{font-size:14px}}

/* Marke bez logotipa: neutralna ikonica automobila umesto inicijala */
.ab-home-brand-logo.is-placeholder svg,.pam-brand-logo--placeholder svg{display:block;width:34px;height:auto;color:#9aa7b6;margin:auto}
.pam-brand-logo--placeholder{display:flex;align-items:center;justify-content:center}

/* [abe_company] – podaci o firmi na pravnim stranama */
.abe-company{display:grid;grid-template-columns:minmax(120px,190px) 1fr;margin:14px 0 26px;border:1px solid var(--ab-border,#d9e3ee);border-radius:12px;overflow:hidden;background:#fff;max-width:680px}
.abe-company dt,.abe-company dd{margin:0;padding:11px 16px;border-bottom:1px solid var(--ab-border,#d9e3ee);font-size:15px;line-height:1.45}
.abe-company dt{background:#f5f8fb;color:#4b5868;font-weight:700}
.abe-company dd{color:var(--ab-text,#15171a);overflow-wrap:anywhere}
.abe-company dt:nth-last-of-type(1),.abe-company dd:last-of-type{border-bottom:0}
.abe-company a{color:#07366c;text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.abe-company{grid-template-columns:1fr}.abe-company dt{border-bottom:0;padding-bottom:2px;font-size:13px}.abe-company dd{padding-top:2px}}
