/* ninkd Shop-Raster – Farben und Schriften aus dem Theme (theme.json) */
:root {
  --sg-ink: var(--wp--preset--color--ink, #4a4a4a);
  --sg-ink-hover: #636363;
  --sg-accent: var(--wp--preset--color--accent, #d8456b);
  --sg-paper: var(--wp--preset--color--paper, #fff);
  --sg-line: var(--wp--preset--color--line, rgba(74, 74, 74, .14));
  --sg-muted: var(--wp--preset--color--muted, #9a9a9a);
  --sg-serif: var(--wp--preset--font-family--fraunces, 'Playfair Display', 'Times New Roman', serif);
  --sg-sans: var(--wp--preset--font-family--inter-tight, 'DM Sans', system-ui, sans-serif);
}

/* ── Raster ── */
.shopgrid ul.wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shopgrid ul.wc-block-product-template > li {
  position: relative;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left;
}
.shopgrid .wc-block-components-product-image {
  position: relative;
  margin: 0 0 12px !important;
  background: var(--sg-paper);
  overflow: hidden;
}
.shopgrid .wc-block-components-product-image a { display: block; position: relative; }
.shopgrid .wc-block-components-product-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.shopgrid .wc-block-components-product-image img.sg-alt {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .35s ease;
}
@media (hover: hover) {
  .shopgrid li:hover .wc-block-components-product-image img.sg-alt { opacity: 1; }
}
.shopgrid .wp-block-post-title {
  margin: 0 48px 4px 0 !important;
  font-family: var(--sg-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px !important;
  line-height: 1.35;
  text-align: left;
}
.shopgrid .wp-block-post-title a { color: inherit; text-decoration: none; }
.shopgrid .wc-block-components-product-price,
.shopgrid .wp-block-woocommerce-product-price {
  margin: 0 !important;
  font-family: var(--sg-sans);
  font-size: 15px !important;
  font-weight: 700;
  text-align: left !important;
}

/* ── Karte: Merkliste, Warenkorb, Lager-Hinweis ── */
.sg-actions { position: static; }
.sg-wish,
.sg-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s, transform .2s;
}
.sg-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--sg-paper);
  color: var(--sg-ink);
  box-shadow: 0 2px 8px rgba(74, 74, 74, .12);
}
.sg-wish.is-active { color: var(--sg-accent); }
.sg-wish.is-active svg path { fill: currentColor; }
@media (hover: hover) {
  .sg-wish:not(.is-active) { opacity: 0; }
  li:hover .sg-wish, .sg-wish:focus-visible { opacity: 1; }
}
.sg-cart {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--sg-ink);
  color: #fff;
  text-decoration: none;
}
.sg-cart:hover { background: var(--sg-ink-hover); color: #fff; }
.sg-cart.is-loading { opacity: .6; cursor: progress; }
.sg-cart.is-added { background: var(--sg-accent); }
.sg-wish:focus-visible, .sg-cart:focus-visible, .sg-pills a:focus-visible, .sg-wl-btn:focus-visible {
  outline: 2px solid var(--sg-accent);
  outline-offset: 2px;
}
.sg-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--sg-ink);
  color: #fff;
  font: 600 10px/1.2 var(--sg-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Mehr anzeigen + Seitenzahlen ── */
.shopgrid-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; }
.shopgrid-more button {
  min-width: 220px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-ink);
  color: #fff;
  font: 600 14px var(--sg-sans);
  cursor: pointer;
}
.shopgrid-more button:hover { background: var(--sg-ink-hover); }
.shopgrid-more button[disabled] { opacity: .6; cursor: progress; }
.shopgrid-more-count { font-size: 13px; color: var(--sg-muted); font-variant-numeric: tabular-nums; }
.shopgrid .wp-block-query-pagination { margin-top: 18px; gap: 6px; font-size: 13px; justify-content: center; }
.shopgrid .wp-block-query-pagination a,
.shopgrid .wp-block-query-pagination .current {
  display: inline-block;
  min-width: 30px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.shopgrid .wp-block-query-pagination .current { background: var(--sg-ink); color: #fff; }

/* ── Themen-Chips ── */
.sg-pills { margin: 0 0 28px; }
.sg-pills-label {
  margin: 0 0 10px;
  font: 600 11px var(--wp--preset--font-family--jetbrains-mono, ui-monospace, monospace);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sg-ink);
}
.sg-pills ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-pills a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--sg-ink);
  color: #fff;
  font: 500 12px/1.3 var(--sg-sans);
  text-decoration: none;
  transition: background-color .2s;
}
.sg-pills a span { font-size: 10px; opacity: .7; }
.sg-pills a:hover { background: var(--sg-ink-hover); }
.sg-pills a.is-active { background: var(--sg-accent); }

