:root,
body[data-theme="black"] {
  --font-light: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-medium: "HelveticaNeue-Medium", "Helvetica Neue Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #000000;
  --page-bg: rgba(0, 0, 0, 0.95);
  --panel: rgba(0, 0, 0, 0.74);
  --panel-strong: #050505;
  --field-bg: #030303;
  --text: #cfcfcf;
  --field-text: #ffffff;
  --title: #ffffff;
  --muted: #999999;
  --accent: #ff0000;
  --accent-contrast: #ffffff;
  --accent-soft: #7a1010;
  --line: #5f0d0d;
  --glow: rgba(100, 0, 0, 0.25);
  --accent-bg: rgba(30, 0, 0, 0.50);
  --accent-shadow: #4d0000;
  --banner: #b60000;
  --logo-filter: invert(1) contrast(1.12);
  --gallery-tree-color: #8f8f8f;
  --gallery-tree-filter: brightness(0) invert(62%);
}
body[data-theme="white"] {
  --bg: #ffffff;
  --page-bg: rgba(255, 255, 255, 0.96);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #f7f7f7;
  --field-bg: #ffffff;
  --text: #151515;
  --field-text: #000000;
  --title: #000000;
  --muted: #555555;
  --accent: #d00000;
  --accent-contrast: #ffffff;
  --accent-soft: #c02a2a;
  --line: #d16a6a;
  --glow: rgba(208, 0, 0, 0.10);
  --accent-bg: transparent;
  --accent-shadow: #e0a0a0;
  --banner: #b60000;
  --logo-filter: contrast(1.08);
  --gallery-tree-color: #000000;
  --gallery-tree-filter: brightness(0);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-light);
  font-size: 14px;
  letter-spacing: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
  outline: none;
}

.top-strip,
.top-nav,
.page {
  width: min(900px, 96%);
}

.top-strip {
  margin: 8px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-left: 70px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.top-date {
  color: var(--accent);
  font-size: 14px;
  line-height: 34px;
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 34px;
}

.search-star {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--panel-strong);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.search-star:hover,
.search-star:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
  outline: none;
}

.search-star.is-spinning {
  animation: spinStar 0.55s linear;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.28s ease, opacity 0.18s ease;
}

.top-search.is-open .search-panel {
  max-width: 320px;
  opacity: 1;
}

.search-panel input {
  width: 185px;
  margin: 0;
}

.top-nav {
  margin: 16px auto;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}

.top-nav a {
  margin: 0 7px;
  text-decoration: none;
}

.page {
  position: relative;
  overflow: visible;
  margin: 0 auto 30px;
  border: 1px solid var(--accent);
  background:
    linear-gradient(var(--page-bg), var(--page-bg)),
    radial-gradient(circle at center, var(--glow), transparent 55%);
}

.header {
  margin-top: 10px;
  min-height: 165px;
  border-bottom: 1px solid var(--accent);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.logo-switch {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  cursor: pointer;
  color: inherit;
}

.logo-switch:focus-visible {
  outline: none;
}

.site-logo {
  width: 170px;
  height: 92px;
  flex: 0 0 170px;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: var(--logo-filter);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.logo-switch:hover .site-logo,
.logo-switch:focus-visible .site-logo {
  filter: var(--logo-filter);
  transform: none;
}

.logo-text {
  text-align: left;
}

.brand {
  font-size: 72px;
  line-height: 0.9;
  color: var(--title);
  font-family: var(--font-medium);
  font-weight: 500;
}

.subtitle {
  margin-top: 10px;
  color: var(--accent);
  font-size: 19px;
  font-weight: 500;
}

.slogan {
  text-align: center;
  padding: 20px 0 10px;
  color: var(--title);
  font-size: 22px;
}

.slogan span {
  color: var(--accent);
  font-size: 24px;
}

.under-slogan {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 8px;
  padding: 8px;
}


.layout > .center-box:only-child {
  grid-column: 1 / -1;
}
.box {
  border: 1px solid var(--accent-soft);
  background: var(--panel);
  margin-bottom: 8px;
}

.box-title {
  color: var(--accent);
  text-align: center;
  font-weight: 500;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-bg);
}

.box-content {
  padding: 12px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.65;
}

.menu-list li::before {
  content: "> ";
  color: var(--title);
}

input,
textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--accent-soft);
  color: var(--field-text);
  padding: 6px;
  font-family: var(--font-light);
  margin: 4px 0 7px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.button-link {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--accent-soft);
  padding: 6px 18px;
  font-family: var(--font-light);
  cursor: pointer;
}

