html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #000;
  color: #fff;
  font-family: sans-serif;
  position: relative;
  z-index: 0;
}

:root {
  --header-hide-zone: 100px; 
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://cyberdreamsshop2.neocities.org/elements/20240913-render_output%20(11)ss%20copy.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: 300px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-hide-zone);
  z-index: 1;
  pointer-events: none;

  
  background:
    #000
    top left / 300px repeat;
}
    
.bw-image {
  max-width: 100%;
  height: auto;
  position: fixed;
  left: -180px; 
  top: 20px;  
  pointer-events: none;
}

.bw-image2 {
  max-width: 100%;
  height: auto;
  position: fixed;
  left: 1130px; 
  top: 20px;
  transform: translate(-X);
  pointer-events: none;
}

.site-marquee {
  position: fixed;
  top: 92px;
  left: 0;
  width: 100%;
  z-index: 120;
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  padding: 8px 0;
}

.site-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.site-marquee-text {
  padding-right: 40px;
  font-family: "Lucida Sans Typewriter", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: linear-gradient(
    90deg,
    #ff003c,
    #ff7a00,
    #ffee00,
    #00ff66,
    #00e5ff,
    #4d7aff,
    #b000ff,
    #ff003c
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: marquee-colors 5s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-colors {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

* {
  cursor: url("https://cyberdreamsshop.neocities.org/assets/cursor.png") 16 16, auto;
}

.logo-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
}

.logo-link img {
  width: 100px;
  height: auto;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-link img:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.cart-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #00f;
  color: #fff;
  border: 1px solid #101010;
  cursor: pointer;
  z-index: 120;
}

.catalog-main,
.product-page-main {
  width: min(1260px, calc(100% - 30px));
  margin: 0 auto;
  padding: 180px 0 60px;
}

.catalog-main,
.product-page-main {
  background: #000;
  padding-inline: 12px;
}

.page-title {
  margin: 0 0 6px;
  font-size: 36px;
}

.page-subtitle {
  margin: 0 0 24px;
  color: #b8b8b8;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.custom-line-section {
  width: min(920px, 100%);
  margin: 56px auto 0;
  padding: 22px 14px;
  background: transparent;
}

.custom-line-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #4d7afa;
  background: transparent;
  color: #fff;
  font-family: "MS UI Gothic", "MS Gothic", sans-serif;
  font-size: 22px;
  text-transform: lowercase;
  padding: 8px 0;
  outline: none;
}

.custom-line-input::placeholder {
  color: #9ca7d8;
  opacity: 0.9;
}

.faq-policy-section {
  width: min(900px, 100%);
  margin: 56px auto 0;
  padding: 22px 14px;
}

.faq-policy-title {
  margin: 0 0 22px;
  font-family: "MS UI Gothic", "MS Gothic", sans-serif;
  font-size: 32px;
  color: #fff;
}

.faq-policy-text {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
}

.faq-policy-text a {
  color: #4d7afa;
  text-decoration: none;
}

.faq-policy-text a:hover {
  text-decoration: underline;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
}

.catalog-link {
  flex: 0 0 auto;
  height: auto;
  color: inherit;
  text-decoration: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  perspective: 900px;
  
  
}

.catalog-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center bottom;
  will-change: transform;
}

.catalog-image:hover {
  transform: scale(1);
  filter: drop-shadow(0 10px 14px rgba(255, 255, 255, 0.12));
}

.catalog-card h2 {
  margin: 0;
  font-size: 22px;
  text-align: center;
  line-height: 1.2;
  font-family: "MS UI Gothic", "MS Gothic", sans-serif;
  text-transform: lowercase;
}

.product-hint {
  margin: 0;
  font-size: 13px;
  color: #a9a9a9;
}

.product-price {
  margin: 0;
  font-size: 19px;
  text-align: center;
  color: #4d7afa;
}

.left-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 15px;
  background-color: #00f;
  color: #fff;
  border: 1px solid #101010;
  cursor: pointer;
  z-index: 120;
}

