/* FitPower — سبد خرید و ثبت سفارش (فقط استایل‌های جدید؛ main.css دست‌نخورده است) */
.p-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.p-cart {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: var(--yellow); color: #080808; border: 1px solid var(--yellow);
  transition: all .25s var(--ease);
}
.p-cart svg { width: 19px; height: 19px; }
.p-cart:hover { background: var(--yellow2); transform: scale(1.08); box-shadow: 0 6px 22px rgba(var(--yellow-rgb), .28); }
.p-cart:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.pd-buy .btn svg { flex-shrink: 0; }

.ct-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; margin: 0 0 28px; line-height: 1.3; }
.ct-actions { display: flex; justify-content: center; margin-top: 22px; }

.ct-list { display: flex; flex-direction: column; gap: 12px; }
.ct-row {
  display: grid; grid-template-columns: 84px minmax(0, 1.6fr) 1fr auto 1fr 44px; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  transition: border-color var(--t);
}
.ct-row:hover { border-color: var(--line2); }
.ct-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg2); display: block; }
.ct-img img { width: 100%; height: 100%; object-fit: contain; }
.ct-name a { font-weight: 700; font-size: 15px; line-height: 1.6; transition: color var(--t); }
.ct-name a:hover { color: var(--yellow); }
.ct-cell { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ct-cell b { font-weight: 800; }
.ct-sum b { color: var(--yellow); }
.ct-lbl { font-size: 12px; color: var(--faint); }
.ct-row .qty-box { width: max-content; }
.ct-row .qty-box button { height: 40px; }
.ct-row .qty-box input { height: 40px; width: 48px; }
.ct-del {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--faint);
  border: 1px solid transparent; transition: color var(--t), background var(--t), border-color var(--t);
}
.ct-del svg { width: 18px; height: 18px; }
.ct-del:hover { color: var(--danger); background: rgba(255,90,90,.08); border-color: rgba(255,90,90,.3); }

.ct-foot {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
}
.ct-total { display: flex; flex-direction: column; gap: 4px; }
.ct-total span { font-size: 13px; color: var(--muted); }
.ct-total b { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--yellow); }
.ct-foot-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* checkout */
.ck-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; padding-bottom: 30px; }
.ck-form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ck-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ck-form .req { color: var(--danger); font-style: normal; }
.ck-form select:disabled { opacity: .55; cursor: not-allowed; }
.ck-err { min-height: 0; font-size: 12.5px; color: var(--danger); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,90,90,.12); }
.ck-summary { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ck-summary h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.ck-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ck-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--bg2); }
.ck-item-name { font-weight: 700; line-height: 1.6; }
.ck-item-name small { display: block; color: var(--faint); font-weight: 500; font-size: 12.5px; }
.ck-item b { font-weight: 800; white-space: nowrap; }
.ck-sum-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-weight: 700; }
.ck-sum-total b { color: var(--yellow); font-size: 18px; font-weight: 800; }
.ck-back { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); transition: color var(--t); }
.ck-back:hover { color: var(--yellow); }

.ck-bar {
  position: sticky; bottom: 0; z-index: 40; margin-top: 20px; padding: 14px 0;
  background: rgba(8,8,8,.9); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.ck-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ck-bar-total { display: flex; flex-direction: column; gap: 2px; }
.ck-bar-total span { font-size: 12.5px; color: var(--muted); }
.ck-bar-total b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--yellow); }

@media (max-width: 960px) {
  .ck-grid { grid-template-columns: 1fr; }
  .ck-summary { position: static; order: -1; }
}
@media (max-width: 760px) {
  .ct-row { grid-template-columns: 72px 1fr 40px; grid-template-areas: "img name del" "price qty qty" "sum sum sum"; gap: 12px 14px; }
  .ct-row .ct-img { grid-area: img; width: 72px; height: 72px; }
  .ct-row .ct-name { grid-area: name; }
  .ct-row .ct-del { grid-area: del; }
  .ct-row .ct-cell:nth-of-type(1) { grid-area: price; }
  .ct-row .ct-cell:nth-of-type(2) { grid-area: qty; }
  .ct-row .ct-sum { grid-area: sum; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
  .ct-foot { flex-direction: column; align-items: stretch; }
  .ct-foot-btns .btn { flex: 1; justify-content: center; }
  .ck-two { grid-template-columns: 1fr; }
  .ck-bar .btn { padding-inline: 18px; }
}