button:hover,
button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  background: var(--accent);
  color: var(--accent-contrast);
  outline: none;
}

.center-box {
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 500px;
  padding: 20px;
}

.welcome {
  text-align: center;
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 22px;
}

.intro {
  text-align: center;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}

.action-button {
  text-align: center;
  margin: 18px 0 25px;
  font-weight: 500;
  font-size: 16px;
}

.drop-banner {
  height: 115px;
  border: 1px solid var(--accent);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.drop-banner::before {
  content: "* * *";
  position: absolute;
  left: 25px;
  top: 35px;
  color: var(--title);
  font-size: 28px;
  transform: rotate(-10deg);
}

.drop-banner::after {
  content: "NEW DROP";
  color: var(--title);
  font-size: 34px;
  font-weight: 500;
  text-shadow: 3px 3px var(--accent-shadow);
}

.drop-small {
  position: absolute;
  bottom: 20px;
  right: 65px;
  color: var(--accent);
  font-weight: 500;
  font-size: 16px;
}

.section-title {
  text-align: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  margin: 28px 0 18px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 10px;
}

.news-item {
  border-bottom: 1px dashed var(--line);
  padding: 12px 2px;
  line-height: 1.5;
}

.date,
.price {
  color: var(--accent);
  font-weight: 500;
}

.price {
  font-size: 18px;
  text-align: center;
}

.wide-banner {
  margin: 8px;
  border: 1px solid var(--accent);
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  color: var(--banner);
  font-size: 42px;
  font-weight: 500;
  text-align: center;
}

.footer-nav {
  margin: 8px;
  padding: 13px;
  text-align: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.footer-nav a {
  text-decoration: none;
  margin: 0 10px;
}

.footer {
  text-align: center;
  padding: 25px 20px 35px;
  color: var(--title);
  line-height: 1.6;
  font-size: 13px;
}

.product-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


.product-card,
.gallery-frame,
.info-panel {
  border: 1px solid var(--accent-soft);
  background: var(--panel);
  padding: 12px;
  min-width: 0;
}

.product-card.is-hidden {
  display: none;
}

.product-art,
.gallery-art {
  height: 150px;
  border: 1px solid var(--accent);
  margin-bottom: 12px;
  background:
    radial-gradient(circle at center, var(--glow), transparent 42%),
    linear-gradient(140deg, transparent 42%, var(--accent-bg) 43%, transparent 45%),
    var(--panel-strong);
  position: relative;
  overflow: hidden;
}

.product-art::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 108px;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: var(--panel-strong);
  border: 2px solid var(--line);
  clip-path: polygon(30% 0, 70% 0, 88% 30%, 80% 100%, 20% 100%, 12% 30%);
}

.product-art::after,
.gallery-art::after {
  content: "*";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--title);
  font-size: 42px;
}


.gallery-tree-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(260px, 72%);
  margin: -8px auto 22px;
  padding: 6px;
  text-decoration: none;
}

.gallery-tree-link:hover,
.gallery-tree-link:focus-visible {
  background: transparent;
  outline: 1px solid var(--accent);
}

.gallery-tree-mark {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 216 / 145;
  object-fit: contain;
  filter: var(--gallery-tree-filter);
  transition: filter 0.25s ease, transform 0.2s ease;
}

.gallery-tree-link:hover .gallery-tree-mark,
.gallery-tree-link:focus-visible .gallery-tree-mark {
  transform: translateY(-2px);
}
.gallery-art.alt::after {
  content: "OS";
  font-size: 34px;
  color: var(--accent);
}

.card-title {
  color: var(--title);
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}


/* SEMPER FI product pages */
.drop-intro {
  border: 1px solid var(--accent);
  background: var(--bg);
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.drop-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.drop-title {
  color: var(--title);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 8px;
}

.drop-copy {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.5;
}

.semper-fi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  perspective: 1400px;
}

