.cart {
  padding: 16px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 15px;
}

.cart-item-variant {
  font-size: 13px;
  color: #666;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.cart-remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: #d00;
  font-size: 13px;
}

.cart-summary {
  margin-top: 20px;
  background: white;
  padding: 14px;
  border-radius: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.summary-row.total {
  font-weight: 700;
  font-size: 18px;
}

.checkout-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: black;
  color: white;
  font-weight: 600;
}

.cart-item-line-total{
  font-weight:600;
  margin-top:2px;
}


/* =========================
   DESKTOP CART (PREMIUM)
========================= */

@media (min-width: 1024px) {

  .cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;

    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 32px;
    align-items: start;
  }

  /* LEFT SIDE */
  .cart-items {
    gap: 20px;
  }

  /* ITEM CARD UPGRADE */
  .cart-item {
    padding: 16px;
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* IMAGE */
  .cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
  }

  /* INFO STRUCTURE */
  .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
  }

  .cart-item-variant {
    font-size: 13px;
    color: var(--color-muted);
  }

  /* PRICE ROW */
  .cart-item-price {
    font-size: 14px;
    color: var(--color-muted);
  }

  .cart-item-line-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-price);
  }

  /* QTY CONTROL (UPGRADE) */
  .cart-qty {
    margin-top: 6px;

    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
  }

  .cart-qty button {
    width: 34px;
    height: 34px;
    border: none;
    background: #fafafa;
    font-size: 16px;
    transition: background 0.2s;
  }

  .cart-qty button:hover {
    background: #eee;
  }

  .cart-qty span {
    padding: 0 12px;
    font-weight: 600;
  }

  /* REMOVE BUTTON */
  .cart-remove {
    margin-top: 6px;
    color: #d32f2f;
    font-weight: 500;
    cursor: pointer;
  }

  .cart-remove:hover {
    text-decoration: underline;
  }

  /* =========================
     RIGHT SIDE (SUMMARY BOX)
  ========================= */

  .cart-summary {
    position: sticky;
    top: 100px;

    padding: 20px;
    border-radius: 16px;

    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);

    background: var(--color-surface);
  }

  .summary-row {
    font-size: 15px;
    padding: 6px 0;
  }

  .summary-row.discount {
    color: var(--color-discount);
  }

  .summary-row.total {
    font-size: 20px;
    font-weight: 700;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 12px;
  }

  /* CHECKOUT BUTTON (PREMIUM) */
  .checkout-btn {
    margin-top: 18px;
    height: 52px;
    font-size: 16px;

    border-radius: 12px;

    background: var(--color-primary);
    color: white;

    transition: all 0.2s ease;
  }

  .checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }

}