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

:root {
  --bg: #010528;
  --text: #ffffff;
  --anim: 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --top-safe: 50px;
  --control-size: 72px;
  --control-gap: 28px;
  --main-w: clamp(50%, 60%, 70%);
  --side-w: clamp(34%, 40%, 46%);
  --offset: 10%;
  --small-offset: 6%;
  --max-wrap: clamp(420px, 60vw, 1100px);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden; /* prevent scrolling */
}

html {
  height: 100%;
}

a {
  color: inherit;
}

.hidden {
  display: none;
}

/* ---------- Landing page ---------- */

#landing {
  display: flex;
  flex-direction: column;
  padding-top: 10%;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg);
  position: relative;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.landing-logo img {
  height: 200px;
}

.landing-title-main {
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
}

.landing-title-sub {
  font-size: 40px;
  font-weight: 700;
  margin-top: 4px;
}

.enter-btn {
  margin-top: 48px;
  padding: 18px 72px;
  border-radius: 999px;
  border: none;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  background-color: var(--text);
  color: var(--bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Shop layout ---------- */

#shop {
  min-height: 100vh;
  height: 100vh;
  background-color: var(--bg);
  padding: 24px 40px calc(var(--control-size) + var(--control-gap) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-direction: column;
}

.shop-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.shop-logo img {
  height: 150px;
  transition: height 0.16s ease;
}

.product-title {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 9;
  pointer-events: none;
  font-size: 36px;
  font-weight: 900;
}

.product-title > span {
  pointer-events: auto;
}

#productName {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  font-weight: 900;
}

.product-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 60px;
  margin: 0 10px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, box-shadow 0.12s ease;
}

.product-arrow:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.shop-content {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Hoodie gallery ---------- */

.hoodie-images-wrapper {
  flex: 1 1 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 36%;
  max-width: min(var(--max-wrap), 86vw);
  width: 100%;
  padding-top: var(--top-safe);
  margin: 1%;
}

.hoodie-images {
  position: relative;
  width: 100%;
  left: 15%;
  height: 0;
  padding-bottom: 70%;
  pointer-events: none;
  overflow: visible;
}

.hoodie-images img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  transition: transform var(--anim), width var(--anim), left var(--anim),
    right var(--anim), opacity 220ms;
  will-change: transform, width, left, right;
  max-height: 100%;
  pointer-events: auto;
  background: transparent;
}

.hoodie-images img.main {
  right: var(--offset);
  left: auto;
  z-index: 3;
  width: var(--main-w);
  transform: translateY(-50%) scale(1);
}

.hoodie-images img.secondary {
  left: calc(var(--offset) + var(--small-offset));
  right: auto;
  z-index: 2;
  width: var(--side-w);
  transform: translateY(-50%) scale(0.88);
  opacity: 0.98;
}

.hoodie-images.back-first img.main {
  left: calc(var(--offset) + var(--small-offset));
  right: auto;
  z-index: 2;
  width: var(--side-w);
  transform: translateY(-50%) scale(0.88);
  opacity: 0.98;
}

.hoodie-images.back-first img.secondary {
  right: var(--offset);
  left: auto;
  z-index: 3;
  width: var(--main-w);
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.hoodie-images img:hover {
  transform: translateY(-50%) scale(1.02);
}

/* ---------- Options ---------- */

.options-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-size: 40px;
  font-weight: 800;
}

.pill-btn {
  min-width: 140px;
  padding: 10px 24px;
  border-radius: 14px;
  border: none;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  background-color: #ffffff;
  color: var(--bg);
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.pill-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.order-actions {
  margin-top: 64px;
}

.order-btn {
  width: 100%;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(120deg, #6ae6ff, #5b76ff);
  color: #010528;
  font-size: 32px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.order-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Controls ---------- */

.bottom-bar {
  position: fixed;
  left: 0;
  bottom: 8px;
  width: 100%;
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.swap-control {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-toggle {
  height: var(--control-size);
  width: var(--control-size);
  z-index: 9;
  border-radius: 50%;
  border: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 50px;
  background-color: transparent;
  color: var(--text);
  position: relative;
  transform: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.circle-toggle:hover {
  transform: translateY(-6px) rotate(18deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
}

.circle-toggle:active {
  transform: none;
  box-shadow: none;
}

.footer-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.2px;
  pointer-events: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .shop-header {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1000px) {
  #landing {
    padding-top: 30%;
  }

  :root {
    --top-safe: 20px;
    --control-size: 90px;
    --control-gap: 20px;
    --main-w: 100%;
    --side-w: 60%;
    --offset: -5%;
    --small-offset: 0%;
  }

  .product-title {
    position: static;
    transform: none;
    margin-top: 150px;
    font-size: 70px;
    pointer-events: auto;
  }

  .shop-content {
    justify-content: center;
    gap: 24px;
  }

  .options-panel {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .hoodie-images-wrapper {
    max-width: 100%;
    padding-inline: 0%;
  }

  .hoodie-images img.main {
    transform: translateY(-50%) scale(0.96);
  }

  .hoodie-images img.secondary {
    transform: translateY(-50%) scale(0.86);
  }
}

@media (max-width: 768px) {
  .shop-logo img {
    height: 72px;
  }

  .hoodie-images img {
    max-height: 320px;
  }
}