.product-card {
  --holo-x: 50%;
  --holo-y: 50%;
  --holo-foil-x: 50%;
  --holo-foil-y: 50%;
  --holo-tilt-x: 0deg;
  --holo-tilt-y: 0deg;
  --holo-parallax-x: 0px;
  --holo-parallax-y: 0px;
  --holo-shadow-x: 0px;
  --holo-shadow-y: 12px;
  --holo-opacity: 0.52;
  --holo-glare-opacity: 0.18;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-card.is-holo-active,
.product-card:focus-within {
  z-index: 2;
  border-color: var(--accent);
  box-shadow:
    var(--holo-shadow-x) var(--holo-shadow-y) 32px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(191, 228, 239, 0.08);
}


.product-thumb {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--accent);
  background: var(--panel-strong);
  overflow: hidden;
  isolation: isolate;
  transform:
    perspective(900px)
    rotateX(var(--holo-tilt-x))
    rotateY(var(--holo-tilt-y))
    scale(1);
  transform-style: preserve-3d;
  transform-origin: center;
  backface-visibility: hidden;
  transition:
    transform 160ms cubic-bezier(0.2, 0.75, 0.3, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.product-thumb::before,
.product-thumb::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  backface-visibility: hidden;
  transition: opacity 180ms ease;
  will-change: opacity, background-position;
}

.product-thumb::before {
  background:
    radial-gradient(
      circle at var(--holo-x) var(--holo-y),
      rgba(255, 255, 255, 0.28) 0%,
      rgba(177, 222, 232, 0.15) 12%,
      rgba(195, 184, 224, 0.07) 26%,
      transparent 42%
    ),
    linear-gradient(
      118deg,
      transparent 0%,
      transparent 18%,
      rgba(173, 190, 199, 0.16) 24%,
      rgba(105, 190, 211, 0.34) 32%,
      rgba(112, 143, 208, 0.32) 40%,
      rgba(179, 132, 202, 0.30) 48%,
      rgba(228, 164, 184, 0.24) 56%,
      rgba(224, 194, 139, 0.20) 64%,
      rgba(245, 247, 249, 0.50) 72%,
      rgba(166, 215, 225, 0.26) 80%,
      transparent 90%,
      transparent 100%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      rgba(0, 0, 0, 0.025) 1px,
      rgba(0, 0, 0, 0.025) 4px
    );
  background-size: 100% 100%, 180% 180%, 8px 8px;
  background-position: center, var(--holo-foil-x) var(--holo-foil-y), center;
  background-repeat: no-repeat, no-repeat, repeat;
  background-blend-mode: screen, screen, overlay;
  mix-blend-mode: screen;
  filter: brightness(1.015) contrast(1.025) saturate(1.05);
}

.product-thumb::after {
  z-index: 3;
  background:
    radial-gradient(
      circle at var(--holo-x) var(--holo-y),
      rgba(255, 255, 255, 0.28) 0%,
      rgba(218, 239, 244, 0.13) 9%,
      rgba(255, 255, 255, 0.035) 21%,
      transparent 38%
    ),
    linear-gradient(
      105deg,
      transparent 24%,
      rgba(222, 237, 241, 0.03) 40%,
      rgba(255, 255, 255, 0.11) 50%,
      rgba(222, 237, 241, 0.03) 60%,
      transparent 76%
    );
  background-size: 100% 100%, 180% 180%;
  background-position: center, var(--holo-foil-x) var(--holo-foil-y);
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.product-card.is-holo-active .product-thumb,
.product-card:focus-within .product-thumb {
  border-color: rgba(225, 242, 246, 0.48);
  box-shadow: 0 0 12px rgba(179, 218, 228, 0.10);
  transform:
    perspective(900px)
    rotateX(var(--holo-tilt-x))
    rotateY(var(--holo-tilt-y))
    scale(1.018);
}

.product-card.is-holo-active .product-thumb::before,
.product-card:focus-within .product-thumb::before {
  opacity: var(--holo-opacity);
}

.product-card.is-holo-active .product-thumb::after,
.product-card:focus-within .product-thumb::after {
  opacity: var(--holo-glare-opacity);
}

.product-thumb img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  transition: transform 220ms ease, filter 220ms ease;
  will-change: transform, filter;
}

.product-card.is-holo-active .product-thumb img,
.product-card:focus-within .product-thumb img {
  transform:
    scale(1.035)
    translate3d(var(--holo-parallax-x), var(--holo-parallax-y), 0);
  filter: contrast(1.025) saturate(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    z-index: 2;
    border-color: var(--accent);
  }

  .product-card:hover .product-thumb::before {
    opacity: var(--holo-opacity);
  }

  .product-card:hover .product-thumb::after {
    opacity: var(--holo-glare-opacity);
  }
}

@media (hover: none), (pointer: coarse) {
  .product-card {
    touch-action: pan-y;
  }

  .product-thumb {
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    transition:
      transform 120ms cubic-bezier(0.2, 0.75, 0.3, 1),
      border-color 160ms ease,
      box-shadow 160ms ease;
  }

  .product-thumb img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .product-thumb::before,
  .product-thumb::after {
    transition: opacity 140ms ease;
  }
}

@supports not (mix-blend-mode: screen) {
  .product-thumb::before {
    mix-blend-mode: screen;
    opacity: 0;
    filter: saturate(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .product-thumb {
    transform: none !important;
    will-change: auto;
  }

  .product-card:hover .product-thumb img,
  .product-card:focus-within .product-thumb img,
  .product-card.is-holo-active .product-thumb img {
    transform: none;
    transition: none;
  }

  .product-thumb::before,
  .product-thumb::after {
    background-position: center;
    transition: none;
  }
}

.card-title {
  display: block;
  min-height: 2.7em;
  color: var(--title);
  text-decoration: none;
  line-height: 1.35;
}

.card-title:hover,
.card-title:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
}

.product-actions,
.product-detail-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.product-actions .button-link,
.product-actions button,
.product-detail-actions .button-link,
.product-detail-actions button {
  width: 100%;
  margin: 0;
  text-align: center;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 18px;
  align-items: start;
}

.product-detail-media {
  border: 1px solid var(--accent);
  background: var(--panel-strong);
  min-width: 0;
}

.product-detail-media img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.product-detail-info {
  min-width: 0;
}

.product-detail-title {
  color: var(--title);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 12px;
}






.contact-panel {
  display: grid;
  gap: 22px;
  line-height: 1.6;
}

.contact-group p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.contact-heading {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.search-note {
  display: none;
  color: var(--accent);
  text-align: center;
  margin-bottom: 14px;
  font-weight: 500;
}

.search-note.is-visible {
  display: block;
}

.form-actions {
  text-align: center;
  margin-top: 12px;
}

@keyframes spinStar {
  to {
    transform: rotate(360deg);
  }
}



@media (max-width: 950px) {
  .layout,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 46px;
  }

  .logo-switch {
    flex-direction: column;
    gap: 15px;
  }

  .logo-text {
    text-align: center;
  }

  .wide-banner {
    font-size: 28px;
  }
}


button.language-toggle {
  color: var(--text);
}

button.language-toggle:hover,
button.language-toggle:focus-visible {
  background: var(--accent);
  color: var(--accent-contrast);
}
@media (max-width: 560px) {
.top-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .top-date {
    line-height: 1.4;
  }

  .top-search {
    justify-content: flex-start;
  }

  .top-search.is-open .search-panel {
    max-width: 100%;
    flex: 1;
  }

  .search-panel input {
    width: 100%;
  }

  .header {
    padding: 18px 12px;
  }

  .center-box {
    padding: 14px;
  }
}


button.logo-switch:hover,
button.logo-switch:focus-visible {
  background: transparent;
  color: inherit;
}

button.logo-switch:hover .brand,
button.logo-switch:focus-visible .brand,
button.logo-switch:hover .subtitle,
button.logo-switch:focus-visible .subtitle {
  color: inherit;
}

button.logo-switch:hover .subtitle,
button.logo-switch:focus-visible .subtitle {
  color: var(--accent);
}

.footer-symbol,
.footer .blink,
.footer::after {
  display: none !important;
  content: none !important;
}
.edge-peekers {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.edge-peeker {
  position: fixed;
  top: var(--peeker-top, 28vh);
  width: clamp(90px, 12vw, 150px);
  height: auto;
  opacity: 0;
  pointer-events: auto;
  user-select: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.42));
  will-change: transform, opacity, top;
}

.edge-peeker-left {
  left: -170px;
  transform-origin: 50% 45%;
  animation: peekLeft 18s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.edge-peeker-right {
  right: -170px;
  transform-origin: 50% 45%;
  animation: peekRight 18s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

/* Cart workflow */
.cart-count {
  color: var(--accent);
  font-weight: 500;
}

.cart-count::before {
  content: "(";
}

.cart-count::after {
  content: ")";
}

.action-button button {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.action-button button.is-added {
  background: var(--accent);
  color: var(--accent-contrast);
}

.cart-panel {
  display: grid;
  gap: 14px;
}

.cart-empty {
  text-align: center;
}

.cart-empty.is-hidden,
.order-telegram.is-hidden {
  display: none;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent-soft);
  background: var(--panel-strong);
  padding: 10px;
}

.cart-line-title {
  color: var(--accent);
  font-weight: 500;
}

.cart-line-meta {
  margin-top: 4px;
  font-size: 12px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-line-actions button {
  padding: 4px 8px;
}

.cart-qty {
  min-width: 26px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
  padding: 10px 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.order-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 4px;
}

.form-row label {
  color: var(--accent);
  font-weight: 500;
}

.order-submit {
  margin-bottom: 0;
}

.order-message {
  display: none;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.order-message.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .cart-line {
    grid-template-columns: 1fr;
  }

  .cart-line-actions {
    justify-content: flex-start;
  }
}
.address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-fields .form-row:nth-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .address-fields {
    grid-template-columns: 1fr;
  }

  .address-fields .form-row:nth-child(3) {
    grid-column: auto;
  }
}
/* Language switch */
.language-toggle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 54px;
  padding: 5px 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}




@media (max-width: 560px) {
  .top-strip {
    padding-left: 0;
    padding-top: 38px;
  }

  .language-toggle {
    left: 0;
    top: 0;
  }
}
.customer-name-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .customer-name-fields {
    grid-template-columns: 1fr;
  }
}
.top-nav,
.box-title,
.welcome,
.action-button,
.card-title,
.drop-banner,
.wide-banner,
.date,
.price,
button,
.button-link,
.cart-line-title,
.cart-summary,
.form-row label,
.order-message,
.language-toggle {
  font-family: var(--font-medium);
}

@media (max-width: 720px) {
  .drop-intro {
    padding: 14px;
  }

  .drop-title {
    font-size: 30px;
  }

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

  .product-detail-title {
    font-size: 28px;
  }
}

/* Keyboard access and mobile interaction */
.welcome { margin-top: 0; }
a:focus-visible, button:focus-visible, .logo-switch:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--title);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-180%);
  z-index: 10000;
  padding: 12px;
  background: var(--bg);
}
.skip-link:focus { transform: translateY(0); }
@media (pointer: coarse), (max-width: 560px) {
  button, .button-link, .top-nav a, .footer-nav a {
    min-height: 44px;
    min-width: 44px;
  }
  .top-nav a, .footer-nav a { display: inline-flex; align-items: center; justify-content: center; }
  .cart-line-actions button { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

}

.product-thumb { touch-action: pan-y; }

/* Interactive secret character */
.edge-peeker {
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  visibility: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.edge-peeker:hover, .edge-peeker:focus-visible { background: transparent; }
.edge-peeker img { display: block; width: 100%; height: auto; }
.edge-peeker.is-tapped img { animation: peekerTap 420ms ease-out; }
.edge-peeker:focus-visible { animation-play-state: paused; }
@keyframes peekerTap {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(0.86) rotate(-12deg); }
  65% { transform: scale(1.12) rotate(8deg); }
}
/* Hidden characters cannot intercept clicks or receive keyboard focus. */
@keyframes peekLeft {
  0%, 7%, 34%, 100% { visibility: hidden; opacity: 0; transform: translateX(-46px) rotate(15deg); }
  12% { visibility: visible; opacity: 0.28; transform: translateX(24px) rotate(15deg); }
  17%, 25% { visibility: visible; opacity: 0.96; transform: translateX(115px) rotate(15deg); }
  31% { visibility: visible; opacity: 0.18; transform: translateX(26px) rotate(15deg); }
}
@keyframes peekRight {
  0%, 51%, 84%, 100% { visibility: hidden; opacity: 0; transform: translateX(46px) rotate(-15deg) scaleX(-1); }
  56% { visibility: visible; opacity: 0.28; transform: translateX(-24px) rotate(-15deg) scaleX(-1); }
  62%, 72% { visibility: visible; opacity: 0.96; transform: translateX(-115px) rotate(-15deg) scaleX(-1); }
  79% { visibility: visible; opacity: 0.18; transform: translateX(-26px) rotate(-15deg) scaleX(-1); }
}
.promo-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--accent);
  padding: 28px 20px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
