/* eKonsument 1.1 — precise fixes based on 1.0 screenshot and original PrestaShop 1.6 theme.
 * The original external main.css is still requested. This layer fixes conflicts
 * in the visible shop header/footer; no module or database changes.
 */
@media (min-width:768px) {
  /* Old shop: dark top bar for logo/login; menu + support actions below. */
  #header .header-nav.eko-blackbar {
    height:56px!important; min-height:56px!important; max-height:none!important;
    background:#211c19!important;
  }
  #header .eko-blackbar-inner,
  #header .eko-blackbar-links {
    height:56px!important; min-height:56px!important;
  }
  #header .eko-old-brand {height:56px!important;}
  #header .eko-old-brand img {width:135px!important;max-height:46px!important;}
  #header .eko-blackbar-links {gap:16px!important;}
  #header .eko-nav-contact {display:none!important;} /* "Kontakt" is in main navigation */
  #header .eko-nav-user {gap:0!important;}
  #header .eko-blackbar-links #_desktop_user_info,
  #header .eko-blackbar-links #_desktop_user_info .user-info {
    position:static!important;display:flex!important;align-items:center!important;
    margin:0!important;padding:0!important;white-space:nowrap!important;
  }
  #header .eko-blackbar-links #_desktop_user_info a,
  #header .eko-blackbar-links #_desktop_user_info a span,
  #header .eko-blackbar-links #_desktop_user_info .material-icons {
    color:#fff!important;opacity:1!important;visibility:visible!important;
  }
  #header .eko-blackbar-links #_desktop_user_info a {
    display:inline-flex!important;align-items:center!important;gap:5px!important;
    font-size:12px!important;text-decoration:none!important;
  }
  /* The cart is a module element; position it visually in the white strip
     without duplicating its markup or detaching its JavaScript listeners. */
  #header {position:relative!important;}
  #header .eko-blackbar-links #_desktop_cart {
    position:absolute!important;top:99px!important;
    right:max(18px,calc((100vw - 1100px)/2))!important;
    width:auto!important;height:auto!important;z-index:45!important;
    display:block!important;margin:0!important;padding:0!important;
  }
  #header .eko-blackbar-links #_desktop_cart .blockcart,
  #header .eko-blackbar-links #_desktop_cart .cart-preview,
  #header .eko-blackbar-links #_desktop_cart .header {
    background:transparent!important;color:#222!important;
    position:static!important;display:flex!important;align-items:center!important;
    width:auto!important;height:auto!important;line-height:1.25!important;
    margin:0!important;padding:0!important;box-shadow:none!important;
  }
  #header .eko-blackbar-links #_desktop_cart .header a,
  #header .eko-blackbar-links #_desktop_cart .header span,
  #header .eko-blackbar-links #_desktop_cart .header .material-icons {
    color:#292929!important;opacity:1!important;visibility:visible!important;
    font-size:12px!important;line-height:1.2!important;
  }
  #header .eko-blackbar-links #_desktop_cart .header .material-icons {
    font-size:21px!important;color:#e90088!important;
  }
  #header .eko-blackbar-links #_desktop_cart .header a {display:inline-flex!important;align-items:center!important;gap:3px!important;}
  #header .header-top.eko-whitebar {
    min-height:80px!important;height:80px!important;padding:0!important;
    background:#fff!important;overflow:visible!important;
  }
  #header .eko-header-row {
    height:55px!important;min-height:55px!important;
    align-items:center!important;justify-content:space-between!important;
  }
  #header .eko-header-widgets {gap:10px!important;}
  #header .eko-support-actions {align-self:center!important;gap:7px!important;}
  #header .eko-support-actions a {min-height:27px!important;padding:6px 10px!important;}
  #header .eko-blackbar-links #_desktop_cart .cart-products-count {display:inline!important;}
}
@media (min-width:1100px) {
  /* Position search relative to #header, not the whitebar .container. */
  #header .eko-whitebar > .container,
  #header .eko-whitebar .eko-header-row,
  #header .eko-whitebar .eko-header-widgets {position:static!important;}
  /* Original desktop: search icon on the dark strip, with an expandable field. */
  #header .eko-header-widgets .search-widget {
    position:absolute!important;top:9px!important;
    right:max(145px,calc((100vw - 1100px)/2 + 145px))!important;
    width:34px!important;min-width:34px!important;max-width:34px!important;
    height:36px!important;flex:0 0 34px!important;z-index:80!important;
    margin:0!important;padding:0!important;
  }
  #header .eko-header-widgets .search-widget form {position:relative!important;height:36px!important;}
  #header .eko-header-widgets .search-widget form input[type="text"] {
    width:34px!important;min-width:34px!important;max-width:34px!important;
    height:34px!important;padding:5px 0 5px 33px!important;
    border:0!important;box-shadow:none!important;background:transparent!important;
    color:transparent!important;cursor:text!important;
  }
  #header .eko-header-widgets .search-widget form input[type="text"]::placeholder {color:transparent!important;}
  #header .eko-header-widgets .search-widget form button {
    position:absolute!important;left:5px!important;top:50%!important;right:auto!important;
    transform:translateY(-50%)!important;z-index:3!important;
    color:#fff!important;background:transparent!important;border:0!important;
  }
  #header .eko-header-widgets .search-widget form button .material-icons {color:#fff!important;font-size:20px!important;}
  #header .eko-header-widgets .search-widget:focus-within {z-index:85!important;}
  #header .eko-header-widgets .search-widget:focus-within form input[type="text"] {
    position:absolute!important;right:0!important;top:0!important;
    width:230px!important;min-width:230px!important;max-width:230px!important;
    padding:5px 10px 5px 35px!important;color:#222!important;
    background:#fff!important;border:1px solid #aaa!important;
    box-shadow:0 4px 12px rgba(0,0,0,.2)!important;
  }
  #header .eko-header-widgets .search-widget:focus-within form input[type="text"]::placeholder {color:#777!important;}
  #header .eko-header-widgets .search-widget:focus-within form button .material-icons {color:#333!important;}
}
@media (min-width:768px) and (max-width:1099px) {
  /* Tablet: keep a visible search field in white bar and leave cart below buttons. */
  #header .eko-header-widgets .search-widget {position:relative!important;top:auto!important;right:auto!important;}
  #header .eko-blackbar-links #_desktop_cart {top:99px!important;}
}
@media (max-width:767px) {
  /* Mobile retains the Classic cart relocation and its own search field. */
  #header .eko-blackbar-links #_desktop_cart {position:static!important;}
}

