:root {
  color-scheme: light;
  --ink: #1f2a23;
  --muted: #647168;
  --canvas: #f7f9f6;
  --green: #cdeb72;
  --green-deep: #38784a;
  --wash: rgba(97, 150, 84, .09);
  --card-border: #d7dfd7;
  --photo-bed: #edf2ea;
  --button-ink: #fff;
  --accent-shadow: rgba(38, 76, 46, .2);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body[data-theme="polo-olive"] {
  --ink: #2c3026;
  --muted: #686b5d;
  --canvas: #f7f7f1;
  --green: #d7d9a6;
  --green-deep: #626747;
  --wash: rgba(137, 137, 89, .11);
  --card-border: #dfe0d3;
  --photo-bed: #f0f0e7;
  --accent-shadow: rgba(75, 79, 54, .2);
}

body[data-theme="nike-burgundy"] {
  --ink: #302128;
  --muted: #74646b;
  --canvas: #faf7f7;
  --green: #e8c4d0;
  --green-deep: #762d49;
  --wash: rgba(139, 55, 83, .095);
  --card-border: #e4d8dd;
  --photo-bed: #f5edef;
  --accent-shadow: rgba(94, 34, 56, .2);
}

body[data-theme="iphone-burgundy"] {
  --ink: #302128;
  --muted: #74646b;
  --canvas: #faf7f7;
  --green: #e7c4ce;
  --green-deep: #762d49;
  --wash: rgba(139, 55, 83, .095);
  --card-border: #e4d8dd;
  --photo-bed: #f5edef;
  --accent-shadow: rgba(94, 34, 56, .2);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--canvas);
  transition: background-color .65s ease, color .65s ease;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 47%, var(--wash), transparent 67%);
  transition: opacity .65s ease;
}

a,
button { font: inherit; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.skip-link:focus { transform: translateY(0); }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  width: min(1320px, calc(100% - 72px));
  height: 64px;
  flex: 0 0 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.online-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .015em;
  transition: color .65s ease;
}

.online-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-deep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-deep) 12%, transparent);
}

.carousel-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color .65s ease, border-color .65s ease, transform .2s ease;
}

.carousel-toggle:hover { transform: scale(1.06); }
.carousel-toggle:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }

main { flex: 1 1 auto; min-height: 0; display: flex; }

.hero {
  width: min(1320px, calc(100% - 48px));
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .94;
  font-weight: 850;
  letter-spacing: -.055em;
  text-align: center;
  transition: color .65s ease;
}

h1 span {
  margin-top: 7px;
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .47em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
  transition: color .65s ease;
}

.promo-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1;
  isolation: isolate;
}

/* A shallow display plinth gives the shoe a visual anchor without another image. */
.promo-stage::before {
  content: "";
  width: min(64vw, 820px);
  height: min(18vh, 150px);
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 7%;
  border: 1px solid color-mix(in srgb, var(--green-deep) 13%, transparent);
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 13%, white), transparent 76%);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--green-deep) 8%, transparent);
  transform: translateX(-50%);
  transition: border-color .65s ease, background-color .65s ease, box-shadow .65s ease;
}

.focal-product {
  width: min(56vw, 720px);
  height: min(64vh, 540px);
  position: absolute;
  z-index: 1;
  top: 51%;
  left: 50%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 27px 23px rgba(28, 35, 29, .18));
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .25s ease, transform .45s ease;
}

.focal-product.is-changing { opacity: 0; transform: translate(-50%, -48%) scale(.98); }

.wa-message {
  width: 300px;
  min-height: 122px;
  padding: 12px 13px 22px;
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 15px 32px rgba(31, 42, 35, .13), 0 2px 7px rgba(31, 42, 35, .045);
  transition: border-color .65s ease, box-shadow .65s ease;
}

.wa-message::after {
  content: "";
  width: 11px;
  height: 11px;
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: #fff;
  border-left: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  transform: skewY(-36deg);
}

.message-one { top: 13%; left: 1%; }
.message-two { top: 34%; right: 1%; }
.message-three { bottom: 7%; left: 5%; }

.product-photo {
  width: 76px;
  height: 76px;
  padding: 4px;
  object-fit: contain;
  border-radius: 11px;
  background: var(--photo-bed);
  transition: background-color .65s ease;
}

.message-copy { min-width: 0; }

