* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #111;
}
a { color: inherit; }

/* Fade the shirt (not the header / logo) in when the page opens */
.product { animation: page-fade-in 0.65s ease both; }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

.topbar {
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { text-decoration: none; }
.cart-link { color: #111; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.15em; white-space: nowrap; }
.logo { display: block; height: 14px; width: auto; max-width: 100%; object-fit: contain; }

.product {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fafafa;
}
.image-frame {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.image-frame .main-image {
  display: block;
  transition: transform 0.2s ease;
}
.image-frame.zoomed { cursor: zoom-out; touch-action: none; }
.image-frame.zoomed .main-image { transform: scale(2.5); }

/* Arrows: opaque black bars down the sides with a white triangle */
.arrow {
  position: absolute;
  top: 35%;
  bottom: 35%;
  width: 5%;
  min-width: 18px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0;          /* hide the text arrow; the triangle is drawn below */
  cursor: pointer;
  z-index: 1;
}
.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 10px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.arrow.prev::after { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.arrow.next::after { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.arrow.prev { left: 2%; }
.arrow.next { right: 2%; }
.image-frame.zoomed .arrow,
.image-frame.single .arrow { display: none; }

.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs img {
  width: 80px; height: 80px;
  object-fit: contain;
  background: #fafafa;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbs img.active { border-color: #111; }

h1 { font-size: 1.5rem; letter-spacing: 0.05em; margin: 0 0 8px; }
.price { font-size: 1.25rem; margin: 0 0 20px; }
.description { color: #555; line-height: 1.5; margin: 0 0 24px; }

.label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.options button {
  min-width: 52px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.options button.active { border-color: #111; background: #111; color: #fff; }

.buy-placeholder {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.add-to-cart {
  width: 100%;
  padding: 16px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  cursor: pointer;
}
.add-to-cart:disabled { background: #fff; color: #111; cursor: default; }

/* Wider arrow bars on phones */
@media (max-width: 600px) {
  .arrow { width: 10%; min-width: 30px; top: 40%; bottom: 40%; }
}
