/* ============================================================
   MODULE 7 — Product Upload (Admin / Seller dashboard)
   Scoped under .sh-up*.
   ============================================================ */
.sh-up{max-width:880px;margin:0 auto}
.sh-up__mode{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;margin-bottom:18px;font-weight:700;font-size:14px}
.sh-up__mode--admin{background:rgba(225,6,0,.08);border:1px solid rgba(225,6,0,.3);color:#b00500}
.sh-up__mode--seller{background:var(--sh-bg-soft);border:1px solid var(--sh-line);color:var(--sh-navy)}
.sh-up__mode .sh-mall{margin:0}

.sh-up__sec{background:#fff;border:1px solid var(--sh-line);border-radius:14px;padding:18px 18px 6px;margin-bottom:18px}
.sh-up__sec h3{margin:0 0 4px;font-size:16px;color:var(--sh-navy)}
.sh-up__sec p.hint{margin:0 0 14px;font-size:12.5px;color:var(--sh-muted)}

.sh-up__row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.sh-up__row--3{grid-template-columns:repeat(3,1fr)}
.sh-fld{margin-bottom:14px}
.sh-fld label{display:block;font-size:13px;font-weight:700;margin-bottom:5px}
.sh-fld label .req{color:var(--sh-red)}
.sh-fld input,.sh-fld select,.sh-fld textarea{width:100%;border:1px solid var(--sh-line);border-radius:10px;
  padding:10px 12px;font-size:14px;font-family:inherit;background:#fff;outline:0}
.sh-fld input:focus,.sh-fld select:focus,.sh-fld textarea:focus{border-color:var(--sh-navy);box-shadow:0 0 0 3px rgba(15,27,61,.08)}
.sh-fld textarea{resize:vertical;min-height:96px}
.sh-fld .count{float:right;font-size:11.5px;color:var(--sh-muted);font-weight:600}

/* image grid (9 × 1:1) */
.sh-up__imgs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
@media(max-width:640px){.sh-up__imgs{grid-template-columns:repeat(3,1fr)}.sh-up__row,.sh-up__row--3{grid-template-columns:1fr}}
.sh-up__img{position:relative;aspect-ratio:1/1;border:1.5px dashed var(--sh-line);border-radius:10px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:var(--sh-muted);
  font-size:11px;text-align:center;background:var(--sh-bg-soft);overflow:hidden}
.sh-up__img:hover{border-color:var(--sh-navy);color:var(--sh-navy)}
.sh-up__img.filled{border-style:solid;border-color:var(--sh-navy)}
.sh-up__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sh-up__img .plus{font-size:22px;line-height:1}
.sh-up__img input{display:none}
.sh-up__img .first{position:absolute;top:4px;left:4px;background:var(--sh-navy);color:#fff;font-size:9px;font-weight:700;padding:1px 5px;border-radius:4px}

/* video */
.sh-up__video{display:flex;align-items:center;gap:12px;border:1.5px dashed var(--sh-line);border-radius:10px;padding:14px;background:var(--sh-bg-soft);cursor:pointer}
.sh-up__video:hover{border-color:var(--sh-navy)}
.sh-up__video input{display:none}
.sh-up__video .ic{font-size:26px}
.sh-up__vmsg{font-size:12.5px;margin-top:6px}
.sh-up__vmsg.err{color:var(--sh-red)}
.sh-up__vmsg.ok{color:var(--sh-green)}

/* tick options (Local / Worldwide) */
.sh-ticks{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sh-tick{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--sh-line);border-radius:12px;padding:12px 14px;cursor:pointer}
.sh-tick input{margin-top:3px;accent-color:var(--sh-navy);width:16px;height:16px;flex:0 0 auto}
.sh-tick.sel{border-color:var(--sh-navy);background:rgba(15,27,61,.04)}
.sh-tick b{display:block;font-size:14px}
.sh-tick small{color:var(--sh-muted);font-size:12px}

/* variation list table */
.sh-var__opts{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.sh-var__chip{background:var(--sh-bg-soft);border:1px solid var(--sh-line);border-radius:20px;padding:4px 10px;font-size:12.5px;display:flex;align-items:center;gap:6px}
.sh-var__chip button{border:0;background:transparent;cursor:pointer;color:var(--sh-muted);font-size:13px}
.sh-var__table{width:100%;border-collapse:collapse;margin-top:10px;font-size:13px}
.sh-var__table th,.sh-var__table td{border:1px solid var(--sh-line);padding:8px;text-align:left}
.sh-var__table th{background:var(--sh-bg-soft);font-size:12px}
.sh-var__table input{width:100%;border:0;outline:0;font-size:13px;font-family:inherit}

.sh-up__err{color:var(--sh-red);font-size:13px;margin:6px 0;display:none}
.sh-up__err.show{display:block}
.sh-up__actions{display:flex;justify-content:flex-end;gap:10px;margin:6px 0 30px}

/* success */
.sh-up__done{display:none;text-align:center;background:#fff;border:1px solid var(--sh-line);border-radius:16px;padding:34px;max-width:560px;margin:0 auto}
.sh-up__done.show{display:block}
.sh-up__done .ic{width:66px;height:66px;border-radius:50%;background:rgba(31,170,89,.12);color:var(--sh-green);
  display:flex;align-items:center;justify-content:center;font-size:34px;margin:0 auto 14px}
