.cart-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--sage-green-mid);
  color: white;
  border: none;
  font-family: var(--font-body);
  padding: .625rem .875rem;
  border-radius: .25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color .2s ease;
}

.cart-toggle:hover {
  background-color: var(--sage-green-semi);
}

.cart-drawer {
  position: fixed;
  top: var(--header-height);
  right: -320px;
  width: 300px;
  padding: 1rem;
  height: calc(100% - var(--header-height));
  min-height: -webkit-fill-available;
  background-color: var(--parchment-flour-light);
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .625rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: .75rem;
  border-top: 1px solid var(--clay-taupe);
  border-bottom: 1px solid var(--clay-taupe);
  padding: .5rem 0;
}

.cart-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--clay-taupe);
}

.cart-item-left {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: .5rem;
}

.cart-item-left img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: .25rem;
  border: 1px solid var(--clay-taupe-dark);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  font-size: .9375rem;
}

.cart-item-info a {
  color: var(--text-dark);
  text-decoration: none;
}

.cart-item-info a:hover {
  text-decoration: underline;
}

.cart-item-controls {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .75rem;
}

.cart-item-controls button {
  background-color: var(--sage-green-mid);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .375rem .625rem;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .9375rem;
}

.cart-item-controls button:hover {
  background-color: var(--sage-green-semi);
}

.remove-item {
  margin-left: auto;
  margin-right: 0;
  background-color: var(--rustic-brown-light);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .375rem .625rem;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .9375rem;
}

.remove-item:hover {
  background-color: var(--rustic-brown-dark);
}

.cart-footer {
  border-top: 1px solid var(--clay-taupe);
  padding-top: .625rem;
}

.checkout-btn {
  background-color: var(--golden-wheat);
  color: var(--rustic-brown);
  font-family: var(--font-body);
  border: none;
  width: 100%;
  font-size: 1rem;
  padding: .625rem;
  border-radius: .25rem;
  cursor: pointer;
  transition: background-color .2s ease;
}

.checkout-btn:hover {
  background-color: var(--golden-wheat-light);
}

@media screen and (max-width: 768px) {

  .cart-item-controls button,
  .remove-item {
    font-size: 1rem;
    touch-action: manipulation;
  }

  .cart-item-controls {
    gap: 1rem;
  }

  .cart-drawer {
    position: fixed;
    top: var(--header-height);
    right: -320px;
    width: 300px;
    padding: 1rem 1rem calc(6rem + env(safe-area-inset-bottom));
    height: calc(100vh - var(--header-height));
    min-height: -webkit-fill-available;
    background-color: var(--parchment-flour-light);
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

}