.product-name {
  margin: 0 0 7px;
  color: #29352d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.price-line {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.price-line s { color: #828c84; font-size: 10px; }
.price-line strong { color: var(--ink); font-size: 18px; letter-spacing: -.045em; }

.coupon-label {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 8px;
  color: var(--green-deep);
  background: color-mix(in srgb, var(--green) 22%, white);
  border: 1px solid color-mix(in srgb, var(--green-deep) 18%, white);
  border-radius: 6px 6px 6px 2px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  transition: color .65s ease, background-color .65s ease, border-color .65s ease;
}

.coupon-label span { margin-left: 5px; color: #68746b; font-weight: 600; }

.message-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: #87948a;
  font-size: 9px;
}

.message-time b { padding-left: 2px; color: #3198b9; font-size: 10px; }

.join-action {
  width: min(360px, 36vw);
  position: absolute;
  z-index: 5;
  top: 52%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.button {
  width: 100%;
  min-height: 58px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  color: var(--button-ink);
  background: var(--green-deep);
  box-shadow: 0 12px 26px var(--accent-shadow);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background-color .65s ease, color .65s ease;
}

.button-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 15px 30px var(--accent-shadow); }
.button-primary:focus-visible, a:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.button-primary:disabled { cursor: not-allowed; opacity: .96; }
.button-arrow { font-size: 16px; }

.invite-status {
  margin: 0;
  padding: 5px 10px;
  color: #66736a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid color-mix(in srgb, var(--card-border) 70%, transparent);
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.site-footer {
  width: min(1320px, calc(100% - 48px));
  min-height: 34px;
  flex: 0 0 34px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header { width: calc(100% - 42px); height: 56px; flex-basis: 56px; }
  .hero { width: calc(100% - 26px); }
  .wa-message { width: 276px; grid-template-columns: 68px minmax(0, 1fr); gap: 9px; }
  .product-photo { width: 68px; height: 68px; }
  .message-one { left: 0; }
  .message-two { right: 0; }
  .join-action { width: min(320px, 40vw); }
  .site-footer { width: calc(100% - 24px); }
}

@media (max-width: 600px) {
  .site-header { width: calc(100% - 30px); height: 48px; flex-basis: 48px; }
  .brand-logo { width: 31px; height: 31px; }
  .brand-name { font-size: 14px; }
  .online-mark { font-size: 9px; gap: 6px; }
  .online-mark i { width: 7px; height: 7px; }
  .header-actions { gap: 8px; }
  .carousel-toggle { width: 29px; height: 29px; }
  .hero { width: calc(100% - 20px); }

  h1 {
    margin-top: 7px;
    font-size: clamp(31px, 8.2vw, 39px);
    line-height: .92;
  }

  h1 span { margin-top: 5px; font-size: .48em; }

  .promo-stage::before {
    width: 94vw;
    height: 13vh;
    bottom: 20%;
  }

  .focal-product { width: min(78vw, 390px); height: min(41vh, 350px); top: 53%; }

  .wa-message {
    width: 48%;
    min-height: 108px;
    padding: 8px 7px 19px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
    border-radius: 12px 12px 12px 4px;
  }

  .product-photo { width: 48px; height: 54px; padding: 1px; border-radius: 8px; }
  .product-name { margin-bottom: 5px; font-size: 9px; line-height: 1.22; }
  .price-line { margin-bottom: 5px; gap: 4px; }
  .price-line s { font-size: 7px; }
  .price-line strong { font-size: 12px; }
  .coupon-label { padding: 4px 5px; font-size: 7px; }
  .coupon-label span { display: none; }
  .message-time { right: 7px; bottom: 4px; font-size: 7px; }
  .message-time b { font-size: 8px; }
  .message-one { top: 5%; left: 0; }
  .message-two { top: 5%; right: 0; }
  .message-three { bottom: 4%; left: 0; }

  .join-action { width: min(240px, 64vw); top: 57%; gap: 5px; }
  .button { min-height: 48px; padding-inline: 12px; font-size: 11px; gap: 7px; }
  .invite-status { padding: 4px 8px; font-size: 8px; }
  .site-footer { min-height: 28px; flex-basis: 28px; width: calc(100% - 20px); }
  .site-footer p { font-size: 8px; }
}

@media (max-width: 360px) {
  .online-mark { font-size: 8px; }
  .wa-message { width: 49%; grid-template-columns: 42px minmax(0, 1fr); gap: 5px; }
  .product-photo { width: 42px; height: 48px; }
  .coupon-label { white-space: normal; }
  .join-action { width: 66vw; }
}

@media (max-height: 560px) {
  .site-header { height: 42px; flex-basis: 42px; }
  h1 { margin-top: 4px; font-size: clamp(29px, 5vh, 36px); }
  h1 span { margin-top: 3px; }
  .wa-message { min-height: 96px; }
  .product-photo { height: 58px; }
  .site-footer { min-height: 24px; flex-basis: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
