/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; transition: background 0.3s, color 0.3s; display: flex; flex-direction: column; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== STYLE SWITCHER (fixed) ===== */
.style-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,0.85);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}
.style-switcher button {
  padding: 4px 10px;
  cursor: pointer;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-family: monospace;
  font-size: 12px;
  transition: all 0.15s;
}
.style-switcher button:hover,
.style-switcher button.active {
  background: #fff;
  color: #000;
}

/* ===== LAYOUT ===== */
.site-header { text-align: center; }
.site-header .logo {
  display: inline-block;
  max-height: 140px;
  width: auto;
  margin: 0 auto;
}
.site-header .subtitle { letter-spacing: 0.3em; }
.products { display: flex; flex-wrap: wrap; justify-content: center; }
.product { text-align: center; }
.product .product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product h3 { margin-bottom: 4px; }
.product .price { font-weight: bold; }
.product .jp-label {
  font-size: 11px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.product .buy-btn {
  display: inline-block;
  cursor: pointer;
  transition: all 0.15s;
}
.product .buy-btn.buy-btn-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.8;
}
.site-footer { text-align: center; margin-top: auto; }

/* ===== MARQUEE ===== */
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-inner {
  display: inline-block;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 2px 8px;
  margin-top: 6px;
}

/* ===== UNDER CONSTRUCTION ===== */
.construction {
  text-align: center;
  padding: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* ===== TOOLBAR ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 20px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-options {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 11px;
  margin-right: 4px;
  opacity: 0.7;
}
.filter-btn {
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: all 0.15s;
  font-family: inherit;
}
.sort-select {
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid;
}

/* ===== PRODUCT TAGS ===== */
.product-tags {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product.hidden { display: none; }

/* ===== NO RESULTS ===== */
.no-results {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .products { flex-direction: column; align-items: center; }
  .site-header .logo { max-height: 100px; }
  .toolbar { flex-direction: column; gap: 8px; }
}
