

:root {
  --page-bg-top: #f2f2fb;
  --page-bg-bottom: #beb9f4;
  --ink: #121226;
  --ink-soft: #2e2e52;
  --link: #2b38ff;
  --line: #a8a8b4;
  --button-bg: #d8d8d8;
  --button-border: #ababab;
  --sale: #ff1d1d;
  --shadow-violet: rgba(130, 114, 206, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 14px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: 1px 5 5 currentColor;
  letter-spacing: 0.2px;
  text-shadow:
    0.3px 0 red,
    -0.3px 0 blue;
  background-color: #e8e8f3;
  background-image: url('assets/EightOS/BACKGROUND.webp');
  
}

h1, h2, h3 {
  text-shadow:
    0.6px 0 red,
    -0.6px 0 blue;
}

body {
  filter: contrast(1.05) saturate(0.95);
}

body {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeSpeed;
}

.page-shell {
  width: min(860px, calc(100vw - 110px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.logo {
  width: min(470px, 40vw);
  filter: drop-shadow(0 8px 18px rgba(120, 112, 180, 0.18));
}

.tagline-image {
  width: min(250px, 22vw);
  margin-top: 4px;
  margin-left: 18px;
  opacity: 0.96;
}

.hero-product-top img {
  width: min(360px, 30vw);
  display: block;
  filter: drop-shadow(0 0 26px rgba(241, 247, 165, 0.72));
}

.top-tools {
  margin-top: -20px;
  text-align: center;
}

.search-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-row input {
  width: 180px;
  height: 31px;
  border: 1px solid #a8a8ad;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-row button {
  height: 39px;
  padding: 0 20px;
  font-size: 17px;
  cursor: pointer;
}

.quick-links {
  margin-top: 12px;
  gap: 8px 16px;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.quick-links a {
  color: var(--link);
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.18s ease;
}

.quick-links a:hover {
  opacity: 0.72;
}


.intro {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  align-items: center;
  margin-top: 34px;
  gap: 48px;
}

.intro h2,
.products > h2,
.creator > h2,
.info-column h2 {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #040419;
}

.intro h2 {
  font-size: clamp(28px, 2.4vw, 38px);
}


.creator-copy p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #16164a;
  font-weight: 600;
  max-width: 540px;
}

.info-column p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.35;
  color: #111;
  font-weight: 400;
}

.intro-copy p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.12;
  color: #121252;
  font-weight: 700;
}

.shop-button {
  min-width: 146px;
  height: 28px;
  margin-top: 10px;
  font-size: 13px;
  cursor: pointer;
}

.hero-product-mid {
  display: flex;
  justify-content: center;
}

.hero-product-mid img {
  width: min(370px, 36vw);
  display: block;
  filter: drop-shadow(0 0 18px rgba(242, 248, 177, 0.75));
}

.products {
  margin-top: 64px;
}

.products > h2,
.creator > h2 {
  text-align: center;
  font-size: clamp(28px, 2.4vw, 38px);
}

.product-layout {
  margin-top: 28px;
  gap: 22px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(250px, 0.55fr);
  align-items: start;
}

.product-image-wrap {
  border: 1px solid #c3c3c8;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.10),
    0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-image {
  width: 100%;
  display: block;
}

.product-card {
  padding-top: 6px;
}

.product-card h3 {
  margin: 0 0 20px;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(44px, 4.1vw, 58px);
  line-height: 0.95;
  color: #070715;
}


.product-options {
  display: grid;
  gap: 8px;
  max-width: 290px;
}

.option-btn {
  min-height: 29px;
  cursor: pointer;
}

.option-btn.is-active {
  background: #c9c9c9;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 30px;
}

.price-current {
  color: var(--sale);
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
}

.price-old {
  color: #100a18;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(22px, 1.9vw, 30px);
  text-decoration: line-through;
}

.quantity-row {
  margin-top: 22px;
  display: inline-grid;
  grid-template-columns: 30px 40px 30px;
  align-items: stretch;
}

.quantity-row button,
.quantity-row span {
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--button-border);
  background: #e5e5e5;
  font-weight: 700;
}

.quantity-row span {
  border-left: 0;
  border-right: 0;
  color: #26265a;
}

.buy-button {
  display: block;
  margin-top: 20px;
  min-width: 210px;
  height: 31px;
  font-size: 14px;
  cursor: pointer;
}

.creator {
  margin-top: 110px;
}

.creator-layout {
  margin-top: 58px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.creator-image {
  width: 100%;
  display: block;
}

.creator-copy p {
  font-size: 12px;
  margin-bottom: 20px;
}






.info-column h2 {
  font-size: clamp(28px, 2.3vw, 40px);
  margin-bottom: 28px;
}

.info-column p {
  font-size: 15px;
  line-height: 1.15;
  color: #111;
  font-weight: 400;
}

.return-link {
  margin-top: 110px;
  text-align: center;
}

.return-link a {
  display: inline-block;
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  color: #040419;
  font-size: clamp(28px, 2.2vw, 38px);
  text-decoration: none;
}

.return-link a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .page-shell {
    width: calc(100vw - 28px);
  }

  .hero {
    grid-template-columns: 1fr;
    display: grid;
    gap: 18px;
  }

  .hero-product-top {
    justify-self: end;
  }

  .intro,
  .product-layout,
  .creator-layout,
  .bottom-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-product-mid {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: calc(100vw - 20px);
    padding-top: 14px;
  }

  .logo {
    width: min(300px, 70vw);
  }

  .tagline-image {
    width: min(160px, 45vw);
  }

  .search-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .intro,
  .products,
  .creator {
    margin-top: 52px;
  }

  .creator {
    margin-top: 160px;
  }

  .bottom-columns {
    margin-top: 82px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .return-link {
    margin-top: 72px;
  }

  .return-link a {
    font-size: clamp(20px, 5vw, 28px);
  }
}



.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-thumbs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.product-thumb {
  width: 126px;
  height: 126px;
  padding: 0;
  border: 1px solid #bdbdc3;
  background: #efefef;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-active {
  box-shadow:
    0 0 0 2px #8e8e8e inset,
    0 10px 22px rgba(0, 0, 0, 0.18);
  background: #d9d9d9;
}

.option-btn {
  min-height: 29px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.option-btn.is-active {
  background: #bfbfbf;
  box-shadow: inset 0 0 0 2px #9e9e9e;
}

.retro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.retro-modal-backdrop[hidden] {
  display: none;
}

.retro-modal {
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  position: relative;
  transform: none;
  background: #d8d8d8;
  border: 2px solid #8f8f8f;
  box-shadow:
    0 0 0 2px #f1f1f1 inset,
    0 18px 38px rgba(0, 0, 0, 0.24);
  color: #111;
}

.retro-modal-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: linear-gradient(180deg, #cfcfcf 0%, #bdbdbd 100%);
  border-bottom: 1px solid #9b9b9b;
  font-weight: 700;
}

.retro-modal-close {
  width: 24px;
  height: 24px;
  border: 1px solid #8c8c8c;
  background: #dcdcdc;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.retro-modal-body {
  padding: 28px 20px 18px;
  text-align: center;
}

.retro-modal-body p {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.retro-modal-actions {
  padding: 0 20px 20px;
  display: flex;
  justify-content: center;
}

.retro-ok-btn {
  min-width: 110px;
  height: 34px;
  border: 1px solid #8c8c8c;
  background: #dcdcdc;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .product-thumb {
    width: 110px;
    height: 110px;
  }
}





.search-status {
  margin: 10px 0 0;
  min-height: 20px;
  text-align: center;
  font-size: 14px;
  color: #44446a;
  font-weight: 700;
}

.search-hit {
  background: #fff29b;
  color: #111;
  padding: 0 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.glitch-hit {
  background: #fff29b;
  color: #111;
  box-shadow:
    1px 0 red,
    -1px 0 blue;
}


.search-row button,
.shop-button,
.option-btn,
.buy-button,
.quantity-row button,
.retro-ok-btn,
.retro-modal-close {
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid var(--button-border);
  background: linear-gradient(180deg, #dddddd 0%, #cfcfcf 100%);
  color: #111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.search-row button:hover,
.shop-button:hover,
.option-btn:hover,
.buy-button:hover,
.quantity-row button:hover,
.retro-ok-btn:hover,
.retro-modal-close:hover {
  filter: brightness(1.02);
}

.search-row button:active,
.shop-button:active,
.option-btn:active,
.buy-button:active,
.quantity-row button:active,
.retro-ok-btn:active,
.retro-modal-close:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.12),
    0 0 0 rgba(0, 0, 0, 0);
}