/* External main.css makes footer module text nearly black on dark background.
   Restrict contrast fixes to the actual footer only. */
#footer .eko-footer-main,
#footer .eko-footer-main .container,
#footer .eko-footer-main .eko-footer-links {background:#211c19!important;color:#e8e8e8!important;}
#footer .eko-footer-main .eko-footer-links p,
#footer .eko-footer-main .eko-footer-links .h3,
#footer .eko-footer-main .eko-footer-links .h4,
#footer .eko-footer-main .eko-footer-links .h3 a,
#footer .eko-footer-main .eko-footer-links .h4 a,
#footer .eko-footer-main .eko-footer-links .block-contact-title,
#footer .eko-footer-main .eko-footer-links .myaccount-title a {
  color:#fff!important;opacity:1!important;visibility:visible!important;
}
#footer .eko-footer-main .eko-footer-links a,
#footer .eko-footer-main .eko-footer-links li a,
#footer .eko-footer-main .eko-footer-links #contact-infos,
#footer .eko-footer-main .eko-footer-links #contact-infos * {
  color:#ddd!important;opacity:1!important;visibility:visible!important;
}
#footer .eko-footer-main .eko-footer-links a:hover {color:#f40091!important;}
#footer .eko-footer-main .eko-footer-links ul,
#footer .eko-footer-main .eko-footer-links li {list-style:none!important;margin:0!important;padding:0!important;}
#footer .eko-footer-main .eko-footer-links li {margin-bottom:8px!important;}
@media (min-width:768px) {
  #footer .eko-footer-main .eko-footer-links .collapse {
    display:block!important;visibility:visible!important;height:auto!important;
  }
  #footer .eko-footer-main .eko-footer-links .title.hidden-md-up {display:none!important;}
  #footer .eko-footer-main .eko-footer-links .hidden-sm-down {display:block!important;}
  #footer .eko-footer-links {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;gap:18px 32px!important;
    align-items:start!important;margin:0!important;padding:0 0 8px!important;
  }
  #footer .eko-footer-links > .links,
  #footer .eko-footer-links > .block-contact,
  #footer .eko-footer-links > #block_myaccount_infos {
    display:block!important;float:none!important;
    flex:none!important;width:100%!important;min-width:0!important;
    max-width:100%!important;margin:0!important;padding:0!important;
  }
  #footer .eko-footer-links > .block-contact {grid-column:1!important;}
  #footer .eko-footer-links > #block_myaccount_infos {grid-column:2!important;}
  #footer .eko-footer-links > .links {grid-column:1/-1!important;}
  /* Both account and contact modules also carry class .links: override explicitly. */
  #footer .eko-footer-links > .block-contact.links {grid-column:1!important;}
  #footer .eko-footer-links > #block_myaccount_infos.links {grid-column:2!important;}
  #footer .eko-footer-links > .links > .row {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #footer .eko-footer-links > .links > .row > .wrapper {
    float:none!important;width:100%!important;max-width:100%!important;
  }
  #footer .eko-footer-main .eko-footer-social-row {
    padding-bottom:13px!important;margin-bottom:14px!important;
  }
  #footer .eko-footer-main {padding-top:16px!important;padding-bottom:10px!important;}
}
@media (max-width:767px) {
  #footer .eko-footer-links {display:block!important;}
  #footer .eko-footer-links > * {margin-bottom:18px!important;}
}
/* The old homepage showed the newsletter GRAPHIC, linked to the Foundation.
   Avoid duplicating it with a second full-width gray subscription panel.
   The module and its form remain active on other pages. */
body#index #footer .eko-newsletter-wrap {display:none!important;}
#footer .eko-footer-legal p,
#footer .eko-footer-legal span {color:#bbb!important;opacity:1!important;}
