/* assets/css/cart.css */

:root{
  --ink:#1c2a3a;
  --muted:rgba(28,42,58,0.72);

  --ivory:#f7f5f0;
  --panel:rgba(255,255,255,0.86);

  --line:rgba(28,42,58,0.14);
  --line2:rgba(28,42,58,0.20);

  --gold:#c8a45d;

  --shadow:0 18px 52px rgba(16,22,28,0.12);
  --shadow2:0 10px 26px rgba(16,22,28,0.10);

  --r:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

.ct-shell{
  min-height:100%;
  padding:26px 16px;
  display:grid;
  place-items:center;
}

.ct-card{
  width:100%;
  max-width:980px;
  border-radius:var(--r);
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:20px;
}

.ct-head{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.ct-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(200,164,93,0.28);
  background:rgba(200,164,93,0.14);
  font-weight:700;
  font-size:12px;
  letter-spacing:0.6px;
  text-transform:uppercase;
}

.ct-title{
  margin:10px 0 6px 0;
  font-size:24px;
  font-weight:760;
  letter-spacing:-0.3px;
  color:var(--ink);
}

.ct-sub{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14.2px;
  max-width:62ch;
}

.ct-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.ct-alert{
  margin:12px 0 12px 0;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.9);
  box-shadow:var(--shadow2);
  font-size:13.8px;
  line-height:1.55;
}

.ct-alert-ok{
  border-color:rgba(200,164,93,0.28);
  background:rgba(200,164,93,0.12);
}

.ct-alert-err{
  border-color:rgba(160,40,40,0.22);
  background:rgba(160,40,40,0.10);
}

.ct-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  color:rgba(28,42,58,0.92);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  box-shadow:var(--shadow2);
  text-decoration:none;
}

.ct-btn:hover{ border-color:var(--line2); }

.ct-btn-primary{
  border-color:rgba(200,164,93,0.30);
  background:rgba(200,164,93,0.16);
}

.ct-btn-warn{
  border-color:rgba(160,40,40,0.22);
  background:rgba(160,40,40,0.10);
}

.ct-btn-sm{
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}

.ct-muted{ color:rgba(28,42,58,0.60); }

.ct-mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ct-dot{ margin:0 8px; color:rgba(28,42,58,0.35); }

.ct-table-wrap{
  overflow:auto;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.82);
}

.ct-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}

.ct-table thead th{
  text-align:left;
  font-size:12px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  color:rgba(28,42,58,0.70);
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}

.ct-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid rgba(28,42,58,0.08);
  vertical-align:top;
}

.ct-th-qty,.ct-th-price,.ct-th-total,.ct-th-actions{
  width:110px;
}

.ct-item{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:12px;
  align-items:center;
}

.ct-thumb{
  width:64px;
  height:64px;
  border-radius:14px;
  border:1px solid rgba(28,42,58,0.10);
  background:rgba(28,42,58,0.03);
  overflow:hidden;
  display:grid;
  place-items:center;
}

.ct-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ct-thumb-empty{
  font-size:12px;
  color:rgba(28,42,58,0.60);
}

.ct-item-title{
  font-weight:760;
  font-size:14.5px;
  color:var(--ink);
}

.ct-item-sub{
  margin-top:4px;
  font-size:12.8px;
  color:rgba(28,42,58,0.68);
}

.ct-qty-form{
  display:flex;
  gap:8px;
  align-items:center;
}

.ct-qty-input{
  width:76px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  padding:10px 10px;
  font-size:14px;
}

.ct-summary{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:14px;
  margin-top:14px;
}

@media (max-width: 900px){
  .ct-summary{ grid-template-columns:1fr; }
}

.ct-note{
  border:1px solid rgba(28,42,58,0.10);
  border-radius:16px;
  background:rgba(255,255,255,0.86);
  padding:14px;
  box-shadow:var(--shadow2);
}

.ct-note-title{
  font-weight:760;
  margin-bottom:4px;
}

.ct-note-sub{
  color:var(--muted);
  line-height:1.6;
  font-size:13.8px;
}

.ct-totals{
  border:1px solid rgba(28,42,58,0.10);
  border-radius:16px;
  background:rgba(255,255,255,0.86);
  padding:14px;
  box-shadow:var(--shadow2);
}

.ct-total-row{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid rgba(28,42,58,0.08);
}

.ct-total-row:last-child{ border-bottom:none; }

.ct-total-k{ color:rgba(28,42,58,0.72); }
.ct-total-v{ font-weight:760; }

.ct-total-help{
  margin-top:10px;
  color:rgba(28,42,58,0.62);
  font-size:13px;
  line-height:1.55;
}

.ct-cta{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.ct-empty{
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(28,42,58,0.10);
  background:rgba(255,255,255,0.86);
  box-shadow:var(--shadow2);
}

.ct-empty-title{
  font-weight:760;
  font-size:16px;
  margin-bottom:6px;
}

.ct-empty-sub{
  color:var(--muted);
  line-height:1.6;
  font-size:13.8px;
}

.ct-empty-actions{ margin-top:12px; }

.ct-modal[hidden]{ display:none; }

.ct-modal{
  position:fixed;
  inset:0;
  z-index:1000;
}

.ct-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
}

.ct-modal-card{
  position:relative;
  margin:6vh auto 0 auto;
  width:min(720px, calc(100% - 24px));
  border-radius:18px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(28,42,58,0.14);
  box-shadow:0 22px 70px rgba(10,12,16,0.25);
  padding:16px;
}

.ct-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.ct-modal-title{
  font-weight:780;
  font-size:15px;
}

.ct-x{
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(28,42,58,0.14);
  background:rgba(28,42,58,0.05);
  cursor:pointer;
  font-size:18px;
}

.ct-submit{ display:grid; gap:10px; }

.ct-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

@media (max-width: 680px){
  .ct-grid{ grid-template-columns:1fr; }
}

.ct-label{
  font-size:13px;
  font-weight:650;
  color:rgba(28,42,58,0.88);
}

.ct-input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  padding:12px 12px;
  font-size:14.2px;
  outline:none;
}

.ct-input:focus{
  border-color:rgba(200,164,93,0.45);
  box-shadow:0 0 0 4px rgba(200,164,93,0.16);
}

.ct-textarea{ resize:vertical; }

.ct-channel{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  border-top:1px solid rgba(28,42,58,0.10);
  padding-top:10px;
}

.ct-channel-title{
  font-weight:760;
}

.ct-radio{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(28,42,58,0.12);
  background:rgba(28,42,58,0.04);
  cursor:pointer;
  user-select:none;
}

.ct-submit-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:6px;
}

.ct-small{
  margin-top:8px;
  color:rgba(28,42,58,0.62);
  font-size:12.8px;
  line-height:1.55;
}

.ct-success-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

@media (max-width: 860px){
  .ct-success-grid{ grid-template-columns:1fr; }
}

.ct-success-card{
  border:1px solid rgba(28,42,58,0.10);
  border-radius:16px;
  background:rgba(255,255,255,0.86);
  padding:14px;
  box-shadow:var(--shadow2);
}

.ct-success-k{
  color:rgba(28,42,58,0.68);
  font-size:12.5px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.ct-success-v{
  font-weight:760;
  line-height:1.4;
}

.ct-success-s{
  margin-top:6px;
  color:var(--muted);
  font-size:13.6px;
  line-height:1.6;
}

.ct-success-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
