/* Starhopp cart shop — shared by /shop and /checkout.
   Same world as the signup/jersey pages: #232023 body, Verdana, brand red
   #db3832, men/women pill colors from signup.css — but vanilla (no Bootstrap). */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #232023;
  color: white;
  font-family: "Verdana", sans-serif;
  padding: 18px 14px 40px;
}
a { color: #db3832; }

.wrap { max-width: 1060px; margin: 0 auto; }
.logo { display: block; margin: 0 auto 4px; max-width: 280px; width: 70%; }
h1 {
  text-align: center; color: #db3832; text-transform: uppercase;
  letter-spacing: 4px; font-size: 20px; margin: 6px 0 24px;
}
.muted { color: #9b8f8f; }
#status { text-align: center; min-height: 20px; font-size: 13px; margin-bottom: 14px; }
#status.error { color: #ffb347; }

/* cart button, always visible top-right */
.cartbtn {
  position: fixed; top: 14px; right: 14px; z-index: 40;
  background: #db3832; color: white; text-decoration: none;
  border-radius: 24px; padding: 10px 16px; font-size: 15px; font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.cartbtn .n { background: white; color: #db3832; border-radius: 50%;
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
  text-align: center; font-size: 13px; margin-left: 6px; }

/* ---- the design grid (planegrid's idiom, shop edition) ---- */
/* auto-fit + a capped track width keeps a short row of tiles centered
   instead of leaving empty columns on the right */
.shopgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  gap: 18px; justify-content: center;
}
.design {
  background: #2c282c; border: 1px solid #443c43; border-radius: 8px;
  padding: 14px; text-align: center; cursor: pointer; position: relative;
  transition: box-shadow .15s, border-color .15s;
}
.design:hover { border-color: #db3832; box-shadow: 0 0 14px rgba(219,56,50,.35); }
.design img { display: block; width: 100%; border-radius: 4px; margin-bottom: 10px; background: #232023; }
.design .dn { font-size: 14px; font-weight: bold; }
.design .dp { font-size: 15px; color: #db3832; font-weight: bold; margin-top: 6px; }
.design .df { font-size: 11px; color: #c9c0c0; margin-top: 4px; }

/* ---- customization overlay (manifest's moverlay idiom) ---- */
.soverlay {
  display: none; position: fixed; inset: 0; background: rgba(5,2,2,.72);
  z-index: 50; backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 16px;
}
.soverlay.open { display: flex; }
.sdialog {
  background: #2c282c; border: 1px solid #db3832; border-radius: 8px;
  box-shadow: 0 0 24px rgba(219,56,50,.45);
  width: min(460px, 96vw); max-height: 92vh; overflow: auto;
  padding: 20px 22px; position: relative; text-align: center;
}
.sdialog .close {
  position: absolute; top: 6px; right: 10px; background: none; border: none;
  color: #9b8f8f; font-size: 22px; cursor: pointer; padding: 4px;
}
.sdialog .close:hover { color: #db3832; }
.sdialog img { width: 88%; max-width: 340px; border-radius: 4px; margin-bottom: 4px; }
.sdialog h2 { font-size: 16px; margin: 4px 0 2px; }

/* dialog image carousel */
.carousel { position: relative; display: inline-block; max-width: 100%; }
.cnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(35,32,35,.75); border: 1px solid #443c43;
  color: white; font-size: 20px; line-height: 1; padding: 0;
}
.cnav:hover { color: #db3832; border-color: #db3832; }
.cnav.prev { left: 4px; }
.cnav.next { right: 4px; }
.cdots { min-height: 14px; margin-bottom: 4px; }
.cdots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: #5a4a48; margin: 0 4px; cursor: pointer;
}
.cdots button.active { background: #db3832; }

#dCustomName { width: 80%; max-width: 260px; text-align: center; }
.sdialog .price { color: #db3832; font-weight: bold; font-size: 17px; margin-bottom: 12px; }

.optlabel { font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: #e3dcdc; margin: 14px 0 8px; }

.sdialog .nameillu { width: 80%; max-width: 300px; margin: 0 0 8px; }

/* pills — signup.css's tshirtPill family, vanilla edition */
.pill {
  font-family: inherit; font-size: 14px; font-weight: bold; color: white;
  background: #db3832; border: 3px solid black; border-radius: 20px;
  padding: 7px 16px; margin: 3px; cursor: pointer;
}
.pill.men { background: #45b1ff; }
.pill.women { background: #f7399b; }
.pill.active { background: black; color: #db3832; border-color: white;
  box-shadow: 0 0 10px 2px #db3832, inset 0 0 10px 2px #db3832; }
.pill.men.active { color: #45b1ff;
  box-shadow: 0 0 10px 2px #45b1ff, inset 0 0 10px 2px #45b1ff; }
.pill.women.active { color: #f7399b;
  box-shadow: 0 0 10px 2px #f7399b, inset 0 0 10px 2px #f7399b; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; gap: 0; }
.qty button {
  width: 36px; height: 36px; font-size: 18px; font-weight: bold; cursor: pointer;
  background: #232023; color: white; border: 1px solid #443c43;
}
.qty button:first-child { border-radius: 6px 0 0 6px; }
.qty button:last-child { border-radius: 0 6px 6px 0; }
.qty button:hover { border-color: #db3832; color: #db3832; }
.qty input {
  width: 44px; height: 36px; text-align: center; font-family: inherit; font-size: 15px;
  background: #232023; color: white; border: 1px solid #443c43; border-left: 0; border-right: 0;
}

.action {
  background: #db3832; border: 1px solid #db3832; font-weight: bold;
  font-family: "Verdana", sans-serif; text-transform: uppercase; border-radius: 10px;
  color: white; margin: 8px; padding: 14px 22px; font-size: 14px; cursor: pointer;
}
.action:hover { background: #c70d0d; }
.action:disabled { background: #5a4a48; border-color: #5a4a48; cursor: default; }
.action.ghost { background: none; color: #db3832; }
.action.ghost:hover { background: rgba(219,56,50,.15); }
.dialog-msg { min-height: 18px; font-size: 12px; color: #ffb347; margin-top: 8px; }

/* ---- checkout page ---- */
.panel { background: #2c282c; border: 1px solid #443c43; border-radius: 8px;
  padding: 18px 20px; margin: 0 auto 20px; max-width: 640px; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: #db3832; margin: 0 0 14px; }

.cartline { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #443c43; }
.cartline:last-of-type { border-bottom: none; }
.cartline img { width: 54px; border-radius: 4px; background: #232023; }
.cartline .what { flex: 1; min-width: 0; }
.cartline .what .n { font-size: 13px; font-weight: bold; }
.cartline .what .v { font-size: 11px; color: #9b8f8f; margin-top: 2px; }
.cartline .amount { font-size: 14px; font-weight: bold; white-space: nowrap; }
.cartline .rm { background: none; border: none; color: #9b8f8f; font-size: 18px;
  cursor: pointer; padding: 4px; }
.cartline .rm:hover { color: #db3832; }
.cartline .qty button { width: 28px; height: 28px; font-size: 14px; }
.cartline .qty input { width: 34px; height: 28px; font-size: 13px; }

.totals { text-align: right; font-size: 14px; margin-top: 12px; }
.totals .grand { font-size: 18px; font-weight: bold; color: #db3832; margin-top: 6px; }

label { display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: #e3dcdc; margin: 12px 0 4px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 10px 12px;
  background: #232023; color: white; border: 1px solid #443c43; border-radius: 6px;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #db3832; }
.two { display: flex; gap: 12px; }
.two > div { flex: 1; }

.banner { max-width: 640px; margin: 0 auto 20px; padding: 16px 20px;
  border-radius: 8px; text-align: center; font-size: 14px; }
.banner.ok { background: #1d3324; border: 1px solid #2f7a44; }
.banner.bad { background: #3a1d1d; border: 1px solid #db3832; }

footer { text-align: center; font-size: 10px; color: #5a4a48; padding: 30px 0 10px; }

@media (max-width: 560px) {
  .two { flex-direction: column; gap: 0; }
  .sdialog img { width: 78%; }
}
