/* ════════════════════════════════════════════════════════════
   INDIE Music Shop — shop.html
   Melanjutkan bahasa desain styles.css (token --ims, Anton, paper).
   Hanya berisi yang khas toko; tombol/section/nav/footer pakai styles.css.
   ════════════════════════════════════════════════════════════ */

body.shop { padding-top: 0; }

/* Nav toko selalu solid (tidak ada hero gelap di belakangnya).
   Posisi tetap fixed dari .nav — semua halaman shop sudah diberi padding-top. */
.nav--shop { background: rgba(250, 250, 247, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--txt); }

.nav__cart {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--txt); transition: border-color .2s, color .2s;
}
.nav__cart:hover { border-color: var(--ims); color: var(--ims); }
.nav__cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--ims); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ════════ BANNER ════════ */
.shop-hero { padding: 128px 0 44px; background: var(--paper); }
.shop-hero__title {
  font-family: var(--f-display); font-size: clamp(38px, 6vw, 66px); font-weight: 400;
  line-height: 1.02; text-transform: uppercase; letter-spacing: .01em;
}
.shop-hero__intro { margin-top: 14px; max-width: 58ch; font-size: 16px; color: var(--txt-3); }

/* ════════ FILTER KATEGORI ════════ */
.shop-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; }
.shop-chip {
  border: 1px solid var(--line); background: #fff; color: var(--txt-2);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--f-body); transition: all .22s var(--ease);
}
.shop-chip:hover { border-color: var(--ims); color: var(--ims); }
.shop-chip.is-active { background: var(--ims); border-color: var(--ims); color: #fff; }

/* ════════ GRID PRODUK ════════ */
.shop-cat { margin-top: 56px; }
.shop-cat__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.shop-cat__name {
  font-family: var(--f-display); font-size: 26px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .03em;
}
.shop-cat__count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); font-weight: 700; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 22px; }