.promo-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.promo-dialog[open] { animation: promoAppear 220ms ease-out; }
.promo-content h2 { color: var(--title); margin: 0 0 12px; }
.promo-code { border: 1px solid var(--accent); margin: 20px 0; }
.promo-image { display: block; width: 100%; height: auto; }
.promo-content p { line-height: 1.6; margin: 16px 0 20px; }
@keyframes promoAppear { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .edge-peeker { visibility: visible; opacity: 1; top: auto !important; bottom: 16px; width: 80px; }
  .edge-peeker-left { left: -30px; transform: rotate(15deg); }
  .edge-peeker-right { right: -30px; transform: rotate(-15deg) scaleX(-1); }
}

@media (max-width: 560px) {
  .edge-peeker-left { left: -125px; }
  .edge-peeker-right { right: -125px; }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .edge-peeker-left { left: -30px; }
  .edge-peeker-right { right: -30px; }
}

/* Theme-switch hint below the star */
.logo-mark {
  position: relative;
  display: block;
  width: 170px;
  height: 92px;
  flex: 0 0 auto;
}
.logo-mark .site-logo { display: block; }
.logo-click {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 4px;
  text-align: center;
  color: var(--title);
  font-family: var(--font-light);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
}

/* Legal documents and separate order confirmations */
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-bottom: 22px; }
.legal-document { line-height: 1.7; overflow-wrap: anywhere; }
.legal-document h1 { color: var(--title); font-size: clamp(20px, 4vw, 28px); line-height: 1.35; margin: 0 0 24px; }
.legal-document h2 { color: var(--title); font-size: 19px; line-height: 1.4; margin: 28px 0 12px; }
.legal-document p { margin: 0 0 12px; }
.legal-document ul { padding-left: 22px; }
.order-legal { display: grid; gap: 16px; margin-top: 12px; }
.legal-check { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; cursor: pointer; }
.legal-check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }

