.topbar {
  background: white;
  position: relative;
}
.topbar__inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar__brand {
  display: flex;
  align-items: center;
}
.topbar__logo {
  height: 39px;
  width: auto;
  display: block;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 32px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-spacer {
  flex: 1;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill--cta {
  background: var(--paradajka-300);
  color: var(--white);
  height: 57px;
  padding: 0 18px;
}
.pill--white {
  background: var(--white);
  color: var(--ink);
}
.topbar__cart {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--baklazan-900);
  margin-left: 32px;
  border: none;
  cursor: pointer;
}
.topbar__cart img {
  width: 32px;
  height: 32px;
  display: block;
}
.toolbar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  gap: 6px;
  cursor: pointer;
  margin-right: -32px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--baklazan-900);
  border-radius: 2px;
  transition: 0.3s;
}
.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--neutral-300);
  border-bottom: 3px solid var(--neutral-600);
  display: none;
  padding: 12px 20px;
  z-index: 30;
}
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topbar.open .menu-panel {
  display: block;
}
@media (min-width: 1001px) {
  .menu-panel {
    display: none !important;
  }
}
.topbar.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.topbar.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.topbar.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .toolbar {
    display: flex;
  }
  .nav-left,
  .nav-right,
  .nav-spacer {
    display: none;
  }
  .topbar__cart--desktop {
    display: none;
  }
  .topbar__cart--toolbar {
    display: flex;
  }
}
@media (max-width: 560px) {
  .topbar__brand {
    padding-left: 12px;
  }
  .pill {
    height: 48px;
    padding: 0 12px;
  }
  .pill--cta {
    height: 48px;
    padding: 0 14px;
  }
}

.pill {
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.pill--cta:hover,
.pill--cta:focus-visible {
  background-color: var(--paradajka-600);
}

.pill--white:hover,
.pill--white:focus-visible {
  background-color: #eae3eb;
}

.topbar__cart {
  transition: background-color 0.2s ease;
}
.topbar__cart:hover,
.topbar__cart:focus-visible {
  background-color: var(--baklazan-600);
}

@media (max-width: 960px) {
  .topbar {
    background: #fff;
  }

  .topbar.open {
    background: var(--neutral-300);
  }
}

.menu-panel {
  background: var(--neutral-300);
  padding: 12px 16px 32px;
  min-height: 600px;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-link {
  display: block;
  font: 500 32px/1.2 "Rubik", system-ui, sans-serif;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition: color 0.2s ease;
}

.menu-link--home {
  margin-bottom: 52px;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--baklazan-600);
}

.menu-cta {
  position: absolute;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 30px;
  height: 57px;
  width: calc(100% - 30px);
  border-radius: 999px;
  background: var(--paradajka-300);
  color: #fff;
  font: 600 16px/1 "Rubik", system-ui, sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.menu-cta:hover,
.menu-cta:focus-visible {
  background: var(--paradajka-600);
}

.menu-panel .pill {
  display: none !important;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 98;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  width: 405px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 99;
}
.cart-dropdown.open {
  display: flex;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 37px 0 27px;
}
.cart-header h2 {
  font: 400 24px "Georgia", serif;
  color: var(--baklazan-900);
}
.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-products {
  flex: 1;
  padding: 0 20px;
  margin-bottom: 41px;
  overflow-y: auto;
}
.cart-subtitle {
  font: 400 16px "Rubik", sans-serif;
  margin-bottom: 16px;
}
.cart-item {
  width: 100%;
  border-radius: 0 0 8px 8px;
  padding: 24px 16px;
  margin-bottom: 16px;
}
.cart-item h3 {
  font: 400 20px "Georgia", serif;
  margin-bottom: 21px;
}
.cart-item .price {
  font: 500 18px "Rubik", sans-serif;
}
.cart-item .remove {
  float: right;
  font: 400 15px "Rubik", sans-serif;
  text-decoration: underline;
  cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.cart-item .remove:hover {
  color: var(--baklazan-600);
}

.card1 {
  background: #fcc7bd;
}
.card2 {
  background: #fff091;
}
.card3 {
  background: #a9cd86;
}
.card4 {
  background: #dcd1dd;
}

.cart-footer {
  background: #fff7d7;
  padding: 27px 23px 20px;
}
.cart-footer .total {
  display: flex;
  justify-content: space-between;
  font: 400 22px "Rubik", sans-serif;
  margin-bottom: 20px;
}
.cart-footer .total .price {
  font-weight: 500;
}
.checkout-btn {
  width: 100%;
  height: 57px;
  background: #ff5733;
  color: #fff;
  font: 600 16px "Rubik", sans-serif;
  border: none;
    cursor: pointer;
    display: inline-flex;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
}
.checkout-btn:hover {
  background: #c43d22;
}

@media (max-width: 560px) {
  .cart-dropdown {
    width: 100%;
    overflow-y: auto;
  }
  .cart-products {
    overflow-y: visible;
  }
}