/* ── Merkliste: Header-Symbol + Seitenleiste ── */
.sg-wl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #efefef;
  color: var(--sg-ink);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.sg-wl-btn:hover { background: var(--sg-accent); color: #fff; }
.sg-wl-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sg-accent);
  color: #fff;
  font: 700 10px/18px var(--sg-sans);
  text-align: center;
}
.sg-drawer-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .35); }
.sg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: min(400px, 100vw);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--sg-paper);
  color: var(--sg-ink);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
  font-family: var(--sg-sans);
}
.sg-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sg-drawer-head h2 { margin: 0; font: italic 600 24px var(--sg-serif); }
.sg-drawer-close { width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: inherit; cursor: pointer; }
.sg-drawer-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.sg-drawer-list li { display: grid; grid-template-columns: 64px 1fr 32px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sg-line); }
.sg-drawer-list img { width: 64px; height: 64px; object-fit: cover; background: #f4f4f4; }
.sg-drawer-list a { color: inherit; text-decoration: none; font: italic 600 15px/1.3 var(--sg-serif); }
.sg-drawer-list .price { display: block; margin-top: 2px; font: 700 13px var(--sg-sans); }
.sg-drawer-remove { width: 32px; height: 32px; border: 0; background: none; color: var(--sg-muted); font-size: 20px; cursor: pointer; }
.sg-drawer-remove:hover { color: var(--sg-accent); }
.sg-drawer-empty { margin: 24px 0; color: var(--sg-muted); line-height: 1.5; }
/* display:flex oben würde sonst das hidden-Attribut überstimmen */
.sg-drawer[hidden], .sg-drawer-backdrop[hidden], .sg-drawer-foot[hidden], .sg-drawer-note[hidden] { display: none; }
.sg-drawer-cart {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--sg-ink);
  border-radius: 999px;
  background: none;
  color: var(--sg-ink);
  font: 600 12px/1.2 var(--sg-sans) !important;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sg-drawer-cart:hover, .sg-drawer-cart:focus-visible { background: var(--sg-ink); color: var(--sg-paper); }
.sg-drawer-cart.is-loading { opacity: .5; pointer-events: none; }
.sg-drawer-cart.is-added { background: var(--sg-accent); border-color: var(--sg-accent); color: #fff; }
.sg-drawer-out { display: block; margin-top: 6px; color: var(--sg-muted); font: 12px var(--sg-sans); }
.sg-drawer-foot { padding-top: 16px; border-top: 1px solid var(--sg-line); }
.sg-drawer-all {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-ink);
  color: var(--sg-paper);
  font: 700 14px var(--sg-sans);
  cursor: pointer;
}
.sg-drawer-all:hover, .sg-drawer-all:focus-visible { background: var(--sg-accent); }
.sg-drawer-all:disabled { opacity: .6; cursor: wait; }
.sg-drawer-note { margin: 10px 0 0; color: var(--sg-muted); font: 12px/1.45 var(--sg-sans); }

/* ── Bildwand im Startseiten-Hero (füllt die bisherige Fotofläche) ── */
.sg-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: var(--wp--preset--color--bg-alt, #e8e8e8);
}
.sg-wall__tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  color: var(--sg-ink);
}
.sg-wall__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 4s ease-out;
}
.sg-wall__img.is-on { opacity: 1; transform: scale(1); }
/* Motive (Strichzeichnung auf Weiß): etwas Luft, nicht anschneiden */
.sg-wall__tile.is-t .sg-wall__img { object-fit: contain; }
.sg-wall__tile.is-lead .sg-wall__img { object-position: center bottom; }
/* Motiv-Kachel: Mockup schwarz-weiß, blass dahinter; Motiv per „multiply“ darüber (weißer Bildgrund wird durchsichtig) */
.sg-wall__pair { display: block; background: #fff; isolation: isolate; }
.sg-wall__pair > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-wall__bg { object-fit: cover; filter: grayscale(1) contrast(.9); opacity: .2; }
.sg-wall__fg { object-fit: contain; mix-blend-mode: multiply; }
.sg-wall__name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font: italic 600 13px/1.2 var(--sg-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.sg-wall__name:empty { display: none; }
@media (hover: hover) {
  .sg-wall__tile:hover .sg-wall__name, .sg-wall__tile:focus-visible .sg-wall__name { opacity: 1; transform: none; }
  .sg-wall__tile:hover .sg-wall__img.is-on { transform: scale(1.03); }
}
.sg-wall__tile:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: -2px; }
.sg-wall__pause {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--sg-ink);
  cursor: pointer;
}
.sg-wall__pause .i-play, .sg-wall.is-paused .sg-wall__pause .i-pause { display: none; }
.sg-wall.is-paused .sg-wall__pause .i-play { display: inline; }
.sg-wall__pause:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
/* Etiketten des Heros bleiben über der Wand */
.sg-wall ~ * { z-index: 2; }

