.header-nav {
  display: none;
}

.header-cart-label {
  display: none;
}

@media (min-width: 900px) {
  :root {
    --header-h: 100px;
  }

  #menuBtn {
    display: none;
  }

  .header__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: clamp(18px, 2vw, 28px);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header__inner::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 162, 77, 0.22), rgba(255, 255, 255, 0.06) 55%, rgba(201, 162, 77, 0.22));
    pointer-events: none;
  }

  .logo {
    flex: 0 0 auto;
    padding: 0;
    margin-right: 0;
  }

  .logo__img {
    height: 76px;
  }

  .header-nav {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: clamp(24px, 2.5vw, 34px);
    white-space: nowrap;
  }

  .header-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 0;
    color: #ceccca;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    transition: color 0.18s ease, opacity 0.18s ease;
  }

  .header-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: #cca955;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }

  .header-nav__link:hover,
  .header-nav__link:focus-visible {
    color: #e4bf68;
  }

  .header-nav__link:hover::after,
  .header-nav__link:focus-visible::after,
  body:has(#menu:target) .header-nav__link[href="#menu"]::after,
  body:has(#contacts:target) .header-nav__link[href="#contacts"]::after {
    transform: scaleX(1);
  }

  body:has(#menu:target) .header-nav__link[href="#menu"],
  body:has(#contacts:target) .header-nav__link[href="#contacts"] {
    color: #f7f5ef;
  }

  .header-nav__link:focus-visible {
    outline: 2px solid rgba(201, 162, 77, 0.70);
    outline-offset: 4px;
  }

  .header-nav__link:active {
    opacity: 0.8;
  }

  #cartBtn {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    padding-inline: 18px;
    gap: 9px;
    border-radius: 11px;
    border-color: #d0ae63;
    background: #d0ae63;
    color: #201a10;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  }

  #cartBtn::before,
  #cartBtn::after {
    content: none;
  }

  #cartBtn svg {
    width: 20px;
    height: 20px;
    filter: none;
  }

  #cartBtn:hover {
    background: #e1c17c;
    border-color: #e1c17c;
  }

  #cartBtn:focus-visible {
    outline: 2px solid #d0ae63;
    outline-offset: 4px;
  }

  @media (prefers-reduced-motion: reduce) {
    .header-nav__link::after {
      transition: none;
    }
  }

  .header-cart-label {
    display: inline;
    position: relative;
    z-index: 2;
  }
}


@media (min-width: 900px) {
    .tabs-bar {
    min-height: 124px;
    padding-top: 2px;
    padding-bottom: 4px;
    }

  .tabs-bar .container {
    display: block;
  }

  #categoryTabs.tabs--header {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    overflow-x: visible;
  }

  #categoryTabs.tabs--header .tab {
    width: clamp(84px, 7vw, 118px) !important;
    min-width: clamp(84px, 7vw, 118px) !important;
    height: clamp(84px, 7vw, 118px);
    border-radius: 28px;
  }

  #categoryTabs.tabs--header .tab__icon {
    width: clamp(70px, 5.8vw, 96px);
    height: clamp(70px, 5.8vw, 96px);
  }

  #categoryTabs.tabs--header .tabs-glider {
    border-radius: 28px;
  }
}


.header-phone {
  display: none;
}

@media (min-width: 900px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
    color: #efede8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  .header-phone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 162, 77, 0.30);
    border-radius: 50%;
    color: #d5b365;
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }

  .header-phone__icon svg {
    width: 17px;
    height: 17px;
  }

  .header-phone:hover .header-phone__icon,
  .header-phone:focus-visible .header-phone__icon {
    border-color: #d5b365;
    background-color: rgba(201, 162, 77, 0.10);
  }

  .header-phone:hover {
    color: #fff;
  }

  .header-phone:active {
    opacity: 0.8;
  }
}


@media (min-width: 700px) {
  .cart-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
  }

  .cart-field--full {
    grid-column: 1 / -1;
  }

  .cart-item {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    grid-template-areas: "img info controls";
    align-items: center;
    gap: 20px 24px;
    padding: 22px 26px;
  }

  .cart-item__img {
    width: 132px;
    height: 132px;
    border-radius: 22px;
  }

  .cart-item__name {
    font-size: 19px;
    line-height: 1.14;
  }

  .cart-item__price {
    font-size: 17px;
  }

