/* ── Cart page — Faraz Mart ── */

.ct-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--nm-muted);
  margin: 0.25rem 0 1.15rem;
}
.ct-crumb a { color: inherit; text-decoration: none; }
.ct-crumb a:hover { color: var(--fz-brand-700); }
.ct-crumb span[aria-hidden] { opacity: 0.45; }

.ct-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--fz-border);
  margin-bottom: 1.35rem;
}

.ct-tab {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nm-muted);
  padding: 0.7rem 1rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ct-tab.is-on {
  color: var(--fz-brand-700);
}

.ct-tab.is-on::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  left: 0.6rem;
  bottom: -1px;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--fz-brand-500), var(--fz-brand-700));
}

.ct-tab__badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--fz-brand-500) 16%, transparent);
  color: var(--fz-brand-700);
}

.ct-tab.is-on .ct-tab__badge {
  background: var(--fz-brand-600);
  color: #fff;
}

.ct-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 1.25rem;
  align-items: start;
}

.ct-panel {
  border: 1px solid var(--fz-border);
  border-radius: 1.15rem;
  background: var(--fz-surface);
  overflow: hidden;
}

.ct-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--fz-border);
}

.ct-panel__head h1 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--nm-ink);
}

.ct-panel__head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--nm-muted);
  font-weight: 600;
}

.ct-clear {
  appearance: none;
  border: 1px solid var(--fz-border);
  background: transparent;
  color: var(--nm-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ct-clear:hover {
  color: #c45c4a;
  border-color: color-mix(in srgb, #c45c4a 40%, var(--fz-border));
}

.ct-list { padding: 0 0.35rem; }

.ct-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1.1rem 0.8rem;
  border-bottom: 1px solid var(--fz-border);
}

.ct-item:last-child { border-bottom: none; }

.ct-item__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.ct-item__media a {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--fz-brand-500) 5%, var(--fz-surface-2, #f4f7f6));
  border: 1px solid var(--fz-border);
}

.ct-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.ct-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--fz-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--fz-surface);
}

.ct-qty button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--fz-brand-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.ct-qty button:hover {
  background: color-mix(in srgb, var(--fz-brand-500) 10%, transparent);
}

.ct-qty button svg {
  width: 14px;
  height: 14px;
}

.ct-qty span {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--nm-ink);
  font-feature-settings: "tnum";
}

.ct-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.35rem;
}

.ct-item__body h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
}

.ct-item__body h2 a {
  color: var(--nm-ink);
  text-decoration: none;
}

.ct-item__body h2 a:hover { color: var(--fz-brand-700); }

.ct-item__flags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ct-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--nm-muted);
}

.ct-flag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ct-flag--ok { color: #1a8a6a; }
.ct-flag--ok svg { color: #1a8a6a; }

.ct-item__price {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--nm-ink);
  font-feature-settings: "tnum";
}

.ct-item__price small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nm-muted);
  margin-inline-start: 0.2rem;
}

.ct-item__actions {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ct-link {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fz-brand-700);
  cursor: pointer;
  padding: 0;
}

.ct-link:hover { text-decoration: underline; }

.ct-link--danger { color: #c45c4a; }

/* Summary */
.ct-summary {
  border: 1px solid var(--fz-border);
  border-radius: 1.15rem;
  background: var(--fz-surface);
  overflow: hidden;
  position: sticky;
  top: 1rem;
}

.ct-summary__rows {
  padding: 1rem 1.1rem 0.5rem;
  display: grid;
  gap: 0.85rem;
}

.ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nm-muted);
}

.ct-row strong {
  color: var(--nm-ink);
  font-feature-settings: "tnum";
  font-weight: 800;
}

.ct-row--total {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--fz-border);
  font-size: 0.95rem;
  color: var(--nm-ink);
}

.ct-row--save {
  color: #c45c4a;
}

.ct-row--save strong { color: #c45c4a; }

.ct-summary__cta {
  padding: 0.85rem 1.1rem 1.1rem;
}

.ct-summary__cta .fz-btn {
  width: 100%;
  justify-content: center;
}

.ct-summary__note {
  margin: 0;
  padding: 0.85rem 1.1rem 1.1rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--nm-muted);
}

.ct-summary__club {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: color-mix(in srgb, var(--fz-brand-500) 10%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--fz-brand-500) 18%, transparent);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fz-brand-800, var(--fz-brand-700));
}

.ct-summary__club span:last-child {
  font-feature-settings: "tnum";
}

/* Empty */
.ct-empty {
  text-align: center;
  padding: 2.5rem 1.25rem 2.75rem;
}

.ct-empty img {
  width: min(220px, 70%);
  height: auto;
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

.ct-empty h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--nm-ink);
}

.ct-empty p {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  color: var(--nm-muted);
  line-height: 1.7;
}

.ct-pane[hidden] { display: none !important; }

.ct-aside-empty {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ct-layout {
    grid-template-columns: 1fr;
  }
  .ct-summary { position: static; }
}

@media (max-width: 560px) {
  .ct-item {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
  }
  .ct-item__price { font-size: 1rem; }
}
