/* MANIA — supreme-style single product shop, 2016 web feel */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: none;
}

a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ticker */
.ticker {
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 0;
}
.ticker span {
  display: inline-block;
  animation: scroll 30s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* header */
header {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.boxlogo {
  background: #ED1C24;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: bold;
  font-size: 20px;
  padding: 4px 12px 6px;
  letter-spacing: 0.5px;
}
.boxlogo:hover { text-decoration: none; }

nav a {
  margin-left: 18px;
  font-size: 12px;
}
nav a.active { text-decoration: underline; }
#cartCount { color: #ED1C24; }

.rule {
  border: none;
  border-top: 1px solid #000;
  max-width: 960px;
  margin: 0 auto;
}

/* product */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.product {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-img {
  flex: 1 1 420px;
  border: 1px solid #ddd;
  background: #fff;
}
.product-img img {
  display: block;
  width: 100%;
  height: auto;
}
.img-missing {
  padding: 120px 40px;
  text-align: center;
  color: #999;
  font-size: 11px;
}

.product-info {
  flex: 1 1 300px;
  max-width: 380px;
}

.product-info h1 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.color {
  color: #ED1C24;
  margin-bottom: 16px;
}

.desc {
  line-height: 1.7;
  margin-bottom: 16px;
}

.price {
  font-size: 14px;
  margin-bottom: 16px;
}

.buy-row {
  display: flex;
  gap: 8px;
}

#qty {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  padding: 6px 8px;
}

#addBtn, #checkoutBtn {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  background: #ED1C24;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 8px 24px;
  cursor: pointer;
  text-transform: lowercase;
}
#addBtn:hover, #checkoutBtn:hover { background: #c4131a; }
#addBtn:active { background: #000; }

.stock-note {
  margin-top: 16px;
  color: #999;
  font-size: 11px;
}

/* cart panel */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10;
}
.cart-overlay.open { display: block; }

.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: 320px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  border-left: 1px solid #000;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #000;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.cart-head span { font-weight: bold; }
#closeCart {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.cart-body { flex: 1; }
.cart-empty { color: #999; }

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cart-item button {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  background: none;
  border: none;
  color: #ED1C24;
  cursor: pointer;
  text-decoration: underline;
}

.cart-foot { border-top: 1px solid #000; padding-top: 12px; }
#cartTotal { margin-bottom: 10px; font-weight: bold; }
#checkoutBtn { width: 100%; }
.cart-note { margin-top: 10px; color: #999; font-size: 10px; }

/* about */
.about {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: #555;
}

/* footer */
footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  font-size: 10px;
  color: #999;
  display: flex;
  justify-content: space-between;
}
footer a { color: #999; }

@media (max-width: 700px) {
  .product { gap: 24px; }
  footer { flex-direction: column; gap: 6px; }
}
