@import url('./main.css');

/* Page Header */
.page-header-alt {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.page-title {
  font-weight: 800;
  font-size: 32px;
  margin: 0;
  letter-spacing: -1px;
}

/* Cart Items */
.cart-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.item-img {
  width: 100px;
  height: 100px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.item-img img {
  max-width: 80%;
}
.item-details {
  flex-grow: 1;
}
.item-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}
.item-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: #fff;
  border: none;
  padding: 5px 12px;
  font-weight: bold;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: #f5f5f5;
}
.qty-val {
  padding: 5px 15px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-weight: 700;
}

.item-price {
  font-weight: 800;
  font-size: 18px;
  margin-left: 40px;
  min-width: 100px;
  text-align: right;
}
.btn-remove {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
}
.btn-remove:hover {
  color: var(--primary);
}

/* Summary Panel */
.summary-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 30px;
  position: sticky;
  top: 20px;
}
.summary-title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}
.summary-total {
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
  padding-top: 15px;
  font-weight: 800;
  font-size: 20px;
}

.btn-checkout {
  background: var(--dark-bg);
  color: #fff;
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  margin-top: 25px;
  transition: background 0.2s;
}
.btn-checkout:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-img {
    margin-bottom: 15px;
    width: 100%;
    height: 150px;
  }
  .item-price {
    margin-left: 0;
    margin-top: 15px;
    text-align: left;
  }
  .summary-panel {
    margin-top: 40px;
  }
}