/* One photograph at a time, with controls outside the image. */
.gallery-viewer { border: 1px solid var(--accent); background: var(--panel-strong); min-width: 0; }
.gallery-viewer:focus-visible { outline: 2px solid var(--title); outline-offset: 4px; }
.gallery-stage { height: clamp(340px, 65svh, 680px); position: relative; overflow: hidden; }
.gallery-slide { margin: 0; width: 100%; height: 100%; }
.gallery-slide[hidden] { display: none; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; border-top: 1px solid var(--accent-soft); }
.gallery-arrow { display: grid; place-items: center; height: 52px; min-width: 44px; padding: 0; border: 0; border-radius: 0; color: var(--title); background: transparent; font-size: 27px; line-height: 1; touch-action: manipulation; }
.gallery-arrow:first-child { border-right: 1px solid var(--accent-soft); }
.gallery-arrow:last-child { border-left: 1px solid var(--accent-soft); }
.gallery-arrow:disabled { opacity: 0.35; cursor: default; }
.gallery-arrow:disabled:hover { background: transparent; color: var(--title); }
.gallery-arrow:focus-visible { outline-offset: -5px; }
.gallery-counter { text-align: center; color: var(--title); font-family: var(--font-medium); font-size: 12px; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.gallery-noscript { padding: 0 16px; line-height: 1.5; }
@media (max-width: 560px) {
  .gallery-stage { height: clamp(320px, 60svh, 540px); }
  .gallery-controls { grid-template-columns: 56px 1fr 56px; }
}

.order-privacy-note { margin: 0; line-height: 1.6; font-size: 13px; color: var(--text); }

.order-telegram { text-align: center; }
