/* ===== calisma-yukle.php ===== */

/* ── Page Head ── */
.cy-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 0 24px;
}
.cy-title { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 0 0 4px }
.cy-sub   { font-size: 13.5px; color: var(--muted); font-weight: 500; margin: 0 }

.cy-cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 11px 22px;
  font-size: 14px; font-weight: 800; transition: background .15s;
}
.cy-cart-link:hover { background: var(--ink-2) }
.cy-cart-link svg { width: 17px; height: 17px }
.cy-cart-count {
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 900;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ── Drop Zone ── */
.cy-dropzone {
  border: 2px dashed var(--line); border-radius: 20px;
  background: var(--surface); padding: 52px 40px; text-align: center;
  transition: border-color .2s, background .2s; cursor: pointer;
}
.cy-dropzone.is-dragover { border-color: var(--blue); background: var(--blue-50) }
.cy-dz-icon { width: 72px; height: 72px; margin: 0 auto 20px }
.cy-dz-icon svg { width: 100%; height: 100% }
.cy-dz-title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em }
.cy-dz-formats { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 24px }
.cy-dz-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px }
.cy-select-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; border: none;
  border-radius: 12px; padding: 12px 24px;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s;
}
.cy-select-btn:hover { background: #0a6fb5 }
.cy-select-btn svg { width: 16px; height: 16px }
.cy-old-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s;
}
.cy-old-btn:hover { border-color: var(--ink); color: var(--ink) }
.cy-old-btn svg { width: 15px; height: 15px }
.cy-dz-hint { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0 }

/* ── Cards ── */
.cy-cards { margin-top: 20px; display: grid; gap: 12px }

.cy-card {
  border: 1.5px solid var(--line); border-radius: 16px;
  background: #fff; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s, border-color .2s;
}
.cy-card.is-visible  { opacity: 1; transform: none }
.cy-card.is-added    { border-color: var(--green) }
.cy-card.is-removing { opacity: 0; transform: translateY(-6px) }