.prod {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.prod:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20, 18, 15, .1); border-color: var(--ims-soft); }
.prod__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--paper-2);
  cursor: pointer; border: none; padding: 0; width: 100%; display: block; overflow: hidden;
}
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.045); }
.prod__ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 30px; color: var(--ims-soft); text-transform: uppercase;
}
.prod__oos {
  position: absolute; top: 12px; left: 12px; background: var(--txt); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.prod__low {
  position: absolute; top: 12px; left: 12px; background: #C48A00; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.prod__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.prod__cat { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ims); }
.prod__name { margin-top: 7px; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--txt); }
.prod__desc {
  margin-top: 7px; font-size: 13px; color: var(--txt-3); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod__price { font-family: var(--f-display); font-size: 22px; color: var(--ims); line-height: 1; }
.prod__add {
  border: none; background: var(--ims); color: #fff; border-radius: 999px;
  width: 38px; height: 38px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s var(--ease);
}
.prod__add:hover:not(:disabled) { background: var(--ims-deep); transform: scale(1.08); }
.prod__add:disabled { background: var(--ink-300, #C9C6BC); cursor: not-allowed; }

/* ════════ MODAL DETAIL ════════ */
.mod__backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 18, 15, .55);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: msFade .25s var(--ease);
}
@keyframes msFade { from { opacity: 0; } to { opacity: 1; } }
.mod {
  background: #fff; border-radius: 22px; width: min(880px, 100%); max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; animation: msPop .3s var(--ease);
}
@keyframes msPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.mod__media { background: var(--paper-2); min-height: 300px; position: relative; }
.mod__media img { width: 100%; height: 100%; object-fit: cover; }
.mod__thumbs { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.mod__thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.mod__thumb.is-active { border-color: var(--ims); }
.mod__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod__body { padding: 32px 30px; display: flex; flex-direction: column; }
.mod__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, .92); cursor: pointer; color: var(--txt);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.mod__name { font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 1.08; text-transform: uppercase; margin-top: 8px; }
.mod__price { font-family: var(--f-display); font-size: 34px; color: var(--ims); margin-top: 16px; line-height: 1; }
.mod__desc { margin-top: 16px; font-size: 14.5px; color: var(--txt-2); line-height: 1.65; white-space: pre-line; flex: 1; }
.mod__meta { margin-top: 18px; display: flex; gap: 20px; font-size: 12.5px; color: var(--txt-3); }

/* ════════ QTY STEPPER ════════ */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 34px; height: 34px; border: none; background: none; cursor: pointer; font-size: 17px;
  color: var(--txt-2); font-family: var(--f-body); transition: background .18s;
}
.qty button:hover:not(:disabled) { background: var(--paper-2); color: var(--ims); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

/* ════════ CART DRAWER ════════ */
.cart__backdrop { position: fixed; inset: 0; z-index: 310; background: rgba(20, 18, 15, .5); animation: msFade .25s var(--ease); }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 320; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: -16px 0 50px rgba(20, 18, 15, .18); animation: msSlide .32s var(--ease);
}
@keyframes msSlide { from { transform: translateX(100%); } to { transform: none; } }
.cart__head {
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; background: #fff;
}
.cart__title { font-family: var(--f-display); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.cart__x { border: none; background: none; cursor: pointer; color: var(--txt-3); padding: 6px; display: inline-flex; }
.cart__x:hover { color: var(--ims); }
.cart__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart__empty { text-align: center; padding: 60px 20px; color: var(--txt-3); font-size: 14px; }
.cart__empty svg { color: var(--ims-soft); margin-bottom: 16px; }

.citem { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.citem__img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--paper-2); flex-shrink: 0; }
.citem__ph {
  width: 62px; height: 62px; border-radius: 12px; background: var(--paper-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--f-display); color: var(--ims-soft);
}
.citem__name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.citem__price { font-size: 13px; color: var(--ims); font-weight: 700; margin-top: 3px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.citem__del { border: none; background: none; cursor: pointer; color: var(--txt-3); padding: 4px; display: inline-flex; }
.citem__del:hover { color: var(--danger, #D03020); }
.citem__warn { font-size: 11.5px; color: #C48A00; font-weight: 700; margin-top: 6px; }

.cart__foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; background: #fff; }
.cart__line { display: flex; justify-content: space-between; font-size: 14px; color: var(--txt-2); margin-bottom: 9px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart__total b { font-family: var(--f-display); font-size: 27px; color: var(--ims); font-weight: 400; }
.cart__note { font-size: 12px; color: var(--txt-3); margin-top: 12px; text-align: center; }

/* ════════ FORM ════════ */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-grid--1 { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); }
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 14px; color: var(--txt);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ims); box-shadow: 0 0 0 3px rgba(208, 48, 32, .1);
}
.field textarea { resize: vertical; min-height: 78px; }
.field__err { font-size: 12px; color: var(--ims); font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--ims); }
.f-hint { font-size: 12px; color: var(--txt-3); }

.alert {
  border-radius: 14px; padding: 14px 16px; font-size: 13.5px; font-weight: 600;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert--err { background: var(--ims-tint); color: var(--ims-deep); }
.alert--ok { background: #E5F4EC; color: #1F6B42; }
.alert--info { background: var(--paper-2); color: var(--txt-2); }

/* ════════ HALAMAN STATUS ════════ */
.status-page { padding: 148px 0 100px; min-height: 72vh; }
.status-card {
  max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 44px 38px; text-align: center;
}
.status-mark {
  width: 74px; height: 74px; border-radius: 999px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.status-mark--ok { background: #2E8B57; }
.status-mark--err { background: var(--ims); }
.status-mark--wait { background: #C48A00; }
.status-title { font-family: var(--f-display); font-size: 32px; text-transform: uppercase; font-weight: 400; line-height: 1.1; }
.status-sub { margin-top: 12px; font-size: 15px; color: var(--txt-3); }
.status-num {
  display: inline-block; margin-top: 20px; font-family: var(--f-display); font-size: 21px;
  letter-spacing: .06em; background: var(--paper-2); border-radius: 12px; padding: 10px 20px;
}
.status-table { width: 100%; margin-top: 26px; border-top: 1px solid var(--line); text-align: left; }
.status-table tr td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.status-table tr td:last-child { text-align: right; font-weight: 700; }
.status-actions { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.badge-status {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ════════ SKELETON ════════ */
@keyframes msShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.sk {
  background: linear-gradient(90deg, var(--paper-2) 0%, #fff 50%, var(--paper-2) 100%);
  background-size: 200% 100%; animation: msShimmer 1.5s linear infinite; border-radius: 20px;
}
.sk--card { height: 320px; }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 940px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .checkout-grid > div:last-child { position: static !important; }
}
@media (max-width: 860px) {
  .mod { grid-template-columns: 1fr; }
  .mod__media { min-height: 230px; }
  .shop-hero { padding: 104px 0 34px; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .f-grid { grid-template-columns: 1fr; }
  .prod__body { padding: 14px 14px 16px; }
  .prod__name { font-size: 14px; }
  .prod__price { font-size: 19px; }
  .status-card { padding: 32px 22px; }
  .nav__cart { padding: 8px 12px; }
}
