.cart-list-v1-sidebar {
  display: flex;
  flex-direction: column;
}

.cart-product-wrapper {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #eee;
  padding: 10px 2px;
  gap: 10px;
}

.cart-product-thumbnail {
  width: 80px;
  min-width: 80px;
  height: 80px;
}

.cart-product-info {
  width: 100%;
}

.cart-product-thumbnail img {
  width: 100%;
  height: 100%;
}

.cart-product-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.cart-product-header button {
  font-size: 20px;
}

.cart-product-name {
  font-weight: 600;
}

.cart-product-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  display: flex;
  justify-content: flex-end;
  z-index: 1000;
}

.cart-qty-control.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.cart-qty-control svg {
  cursor: pointer;
}

.cart-qty-control svg:hover {
  opacity: 0.8;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.cart-qty-control svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-qty-control svg:hover {
  color: #111;
  transform: scale(1.1);
}

.cart-qty-control svg:active {
  opacity: 0.7;
  transform: scale(0.95);
}

.cart-qty {
  min-width: 26px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

.cart-qty-control .disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.cart-sidebar {
  width: 480px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 28px;

  display: flex;
  flex-direction: column;

  position: relative;
  right: auto;
  top: auto;
}

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

.cart-overlay.active .cart-sidebar {
  transform: translateX(0);
}

.cart-sidebar-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
  display: flex;
  justify-content: flex-end;
}
.cart-sidebar-close {
  font-size: 16px;
}

.cart-sidebar-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contains;
}

.cart-sidebar-footer {
  padding-bottom: 25px;
}

.cart-action-wrapper {
  max-width: 100%;
}

.cart-divider {
  border: none;
  border-top: 1px solid #d0d0d0;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 15px;
}

.subtotal-label {
  color: #333;
}

.subtotal-amount {
  font-weight: 600;
  color: #000;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  flex: 1;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline {
  background-color: white;
  color: #333;
  border: 1px solid #d0d0d0;
}

.btn-outline:hover {
  background-color: #f8f8f8;
}

.btn-solid {
  background-color: #1a1a1a;
  color: white;
  border: 1px solid #1a1a1a;
}

.btn-solid:hover {
  background-color: #000;
}

/* 사이드바 카트 비었을 때 css */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #333;
}

.cart-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f1f1f1;
  font-size: 24px;
  margin-bottom: 16px;
  color: #555;
}

.cart-empty p {
  font-size: 15px;
  color: #555;
}

.cart-shopping {
  padding: 10px;
  border: 1px solid #777;
  width: 100%;
  color: #777;
  font-size: 16px;
}
