.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: 420px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
  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: 18px 22px;
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
}

.cart-drawer-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: inherit;
}

.cart-drawer-close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #6B7280;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.cart-drawer-close svg {
  width: 20px;
  height: 20px;
}

.cart-drawer-close:hover {
  color: #111827;
  background: #F3F4F6;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

.cart-drawer-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 240px;
  padding: 40px 20px;
  gap: 14px;
}

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

.cart-empty-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
}

.cart-empty-icon-box svg {
  width: 28px;
  height: 28px;
}

.cart-empty-text {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.cart-empty-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

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

.cart-drawer-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
  position: relative;
}

.cart-item-thumb-box {
  width: 76px;
  height: 76px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 4px;
  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: 3px;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.cart-item-attr {
  font-size: 11.5px;
  color: #6B7280;
  margin: 0;
  line-height: 1.3;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  border-radius: 4px;
}

.cart-item-remove-btn svg {
  width: 17px;
  height: 17px;
}

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

.cart-drawer-footer {
  padding: 20px 22px 24px;
  border-top: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.cart-summary-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.cart-summary-price {
  font-size: 16.5px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.2px;
}

.cart-drawer-checkout-btn {
  width: 100%;
  height: 48px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  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: #DF0513;
}

.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: 18px;
    padding-right: 18px;
  }
}
