/* ===== AEVO — One custom jersey (/order/single) =====
   The same product-page layout as the AEVO Collection jerseys — gallery on
   the left, details and an inline checkout on the right — with one
   difference: the customer sends a design, and nothing is paid until we have
   reviewed it and emailed them their payment link. */

.single-page { background: var(--white); }

.breadcrumb {
  margin-top: 100px;
  padding: 15px 5%;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb a { color: var(--accent); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span { margin: 0 8px; }

/* --- Layout --- */
.product-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 5% 20px;
  gap: 60px;
}

/* --- Gallery --- */
.product-images-wrapper {
  display: flex;
  gap: 12px;
  position: sticky;
  top: 90px;
  height: fit-content;
}
.main-image-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--warm-gray);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
.main-image-viewport img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(10, 10, 10, 0.86);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
}
.thumb-rail { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.thumb {
  width: 78px;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--warm-gray);
  border: 1px solid var(--sand, #d9d0c3);
  border-radius: 10px;
  transition: var(--transition);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--accent); }
.thumb.is-active { border-color: var(--dark); }
.thumb:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }

/* --- Details --- */
.product-details { padding-top: 10px; min-width: 0; }
.product-category-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.15;
}
.product-subtitle { font-size: 14px; color: var(--accent); font-weight: 300; margin-bottom: 20px; }
.product-price { font-size: 26px; color: var(--dark); margin-bottom: 6px; font-weight: 500; letter-spacing: 1px; }
.product-price small { font-size: 13px; font-weight: 300; color: var(--accent); letter-spacing: 0.5px; }
.offer-note { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--dark); margin-bottom: 10px; }
.price-note { font-size: 12px; color: var(--accent); margin-bottom: 22px; line-height: 1.7; }

.review-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2f6b3a;
  margin-bottom: 4px;
}
.review-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.product-divider { width: 100%; height: 1px; background: var(--sand, #d9d0c3); margin: 25px 0; }

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.description-box { margin-bottom: 30px; }
.description-box p { font-size: 14px; color: var(--accent); line-height: 1.9; }

/* --- How it works --- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand, #d9d0c3);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.steps strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.steps span { font-size: 13px; color: var(--accent); line-height: 1.6; }

/* --- Sizes --- */
.size-box { margin-bottom: 28px; }
.size-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option { position: relative; cursor: pointer; }
.size-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-option span {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  border: 1px solid var(--sand, #d9d0c3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
  background: var(--white);
  transition: var(--transition);
}
.size-option input:checked + span { background: var(--dark); color: var(--white); border-color: var(--dark); }
.size-option input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.size-note { font-size: 12px; color: var(--accent); margin-top: 12px; }
.size-note a { color: var(--dark); }

/* --- Buy box --- */
.buy-section { background: var(--warm-gray); padding: 30px; border-radius: 14px; }
.buy-section > * + * { margin-top: 16px; }
.buy-section h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 8px 0 2px;
}
.buy-lede { font-size: 13px; color: var(--accent); text-align: center; line-height: 1.7; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-row label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.qty-row select {
  padding: 9px 14px;
  border: 1px solid var(--sand, #d9d0c3);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.co-group { display: grid; gap: 12px; }
.co-group[hidden] { display: none; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-row.co-row-wide { grid-template-columns: 2fr 1fr; }
.co-field { display: grid; gap: 5px; min-width: 0; }
.co-field label { font-size: 12px; color: var(--accent); }
.co-field label em { font-style: normal; color: #9b948b; }
.co-field input,
.co-field select,
.co-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--sand, #d9d0c3);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--dark);
}
.co-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus { outline: none; border-color: var(--dark); }

/* The design upload. The drop zone and file list reuse checkout.css; these
   only sit them on the warm-gray card. */
.buy-section .oc-drop { background: var(--white); margin: 0; }
.buy-section .oc-files { margin-top: 0; }
.buy-section .oc-files:empty { display: none; }
.design-tip { font-size: 12px; color: var(--accent); line-height: 1.6; }

.co-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--accent); line-height: 1.6; }
.co-terms input { margin-top: 3px; flex-shrink: 0; }
.co-terms a { color: var(--dark); }
.co-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.co-summary { background: var(--white); border-radius: 10px; padding: 16px 18px; display: grid; gap: 8px; }
.co-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--accent); }
.co-summary div strong { color: var(--dark); font-weight: 600; }
.co-summary .co-total { border-top: 1px solid var(--warm-gray); padding-top: 10px; margin-top: 2px; font-size: 14px; color: var(--dark); }
.co-summary .co-total strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.co-summary p { font-size: 11px; color: #837c73; line-height: 1.6; }

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--dark);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 18px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-buy:hover { background: #000; transform: translateY(-2px); }
.btn-buy:disabled { background: #8a857e; cursor: not-allowed; transform: none; }

.pay-later {
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  line-height: 1.7;
}
.pay-later strong { color: var(--dark); }

.checkout-error { font-size: 13px; color: var(--sale, #b3261e); text-align: center; }
.checkout-error[hidden] { display: none; }

.buy-meta {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.buy-meta span { display: flex; align-items: center; gap: 6px; }

.team-link { font-size: 12px; color: var(--accent); text-align: center; margin-top: 18px; }
.team-link a { color: var(--dark); }

/* --- Bottom strip --- */
.collection-strip { max-width: 1400px; margin: 40px auto 0; padding: 0 5% 90px; }
.collection-strip-inner {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 52px;
  border-top: 1px solid var(--warm-gray);
  text-align: center;
}
.collection-strip h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 16px; }
.collection-strip p { font-size: 14px; color: var(--accent); line-height: 1.9; margin-bottom: 20px; }
.collection-strip a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--dark);
  padding-bottom: 4px;
}

@media (max-width: 1024px) {
  .product-container { grid-template-columns: 1fr; gap: 30px; }
  .product-images-wrapper { position: static; flex-direction: column-reverse; }
  .thumb-rail { flex-direction: row; justify-content: center; }
  .thumb { width: 64px; }
  .product-title { font-size: 2.1rem; }
}

@media (max-width: 768px) {
  .product-title { font-size: 1.8rem; }
  .buy-section { padding: 22px; }
}

@media (max-width: 520px) {
  .co-row, .co-row.co-row-wide { grid-template-columns: 1fr; }
}
