/* Shopping cart container */
.shopping-cart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Styles for the shopping cart title*/
.shopping-cart-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shopping-cart-title svg {
  width: 32px;
  height: 32px;
  color: var(--accent1, #7b2ff7);
}

/* Styles for the title text */
.title-text {
  margin-left: 0.5rem;
}

.title-text h1 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 2rem;
}

.title-text p {
  margin: 0;
}

.item-count {
  color: var(--muted, #9a9a9a);
  font-size: 1rem;
  margin-top: 0;
}

/* Hide the original placeholder count and show the server-rendered count instead */
.shopping-cart-title .title-text .item-count { display: none; }

.server-item-count { 
  margin-top: 0.5rem;
  color: var(--muted, #9a9a9a);
}

.cart-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 2rem;
}

.item_padding_box {
  flex: 1 1 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 40px;
  background: var(--panel, #0b0b0b);
  box-sizing: border-box;
  gap: 32px;
  border-radius: 12px;
  min-width: 0;
}

.item_box {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 32px 24px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  column-gap: 48px;
}

.item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-right {
  text-align: right;
}

.item-picture {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent1, #7b2ff7), var(--accent2, #ff6b6b));
  border-radius: 8px;
  margin-bottom: 20px;
}

.item-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.artist-name {
  font-size: 0.9rem;
  color: var(--muted, #9a9a9a);
}

.item-qty {
  font-size: 0.9rem;
  color: var(--muted, #9a9a9a);
  margin-bottom: 0.5rem;
}

.item-price {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.remove-form { position: absolute; top: 10px; right: 10px; z-index: 3; }

.delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(192, 52, 52, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(192, 52, 52, 0.3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-btn svg { display: block; }

.delete-btn:hover { 
  background: rgba(192, 52, 52, 0.2);
  border-color: #ff6b6b;
}

.item_box.empty {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted, #9a9a9a);
  text-align: center;
  border-style: dashed;
}

/* Order summary box (right column) */
.order-summary-box {
  width: 360px;
  padding: 32px 24px;
  background: var(--panel, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.order-summary-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  color: #fff;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-summary-row.order-summary-total {
  border-bottom: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.1rem;
}

.order-summary-label { color: var(--muted, #9a9a9a); }
.order-summary-amount { color: #fff; font-weight: 600; }

/* Checkout CTA below the summary */
.order-summary-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: stretch;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent1, #7b2ff7);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(123, 47, 247, 0.4);
  border: none;
  transition: all 0.2s ease;
}

.checkout-btn:hover,
.checkout-btn:focus {
  background: #6d28d9;
  box-shadow: 0 6px 16px rgba(123, 47, 247, 0.6);
  transform: translateY(-2px);
  outline: none;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .item_padding_box, .order-summary-box {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 1rem 0;
  }
  .order-summary-box { margin-left: 0; }
}
