.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(23, 32, 26, 0.46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.cart-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  color: #17201a;
  box-shadow: -18px 0 48px rgba(23, 32, 26, 0.18);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}

.cart-drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-contents {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  opacity: 1 !important;
}

.cart-drawer .blockUI {
  display: none !important;
}

.cart-drawer-header,
.cart-drawer-footer {
  flex: 0 0 auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #d8e0d9;
}

.cart-drawer-header h2 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #17201a;
}

.cart-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #d8e0d9;
  background: #fff;
  color: #17201a;
  cursor: pointer;
}

.cart-drawer-close:hover {
  border-color: #1d5d33;
  color: #1d5d33;
}

.cart-drawer-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 1.25rem 1.25rem;
}

.cart-drawer-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 16rem;
  color: #667168;
}

.cart-drawer.is-empty .cart-drawer-empty,
.cart-drawer-contents.is-empty .cart-drawer-empty {
  display: flex;
}

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

.cart-drawer-empty i {
  margin-bottom: 0.85rem;
  font-size: 1.75rem;
  color: #1d5d33;
}

.cart-drawer-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.cart-drawer-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.25rem;
  background: #1d5d33;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.cart-drawer-shop:hover {
  background: #154526;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid #d8e0d9;
}

.cart-drawer-item img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #f3f6f3;
}

.cart-drawer-item-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-drawer-item-title a {
  color: #17201a;
  text-decoration: none;
}

.cart-drawer-item-title a:hover {
  color: #1d5d33;
}

.cart-drawer-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #667168;
  font-size: 0.85rem;
}

.cart-drawer-price {
  color: #17201a;
  font-weight: 600;
}

.cart-drawer-remove {
  display: inline-block;
  margin-top: 0.45rem;
  color: #667168;
  font-size: 0.8rem;
  text-decoration: underline;
}

.cart-drawer-remove:hover {
  color: #1d5d33;
}

.cart-drawer-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  background: #61ce70;
  color: #123d20;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.cart-drawer-item.is-free {
  background: #f3f6f3;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cart-drawer-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #d8e0d9;
  background: #fff;
}

.cart-drawer-min-notice {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #b42318;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
}

.cart-drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-drawer-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  background: #61ce70;
  color: #123d20 !important;
  font-weight: 700;
  text-decoration: none;
}

.cart-drawer-checkout:hover {
  background: #78d984;
}

.cart-drawer-view {
  display: block;
  text-align: center;
  color: #667168;
  font-size: 0.9rem;
  text-decoration: underline;
}

.cart-drawer-view:hover {
  color: #1d5d33;
}

body.cart-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer,
  .cart-drawer-overlay {
    transition: none;
  }
}