.add-btn {
  width: auto;
  padding: 0;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  background: transparent;
  color: #4d7afa;
  border: none;
  text-align: left;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.add-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.add-btn:active {
  color: #cdd9ff;
  transform: none;
}

.add-btn:focus-visible {
  outline: 1px dotted #ffffff;
  outline-offset: 2px;
}

.catalog-add-btn {
  position:relative !important;
  z-index: auto !important;
  display: inline-flex;
  align-items: center;
  margin: -10px 12px !important;
  width: auto;
  align-self: center;
  min-height: 0px;
  padding: 0px 0px;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 8px 12px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
  border: none;
  padding: 16px;
  background: transparent;
}

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

.main-product-image {
  width: 100%;
  border: none;
  display: block;
  pointer-events: auto;
}

.thumbnail-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 84px;
  height: 104px;
  object-fit: cover;
  display: block;
  border: none;
  cursor: zoom-in;
  pointer-events: auto;
}


.main-product-image {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  z-index: 5000;
  padding: 20px;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-content {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lightbox-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.lightbox-image {
  max-width: min(90vw, 980px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.lightbox-nav {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  color: #4d7afa;
}

.lightbox-counter {
  font-size: 12px;
  opacity: 0.75;
}

#snipcart-templates {
  display: none !important;
}


.snipcart-cart-summary-item__thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info h2 {
  margin: 0;
  font-size: 24px;
}

.product-info h1 {
  margin: 0;
  font-size: 30px;
  font-family: "MS UI Gothic", "MS Gothic", sans-serif;
  text-transform: lowercase;
}

.product-description {
  margin: 0;
  color: #d6d6d6;
  line-height: 1.4;
}

.product-meta {
  margin: 0;
  color: #b9b9b9;
}

.product-options {
  display: grid;
  gap: 8px;
  width: min(280px, 100%);
  margin-top: 4px;
}

.option-label {
  font-size: 13px;
  color: #d4d4d4;
}

.option-select {
  width: 100%;
  padding: 10px;
  background: #0e0e0e;
  color: #fff;
  border: 1px solid #303030;
}

.option-select option {
  background: #0e0e0e;
  color: #fff;
}

.cart-btn,
.product-back-btn,
.add-btn,
.option-label,
.quantity-label,
.lightbox-nav,
.lightbox-close,
.product-add-btn {
  text-transform: lowercase;
}

.price-display {
  margin: 0;
  font-size: 24px;
  color: #4d7afa;
}

.price-note {
  margin: 0;
  font-size: 12px;
  color: #b9b9b9;
}

.product-controls {
  display: grid;
  gap: 10px;
  width: min(280px, 100%);
}

.quantity-label {
  font-size: 13px;
  color: #d4d4d4;
}

.quantity-input {
  width: 100%;
  padding: 10px;
  background: #0e0e0e;
  color: #fff;
  border: 1px solid #303030;
  box-sizing: border-box;
}

.product-add-btn {
  width: 100%;
  padding: 12px;
  background-color: #00f;
  color: #fff;
  border: 1px solid #101010;
  text-align: center;
  text-decoration: none;
}

.product-add-btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.1);
}

.product-back-btn {
  position: static;
  margin: 0 0 16px 14px;
  padding: 10px 15px;
  background-color: #00f;
  color: #fff;
  border: 1px solid #101010;
  cursor: pointer;
  font-family: "MS UI Gothic", "MS Gothic", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.quantity-input {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-page-grid {
    grid-template-columns: 1fr;
  }

  .catalog-main,
  .product-page-main {
    width: calc(100% - 18px);
    padding-top: 140px;
  }

  .catalog-card h2 {
    font-size: 16px;
  }

  .product-price {
    font-size: 16px;
  }

  .bw-image,
  .bw-image2 {
    display: none;
  }
}

@media (max-width: 560px) {
  .catalog-main,
  .product-page-main {
    width: calc(100% - 10px);
    padding-top: 130px;
    padding-inline: 6px;
  }

  .site-marquee {
    top: 82px;
    padding: 6px 0;
  }

  .site-marquee-text {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .left-btn,
  .cart-btn {
    top: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-back-btn {
    padding: 8px 10px;
    font-size: 12px;
    margin-left: 10px;
  }

  .left-btn {
    left: 8px;
  }

  .cart-btn {
    right: 8px;
  }

  .logo-link img {
    width: 82px;
  }
}
