/* ============================================================
   Unmasked Athletes — store styles (store.html, checkout.html,
   store-success.html). Relies on css/styles.css for theme vars,
   fonts, .wrap, .brand, and .btn.
   ============================================================ */

/* ---- store header ---- */
.store-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 12, .82);
  border-bottom: 1px solid var(--line);
}
.store-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.store-head-right { display: flex; align-items: center; gap: 22px; }
.store-back { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.store-back:hover { color: var(--gold); }
.cart-btn {
  position: relative; background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--gold); background: rgba(245, 166, 35, .1); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--gold); color: #0a0a0c; border-radius: 999px; font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 11px; display: none; align-items: center; justify-content: center;
}

/* ---- store hero ---- */
.store-hero { padding: 60px 0 10px; text-align: center; }
.store-hero .eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: 13px; color: var(--gold); margin-bottom: 14px;
}
.store-hero h1 {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 66px); line-height: 1; letter-spacing: .01em;
}
.store-hero h1 em { font-style: normal; color: var(--gold); }
.store-hero p { color: var(--text-dim); max-width: 600px; margin: 18px auto 0; font-size: 16px; line-height: 1.6; }
.store-hero p strong { color: var(--text); font-weight: 600; }

/* ---- products ---- */
.store-products { padding: 46px 0 96px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(245, 166, 35, .3); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.pc-img { aspect-ratio: 1; overflow: hidden; background: #0c0c11; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-body h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.pc-price { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 22px; color: var(--gold); margin-top: -6px; }
.pc-onesize { font-size: 13px; color: var(--text-mute); }
.pc-size {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f5a623'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.pc-size:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, .12); }
.pc-size.needsize { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232, 84, 30, .18); }
.pc-size option { color: #14141a; background: #fff; }
.pc-add { margin-top: auto; justify-content: center; }
.store-fineprint { text-align: center; color: var(--text-mute); font-size: 13px; margin-top: 40px; }
.store-fineprint a { color: var(--gold); text-decoration: none; }

/* ---- cart drawer ---- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s; z-index: 60;
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 70;
  background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-top h3 { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 20px; letter-spacing: .03em; }
.cart-close { background: none; border: none; color: var(--text-dim); font-size: 30px; line-height: 1; cursor: pointer; transition: color .2s; }
.cart-close:hover { color: var(--gold); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { color: var(--text-mute); text-align: center; padding: 50px 0; font-size: 15px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #0c0c11; }
.ci-name { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 15px; }
.ci-sub { font-size: 12.5px; color: var(--text-mute); margin: 2px 0 8px; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-3);
  color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.ci-qty button:hover { border-color: var(--gold); color: var(--gold); }
.ci-qty span { min-width: 18px; text-align: center; font-size: 14px; }
.ci-remove { margin-left: 6px; width: auto !important; padding: 0 8px; font-size: 11px !important; color: var(--text-mute) !important; text-transform: uppercase; letter-spacing: .04em; }
.ci-line { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; }
.cart-total-row span:last-child { color: var(--gold); }
.cart-note { font-size: 12px; color: var(--text-mute); margin: 6px 0 16px; }
.cart-foot .btn { width: 100%; justify-content: center; }
.cart-foot .btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- checkout ---- */
.checkout-main { padding: 50px 0 90px; min-height: 60vh; }
.checkout-main h1 { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); }
.checkout-main h1 em { font-style: normal; color: var(--gold); }
.checkout-sub { color: var(--text-dim); margin: 10px 0 26px; font-size: 14.5px; }
.co-status { color: var(--text-dim); font-size: 15px; padding: 18px 0; }
.co-status.err { color: #ff6b6b; background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .25); border-radius: 10px; padding: 18px 20px; }
.co-status .co-sub { color: var(--text-mute); font-size: 13.5px; }
.co-status a { color: var(--gold); }
#checkout { max-width: 760px; }

/* ---- success ---- */
.success-main { padding: 70px 0 100px; min-height: 60vh; display: flex; align-items: center; }
.success-card { max-width: 560px; margin: 0 auto; text-align: center; }
.success-check {
  width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; font-size: 40px; color: #0a0a0c;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.success-card h1 { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); }
.success-card > p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin: 14px 0 28px; }
.order-summary { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 30px; }
.os-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 7px 0; color: var(--text-dim); }
.os-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; color: var(--text); }
.os-total span:last-child { color: var(--gold); }
.os-ship { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.os-ship strong { color: var(--text); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .store-head-right { gap: 14px; }
  .store-back { display: none; }
  .pc-body { padding: 15px; gap: 10px; }
  .pc-body h3 { font-size: 17px; }
}
