/* FancyPack – nový vzhled hlavičky (podle návrhu), zatím jen pro počítač.
   Vrácení do původního stavu: smažte řádek s tímto souborem z HEAD
   a řádek s fancypack-header.js z BODY. */

/* Nové prvky jsou na mobilu skryté */
.fp-hdr-info,
.fp-hdr-currency { display: none !important; }

@media (min-width: 992px) {

  /* Původní horní lišta se na počítači skryje (její obsah je přesunutý do hlavičky) */
  .fp-hdr-ready .top-navigation-bar { display: none !important; }

  /* ---------- Rozložení hlavičky ---------- */
  #header {
    background: #fff !important;
    border-bottom: 1px solid #ececec !important;
    box-shadow: none !important;
  }
  .fp-hdr-ready #header .header-top {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 6px;
    align-items: center;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
    min-height: 0 !important;
  }
  .fp-hdr-ready #header .header-top::before,
  .fp-hdr-ready #header .header-top::after { display: none !important; }
  .fp-hdr-ready #header .site-name-wrapper { grid-column: 1; grid-row: 1 / 3; }
  .fp-hdr-ready #header .fp-hdr-info { grid-column: 2; grid-row: 1; }
  .fp-hdr-ready #header .search { grid-column: 2; grid-row: 2; }
  .fp-hdr-ready #header .navigation-buttons { grid-column: 3; grid-row: 1 / 3; }

  #header .site-name img { max-height: 60px; width: auto; }

  /* ---------- Řádek s odkazy a kontakty nad vyhledáváním ---------- */
  .fp-hdr-ready .fp-hdr-info {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 20px;
    font-size: 13px;
    line-height: 1.2;
  }
  .fp-hdr-links,
  .fp-hdr-contacts { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
  .fp-hdr-contacts { gap: 22px; }
  .fp-hdr-info a { color: #1a1a1a !important; text-decoration: none !important; transition: color .2s; }
  .fp-hdr-info a:hover { color: #2181a1 !important; }
  .fp-hdr-contacts a { display: inline-flex; align-items: center; gap: 7px; }
  .fp-hdr-contacts a::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: center / contain no-repeat;
  }
  .fp-hdr-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") !important;
  }
  .fp-hdr-email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 7l-10 6L2 7'/%3E%3C/svg%3E") !important;
  }

  /* ---------- Vyhledávání ---------- */
  #header .search {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative;
  }
  #header .search-form fieldset { position: relative; }
  #header .search-input {
    width: 100% !important;
    height: 46px !important;
    padding: 0 20px 0 48px !important;
    font-size: 15px !important;
    background: #f3f3f3 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: background .2s, border-color .2s;
  }
  #header .search-input:focus {
    background: #fff !important;
    border-color: #1a1a1a !important;
    outline: none;
  }
  #header .search-form .btn {
    position: absolute !important;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    color: transparent !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 20px no-repeat !important;
  }
  #header .search-form .btn::before,
  #header .search-form .btn::after { display: none !important; }

  /* ---------- Vpravo: přihlášení (ikona), měna, košík ---------- */
  #header .navigation-buttons {
    display: flex !important;
    align-items: center;
    gap: 18px;
  }

  /* Přihlášení jen jako ikona postavy */
  #header .top-nav-button-login {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center / 24px no-repeat !important;
    transition: background-color .2s;
  }
  #header .top-nav-button-login:hover { background-color: #f3f3f3 !important; }
  #header .top-nav-button-login::before,
  #header .top-nav-button-login::after,
  #header .top-nav-button-login span::before,
  #header .top-nav-button-login span::after { display: none !important; }
  #header .top-nav-button-login span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  /* Výběr měny */
  .fp-hdr-ready .fp-hdr-currency {
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: relative;
    font-size: 15px;
  }
  .fp-hdr-currency > span { font-size: 0 !important; }
  .fp-hdr-currency > span::before { font-size: 20px; }
  .fp-hdr-currency button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 6px 4px !important;
  }
  .fp-hdr-currency .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 100px;
    border-radius: 10px;
    border: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  }
  .fp-hdr-currency .dropdown-menu a { color: #1a1a1a !important; }

  /* Košík */
  #header .cart-count {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background .2s;
  }
  #header .cart-count:hover { background: #2181a1 !important; }
  #header .cart-count .cart-price { color: inherit !important; }

  /* ---------- Řádek s menu ---------- */
  #navigation {
    background: #fff !important;
    border: 0 !important;
  }
  #navigation .menu-level-1 > li > a {
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 13px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 14px 18px !important;
    transition: color .2s;
  }
  #navigation .menu-level-1 > li > a b { font-weight: 600 !important; }
  #navigation .menu-level-1 > li.ext > a { padding-right: 34px !important; }
  #navigation .menu-level-1 > li:hover > a,
  #navigation .menu-level-1 > li > a:hover { color: #2181a1 !important; }

  #navigation .menu-level-2 {
    border: 0 !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08) !important;
  }
}


