.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d7d1c6;
  background: #fff;
  color: #11100e;
  font: 700 .72rem "DM Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  background: #11100e;
  color: #fff;
  font-size: .7rem;
}

.cart-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(0, 0, 0, .44);
  opacity: 0;
  transition: opacity .25s ease;
}

.cart-overlay.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 60px rgba(0, 0, 0, .2);
  transform: translateX(105%);
  transition: transform .3s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid #e8e3da;
}

.cart-head p {
  margin: 0 0 3px;
  color: #8a6a34;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.cart-head h2 {
  margin: 0;
  font: 600 2rem/1 "Playfair Display", serif;
}

.cart-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: #f4f1eb;
  color: #11100e;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee9e1;
}

.cart-item img {
  width: 82px;
  height: 100px;
  object-fit: cover;
  background: #f3f0ea;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  display: block;
  margin: 0 0 4px;
  font: 600 1.05rem/1.25 "Playfair Display", serif;
}

.cart-item-price {
  display: block;
  color: #6b645b;
  font-size: .82rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d1c6;
}

.cart-quantity button {
  width: 34px;
  height: 32px;
  border: 0;
  background: #fff;
  color: #11100e;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-quantity span {
  min-width: 30px;
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #766d61;
  font-size: .72rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-empty {
  display: none;
  margin: auto;
  padding: 45px 30px;
  text-align: center;
}

.cart-empty strong {
  font: 600 1.6rem "Playfair Display", serif;
}

.cart-empty p {
  color: #6f685e;
}

.cart-drawer.is-empty .cart-empty {
  display: block;
}

.cart-drawer.is-empty .cart-items,
.cart-drawer.is-empty .cart-footer {
  display: none;
}

.cart-footer {
  padding: 22px 28px 28px;
  border-top: 1px solid #e8e3da;
  background: #faf8f4;
}

.cart-footer label {
  display: block;
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 700;
}

.cart-currency {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d1c6;
  background: #fff;
  color: #11100e;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 1.05rem;
}

.cart-total-row strong {
  font: 600 1.5rem "Playfair Display", serif;
}

.cart-converted-total {
  min-height: 24px;
  margin: 2px 0 16px;
  color: #80642f;
  text-align: right;
  font-weight: 700;
}

.cart-checkout,
.cart-continue {
  width: 100%;
  min-height: 54px;
  border: 0;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-checkout {
  background: #11100e;
  color: #fff;
}

.cart-checkout:hover {
  background: #b88a3b;
}

.cart-continue {
  margin-top: 8px;
  background: transparent;
  color: #11100e;
}

.cart-footer small {
  display: block;
  margin-top: 12px;
  color: #756e64;
  font-size: .7rem;
  line-height: 1.45;
  text-align: center;
}

body.cart-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cart-trigger {
    margin-left: auto;
  }

  .nav .menu {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .cart-trigger {
    min-width: 44px;
    padding: 0 9px;
  }

  .cart-trigger > span {
    display: none;
  }

  .cart-head,
  .cart-items,
  .cart-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
