/* ==========================================================================
   Site header — main bar: brand, REVIEWS.io badge, contact shortcuts,
   search, basket, mobile menu toggle. (Navigation lives in nav.css.)
   ========================================================================== */
.site-header {
  position: relative;
  background: var(--c-blue);
  color: var(--c-white);
}
.nav-toggle {           /* state holder for the no-JS mobile menu */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-header__main {
  position: relative;
  display: flex;
  align-items: center;
  height: 110px;
  overflow: hidden;
}
.site-header__bar { display: flex; align-items: center; }

/* ---------- Brand ---------- */
.brand-years { width: 100px; padding-right: 5px; }
.brand-years-mobile { display: none; }
.brand-logo { position: relative; flex-shrink: 0; min-width: 281px; }
.brand-logo img { display: block; width: 281px; height: 67px; }

/* ---------- REVIEWS.io rating badge (server-rendered) ---------- */
.reviews-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 201px;
  height: 90px;
  margin-left: 20px;
  padding: 2px 0 0 20px;
  border-left: 1px solid var(--c-white);
  font-size: 14px;
  line-height: 16.8px;
  text-align: center;
}
.reviews-badge__stars {
  position: relative;
  display: block;
  width: 80px;
  height: 16px;
  margin-bottom: 8px;
}
.reviews-badge__stars-fill,
.reviews-badge__stars-bg { position: absolute; inset: 0 auto 0 0; display: flex; overflow: hidden; }
.reviews-badge__stars-bg { z-index: 0; color: rgba(255, 255, 255, .25); }
.reviews-badge__stars-fill { z-index: 1; width: calc((var(--rating) - .26) / 5 * 100%); color: var(--c-white); }
.reviews-badge__stars .icon { width: 16px; height: 16px; }
.reviews-badge__line { display: block; height: 17px; margin-bottom: 5px; }
.reviews-badge__line strong { font-weight: var(--fw-bold); }
.reviews-badge__logo {
  display: block; width: 120px; height: 19px;
  background: url("../../img/uploads/reviewsio-logo-inverted.e17f44e95b69.svg") center / contain no-repeat;
}

/* ---------- Tools: shortcuts, phone, search, basket ---------- */
.header-tools { display: flex; align-items: center; margin-left: auto; }

.shortcuts { display: flex; align-items: center; margin-right: 12px; }
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 3px;
  text-align: center;
}
.shortcut--whatsapp { margin-left: 0; }
.shortcut__round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-blue);
  transition: color .2s;
}
.shortcut__round:hover { color: var(--c-orange); }
.shortcut__round .icon { font-size: 24px; }
.shortcut__round img { width: 25px; height: 25px; }
.shortcut__label { font-size: 8px; line-height: 12px; text-transform: uppercase; }

.header-phone { margin: 0 30px 0 5px; font-weight: var(--fw-semibold); }
.header-phone a:hover { color: var(--c-orange); }

.header-tools__shop { display: flex; align-items: center; }

/* search form (also used inside the mobile menu) */
.search-form { position: relative; }
.search-form--header { width: 180px; }
.search-form__input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-white);
  color: #000;
  font-size: 14px;
  line-height: 28px;
  appearance: none;
}
.search-form__input::placeholder { color: #000; opacity: 1; }
.search-form__input::-webkit-search-cancel-button { appearance: none; }
.search-form__input:focus { outline: 2px solid var(--c-orange); outline-offset: 0; }
.search-form__submit {
  position: absolute;
  top: 12px;
  right: 10px;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-orange);
  font-size: 16px;
}

.cart-link { position: relative; display: block; margin: 10px; color: var(--c-white); }
.cart-link .icon { display: block; width: 27px; height: 24px; }
.cart-link__count {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 16px;
  height: 16px;
  padding: 1.7px;
  border-radius: 50%;
  background: red;
  font-size: 12px;
  font-weight: var(--fw-bold);
  line-height: 12px;
  text-align: center;
}

/* ---------- Mobile toggle ---------- */
.mobile-actions { display: none; }
.nav-toggle__button { display: block; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle__icon {
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% auto no-repeat;
}
.nav-toggle:focus-visible ~ .site-header__main .nav-toggle__button { outline: 2px solid var(--c-orange); }

/* ==========================================================================
   Responsive (breakpoints mirror the live site)
   ========================================================================== */
@media (max-width: 1180px) {
  .site-header__main { background: var(--c-blue-dark); }
  .reviews-badge { display: none; }
}
@media (max-width: 992px) {
  .header-tools__shop, .header-phone { display: none; }
}
@media (max-width: 991.98px) {
  .mobile-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid transparent;
  }
}
@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; z-index: 1000; --header-main-h: 80px; }
  .site-header__main { height: 80px; }
  .brand-years { width: 75px; padding-right: 0; }
  .brand-logo { left: 15px; min-width: 0; max-width: 200px; }
  .brand-logo img { width: 200px; height: auto; }
}
@media (max-width: 600px) {
  .header-tools { position: absolute; top: 50%; right: 110px; transform: translateY(-50%); }
  .shortcut { margin: 5px; }
  .shortcut__label, .shortcut--form, .shortcut--phone { display: none; }
  .brand-logo img { width: 36vw; }
}
@media (max-width: 500px) {
  .brand-years-mobile { display: block; width: 65px; padding-left: 18px; }
}
@media (max-width: 499px) {
  .brand-years { display: none; }
}
@media (max-width: 450px) {
  .shortcut__round { width: 30px; height: 30px; }
}
@media (max-width: 440px) {
  .shortcuts { display: none; }
}