/* =====================================================================
   VARIANTA "MENU": kontakty a odkazy v rozbalovacím panelu u telefonu.
   Zapíná se řádkem v BODY před skriptem:
   <script>var fpHeaderLayout = 'menu';</script>
   ===================================================================== */
.fp-support { display: none !important; }

@media (min-width: 992px) {
  .fp-hdr-ready.fp-hdr-menu #header .fp-hdr-info { display: none !important; }
  .fp-hdr-ready.fp-hdr-menu #header .header-top {
    grid-template-rows: auto;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .fp-hdr-ready.fp-hdr-menu #header .site-name-wrapper,
  .fp-hdr-ready.fp-hdr-menu #header .search,
  .fp-hdr-ready.fp-hdr-menu #header .navigation-buttons { grid-row: 1; }
  .fp-hdr-ready.fp-hdr-menu #header .site-name img { max-height: 54px; }

  .fp-hdr-ready.fp-hdr-menu .fp-support {
    display: block !important;
    position: relative;
  }
  .fp-support__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
    font: inherit;
    transition: border-color .2s;
  }
  .fp-support:hover .fp-support__trigger,
  .fp-support.is-open .fp-support__trigger { border-color: #c9c9c9; }
  .fp-support__icon {
    width: 22px; height: 22px; flex: 0 0 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .fp-support__txt { display: flex; flex-direction: column; line-height: 1.2; }
  .fp-support__txt small { font-size: 12px; color: #777; }
  .fp-support__txt strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
  .fp-support__caret {
    width: 14px; height: 14px; flex: 0 0 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s;
  }
  .fp-support:hover .fp-support__caret,
  .fp-support.is-open .fp-support__caret { transform: rotate(180deg); }

  .fp-support__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 320px;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .fp-support:hover .fp-support__panel,
  .fp-support:focus-within .fp-support__panel,
  .fp-support.is-open .fp-support__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .fp-support__box {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    padding: 8px;
  }
  .fp-support__main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    color: #1a1a1a !important;
    text-decoration: none !important;
  }
  .fp-support__main:hover { background: #f5f5f5; }
  .fp-support__bigicon {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 50%;
    background: #e8f3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232181a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
  .fp-support__main strong { display: block; font-size: 18px; font-weight: 700; }
  .fp-support__main small { display: block; font-size: 13px; color: #777; margin-top: 2px; }
  .fp-support__sep { height: 1px; background: #eee; margin: 4px 8px; }
  .fp-support__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a !important;
    text-decoration: none !important;
  }
  .fp-support__link:hover { background: #f5f5f5; color: #2181a1 !important; }
  .fp-support__link::before {
    content: "";
    width: 18px; height: 18px; flex: 0 0 18px;
    background: center / contain no-repeat;
  }
  .fp-support__link[data-icon='mail']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 7l-10 6L2 7'/%3E%3C/svg%3E") !important; }
  .fp-support__link[data-icon='doc']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E") !important; }
  .fp-support__link[data-icon='shield']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E") !important; }
  .fp-support__link[data-icon='star']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 3 14.8 8.8 21 9.6 16.5 14 17.6 20.2 12 17.2 6.4 20.2 7.5 14 3 9.6 9.2 8.8'/%3E%3C/svg%3E") !important; }
  .fp-support__link[data-icon='truck']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v10H2z'/%3E%3Cpath d='M14 9h4l3 3v4h-7'/%3E%3Ccircle cx='6.5' cy='18' r='2'/%3E%3Ccircle cx='17.5' cy='18' r='2'/%3E%3C/svg%3E") !important; }
  .fp-support__link[data-icon='return']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E") !important; }
}
