/* Global Chocolenka desktop header. Native Shoptet mobile header stays intact. */
@media (min-width: 992px) {
  #header .container.navigation-wrapper { max-width: 1380px; padding-inline: 30px; }
  #header #navigation { width: calc(100% + 60px); margin-left: -30px; margin-right: -30px; }
  #header .header-top {
    min-height: 108px;
    display: grid;
    grid-template-columns: 180px minmax(520px, 1fr) 200px;
    grid-template-areas: "logo search cart";
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    padding: 14px 0;
  }
  #header .site-name-wrapper { grid-area: logo; position: static; width: auto; height: auto; margin: 0; }
  #header .site-name { margin: 0; text-align: left; }
  #header .site-name a { display: inline-flex; align-items: center; min-height: 72px; }
  #header .site-name img { width: 164px; max-width: 100%; max-height: 76px; object-fit: contain; }
  #header .header-top > .search {
    grid-area: search;
    position: static;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 270px;
    grid-template-areas: "form contact";
    align-items: center;
    gap: clamp(22px, 2.5vw, 38px);
    margin: 0 auto;
  }
  #header .top-navigation-contacts.search-con {
    grid-area: contact;
    width: auto;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 5px;
    margin: 0;
    color: #603914;
    font-size: 13px;
  }
  #header .top-navigation-contacts .con-txt { width: auto; padding: 0; }
  #header .top-navigation-contacts .con-con { width: auto; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; }
  #header .top-navigation-contacts .con-txt > :nth-child(n+2),
  #header .top-navigation-contacts .con-con > :nth-child(n+3) { display: none !important; }
  #header .top-navigation-contacts strong { color: #351d0d; font-size: 13px; }
  #header .top-navigation-contacts a { color: #603914; font-size: 12px; font-weight: 700; text-decoration: none; }
  #header .top-navigation-contacts a:hover { color: #c97921; }
  #header .search-form { grid-area: form; width: 100%; max-width: 660px; margin: 0; justify-self: start; }
  #header .search-form > fieldset { display: flex; width: 100%; padding: 4px; overflow: hidden; border: 1px solid #ddcdbb; border-radius: 999px; background: #fff; transition: border-color .18s ease,box-shadow .18s ease; }
  #header .search-form > fieldset:focus-within { border-color: #c97921; box-shadow: 0 0 0 3px rgba(201,121,33,.12); }
  #header .search-form .search-input { height: 44px; padding-inline: 16px 14px; border: 0 !important; border-radius: 999px 0 0 999px; background: transparent; box-shadow: none !important; }
  #header .search-form button[type="submit"] { min-width: 44px !important; width: 44px !important; height: 44px !important; flex: 0 0 44px !important; margin: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; border: 0 !important; border-radius: 50% !important; background: #6a3b17 !important; color: #fff !important; font-size: 0 !important; line-height: 0 !important; box-shadow: 0 3px 10px rgba(96,57,20,.18); transition: background .18s ease, box-shadow .18s ease; }
  #header .search-form button[type="submit"]::before { content: "" !important; width: 18px !important; height: 18px !important; flex: 0 0 18px !important; display: block !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat !important; }
  #header .search-form button[type="submit"]:hover { background: #c97921; box-shadow: 0 4px 12px rgba(96,57,20,.24); }
  #header .navigation-buttons { grid-area: cart; position: static; width: auto; margin: 0; justify-self: end; display: flex !important; }
  #header .navigation-buttons .cart-count {
    min-width: 180px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid #eadccd;
    border-radius: 10px;
    background: #fcfaf6;
    color: #603914;
    box-shadow: none;
  }
  #header .navigation-buttons .cart-count:hover { border-color: #c97921; background: #fff8ef; color: #351d0d; }
  body.in-kosik #header .header-top { min-height: 108px !important; height: auto !important; overflow: visible !important; }
  body.in-kosik #header .header-top > .search {
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) 270px !important;
    grid-template-areas: "form contact" !important;
    align-items: center !important;
    gap: clamp(22px, 2.5vw, 38px) !important;
    visibility: visible !important;
  }
  body.in-kosik #header .top-navigation-contacts.search-con { grid-area: contact !important; position: static !important; margin: 0 !important; }
  body.in-kosik #header .search-form { display: block !important; visibility: visible !important; }
  body.in-kosik #header .navigation-buttons { display: none !important; visibility: hidden !important; }
  body.in-kosik #header .header-top { grid-template-columns: 180px minmax(520px, 1fr) !important; grid-template-areas: "logo search" !important; }
  #header .ch-cart-current .ch-cart-current__icon { display: none !important; }
  #header .ch-cart-current .ch-cart-current__icon svg { width: 100%; height: 100%; display: block; }
  body.in-kosik #content .con-txt > :nth-child(n+2),
  body.in-kosik #content .con-con > :nth-child(n+3) { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #header .header-top { grid-template-columns: 150px minmax(430px,1fr) 170px; gap: 18px; }
  #header .header-top > .search { grid-template-columns: minmax(300px,1fr) 210px; gap: 16px; }
  #header .site-name img { width: 142px; }
  #header .navigation-buttons .cart-count { min-width: 160px; padding-inline: 10px; }
}
