/* 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 .search-button { min-width: 44px; width: 44px; height: 44px; flex: 0 0 44px; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 0 !important; border-radius: 50% !important; background: #6a3b17; color: #fff; font-size: 0; line-height: 0; box-shadow: 0 3px 10px rgba(96,57,20,.18); transition: transform .18s ease,background .18s ease; }
  #header .search-form .search-button::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; 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; }
  #header .search-form .search-button:hover { background: #c97921; }
  #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; }
}

/* Branded desktop mini-cart. The native Shoptet markup and interactions stay intact. */
@media (min-width: 992px) {
  .cart-widget.popup-widget {
    width: min(440px, calc(100vw - 32px));
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #ead9c7;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 18px 45px rgba(53, 29, 13, .18);
  }

  .cart-widget.popup-widget::before,
  .cart-widget.popup-widget::after {
    border-bottom-color: #ead9c7;
  }

  .cart-widget.popup-widget::after {
    border-bottom-color: #fffdf9;
  }

  .cart-widget-inner {
    padding: 10px 18px 0;
    background: #fffdf9;
  }

  .cart-widget-product {
    min-height: 104px;
    padding: 14px 0;
    border-bottom: 1px solid #efe2d5;
    background: transparent;
  }

  .cart-widget-product:last-child {
    border-bottom: 0;
  }

  .cart-widget-product-image,
  .cart-widget-product-image a {
    width: 78px;
    height: 78px;
  }

  .cart-widget-product-image {
    overflow: hidden;
    border: 1px solid #ead9c7;
    border-radius: 11px;
    background: #fff;
  }

  .cart-widget-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cart-widget-product-name {
    padding-right: 26px;
    color: #351d0d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  .cart-widget-product-name a {
    color: inherit;
    text-decoration: none;
  }

  .cart-widget-product-name a:hover {
    color: #c97921;
  }

  .cart-widget-product-price,
  .cart-widget-product .price {
    color: #6a3b17;
    font-weight: 800;
  }

  .cart-widget-product-amount input,
  .cart-widget-product .amount input {
    border-color: #ddcdbb;
    border-radius: 8px;
    background: #fff;
  }

  .cart-widget-product-delete,
  .cart-widget-product .remove-item {
    color: #8a7565;
    transition: color .18s ease, transform .18s ease;
  }

  .cart-widget-product-delete:hover,
  .cart-widget-product .remove-item:hover {
    color: #c97921;
    transform: scale(1.08);
  }

  .cart-free-shipping,
  .cart-widget .free-shipping {
    margin: 0 -18px;
    padding: 13px 18px;
    border-top: 1px solid #efe2d5;
    background: #f8f0e6;
    color: #5f4d40;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }

  .cart-free-shipping strong,
  .cart-widget .free-shipping strong {
    color: #9a5518;
  }

  .cart-widget-button {
    padding: 12px;
    background: #f8f0e6;
  }

  .cart-widget-button .btn,
  .cart-widget-button .btn-conversion {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: #d9801a !important;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 7px 18px rgba(201, 121, 33, .22);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  .cart-widget-button .btn:hover,
  .cart-widget-button .btn-conversion:hover {
    background: #b96617 !important;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(201, 121, 33, .28);
  }
}
