.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: calc(420px * var(--u, 1));
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  z-index: 3501;
}

.cart-drawer-backdrop.active .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px * var(--u, 1)) calc(22px * var(--u, 1));
  border-bottom: 1px solid #e5e5e5;
  background: #FFFFFF;
}

.cart-drawer-title {
  font-size: var(--fs-title);
  font-weight: 700;
  color: #000000;
  margin: 0;
  font-family: inherit;
}

.cart-drawer-close {
  background: none;
  border: none;
  padding: calc(6px * var(--u, 1));
  cursor: pointer;
  color: #6e6e6e;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.cart-drawer-close svg {
  width: calc(20px * var(--u, 1));
  height: calc(20px * var(--u, 1));
}

.cart-drawer-close:hover {
  color: #000000;
  background: #f4f4f4;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: calc(20px * var(--u, 1)) calc(22px * var(--u, 1));
}

.cart-drawer-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: calc(240px * var(--u, 1));
  padding: calc(40px * var(--u, 1)) calc(20px * var(--u, 1));
  gap: calc(14px * var(--u, 1));
}

.cart-drawer-empty.visible {
  display: flex;
}

.cart-empty-icon-box {
  width: calc(60px * var(--u, 1));
  height: calc(60px * var(--u, 1));
  border-radius: 0;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
}

.cart-empty-icon-box svg {
  width: calc(28px * var(--u, 1));
  height: calc(28px * var(--u, 1));
}

.cart-empty-text {
  font-size: var(--fs-title);
  color: #6e6e6e;
  margin: 0;
}

.cart-empty-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(10px * var(--u, 1)) calc(20px * var(--u, 1));
  background: #000000;
  color: #FFFFFF;
  border-radius: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.cart-empty-link-btn:hover {
  background: #000000;
}

.cart-drawer-items {
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--u, 1));
}

.cart-drawer-item {
  display: flex;
  gap: calc(14px * var(--u, 1));
  padding-bottom: calc(16px * var(--u, 1));
  border-bottom: 1px solid #f4f4f4;
  position: relative;
}

.cart-item-thumb-box {
  width: calc(76px * var(--u, 1));
  height: calc(76px * var(--u, 1));
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: calc(4px * var(--u, 1));
  background: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(3px * var(--u, 1));
  min-width: 0;
}

.cart-item-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.cart-item-attr {
  font-size: var(--fs-label);
  color: #6e6e6e;
  margin: 0;
  line-height: 1.3;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(4px * var(--u, 1));
}

.cart-item-price {
  font-size: var(--fs-title);
  font-weight: 700;
  color: #000000;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  padding: calc(4px * var(--u, 1));
  cursor: pointer;
  color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  border-radius: 0;
}

.cart-item-remove-btn svg {
  width: calc(17px * var(--u, 1));
  height: calc(17px * var(--u, 1));
}

.cart-item-remove-btn:hover {
  color: #3d3d3d;
}

.cart-drawer-footer {
  padding: calc(20px * var(--u, 1)) calc(22px * var(--u, 1)) calc(24px * var(--u, 1));
  border-top: 1px solid #e5e5e5;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: calc(16px * var(--u, 1));
}

.cart-drawer-footer.hidden {
  display: none;
}

.cart-drawer-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary-label {
  font-size: var(--fs-title);
  font-weight: 600;
  color: #3d3d3d;
}

.cart-summary-price {
  font-size: var(--fs-title);
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.2px;
}

.cart-drawer-checkout-btn {
  width: 100%;
  height: calc(48px * var(--u, 1));
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.cart-drawer-checkout-btn:hover {
  background: #1a1a1a;
}

.cart-drawer-checkout-btn:active {
  transform: scale(0.99);
}

@media (max-width: 480px) {
  .cart-drawer-panel {
    max-width: 100%;
  }

  .cart-drawer-header,
  .cart-drawer-body,
  .cart-drawer-footer {
    padding-left: calc(18px * var(--u, 1));
    padding-right: calc(18px * var(--u, 1));
  }
}
