/* ============================================================
   NAFIYA — Bag Order Form (prototipe)
   Melengkapi css/responsive.css — bahasa desain sama.
   ============================================================ */

/* ---- layout utama: grid produk + ringkasan sticky ---- */
.order-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px) var(--pad);
  align-items: start;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

/* ---- kartu produk ---- */
.ocard {
  background: #fff;
  border: var(--line-w) solid var(--blue);
  display: flex;
  flex-direction: column;
}
.ocard-photo {
  aspect-ratio: 4 / 3;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--line-w) solid var(--blue);
  overflow: hidden;
}
.ocard-photo { background: #fff; }
.ocard-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ocard-photo svg { width: 44%; height: 44%; color: #b9c6d8; }
.ocard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ocard h3 {
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--blue);
}
.ocard .dim { font-size: 12.5px; color: var(--text-blue); }

/* ---- pilihan warna ---- */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(9, 52, 91, .35);
  cursor: pointer; padding: 0;
  outline-offset: 2px;
}
.swatch[data-selected="1"] { outline: 2.5px solid var(--blue); }
.swatch:focus-visible { outline: 2.5px solid var(--blue-btn); }

/* ---- pilihan branding ---- */
.branding { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.branding label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text-blue); }
.branding input { accent-color: var(--blue); }

/* ---- qty stepper ---- */
.qty { display: flex; align-items: center; gap: 0; margin-top: auto; }
.qty button {
  width: 32px; height: 32px; border: var(--line-w) solid var(--blue);
  background: #fff; color: var(--blue); font-size: 17px; cursor: pointer;
  font-family: var(--display);
}
.qty button:hover { background: #e8eef7; }
.qty input {
  width: 52px; height: 32px; text-align: center; border: var(--line-w) solid var(--blue);
  border-left: none; border-right: none; font-family: var(--body); font-size: 14px;
  color: var(--text-blue); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---- panel ringkasan ---- */
.order-summary {
  position: sticky; top: 16px;
  background: var(--blue); color: #fff;
  padding: 22px 22px 24px;
}
.order-summary h2 { font-size: 20px; margin-bottom: 14px; }
.sum-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.sum-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 8px; }
.sum-list .meta { opacity: .8; font-size: 11.5px; display: block; }
.sum-empty { font-size: 13px; opacity: .8; }
.sum-total { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; margin-top: 14px; font-size: 14px; }

/* ---- form data pemesan ---- */
.order-summary .cust { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.order-summary .cust input, .order-summary .cust textarea {
  width: 100%; border: none; background: #fff; height: 38px; padding: 0 14px;
  font-family: var(--body); font-size: 13px; color: #333;
}
.order-summary .cust textarea { height: 70px; padding-top: 10px; resize: vertical; }
.order-summary .cust ::placeholder { color: #9aa7b8; }

.btn-wa {
  margin-top: 16px; width: 100%; border: none; cursor: pointer;
  background: #25d366; color: #fff; font-family: var(--display); font-weight: 600;
  font-size: 15px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-wa:hover { filter: brightness(1.06); }
.btn-wa svg { width: 19px; height: 19px; }
.sum-note { font-size: 11px; opacity: .75; margin-top: 10px; line-height: 1.5; }

/* ---- blok ordering information ---- */
.order-info {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 6vw, 72px);
}
.order-info .panel {
  border: var(--line-w) solid var(--blue);
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3.5vw, 44px);
  color: var(--text-blue); font-size: 14px; line-height: 1.9;
}
.order-info h2 { color: var(--blue); font-size: clamp(20px, 2vw, 25px); margin-bottom: 12px; }
.order-info ul { margin: 8px 0 0 18px; }
.order-info a { color: var(--blue-2); font-weight: 600; }
.order-info a:hover { text-decoration: underline; }

/* ---- bar bawah mobile ---- */
.order-fab {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--blue); color: #fff;
  padding: 12px 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  justify-content: space-between; align-items: center;
  border-top: var(--line-w) solid #fff;
}
.order-fab a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .order-wrap { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 700px) {
  .order-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .order-fab { display: flex; }
  body { padding-bottom: 56px; }
}

.swatch[data-color="White"] { box-shadow: inset 0 0 0 1px #c2ccd8; }