/* ── Card Header ── */
.cy-card-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
}
.cy-file-ico {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 900; letter-spacing: .02em;
}
.cy-file-meta { flex: 0 0 200px; min-width: 0 }
.cy-file-name {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.cy-file-size { font-size: 12px; color: var(--muted); font-weight: 500 }

.cy-header-sels { flex: 1; display: flex; gap: 10px; min-width: 0 }

.cy-remove-btn {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: border-color .15s, background .15s, color .15s;
}
.cy-remove-btn:hover { border-color: #dc2626; background: #fee2e2; color: #dc2626 }
.cy-remove-btn svg { width: 13px; height: 13px }

/* ── Shared select ── */
.cy-sel {
  appearance: none; flex: 1;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 32px 9px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .15s;
}
.cy-sel:focus { outline: none; border-color: var(--blue) }
.cy-sel-error { border-color: #dc2626 !important; animation: cy-shake .3s ease }
@keyframes cy-shake {
  0%,100% { transform: translateX(0) }
  25%      { transform: translateX(-4px) }
  75%      { transform: translateX(4px) }
}

/* ── Dynamic Options ── */
.cy-card-opts {
  border-top: 1px solid var(--line-2);
  padding: 16px 18px 12px;
  background: var(--surface);
}
.cy-opts-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.cy-opt-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px }
.cy-opt-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.cy-opt-group .cy-sel { flex: none; width: 100% }

.cy-opts-bottom {
  display: flex; gap: 10px; align-items: flex-start;
}
.cy-notes-input {
  flex: 1; resize: vertical; min-height: 40px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--ink); font-family: inherit;
  background: #fff; transition: border-color .15s;
}
.cy-notes-input:focus { outline: none; border-color: var(--blue) }
.cy-notes-input::placeholder { color: var(--muted) }
.cy-adet-sel { flex: 0 0 150px }

/* ── Card Footer ── */
.cy-card-footer {
  display: none; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.cy-footer-fname {
  font-size: 12px; color: var(--muted); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.cy-footer-delivery {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--muted-2);
  white-space: nowrap; flex-shrink: 0;
}
.cy-footer-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; font-weight: 700; color: var(--ink);
  white-space: nowrap; flex-shrink: 0;
}
.cy-add-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: #fff; border: none;
  border-radius: 11px; padding: 10px 20px;
  font-size: 13.5px; font-weight: 800; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.cy-add-btn:hover { background: #15803d }
.cy-add-btn svg { width: 15px; height: 15px }
.cy-card.is-added .cy-add-btn { pointer-events: none; background: #15803d }

/* ── Added Banner ── */
.cy-card-added {
  display: none; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; background: #dcfce7;
  font-size: 13px; font-weight: 800; color: var(--green);
}
.cy-card.is-added .cy-card-added { display: flex }
.cy-card-added svg { width: 15px; height: 15px }

/* ── Bottom Bar ── */
.cy-bottombar {
  margin-top: 20px; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
}
.cy-total-label { font-size: 14px; font-weight: 700; color: var(--muted) }
.cy-total-label span { color: var(--ink); font-weight: 800 }
.cy-bottombar-actions { display: flex; gap: 10px }
.cy-add-all-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border: none;
  border-radius: 11px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .15s;
}
.cy-add-all-btn:hover { background: var(--ink-2) }
.cy-add-all-btn svg { width: 15px; height: 15px }
.cy-goto-cart {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  border-radius: 11px; padding: 11px 20px;
  font-size: 13.5px; font-weight: 800; transition: background .15s;
}
.cy-goto-cart:hover { background: #15803d }
.cy-goto-cart svg { width: 15px; height: 15px }

/* ── Design Notes ── */
.cy-notes {
  margin: 32px 0 60px;
  border: 1.5px solid #fde68a; border-radius: 16px; overflow: hidden; background: #fffbeb;
}
.cy-notes-toggle {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 16px 22px; background: none; border: none;
  font-size: 14px; font-weight: 800; color: #92400e; cursor: pointer; text-align: left;
}
.cy-notes-toggle svg:first-child { width: 16px; height: 16px; color: #d97706; flex-shrink: 0 }
.cy-notes-chev { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; transition: transform .2s; color: #d97706 }
.cy-notes-toggle.is-open .cy-notes-chev { transform: rotate(180deg) }
.cy-notes-body { max-height: 0; overflow: hidden; transition: max-height .3s ease }
.cy-notes-body.is-open { max-height: 600px }
.cy-notes-list { list-style: none; margin: 0; padding: 4px 22px 20px; display: grid; gap: 12px }
.cy-notes-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #78350f; font-weight: 500; line-height: 1.55 }
.cy-notes-list li strong { color: #92400e; font-weight: 800 }
.cy-note-badge {
  flex-shrink: 0; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 900; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 6px; margin-top: 1px;
}
.cy-pdf  { background: #fee2e2; color: #dc2626 }
.cy-cmyk { background: #dbeafe; color: #1d4ed8 }
.cy-dpi  { background: #dcfce7; color: #15803d }
.cy-size { background: #ede9fe; color: #7c3aed }
.cy-multi { background: #fce7f3; color: #9d174d }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cy-card-header { flex-wrap: wrap }
  .cy-file-meta   { flex: 1; min-width: 0 }
  .cy-header-sels { flex: 0 0 100%; order: 3 }
  .cy-remove-btn  { order: 2 }
  .cy-card-footer { flex-wrap: wrap }
  .cy-footer-fname { display: none }
}
@media (max-width: 640px) {
  .cy-head { flex-direction: column; align-items: flex-start; gap: 14px }
  .cy-dropzone { padding: 36px 20px }
  .cy-dz-actions { flex-direction: column }
  .cy-select-btn, .cy-old-btn { width: 100%; justify-content: center }
  .cy-opts-bottom { flex-direction: column }
  .cy-adet-sel { flex: none; width: 100% }
  .cy-bottombar { flex-direction: column; gap: 12px }
  .cy-bottombar-actions { flex-direction: column; width: 100% }
  .cy-add-all-btn, .cy-goto-cart { justify-content: center; width: 100% }
}