.cart-controls {
  grid-template-columns: 40px 32px 40px;
  width: max-content;
  min-width: 0;
  height: 48px;
  padding: 4px;
  border-radius: 18px;
  gap: 0;
}

.cart-btn {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 14px;
}

.cart-qty {
  width: 32px;
  min-width: 32px;
  font-size: 18px;
}
}

@media (min-width: 900px) {
  .cart-modal__panel {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(94vw, 920px);
    max-height: 86vh;

    padding: 30px 28px 24px;
    border-radius: 32px;

    transform: translate(-50%, -42%);
  }

  .cart-modal.is-open .cart-modal__panel {
    transform: translate(-50%, -50%);
  }

  .cart-modal__header {
    margin-bottom: 22px;
  }

  .cart-modal__title {
    font-size: 28px;
  }

  .cart-modal__body {
    gap: 24px;
    padding-right: 4px;
  }

.cart-item {
  grid-template-columns: 156px minmax(0, 1fr) auto;
  grid-template-areas: "img info controls";
  align-items: center;
  gap: 12px 22px;
  padding: 9px 20px 9px 9px;
  border-radius: 22px;
}

.cart-item__img {
  width: 156px;
  height: 156px;
  border-radius: 21px;
}

.cart-item__name {
  font-size: 21px;
  line-height: 1.10;
}

  
.cart-item__price {
  font-size: 18px;
  line-height: 1.1;
}

.cart-item__info {
  gap: 6px;
}

.cart-controls {
  grid-template-columns: 42px 34px 42px;
  width: max-content;
  min-width: 0;
  height: 50px;
  padding: 4px;
  border-radius: 20px;
  gap: 0;
}

.cart-btn {
  width: 42px;
  height: 42px;
  font-size: 23px;
  border-radius: 15px;
}

.cart-qty {
  width: 34px;
  min-width: 34px;
  font-size: 19px;
}

  .cart-total {
    font-size: 20px;
  }


  .cart-modal__body {
    gap: 24px;
    padding-right: 18px;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 77, 0.78) rgba(255,255,255,0.04);
  }

  .cart-modal__body::-webkit-scrollbar {
    width: 6px;
  }

  .cart-modal__body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
  }

  .cart-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      rgba(201, 162, 77, 0.92) 0%,
      rgba(156, 120, 51, 0.92) 100%
    );
    border-radius: 999px;
  }

}


/* ================== CART DESKTOP COMPACT ================== */
@media (min-width: 900px) {
  #cartItems {
    gap: 12px;
    padding-bottom: 12px;
  }

  .cart-group {
    gap: 8px;
  }

  .cart-group__items {
    gap: 10px;
  }

  .cart-modal__body {
    gap: 16px;
    padding-right: 22px;
  }

.cart-item {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  grid-template-areas: "img info controls";
  align-items: center;

  gap: 0 20px;

  height: auto;
  min-height: 0;
  padding: 8px 16px 8px 8px;
  border-radius: 20px;
}

.cart-item__img {
  width: 120px;
  height: 120px;
  border-radius: 16px;

  align-self: center;
  justify-self: start;
}

.cart-item__info {
  gap: 6px;
  align-self: center;
  justify-content: center;
  padding: 0;
}

.cart-item__name {
  font-size: 19px;
  line-height: 1.12;
}

.cart-item__price {
  font-size: 17px;
  line-height: 1.08;
}

.cart-controls {
  grid-template-columns: 38px 32px 38px;
  width: max-content;
  min-width: 0;
  height: 46px;
  padding: 4px;
  border-radius: 18px;
  gap: 0;

  align-self: center;
  justify-self: end;
}

.cart-btn {
  width: 38px;
  height: 38px;
  font-size: 21px;
  border-radius: 14px;
}

.cart-qty {
  width: 32px;
  min-width: 32px;
  font-size: 17px;
}

  .cart-modal__footer {
    margin-top: 14px;
    padding-top: 14px;
  }

  .cart-total {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .btn--checkout {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
  }
}



/* ================== DESKTOP PERF ================== */
@media (min-width: 1024px) {
  :root {
    --glass-blur: 10px;
    --glass-bg: rgba(15, 15, 20, 0.90);
  }

  .topbar::before {
    transform: translateZ(0);
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
  }
}
