/* ==========================================================================
   CART DRAWER (Off-canvas)
   ========================================================================== */

/* NOTE: Layout structures (.wsdt-drawer-wrapper, panel, overlay) are now in 05.drawers.css */

.wsdt-cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-body);
  gap: var(--space-md);
}

.wsdt-cart-empty-state svg {
  width: calc(64 * var(--unit-px));
  height: calc(64 * var(--unit-px));
  opacity: 0.2;
}

.wsdt-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--text-title);
  margin-bottom: var(--space-md);
}

.wsdt-cart-drawer__checkout {
  width: 100%; /* Το κουμπί πιάνει όλο το πλάτος */
}
/* ==========================================================================
   CART ITEMS LIST
   ========================================================================== */
.wsdt-cart-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.wsdt-cart-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-width-sm) solid var(--border-light);
}

.wsdt-cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wsdt-cart-item__image {
  width: calc(var(--unit-base) * 16); /* 80px */
  height: calc(var(--unit-base) * 16);
  flex-shrink: 0;
  background-color: var(--bg-gray-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wsdt-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wsdt-cart-item__details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.wsdt-cart-item__title {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.wsdt-cart-item__title a {
  color: var(--text-body);
}

.wsdt-cart-item__title a:hover {
  color: var(--color-secondary);
}

.wsdt-cart-item__price {
  font-weight: var(--font-weight-semibold);
  color: var(--text-title);
  margin-bottom: var(--space-sm);
}

.wsdt-cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.wsdt-qty-input {
  width: calc(var(--unit-base) * 12); /* 60px */
  padding: var(--space-xs);
  text-align: center;
  border: var(--border-width-sm) solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--p-font-family);
}

.wsdt-cart-item__remove {
  background: transparent;
  border: none;
  color: var(--border-light);
  cursor: pointer;
  padding: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.wsdt-cart-item__remove svg {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
}

.wsdt-cart-item__remove:hover {
  color: var(--color-error);
}