@media (max-width: 1024px) {
  .shopgrid ul.wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Startseite „Welche Sprache spricht deine Haut?“: auf dem Handy eine wischbare Reihe statt 15 Kacheln untereinander.
   gsbp-86342d7e23fea = Kachelraster im Pattern #1388 (Greenshift-ID, bleibt beim Bearbeiten erhalten). */
@media (max-width: 767px) {
  .gsbp-86342d7e23fea {
    display: flex !important;
    gap: 10px !important;
    height: auto !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin-inline: -16px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .gsbp-86342d7e23fea::-webkit-scrollbar { display: none; }
  .gsbp-86342d7e23fea > a {
    flex: 0 0 64%;
    max-width: 260px;
    scroll-snap-align: start;
  }
}
@media (max-width: 768px) {
  .shopgrid ul.wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .shopgrid .wp-block-post-title { font-size: 14px !important; margin-right: 42px !important; }
  .sg-cart { width: 34px; height: 34px; }
  /* Themen-Chips: eine wischbare Zeile statt sieben Reihen (alle Themen stehen auch im Menü) */
  .sg-pills ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  }
  .sg-pills ul::-webkit-scrollbar { display: none; }
  .sg-pills li { flex-shrink: 0; }
  .sg-pills a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .shopgrid img.sg-alt, .sg-wish, .sg-cart, .sg-pills a, .sg-wall__img { transition: none; }
}

/* ─── Startseite: Hero-Headline in zwei Zeilen ─────────────────────────────
   „Tattoos für zwei“ ist bei Playfair kursiv ca. 6,1 × Schriftgröße breit.
   Schriftgröße = Textspaltenbreite / 6,5, damit die erste Zeile sicher passt. */
.gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38,
.gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38 > * {
  font-size: min(calc(7.8vw - 8px), 120px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
/* Headline mittig zwischen der Zeile darueber und dem Text darunter (gleiche Abstaende) */
.gsbp-5b9a4322556d28 { display: flex; flex-direction: column; gap: 24px; }
.gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38 { margin-block: auto; }
.gsbp-cc932672ca981 > p.gsbp-30a827f00b9718 { margin-top: 24px; }
@media (max-width: 991.98px) {
  .gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38,
  .gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38 > * { font-size: min(calc(15vw - 10px), 88px); }
}
@media (max-width: 459.98px) {
  .gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38,
  .gsbp-5b9a4322556d28 h1.gsbp-648b497f903f38 > * { font-size: calc(15vw - 6px); }
}
/* FAQ auf /anleitung/ (Rank-Math-FAQ-Block) */
.ninkd-faq h2 { font-size: clamp(28px, 4vw, 40px); font-style: italic; margin: 0 0 24px; }
.ninkd-faq .rank-math-list-item { padding: 18px 0; border-top: 1px solid rgba(74, 74, 74, .14); max-width: 760px; }
.ninkd-faq .rank-math-question { font-style: italic; margin: 0 0 6px; }
.ninkd-faq .rank-math-answer p, .ninkd-faq .rank-math-answer { margin: 0; line-height: 1.6; }

/* Kategorie-Text unter dem Produktraster */
.ninkd-cat-text { max-width: 760px; margin-top: 56px !important; font-size: 16px; line-height: 1.65; color: inherit; }
.ninkd-cat-text p { margin: 0 0 12px; }
