:root {
  --primary: #227093;
  --secondary: #ff5252;
  --background: #eee;
  --highlight: #ffda79;
  /* Theme color */
  --theme: var(--primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure scrollbars are visible on all pages */
html {
  overflow-y: scroll;
  scrollbar-width: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: scrollbar;
}

html::-webkit-scrollbar {
  display: block;
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #f1f1f1;
}

html::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #888;
}

body {
  overflow-y: auto;
}

*,
body {
  font-family: "Zen Old Mincho", serif;
}

// view toggle (list / grid)

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin-left: 0.0625em;
  box-shadow: 0 0 0 1px #555;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.view-toggle-btn:first-child {
  margin-left: 0;
  border-radius: 4px 0 0 4px;
}

.view-toggle-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.view-toggle-btn--active {
  box-shadow: 0 0 0 1px #fff;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1;
  color: #fff;
}

.view-toggle-btn:hover {
  color: #fff;
}

/* Product list/grid view visibility (URL: ?view=list | ?view=grid) */
.products-view-list.hidden,
.products-view-grid.hidden {
  display: none !important;
}

/* legacy: hide if old label/radio markup remains */
.view-toggle label a {
  display: block;
  cursor: pointer;
  position: relative;
  margin-left: 0.0625em;
  box-shadow: 0 0 0 0.0625em #555;
  letter-spacing: 0.05em;
  color: #555;
  text-align: center;
  transition: background-color 0.5s ease;
}

.zoomable {
  width: 100%;
}
.zoomable:hover {
}
.zoom-lens {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  z-index: 9999;
  background-repeat: no-repeat;
}

/* WYSIWYG content (single news): preserve editor styles */
.nosima-wysiwyg p {
  margin-bottom: 1em;
}
.nosima-wysiwyg p:last-child {
  margin-bottom: 0;
}
.nosima-wysiwyg ul,
.nosima-wysiwyg ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.nosima-wysiwyg ul {
  list-style-type: disc;
}
.nosima-wysiwyg ol {
  list-style-type: decimal;
}
.nosima-wysiwyg li {
  margin-bottom: 0.25em;
}
.nosima-wysiwyg h1,
.nosima-wysiwyg h2,
.nosima-wysiwyg h3,
.nosima-wysiwyg h4,
.nosima-wysiwyg h5,
.nosima-wysiwyg h6 {
  margin: 1em 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
}
.nosima-wysiwyg h1 {
  font-size: 1.5em;
}
.nosima-wysiwyg h2 {
  font-size: 1.35em;
}
.nosima-wysiwyg h3 {
  font-size: 1.2em;
}
.nosima-wysiwyg h4,
.nosima-wysiwyg h5,
.nosima-wysiwyg h6 {
  font-size: 1em;
}
.nosima-wysiwyg a {
  color: var(--primary, #227093);
  text-decoration: underline;
}
.nosima-wysiwyg a:hover {
  text-decoration: none;
}
.nosima-wysiwyg strong {
  font-weight: 700;
}
.nosima-wysiwyg em {
  font-style: italic;
}
.nosima-wysiwyg blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid rgba(34, 112, 147, 0.5);
  font-style: italic;
  color: #ccc;
}
.nosima-wysiwyg hr {
  border-color: #333;
}
.nosima-wysiwyg img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5em 0;
}
.nosima-wysiwyg > *:first-child {
  margin-top: 0;
}

.product-detail-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) black;
}
.product-detail-scroll::-webkit-scrollbar {
  width: 4px;
}
.product-detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.product-detail-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.product-detail-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.privacy-policy-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.privacy-policy-scroll::-webkit-scrollbar {
  width: 3px;
}
.privacy-policy-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.privacy-policy-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
}
.privacy-policy-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}
