/* Cart Page Styles */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #dc2626;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
}

.cart-item-quantity button:hover {
    background: #f3f4f6;
}

.cart-item-subtotal {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-item-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
}

.cart-item-remove:hover {
    background: #fecaca;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

@media (max-width: 968px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item-quantity,
    .cart-item-subtotal,
    .cart-item-remove {
        grid-column: 2;
    }
}

/* ---- UI Rework (non-breaking enhancements) ---- */
.cart-item{
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cart-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
  border-color: #d1d5db;
}
.cart-item-info{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.cart-item-meta{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:baseline;
}
.cart-item-line{
  font-weight:700;
  color:#111827;
}
.cart-item-subline{
  font-size:.9rem;
  color:#6b7280;
  display:flex;
  gap:.5rem;
}
.qty-pill{
  display:inline-flex;
  min-width:34px;
  height:32px;
  align-items:center;
  justify-content:center;
  border:2px solid #e5e7eb;
  border-radius:999px;
  font-weight:700;
  color:#111827;
}
.cart-summary{
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.shipping-hint{
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  background: #f8fafc;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  color: #111827;
  font-weight: 600;
}
.empty-state{
  background:#fff;
  border:2px dashed #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
}
.empty-emoji{
  font-size: 44px;
  margin-bottom: .75rem;
}
@media (max-width: 968px){
  .cart-item{
    grid-template-columns: 80px 1fr;
    grid-auto-rows: auto;
  }
  .cart-item-subtotal{
    grid-column: 2;
  }
  .cart-item-remove{
    grid-column: 2;
    width: fit-content;
    justify-self: end;
  }
}
