/* ============================================================
   HEADER — two-row layout: topbar + nav
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #003b6a;
}

/* --- Top row --- */
.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

/* Logo block */
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 229px;
  height: 49px;
  flex-shrink: 0;
}

.header-logo__img {
  height: 100%;
  width: auto;
  border-radius: 6px;
  object-fit: cover;

}

.header-logo__text {
  font-family: var(--font-heading);
  color: #fff;
}

.header-logo__title {
  font-size: 33px;
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.05em;
  text-shadow: 0.8px 3.3px 3.1px rgba(0, 0, 0, .25);
}

.header-logo__subtitle {
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0.8px 3.3px 3.1px rgba(0, 0, 0, .25);
}

/* Right-side actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-socials a {
  display: flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-socials a:hover {
  opacity: 0.75;
  transform: scale(1.12);
}

.header-socials img {
  height: 32px;
  width: auto;
}

.header-phone {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header-phone:hover {
  opacity: 0.8;
}

/* Cart wrapper for dropdown positioning */
.header-cart-wrapper {
  position: relative;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header-cart:hover {
  opacity: 0.8;
}

.header-cart__icon {
  width: 24px;
  height: 24px;
}

/* Badge — white text on orange circle */
.header-cart__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background-color: var(--color-orange, #EC6305);
  color: #fff;
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.header-cart__badge:empty {
  display: none;
}

/* Dropdown panel */
.header-cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  margin-top: 12px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}

.header-cart-wrapper:hover .header-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Dropdown inner styles */
.hcd-title {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 20px;
  color: #252525;
  margin-bottom: 14px;
}

.hcd-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.hcd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #f5f5f5;
}

.hcd-item__photo {
  width: 70px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hcd-item__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hcd-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hcd-item__name {
  font-family: var(--font-heading, 'Roboto Condensed', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: #252525;
  line-height: 1.2;
}

.hcd-item__sub {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-size: 11px;
  color: rgba(37, 37, 37, 0.6);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcd-item__price {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-orange, #EC6305);
  margin-top: 2px;
}

.hcd-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  font-family: var(--font-heading, 'Roboto Condensed', sans-serif);
  font-weight: 600;
  font-size: 18px;
  color: #252525;
}

.hcd-total__value {
  color: var(--color-orange, #EC6305);
}

.hcd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border-radius: 8px;
  background-color: var(--color-orange, #EC6305);
  color: #fff;
  font-family: var(--font-heading, 'Roboto Condensed', sans-serif);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s;
}

.hcd-btn:hover {
  opacity: 0.88;
}

.hcd-empty {
  padding: 20px 0;
  text-align: center;
}

.hcd-empty__text {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: #999;
}

/* --- Nav row --- */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  padding: 0 30px;
  margin: 0 30px;
  white-space: nowrap;
  isolation: isolate;
  border-radius: 8px;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0.1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

/* --- Mobile --- */
.header-mobile {
  position: relative;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header-mobile .header-logo {
  width: auto;
  height: 50px;
}

.header-mobile .header-logo__title {
  font-size: 30px;
}

.header-mobile .header-logo__subtitle {
  font-size: 14px;
}

.header-mobile__burger {
  position: relative;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-mobile__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-mobile__burger span:nth-child(1) { top: 0; }
.header-mobile__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header-mobile__burger span:nth-child(3) { bottom: 0; }

.header-mobile__burger--active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header-mobile__burger--active span:nth-child(2) {
  opacity: 0;
}

.header-mobile__burger--active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 1024px) {
  .header-mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  .header-topbar,
  .header-nav {
    display: none;
  }
}

/* --- Mobile menu fullscreen --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 100px 24px 40px;
  background: #003b6a;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}

.mobile-menu--open {
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-menu__socials a {
  display: flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu__socials a:hover {
  opacity: 0.75;
  transform: scale(1.12);
}

.mobile-menu__socials img {
  height: 54px;
  width: auto;
}

.mobile-menu__phone {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}

.mobile-menu__nav a {
  font-family: var(--font-primary);
  font-size: 23px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s ease;
}

.mobile-menu__nav a:hover {
  opacity: 0.7;
}

.mobile-menu__cart {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 23px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s ease;
}

.mobile-menu__cart:hover {
  opacity: 0.7;
}

.mobile-menu__cart img {
  width: 22px;
  height: 22px;
}
