/* GoldenGate demo — mobile-first, styled after the DFG Shopify theme. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
main { max-width: 640px; margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
}
.hdr__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hdr__logo { height: 34px; width: auto; }
.hdr__logo--dfg { height: 44px; }
.hdr__x { font-size: 18px; color: #999; }

/* ---------- footer ---------- */
.ftr {
  margin-top: 48px;
  padding: 28px 16px 40px;
  background: #111;
  color: #fff;
  text-align: center;
}
.ftr p { margin: 4px 0; }
.ftr__brands { font-size: 15px; }
.ftr__note { font-size: 13px; color: #bbb; }
.ftr__copy { font-size: 12px; color: #888; margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 6px;
  background: #111;
  color: #fff;
}
.btn--accent { background: var(--accent, #da1f33); }
.btn--cart { width: 100%; background: #111; letter-spacing: 0.03em; }

/* ---------- popup ---------- */
.popup[hidden] { display: none; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup__card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px 20px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.popup__logos { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.popup__logos img { height: 30px; width: auto; }
.popup__logos span { color: #999; font-size: 16px; }
.popup__card h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.popup__card p { margin: 0 0 18px; font-size: 15px; color: #333; }
.popup__note { font-size: 12px !important; color: #999 !important; margin-top: 14px !important; }

/* ---------- collection page ---------- */
.page-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 22px 16px 16px;
}

.page-tagline {
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  color: #333;
  margin: 16px 16px 20px;
}
.ctl-label {
  flex: 0 0 100%;
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}
.finder { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.finder .ctl-label { margin-top: 6px; }
.finder__search,
.finder__select {
  width: 100%;
  font-size: 16px;
  padding: 13px 14px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.finder__search:focus, .finder__select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.finder__search-wrap { position: relative; }
.finder__suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 2px solid #111;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 260px;
  overflow-y: auto;
}
.finder__suggest[hidden] { display: none; }
.finder__suggest a {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.finder__suggest a:last-child { border-bottom: none; }
.finder__suggest a:active { background: #f2f2f2; }
.finder__suggest mark { background: none; color: var(--accent, #da1f33); }
.finder__select-wrap { position: relative; }
.finder__select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin: 20px auto 8px;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}
.chips .ctl-label { margin-bottom: 4px; }
.chips__chip {
  background: #fff;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111;
  cursor: pointer;
}
.chips__chip.is-active { background: #111; color: #fff; }
.chips__count { flex: 0 0 100%; text-align: center; font-size: 13px; color: #666; }

.school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px 12px;
}
.school-card {
  text-decoration: none;
  text-align: center;
  padding: 10px 6px 14px;
}
.school-card img { width: 78%; margin: 0 auto 8px; aspect-ratio: 1; object-fit: contain; }
.school-card span { font-weight: 600; font-size: 15px; }
.school-card[hidden] { display: none; }
.grid-empty { text-align: center; color: #666; padding: 30px 16px; }

.coming-soon { text-align: center; color: #666; font-size: 14px; padding: 10px 24px 0; }

/* ---------- product page ---------- */
.hero img { width: 100%; height: auto; }
.back-link {
  display: inline-block;
  margin: 14px 16px 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #555;
}
.product-title {
  margin: 6px 16px 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.gallery { padding: 0 16px; }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery__thumb {
  flex: 0 0 64px;
  height: 64px;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.gallery__thumb.is-active { border: 2px solid #111; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.buybox { padding: 14px 16px 0; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price__now { font-size: 26px; font-weight: 800; }
.price__was { font-size: 17px; color: #888; text-decoration: line-through; }
.price__badge {
  background: var(--accent, #da1f33);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}
.buybox__ship { margin: 6px 0 0; font-size: 13px; color: #666; }

.variants { border: none; margin: 18px 0 0; padding: 0; }
.variants legend { font-size: 14px; font-weight: 600; color: #444; margin-bottom: 8px; padding: 0; }
.variants__opt { display: block; margin-bottom: 8px; cursor: pointer; }
.variants__opt input { position: absolute; opacity: 0; }
.variants__opt span {
  display: block;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
}
.variants__opt input:checked + span {
  border: 2px solid #111;
  padding: 11px 13px;
  font-weight: 700;
}

.qty { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.qty__label { font-size: 14px; font-weight: 600; color: #444; }
.qty__stepper { display: flex; border: 1px solid #bbb; border-radius: 8px; overflow: hidden; }
.qty__stepper button { width: 44px; height: 44px; background: #fff; border: none; font-size: 20px; cursor: pointer; }
.qty__stepper input {
  width: 48px;
  border: none;
  text-align: center;
  font-size: 16px;
  -moz-appearance: textfield;
}
.qty__stepper input::-webkit-outer-spin-button,
.qty__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.desc { padding: 22px 16px 0; font-size: 15px; color: #222; }
.desc h4 { margin: 14px 0 4px; font-size: 15px; }
.desc p { margin: 6px 0; }

.lines { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 26px 12px 0; }
.line-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.line-card__text { text-align: center; padding: 14px 12px 20px; }
.line-card__text h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.line-card__text p { margin: 0; font-size: 15px; color: #333; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 0; }
.videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #eee; }

.bottom-cta { text-align: center; padding: 30px 16px 0; }

/* Larger screens just get a centered mobile-width column. */
@media (min-width: 700px) {
  .school-grid { grid-template-columns: 1fr 1fr 1fr; }
}
