/* ✅ CART SECTION (CLEAN) — Typography matched with shop.css */

:root{
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fw-thin: 300;
  --fw-light: 350;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --bg:#fff;
  --text:#111;
  --muted:#555;
  --muted-2:#999;

  --border:#eee;
  --border-2:#e6e6e6;
  --border-3:#cfcfcf;

  --primary:#111;
  --on-primary:#fff;

  --radius-sm:12px;
  --radius-md:14px;
}

.cart-page{
  max-width:1200px;
  margin:36px auto;
  padding:0 20px 40px;
  display:block;

  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  color: var(--text);
}

/* ✅ breadcrumb refined */
.breadcrumb{
  font-size:13px;
  color:#777;
  margin-bottom:16px;
  display:flex;
  gap:8px;
  align-items:center;
  font-weight: var(--fw-light);
}
.breadcrumb a{
  color:#777;
  text-decoration:none;
  font-weight: var(--fw-light);
}
.breadcrumb a:hover{
  text-decoration:underline;
  color: var(--text);
}
.muted{
  color:#888;
  font-size:13px;
  font-weight: var(--fw-light);
}

/* ✅ heading like shop (light + uppercase spacing) */
.cart-heading{
  font-size:26px;
  font-weight: var(--fw-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom:14px;
  opacity:0.92;
}

.cart-main{
  display:flex;
  gap:28px;
  align-items:flex-start;
}

.cart-left{
  flex:1 1 65%;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

.cart-right{
  flex:0 0 340px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding:22px;
  border:1px solid #f0f0f0;
  box-shadow:0 4px 10px rgba(0,0,0,0.03);
  height:fit-content;
  transition:transform .18s ease;
}

.cart-item{
  display:flex;
  gap:18px;
  align-items:center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding:18px;
  border:1px solid #f2f2f2;
  box-shadow:0 2px 6px rgba(0,0,0,0.02);
  margin:0;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .28s ease;
  will-change:transform,opacity;
}

.cart-item img{
  width:86px;
  height:86px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}

.item-info{ flex:1; }

/* ✅ item title light like product name */
.item-title{
  font-size:15px;
  font-weight: var(--fw-light);
  margin-bottom:6px;
  color: var(--text);
  letter-spacing: .2px;
}

.item-meta{
  font-size:13px;
  color:#7a7a7a;
  margin-bottom:8px;
  font-weight: var(--fw-light);
}

/* ✅ price refined but readable */
.item-price{
  font-size:17px;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.item-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.trash{
  color:#c33;
  cursor:pointer;
  font-size:18px;
  background:none;
  border:none;
  padding:0;
  box-shadow:none;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: color .15s ease, transform .12s ease;
}
.trash:hover{ color:#9b0000; transform:translateY(-1px); }

.qty-control{
  display:flex;
  gap:8px;
  align-items:center;
  border-radius:999px;
  background: var(--bg);
  border:1px solid var(--border);
  padding:6px 10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.02);
}

.qty-control button{
  border:none;
  background:transparent;
  font-size:18px;
  width:32px;
  height:32px;
  cursor:pointer;
  font-weight: var(--fw-semibold);
  user-select:none;
}

.qty-display{
  min-width:20px;
  text-align:center;
  font-weight: var(--fw-semibold);
  display:inline-block;
}

/* ✅ summary title light/clean */
.summary-title{
  font-weight: var(--fw-semibold);
  font-size:16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom:14px;
  color: var(--text);
}

.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:#444;
  padding:8px 0;
  border-bottom:1px solid #f3f3f3;
  font-weight: var(--fw-light);
}

.summary-row.total{
  font-size:16px;
  font-weight: var(--fw-semibold);
  padding-top:14px;
  border-bottom:none;
  margin-top:6px;
  color: var(--text);
}

.promo-row{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
}

.promo-row input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  outline:none;
  font-weight: var(--fw-light);
  font-family: var(--font-main);
}

.promo-btn{
  padding:10px 14px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: var(--fw-semibold);
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size:12px;
}

/* ✅ checkout button strong but not “too bold” */
.checkout-btn{
  margin-top:16px;
  width:100%;
  padding:14px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background: var(--primary);
  color: var(--on-primary);

  font-weight: var(--fw-bold);
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size:13px;

  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  text-decoration:none;

  transition: transform .15s ease, opacity .15s ease;
}
.checkout-btn:hover{
  transform: translateY(-1px);
  opacity:.92;
}

@media (max-width:980px){
  .cart-main{ flex-direction:column; }
  .cart-right{ width:100%; }
  .cart-heading{ font-size:24px; }
}

@media (max-width:520px){
  .cart-page{ padding:0 12px 28px; }
  .cart-item{ padding:10px; gap:12px; }
  .cart-item img{ width:64px; height:64px; }
  .item-title{ font-size:14px; }
  .item-price{ font-size:16px; }
  .cart-right{ padding:16px; }
}
