/**
 * VANTAGE SNACK OS / Paperchase-marker layout (snackbar blade).
 *
 * @package TheEdgeOfVisionTheme
 */

/* Fonts worden via wp_enqueue_style (teovt-enqueue.php) geladen. */

html.teov-snackbar-paper-os-html,
body.teov-snackbar-paper-os.teov-blade-body {
  height: 100%;
  margin: 0;
}

body.teov-snackbar-paper-os.teov-blade-body {
  --teov-snp-ink: #000000;
  --teov-snp-paper: #ffffff;
  --teov-snp-yellow: #f4ff00;
  --teov-snp-cyan: #00e5ff;
  --teov-snp-pink: #ff007a;
  --teov-snp-border: 8px solid #000;
  background-color: #ddd;
  color: var(--teov-snp-ink);
  font-family: "Roboto Condensed", sans-serif;
  min-height: 100dvh;
  height: 100dvh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  text-transform: uppercase;
}

body.teov-snackbar-paper-os * {
  box-sizing: border-box;
}

.teov-snp-paper-sheet {
  background-color: var(--teov-snp-paper);
  background-image: radial-gradient(#ccc 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100dvh;
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  border: none;
  border-bottom: var(--teov-snp-border);
  position: relative;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.teov-snp-header {
  flex: 0 0 auto;
  min-height: clamp(52px, 9dvh, 88px);
  border-bottom: var(--teov-snp-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(12px, 3vw, 28px);
  background: var(--teov-snp-yellow);
}

.teov-snp-header h1 {
  font-size: clamp(1.1rem, 3.5vw, 40px);
  letter-spacing: -2px;
  margin: 0;
  line-height: 1.05;
}

/* Zelfde data als neon-blad: teov_get_blade_ticker_message + positie uit scherm-config */
.teov-snp-ticker {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  height: clamp(2rem, 4.2dvh, 2.65rem);
  min-height: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
  color: var(--teov-snp-yellow);
  border-bottom: 4px solid #000;
}

.teov-snp-ticker--bottom {
  border-bottom: none;
  border-top: 4px solid #000;
}

.teov-snp-ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  height: 100%;
  animation: teov-snp-ticker-marquee 52s linear infinite;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(0.7rem, 1.1dvh + 0.55vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teov-snp-ticker__seg {
  flex: 0 0 auto;
  padding: 0 2.5rem;
  white-space: nowrap;
}

@keyframes teov-snp-ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.teov-snp-viewport {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.teov-snp-page {
  position: absolute;
  inset: 0;
  padding: clamp(6px, 1.2dvh, 16px) clamp(8px, 1.5vw, 20px);
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.teov-snp-page.is-active {
  display: flex;
  animation: teov-snp-paper-flip 0.4s ease-out;
}

@keyframes teov-snp-paper-flip {
  from {
    transform: rotate(-2deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.teov-snp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  height: 100%;
}

@media (max-width: 900px) {
  .teov-snp-grid-3 {
    grid-template-columns: 1fr;
    height: auto;
  }

  .teov-snp-grid-menu {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .teov-snp-grid-menu--bento .teov-snp-column,
  .teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 1),
  .teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 4),
  .teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 6) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Menu-tegels: raster met automatische kolommen en regels — vult de breedte, wrapt, geen één lange rij. */
.teov-snp-grid-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: auto;
  align-content: start;
  align-items: stretch;
  justify-items: stretch;
  gap: clamp(8px, 1.2vw, 18px);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Bento-variant nu content-first: geen vaste spans/hoogtes, geen interne scroll. */
.teov-snp-grid-menu--bento {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: row;
}

.teov-snp-grid-menu--bento .teov-snp-column {
  grid-column: auto;
  grid-row: auto;
  height: 100%;
}

.teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 1) {
  grid-column: auto;
  grid-row: auto;
}

.teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 4) {
  grid-column: auto;
  grid-row: auto;
}

.teov-snp-grid-menu--bento .teov-snp-column:nth-child(7n + 6) {
  grid-column: auto;
}

@media (max-width: 1200px) {
  .teov-snp-grid-menu--bento {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

.teov-snp-grid-menu > .teov-snp-no-menu-cols {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  font-size: clamp(14px, 1.8vw, 22px);
  padding: 1rem;
  margin: 0;
}

.teov-snp-grid-menu .teov-snp-column {
  min-width: 0;
  width: 100%;
  max-width: none;
  position: relative;
  border: 3px dashed #000;
  padding: clamp(6px, 1dvh, 14px) clamp(6px, 0.9vw, 12px);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: stretch;
}

/* Kolom met achtergrondmedia: minimale hoogte (media zit absolute; zonder dit blijft de tegel te plat). */
.teov-snp-grid-menu .teov-snp-column:has(.teov-snp-column__media) {
  min-height: clamp(150px, 28dvh, 52dvh);
}

/* Weinig prijsregels in een tegel: compactere tegel; meer regels: iets grotere type. */
.teov-snp-grid-menu .teov-snp-column--items-none,
.teov-snp-grid-menu .teov-snp-column--items-few {
  padding: clamp(4px, 0.65dvh, 10px) clamp(4px, 0.75vw, 10px);
}

.teov-snp-grid-menu .teov-snp-column--items-many {
  padding: clamp(8px, 1.15dvh, 16px) clamp(6px, 0.95vw, 14px);
}

.teov-snp-grid-menu .teov-snp-column--items-none .teov-snp-h2,
.teov-snp-grid-menu .teov-snp-column--items-few .teov-snp-h2 {
  font-size: clamp(0.42rem, 0.58dvh + 0.48vw, 0.95rem);
  margin-bottom: clamp(2px, 0.45dvh, 8px);
}

.teov-snp-grid-menu .teov-snp-column--items-many .teov-snp-h2 {
  font-size: clamp(0.62rem, 1.05dvh + 0.72vw, 1.5rem);
}

.teov-snp-grid-menu .teov-snp-column--items-none .teov-snp-item,
.teov-snp-grid-menu .teov-snp-column--items-few .teov-snp-item {
  font-size: clamp(0.36rem, 0.42dvh + 0.35vw, 0.68rem);
}

.teov-snp-grid-menu .teov-snp-column--items-many .teov-snp-item {
  font-size: clamp(0.48rem, 0.58dvh + 0.48vw, 1.02rem);
}

.teov-snp-grid-menu .teov-snp-column--items-none .teov-snp-empty-cat,
.teov-snp-grid-menu .teov-snp-column--items-few .teov-snp-empty-cat {
  font-size: clamp(0.38rem, 0.42dvh + 0.32vw, 0.65rem);
}

.teov-snp-grid-menu .teov-snp-column--items-many .teov-snp-empty-cat {
  font-size: clamp(0.48rem, 0.52dvh + 0.42vw, 0.82rem);
}

.teov-snp-grid-menu .teov-snp-column--items-none .teov-snp-section,
.teov-snp-grid-menu .teov-snp-column--items-few .teov-snp-section {
  font-size: clamp(0.42rem, 0.52dvh + 0.42vw, 0.72rem);
}

.teov-snp-grid-menu .teov-snp-column--items-many .teov-snp-section {
  font-size: clamp(0.55rem, 0.72dvh + 0.55vw, 0.92rem);
}

.teov-snp-column__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.teov-snp-column__media--img {
  background-size: cover;
  background-position: center;
}

.teov-snp-column__media--img-opacity {
  opacity: var(--teov-snp-bg-img-opacity, 1);
}

.teov-snp-column__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teov-snp-column__model {
  width: 100%;
  height: 100%;
  display: block;
  --poster-color: transparent;
}

.teov-snp-column__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.teov-snp-column__front {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.teov-snp-grid-menu .teov-snp-column__front .teov-snp-column__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.teov-snp-col-fx--pulse_glow .teov-snp-column__front {
  animation: teov-snp-col-pulse-glow var(--teov-snp-col-fx-dur, 2.4s) ease-in-out infinite;
}

.teov-snp-col-fx--float_y .teov-snp-column__front {
  animation: teov-snp-col-float-y var(--teov-snp-col-fx-dur, 3.2s) ease-in-out infinite;
}

.teov-snp-col-fx--tilt_3d .teov-snp-column__front {
  animation: teov-snp-col-tilt var(--teov-snp-col-fx-dur, 5s) ease-in-out infinite;
  transform-style: preserve-3d;
}

.teov-snp-col-fx--marquee_edge .teov-snp-column {
  box-shadow: 0 0 0 2px var(--teov-snp-col-glow, #00e5ff);
  animation: teov-snp-col-marquee var(--teov-snp-col-fx-dur, 2.8s) linear infinite;
}

@keyframes teov-snp-col-pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 1px var(--teov-snp-col-glow, #00e5ff));
  }
  50% {
    filter: drop-shadow(0 0 12px var(--teov-snp-col-glow, #00e5ff));
  }
}

@keyframes teov-snp-col-float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes teov-snp-col-tilt {
  0%,
  100% {
    transform: perspective(520px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: perspective(520px) rotateX(2deg) rotateY(-3deg);
  }
}

@keyframes teov-snp-col-marquee {
  0% {
    box-shadow: 0 0 0 1px var(--teov-snp-col-glow, #00e5ff);
  }
  50% {
    box-shadow: 0 0 0 6px var(--teov-snp-col-glow, #00e5ff);
  }
  100% {
    box-shadow: 0 0 0 1px var(--teov-snp-col-glow, #00e5ff);
  }
}

.teov-snp-empty-cat {
  font-size: clamp(12px, 1.2vw, 16px);
  margin: 0.35rem 0 0;
  opacity: 0.85;
}

.teov-snp-h2 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1.25rem, 2.8vw, 32px);
  margin: 0 0 20px;
  display: inline-block;
  background: var(--teov-snp-cyan);
  padding: 0 10px;
  transform: rotate(-1deg);
}

.teov-snp-grid-menu .teov-snp-h2 {
  font-size: clamp(0.55rem, 0.9dvh + 0.65vw, 1.35rem);
  margin: 0 0 clamp(4px, 0.8dvh, 12px);
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.05;
}

.teov-snp-h2--pink {
  background: var(--teov-snp-pink);
  color: #fff;
}

.teov-snp-h2--yellow {
  background: var(--teov-snp-yellow);
}

.teov-snp-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(0.95rem, 1.8vw, 22px);
  border-bottom: 3px solid #eee;
}

.teov-snp-grid-menu .teov-snp-item {
  gap: clamp(4px, 0.6vw, 10px);
  margin-bottom: 0;
  padding-bottom: clamp(2px, 0.35dvh, 6px);
  font-size: clamp(0.45rem, 0.55dvh + 0.45vw, 0.95rem);
  line-height: 1.12;
  border-bottom-width: 2px;
  flex-shrink: 0;
  align-items: flex-start;
  min-width: 0;
}

.teov-snp-grid-menu .teov-snp-item__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(4px, 0.6vw, 10px);
}

.teov-snp-grid-menu .teov-snp-item__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.1;
}

.teov-snp-grid-menu .teov-snp-item__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.06em;
  flex-shrink: 0;
  white-space: nowrap;
}

.teov-snp-grid-menu .teov-snp-was {
  text-decoration: line-through;
  opacity: 0.72;
  font-size: 0.88em;
  font-weight: 700;
}

.teov-snp-grid-menu .teov-snp-item__media {
  flex: 0 0 auto;
  width: clamp(1.35rem, 1.8dvh + 1.1vw, 2.15rem);
  height: clamp(1.35rem, 1.8dvh + 1.1vw, 2.15rem);
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid #000;
  background: rgba(0, 0, 0, 0.06);
}

.teov-snp-grid-menu .teov-snp-item__video,
.teov-snp-grid-menu .teov-snp-item__model {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  --poster-color: transparent;
}

.teov-snp-grid-menu .teov-snp-item__img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.teov-snp-grid-menu .teov-snp-empty-cat {
  font-size: clamp(0.45rem, 0.5dvh + 0.4vw, 0.75rem);
  margin: 0;
}

.teov-snp-price {
  font-weight: 900;
  flex-shrink: 0;
}

.teov-snp-sale {
  color: #fff;
  background: var(--teov-snp-ink);
  padding: 0 8px;
}

.teov-snp-section {
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
  margin: 14px 0 8px;
  color: #333;
}

.teov-snp-grid-menu .teov-snp-section {
  font-size: clamp(0.5rem, 0.65dvh + 0.5vw, 0.85rem);
  margin: clamp(4px, 0.5dvh, 10px) 0 clamp(2px, 0.3dvh, 6px);
  flex-shrink: 0;
}

.teov-snp-deal-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8px, 2dvh, 24px) clamp(10px, 2vw, 28px);
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.teov-snp-deal-kicker {
  font-size: clamp(1rem, 2.5vw, 40px);
  margin-bottom: 20px;
}

.teov-snp-deal-title {
  font-size: clamp(3rem, 14vw, 120px);
  line-height: 0.85;
  font-family: "Permanent Marker", cursive;
  color: var(--teov-snp-pink);
  transform: rotate(-3deg);
}

.teov-snp-deal-title span {
  display: block;
}

.teov-snp-deal-lines {
  list-style: none;
  margin: clamp(10px, 2dvh, 28px) 0 0;
  padding: 0;
  width: min(100%, 42rem);
  text-align: left;
  align-self: center;
}

.teov-snp-deal-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(10px, 2vw, 20px);
  row-gap: 0.15em;
  align-items: baseline;
  padding: clamp(8px, 1.2dvh, 14px) 0;
  border-bottom: 3px solid #000;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(0.75rem, 1.4dvh + 0.9vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}

.teov-snp-deal-line__title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.teov-snp-deal-line__prices {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12em;
  flex-shrink: 0;
}

.teov-snp-deal-line__was {
  text-decoration: line-through;
  opacity: 0.72;
  font-size: 0.88em;
}

.teov-snp-deal-line__now {
  background: var(--teov-snp-yellow);
  color: var(--teov-snp-ink);
  padding: 0.08em 0.45em;
  border: 2px solid #000;
}

.teov-snp-deal-line__note {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.85;
  text-transform: none;
}

.teov-snp-deal-price {
  font-size: clamp(3rem, 12vw, 150px);
  margin-top: 20px;
  background: var(--teov-snp-yellow);
  padding: 0 30px;
  display: inline-block;
}

.teov-snp-deal-sub {
  font-size: clamp(0.85rem, 2vw, 24px);
  margin-top: 20px;
  max-width: 52rem;
}

.teov-snp-qr-section {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(12px, 3vw, 40px);
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.teov-snp-qr-box {
  width: 300px;
  height: 300px;
  max-width: 90vw;
  border: 10px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.teov-snp-qr-box img {
  width: 100%;
  height: 100%;
  max-height: min(38dvh, 260px);
  object-fit: contain;
  display: block;
}

.teov-snp-qr-placeholder::before {
  content: "SCAN ME";
  font-family: "Permanent Marker", cursive;
  font-size: 40px;
}

.teov-snp-info-copy {
  max-width: 400px;
}

.teov-snp-info-copy p {
  font-size: clamp(1rem, 2.2vw, 30px);
  margin: 0 0 20px;
}

.teov-snp-contact-block {
  font-size: 20px;
  border-top: 4px solid #000;
  padding-top: 10px;
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  .teov-snp-col-fx--pulse_glow .teov-snp-column__front,
  .teov-snp-col-fx--float_y .teov-snp-column__front,
  .teov-snp-col-fx--tilt_3d .teov-snp-column__front,
  .teov-snp-col-fx--marquee_edge .teov-snp-column {
    animation: none;
  }

  .teov-snp-page.is-active {
    animation: none;
  }

  .teov-snp-ticker__track {
    animation: none;
    width: auto;
    padding: 0 1rem;
  }

  .teov-snp-ticker__seg + .teov-snp-ticker__seg {
    display: none;
  }
}
