/* ==========================================================================
   Snacktopia – Shop-Theme
   Markenfarben des Logos (Pink und Violett) fuer den B2B-Shop. Wird nach
   bvf.css geladen und ueberschreibt nur Optik. Aufbau und Regeln entsprechen
   dem Mashall-Theme; die Abweichungen stehen im Abschnitt "Snacktopia" am Ende.
   ========================================================================== */

:root {
  --st-pink: #e6107f;
  --st-pink-dark: #c20c6a;
  --st-pink-soft: #fde8f3;
  --st-violet: #a455f5;
  --st-violet-dark: #8b34e6;
  --st-violet-soft: #f4eafe;
  --st-navy: #241a3a;
  --st-slate: #5d5870;
  --st-line: #efeaf5;
  --st-radius: 18px;
  --st-radius-sm: 12px;
  --st-shadow: 0 6px 24px -12px rgba(36, 26, 58, .22);
  --st-shadow-hover: 0 18px 36px -16px rgba(230, 16, 127, .45);
}

body {
  color: var(--st-navy);
}
a {
  color: var(--st-pink);
}
a:hover, a:focus {
  color: var(--st-pink-dark);
}
h1, h2, h3, h4, h5, h6 {
  color: var(--st-navy);
}
::selection {
  background: var(--st-pink);
  color: #fff;
}

/* --- Kopfzeile ----------------------------------------------------------- */

.navbar,
.navbar-header {
  background: #fff !important;
}
.topbar {
  box-shadow: 0 2px 18px -8px rgba(36, 26, 58, .25);
  border-top: 4px solid var(--st-pink);
}
.topbar .navbar-header {
  border-right-color: var(--st-line) !important;
}
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link {
  color: var(--st-navy) !important;
}
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link > i {
  font-size: 22px;
}
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--st-pink) !important;
}
#nav-cart .nav-link {
  background: var(--st-pink-soft);
  color: var(--st-pink) !important;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  align-self: center;
  transition: background .2s, color .2s, transform .2s;
}
#nav-cart {
  display: flex;
  align-items: center;
}
#nav-cart .nav-link:hover {
  background: var(--st-pink);
  color: #fff !important;
  transform: scale(1.06);
}
#nav-cart .top-badge {
  top: -4px;
  right: -6px;
  background: var(--st-navy) !important;
  border: 2px solid #fff;
}
.app-search .form-control {
  border-radius: 999px;
  border: 2px solid var(--st-line);
  background: #f7f9fa;
  min-width: 260px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.app-search .form-control:focus {
  border-color: var(--st-pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(230, 16, 127, .12);
}
.app-search a {
  color: var(--st-pink);
}

/* --- Sidebar ------------------------------------------------------------- */

.left-sidebar {
  box-shadow: 2px 0 18px -12px rgba(36, 26, 58, .25);
}
.left-sidebar .sidebar-nav #sidebarnav {
  padding: 10px 8px !important;
}

/* Eintraege: mehr Luft, Navy statt Grau */
#main-wrapper .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link {
  position: relative;
  align-items: center;
  border-radius: 12px;
  margin: 2px 0;
  padding: 6px 10px !important;
  color: var(--st-navy) !important;
  font-size: .9rem;
  font-weight: 500;
  opacity: 1 !important;
  transition: background .15s, color .15s;
}
#main-wrapper .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link:hover {
  background: var(--st-violet-soft);
  color: var(--st-navy);
}

/* Icons der obersten Ebene in farbigen Kacheln (wie die Kategorie-Kacheln der Startseite) */
#sidebarnav > .sidebar-item > .sidebar-link > i {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: var(--st-pink-soft);
  color: var(--st-pink) !important;
  transition: background .15s, color .15s;
}
#sidebarnav > .sidebar-item:nth-child(even) > .sidebar-link > i {
  background: var(--st-violet-soft);
  color: var(--st-violet-dark) !important;
}
#sidebarnav > .sidebar-item > .sidebar-link:hover > i {
  background: var(--st-pink);
  color: #fff !important;
}

/* Bestseller und Neue Produkte hervorheben (Links mit und ohne Kurz-Aliase /bestseller, /neue-produkte) */
#sidebarnav > .sidebar-item > .sidebar-link[href$="alle-produkte/bestseller"],
#sidebarnav > .sidebar-item > .sidebar-link[href$="/bestseller"],
#sidebarnav > .sidebar-item > .sidebar-link[href$="alle-produkte/new"],
#sidebarnav > .sidebar-item > .sidebar-link[href$="/neue-produkte"] {
  font-weight: 700;
}
#sidebarnav > .sidebar-item > .sidebar-link[href$="alle-produkte/bestseller"] > i,
#sidebarnav > .sidebar-item > .sidebar-link[href$="/bestseller"] > i,
#sidebarnav > .sidebar-item > .sidebar-link[href$="alle-produkte/new"] > i,
#sidebarnav > .sidebar-item > .sidebar-link[href$="/neue-produkte"] > i {
  background: var(--st-pink);
  color: #fff !important;
  box-shadow: 0 6px 12px -6px rgba(230, 16, 127, .9);
}

/* Aktiver Punkt: rosa Flaeche plus pinker Balken links */
#main-wrapper .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link.active {
  background: var(--st-pink-soft);
  color: var(--st-pink-dark) !important;
  font-weight: 700 !important;
}
#main-wrapper .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--st-pink);
}
#sidebarnav > .sidebar-item > .sidebar-link.active > i {
  background: var(--st-pink);
  color: #fff !important;
}
.left-sidebar .sidebar-nav .has-arrow::after {
  top: 50% !important;
  margin-top: -3px;
  border-color: var(--st-slate);
}

/* Unterebenen: ohne Icon, eingerueckt an einer feinen Linie */
#sidebarnav ul.collapse {
  margin: 2px 0 6px 25px;
  padding: 0 0 0 8px;
  border-left: 2px solid var(--st-line);
}
#sidebarnav ul.collapse ul.collapse {
  margin-left: 8px;
}
#sidebarnav ul.collapse .sidebar-link > i {
  display: none;
}
#main-wrapper .left-sidebar .sidebar-nav #sidebarnav ul.collapse .sidebar-item .sidebar-link {
  padding: 4px 10px !important;
  margin: 1px 0;
  font-size: .86rem;
  font-weight: 400;
  color: var(--st-slate) !important;
  border-radius: 8px;
}
#main-wrapper .left-sidebar .sidebar-nav #sidebarnav ul.collapse .sidebar-item .sidebar-link:hover {
  color: var(--st-navy) !important;
}
#main-wrapper .left-sidebar .sidebar-nav #sidebarnav ul.collapse .sidebar-item .sidebar-link.active {
  color: var(--st-pink-dark) !important;
}
#main-wrapper .left-sidebar .sidebar-nav #sidebarnav ul.collapse .sidebar-item .sidebar-link.active::before {
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
}

.left-sidebar .devider {
  margin: 8px 6px;
  border-color: var(--st-line);
}

/* Eingeklapptes Menue (nur Icons): keine Unterebenen und keine Einrueckungslinie */
@media (min-width: 768px) {
  #main-wrapper[data-sidebartype="mini-sidebar"] .left-sidebar:not(:hover) #sidebarnav ul.collapse {
    display: none;
  }
}

/* Logo-Bereich: Logo mittig, Swirl dezent im Hintergrund */
.topbar .top-navbar .navbar-header {
  position: relative;
  overflow: hidden;
}
.topbar .top-navbar .navbar-header::before {
  content: "";
  position: absolute;
  right: -46px;
  top: 50%;
  width: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: url('../../images/product-bg.webp') center / cover no-repeat;
  opacity: .16;
  transform: translateY(-50%) rotate(-20deg);
  pointer-events: none;
}
.topbar .top-navbar .navbar-header .navbar-brand {
  position: relative;
  margin-right: 0;
}
@media (min-width: 768px) {
  .topbar .top-navbar .navbar-header .navbar-brand {
    width: 100%;
    justify-content: center;
  }
  .topbar .top-navbar .navbar-header .logo-text img {
    height: 54px !important;
  }
}

/* --- Seitenrahmen -------------------------------------------------------- */

.page-wrapper {
  background-color: #fdf7fb;
}
body:not(.sandbox) .page-wrapper {
  background-image:
    radial-gradient(900px 420px at 100% 0, rgba(164, 85, 245, .20), transparent 70%),
    radial-gradient(700px 380px at 0 100%, rgba(230, 16, 127, .10), transparent 70%);
  background-attachment: fixed;
}
.page-breadcrumb {
  background-color: transparent;
  border-bottom: 0 !important;
  padding: 18px 0 2px;
}
.page-breadcrumb h5 {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--st-navy);
}
.sandbox .page-breadcrumb {
  background-color: rgba(255, 255, 255, .78);
  padding: 12px 0;
}
.page-breadcrumb .breadcrumb a {
  color: var(--st-slate);
}
.page-breadcrumb .breadcrumb .active,
.page-breadcrumb .breadcrumb-item:last-child a {
  color: var(--st-pink);
}
.footer {
  background: transparent;
  color: var(--st-slate);
}
.sandbox .footer {
  background: #fff;
}

.white-box {
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 20px;
}
.raised, .shadow {
  box-shadow: var(--st-shadow) !important;
}
#main-content > h1,
.page-content h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* --- Buttons & Formulare ------------------------------------------------- */

.btn {
  border-radius: 999px;
}
.btn-primary {
  color: #fff;
  font-weight: 600;
  background-color: var(--st-pink);
  border-color: var(--st-pink);
  box-shadow: 0 8px 18px -10px rgba(230, 16, 127, .9);
  transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--st-navy) !important;
  border-color: var(--st-navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -10px rgba(36, 26, 58, .9);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-outline-primary {
  color: var(--st-pink);
  border-color: var(--st-pink);
  background: #fff;
  font-weight: 600;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--st-pink) !important;
  border-color: var(--st-pink) !important;
  color: #fff !important;
}
.form-control:focus {
  border-color: var(--st-pink);
  box-shadow: 0 0 0 4px rgba(230, 16, 127, .12);
}
.form-check-input:checked {
  background-color: var(--st-pink);
  border-color: var(--st-pink);
}
.form-check-input:focus {
  border-color: var(--st-pink);
  box-shadow: 0 0 0 4px rgba(230, 16, 127, .12);
}
#toTop {
  box-shadow: 0 10px 24px -8px rgba(230, 16, 127, .8) !important;
}

/* --- Unterkategorien (Chips) --------------------------------------------- */

.submenu-item .card,
#main-content > .row.g-2 > [class*="col-"] > .card.raised {
  border-radius: 999px !important;
  border: 2px solid var(--st-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .15s, background .15s, transform .15s;
}
#main-content > .row.g-2 > [class*="col-"] > .card.raised:hover {
  border-color: var(--st-pink) !important;
  background: var(--st-pink-soft) !important;
  transform: translateY(-1px);
}
#main-content > .row.g-2 > [class*="col-"] > .card.raised > a {
  font-weight: 600;
  text-align: center;
  color: var(--st-navy) !important;
}

/* --- Produktkarten ------------------------------------------------------- */

.product {
  border-radius: var(--st-radius);
  overflow: hidden;
  border: 1px solid var(--st-pink);
  box-shadow: var(--st-shadow) !important;
  transition: box-shadow .2s ease, border-color .2s ease;
}
/* Aufbau: Bild, direkt darunter Titel und Angaben; der freie Platz liegt vor dem Preisblock,
   damit Preis, Mengenwahl und Button in einer Reihe auf gleicher Hoehe stehen */
.product {
  flex-flow: column nowrap;
  align-content: normal;
}
.product > .w-100[style*="aspect-ratio"] {
  flex: 0 0 auto;
}
.product > .p-3 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product .productform {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product .productform > .product-meta {
  margin-bottom: 12px;
}
.product .productform > .row.narrow {
  margin-top: auto !important;
}

/* Hover: Rahmen wirkt doppelt so stark (Ring per Schatten, damit nichts verrutscht) */
.product:hover {
  border-color: var(--st-pink-dark);
  box-shadow: 0 0 0 1px var(--st-pink-dark), var(--st-shadow-hover) !important;
}
.product > .w-100[style*="aspect-ratio"] {
  position: relative;
  transition: transform .3s ease;
}
.product:hover > .w-100[style*="aspect-ratio"] {
  transform: scale(1.04);
}
.product .label_neu,
.product .label_sale {
  top: 0;
  left: 0;
  width: 46%;
}
.product .title {
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--st-navy);
  margin-bottom: .6rem;
}
/* Titel in der kompakten Ansicht auf zwei Zeilen, damit Preis und Buttons auf einer Hoehe liegen */
.item-wrapper:not(.show-details) .product .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* Preisstaffel als Chips */
.price-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 2px;
}
.price-tier {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: #f7f9fa;
  color: var(--st-slate);
  font-size: .74rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.price-tier strong {
  color: var(--st-navy);
  font-weight: 700;
}
.price-tier.active {
  background: var(--st-pink-soft);
  border-color: var(--st-pink);
  color: var(--st-pink-dark);
}
.price-tier.active strong {
  color: var(--st-pink-dark);
}

/* Knapper Bestand: volle Breite, kraeftige Signalfarbe */
.low-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #e8590c;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 6px 14px -8px rgba(232, 89, 12, .9);
}
.low-stock i {
  font-size: 1.1rem;
  line-height: 1;
}

/* Werkzeugleiste ueber der Produktliste: Detail-Schalter + Live-Filter */
.product-toolbar {
  gap: 10px 20px;
}
.product-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--st-line);
  border-radius: 999px;
  padding: 5px 14px;
  flex: 0 1 380px;
  min-width: 220px;
  transition: border-color .2s, box-shadow .2s;
}
.product-filter:focus-within {
  border-color: var(--st-pink);
  box-shadow: 0 0 0 4px rgba(230, 16, 127, .12);
}
.product-filter i {
  font-size: 20px;
  color: var(--st-slate);
}
.product-filter input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--st-navy);
}
.product-filter-count {
  color: var(--st-slate);
  font-size: .8rem;
  white-space: nowrap;
}
.sandbox .product-toolbar .form-switch {
  background: rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 6px 14px 6px 3.2em;
}

.product .product-price {
  color: var(--st-pink);
  font-size: 1.3rem;
  font-weight: 800;
}
.product s.text-danger {
  color: var(--st-slate) !important;
  font-size: .85rem;
}
.product .product-details .bg-light {
  background: var(--st-violet-soft) !important;
  border: 0 !important;
  border-radius: var(--st-radius-sm);
  box-shadow: none !important;
  font-size: .78rem;
  color: var(--st-slate);
}
.product .product-details .bg-light.border-dark {
  background: var(--st-pink-soft) !important;
}
.product .product-details .bg-light h3,
.product .product-details .bg-light h4 {
  font-size: 1rem;
}
.product .product-details .bg-light .product-price {
  font-size: 1.25rem;
}

/* Mengenwahl */
.product .bootstrap-touchspin {
  background: #f4f6f8;
  border-radius: 999px;
  padding: 3px;
  flex-wrap: nowrap;
}
.product .bootstrap-touchspin .vertical-spin,
.product .bootstrap-touchspin .form-control-sm {
  border: 0 !important;
  background: transparent;
  font-weight: 700;
  color: var(--st-navy);
  min-width: 0;
  flex: 1 1 auto;
  width: 1%;
}
.product .bootstrap-touchspin .vertical-spin:focus {
  outline: 0;
  box-shadow: none;
}
.product .bootstrap-touchspin .btn {
  border-radius: 50% !important;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--st-line);
  color: var(--st-navy);
  box-shadow: none;
  font-size: 1rem;
}
.product .bootstrap-touchspin .btn:hover {
  background: var(--st-violet) !important;
  border-color: var(--st-violet) !important;
  color: var(--st-navy) !important;
}
.product .add-to-cart {
  padding: .5rem .75rem;
  font-size: .9rem;
}
.product .cart-message {
  border-radius: var(--st-radius-sm);
  background: var(--st-navy);
  color: #fff;
  border: 0;
}
.content-items > .row > .col-12 > h3 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.content-items > .row > .col-12 > h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--st-pink);
  margin-top: 6px;
}

/* --- Startseite ---------------------------------------------------------- */

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--st-violet);
  padding: 44px 48px;
  margin-bottom: 28px;
  box-shadow: var(--st-shadow);
  display: flex;
  align-items: center;
  min-height: 300px;
}
.home-hero-text {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
}
.home-hero-eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--st-pink);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.home-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--st-navy);
  margin: 0 0 14px;
}
.home-hero h1 em {
  color: #fff;
  font-style: italic;
  text-shadow: 0 2px 0 rgba(36, 26, 58, .12);
}
.home-hero p {
  color: var(--st-navy);
  font-size: 1.02rem;
  margin-bottom: 20px;
  max-width: 520px;
}
.home-hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 520px;
  box-shadow: 0 12px 28px -16px rgba(36, 26, 58, .5);
  margin-bottom: 16px;
}
.home-hero-search i {
  font-size: 22px;
  color: var(--st-slate);
}
.home-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--st-navy);
}
.home-hero-search .btn {
  padding: .55rem 1.3rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-hero-actions .btn {
  padding: .55rem 1.2rem;
}
.home-hero-actions .btn-outline-primary {
  border-color: #fff;
  color: var(--st-navy);
}
.home-hero-actions .btn-outline-primary i {
  color: var(--st-pink);
}
.home-hero-actions .btn-outline-primary:hover i {
  color: #fff;
}
.home-hero-swirl {
  position: absolute;
  z-index: 1;
  right: -90px;
  top: 50%;
  width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: url('../../images/product-bg.webp') center / cover no-repeat;
  border: 10px solid #fff;
  box-shadow: 0 30px 60px -30px rgba(36, 26, 58, .55);
  transform: translateY(-50%) rotate(-12deg);
  animation: st-swirl 60s linear infinite;
}
@keyframes st-swirl {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-swirl { animation: none; }
  .product, .product > .w-100[style*="aspect-ratio"], .category-tile { transition: none; }
}

.home-section {
  margin-bottom: 30px;
}
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.home-section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}
.home-section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--st-pink);
  margin-top: 6px;
}
#main-content .home-section-more {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sandbox .home-section-head {
  background: rgba(255, 255, 255, .85);
  border-radius: var(--st-radius-sm);
  padding: 10px 14px;
}

/* News als Karten ueber die volle Breite (Markup kommt aus dem Blog-Block) */
.home-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.home-news .blog_entry {
  background: #fff;
  border: 1px solid var(--st-pink);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-news .blog_entry:hover {
  transform: translateY(-3px);
  border-color: var(--st-pink-dark);
  box-shadow: 0 0 0 1px var(--st-pink-dark), var(--st-shadow-hover);
}
.home-news .blog_entry {
  padding: 0 !important;
  margin: 0 !important;
}
.home-news .blog_entry > .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
  display: block;
}
.home-news .blog_entry > .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.home-news .blog_entry .thumbnail {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--st-pink-soft);
}
.home-news .blog_entry .thumbnail img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.home-news .blog_entry .blog_main {
  padding: 16px 18px 14px !important;
}
.home-news .blog_entry h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.home-news .blog_entry h3 a {
  color: var(--st-navy);
}
.home-news .blog_entry h3 a:hover {
  color: var(--st-pink);
}
.home-news .blog_author {
  color: var(--st-slate);
  font-size: .8rem;
  margin-bottom: 8px;
}
.home-news .blog_text {
  font-size: .9rem;
  margin-bottom: 12px;
  line-height: 1.5 !important;
  max-height: 6em;
  padding: 0 !important;
  box-sizing: content-box;
  overflow: hidden;
}
.home-news .blog_text * {
  line-height: inherit !important;
  font-size: inherit !important;
}
.home-news .blog_text p {
  margin: 0;
}
.home-news .blog_main > br {
  display: none;
}
.home-news .btn-group-xs {
  margin-top: 12px;
}
.home-news .clearfix {
  display: none;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
#main-content .category-tile {
  text-decoration: none;
}
.category-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--st-pink);
  border-radius: var(--st-radius);
  padding: 12px 14px;
  color: var(--st-navy);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: var(--st-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-tile:hover {
  color: var(--st-navy);
  transform: translateY(-3px);
  border-color: var(--st-pink-dark);
  box-shadow: 0 0 0 1px var(--st-pink-dark), var(--st-shadow-hover);
}
.category-tile-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--st-pink-soft);
  color: var(--st-pink);
  transition: background .2s, color .2s;
}
.category-tile:nth-child(even) .category-tile-icon {
  background: var(--st-violet-soft);
  color: var(--st-violet-dark);
}
.category-tile:hover .category-tile-icon {
  background: var(--st-pink);
  color: #fff;
}
.category-tile-name {
  flex: 1 1 auto;
  min-width: 0;
}
.category-tile-arrow {
  color: var(--st-slate);
  opacity: .5;
  font-size: 20px;
  transition: transform .2s, opacity .2s, color .2s;
}
.category-tile:hover .category-tile-arrow {
  opacity: 1;
  color: var(--st-pink);
  transform: translateX(3px);
}

/* Teaser-Reihen: bei 4 Spalten nur eine volle Reihe zeigen */
@media (min-width: 992px) and (max-width: 1599px) {
  .home-section .content-items .item-wrapper:nth-child(n+5) {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .home-hero-swirl {
    width: 360px;
    right: -150px;
    opacity: .9;
  }
}
@media (max-width: 767px) {
  .home-hero {
    padding: 26px 20px;
    border-radius: 20px;
    min-height: 0;
  }
  .home-hero-swirl {
    width: 240px;
    right: -120px;
    top: 0;
    opacity: .55;
  }
  .home-hero-search .btn {
    padding: .5rem .9rem;
  }
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .category-tile {
    padding: 10px;
    gap: 8px;
    font-size: .88rem;
  }
  .category-tile-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 12px;
  }
  .category-tile-arrow {
    display: none;
  }
  .page-breadcrumb h5 {
    font-size: 1.2rem;
  }
}

/* --- Umschalter Karten / Liste ------------------------------------------- */

.product-view-switch {
  cursor: pointer; /* wirkt wie ein Schalter: jeder Klick darauf wechselt die Ansicht (shop.js) */
  background: #fff;
  border: 2px solid var(--st-line);
  border-radius: 999px;
  padding: 2px;
  margin-left: auto;
}
.product-view-switch .btn {
  border: 0;
  border-radius: 999px !important;
  color: var(--st-slate);
  font-weight: 600;
  padding: .3rem .8rem;
}
.product-view-switch .btn:hover {
  color: var(--st-navy);
}
.product-view-switch .btn.active {
  background: var(--st-pink);
  color: #fff;
}

/* --- Produktliste (Tabelle) fuer Vielbesteller ---------------------------- */

.product-list-wrap {
  /* liegt als einziges Kind in der Bootstrap-Zeile: Breite und Abstand wie eine volle Spalte */
  flex: 0 0 auto;
  width: calc(100% - var(--bs-gutter-x));
  margin: var(--bs-gutter-y) auto 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--st-pink);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  overflow-x: auto;
}
.product-list {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  color: var(--st-navy);
}
.product-list thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--st-violet-soft);
  color: var(--st-slate);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  vertical-align: bottom;
  padding: 10px 7px;
  border-bottom: 1px solid var(--st-line);
}
.product-list td {
  padding: 6px 7px;
  vertical-align: middle;
  border-top: 1px solid var(--st-line);
  background: #fff;
}
.product-list .list-item:first-of-type td {
  border-top: 0;
}
.product-list .list-item:nth-of-type(even) td {
  background: #fcfdfd;
}
.product-list .list-item:hover td {
  background: var(--st-pink-soft);
}

.product-list .pl-img {
  width: 64px;
  padding-right: 0;
}
.product-list .pl-img img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
/* Der Produktname bekommt den freien Platz, alle anderen Spalten sind so breit wie ihr Inhalt */
.product-list .pl-name {
  min-width: 170px;
  width: 100%;
}
.product-list td:first-child,
.product-list th:first-child {
  padding-left: 12px;
}
.product-list td:last-child,
.product-list th:last-child {
  padding-right: 12px;
}
/* Die Zusatzspalten duerfen im Kopf umbrechen, damit sie schmal bleiben */
.product-list thead th.pl-num {
  white-space: normal;
  line-height: 1.2;
  vertical-align: bottom;
}
.product-list .pl-name .title {
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.product-list .list-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.product-list .list-badge,
.product-list .low-stock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: none;
}
.product-list .low-stock i {
  font-size: .85rem;
}
.product-list .list-badge-new {
  background: var(--st-pink);
  color: #fff;
}
.product-list .list-badge-sale {
  background: var(--st-navy);
  color: #fff;
}
.product-list .list-badge-label {
  background: var(--st-violet-soft);
  color: var(--st-violet-dark);
}
.product-list .list-sub {
  color: var(--st-slate);
  font-size: .76rem;
  line-height: 1.4;
}
.product-list .list-sub span + span::before {
  content: " · ";
}
.product-list .pl-inhalt,
.product-list .pl-mhd {
  white-space: nowrap;
}
.product-list .pl-price,
.product-list .pl-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.product-list .pl-price .product-price {
  color: var(--st-pink);
  font-size: 1.02rem;
  font-weight: 700;
}
.product-list .pl-price s {
  color: var(--st-slate) !important;
  font-size: .78rem;
}
/* Staffelpreise in der Liste: schlichte Zeilen untereinander, die gueltige Stufe fett */
.product-list .pl-tiers {
  white-space: nowrap;
}
.product-list .pl-tiers .price-tiers {
  display: block;
  margin: 0;
}
.product-list .pl-tiers .price-tier {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--st-slate);
  font-size: .8rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.product-list .pl-tiers .price-tier strong {
  font-weight: 400;
  color: var(--st-slate);
}
.product-list .pl-tiers .price-tier.active,
.product-list .pl-tiers .price-tier.active strong {
  background: transparent;
  color: var(--st-navy);
  font-weight: 700;
}

/* Spalten ohne Inhalt auf der aktuellen Seite (setzt der Block cms/produktliste) */
.product-list.no-mhd .pl-mhd,
.product-list.no-tiers .pl-tiers {
  display: none;
}

/* Mengenwahl bleibt am rechten Rand stehen, auch wenn die Tabelle breiter als der Bildschirm ist */
.product-list .pl-cart {
  width: 1%;
  white-space: nowrap;
  position: sticky;
  right: 0;
  z-index: 1;
  box-shadow: -8px 0 8px -8px rgba(36, 26, 58, .18);
}
.product-list thead .pl-cart {
  z-index: 3;
}
/* Die Warenkorb-Meldung haengt in der fixierten Zelle und ragt in die naechste Zeile:
   solange sie sichtbar ist, liegt ihre Zelle ueber den Zellen der Folgezeilen */
.product-list tbody .pl-cart:has(.cart-message:not([style*="display:none"]):not([style*="display: none"])) {
  z-index: 2;
}
.product-list .productform {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-list .bootstrap-touchspin {
  background: #f4f6f8;
  border-radius: 999px;
  padding: 2px;
  flex-wrap: nowrap;
  width: 118px;
}
.product-list .bootstrap-touchspin .vertical-spin {
  border: 0 !important;
  background: transparent;
  font-weight: 700;
  color: var(--st-navy);
  text-align: center;
  min-width: 0;
  width: 1%;
  flex: 1 1 auto;
  padding: 0;
}
.product-list .bootstrap-touchspin .vertical-spin:focus {
  outline: 0;
}
.product-list .bootstrap-touchspin .btn {
  border-radius: 50% !important;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--st-line);
  color: var(--st-navy);
  box-shadow: none;
}
.product-list .bootstrap-touchspin .btn:hover {
  background: var(--st-violet) !important;
  border-color: var(--st-violet) !important;
  color: var(--st-navy) !important;
}
.product-list .add-to-cart {
  width: 38px;
  height: 34px;
  padding: 0;
  font-size: 1.1rem;
}
.product-list .cart-message {
  position: absolute;
  right: 10px;
  top: 100%;
  z-index: 3;
  margin-top: -4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--st-navy);
  color: #fff;
  border: 0;
  font-size: .78rem;
  white-space: nowrap;
}
.product-list .list-group-head th {
  padding: 16px 10px 8px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: left;
  background: #fff;
  border-top: 2px solid var(--st-pink);
}
.product-list .list-free td {
  padding: 12px;
}


/* Der Umschalter ist nur am grossen Bildschirm sinnvoll. Auf kleineren Geraeten bleibt er
   nur sichtbar, solange die Liste aktiv ist - sonst kaeme man nicht zurueck zu den Karten. */
@media (max-width: 991px) {
  .product-view-switch:not(:has([data-view="list"].active)) {
    display: none;
  }
}
@media (max-width: 767px) {
  .product-list .pl-inhalt,
  .product-list .pl-mhd,
  .product-list .pl-tiers,
  .product-list .pl-num {
    display: none !important;
  }
  .product-list .pl-name {
    min-width: 140px;
  }
  .product-list .pl-img {
    width: 48px;
  }
  .product-list .pl-img img {
    width: 40px;
    height: 40px;
  }
  .product-list .bootstrap-touchspin {
    width: 96px;
  }
  .product-list .pl-cart {
    position: static;
    box-shadow: none;
  }
  .product-list .pl-price .list-sub {
    display: none;
  }
  .product-view-switch .btn {
    font-size: 0;
    padding: .3rem .6rem;
  }
  .product-view-switch .btn i {
    font-size: 1.1rem;
  }
}

/* Kachel-Details ohne UVP: leere Wertfelder behalten ihre Hoehe */
.product .product-details h4 strong:empty::before {
  content: "\00a0";
}

/* Kacheln am Handy: Bild flacher (2/3 der Breite), Menge und Warenkorb-Button nebeneinander */
@media (max-width: 575px) {
  .product > .w-100[style*="aspect-ratio"] {
    aspect-ratio: 3 / 2 !important;
  }
  /* gleiche Hoehe wie das Mengenfeld (36px) */
  .product .add-to-cart {
    height: 36px;
    min-height: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
  }
}

/* Die farbige Linie der Kopfzeile laeuft auch ueber den Logo-Bereich */
.topbar .top-navbar .navbar-header {
  box-shadow: inset 0 4px 0 var(--st-pink);
}

/* Listenansicht am Handy: Streichpreis ueber dem Preis, Mengenfeld ueber dem Warenkorb-Button,
   damit die Tabelle ohne Querscrollen passt. Der Umschalter Karten/Liste bleibt sichtbar. */
@media (max-width: 991px) {
  .product-view-switch:not(:has([data-view="list"].active)) {
    display: inline-flex;
  }
}
@media (max-width: 767px) {
  /* Am Handy sitzt der Umschalter in der Kopfzeile links neben dem Warenkorb (Block topnavi);
     der Umschalter der Werkzeugleiste ist dort per d-none ausgeblendet */
  /* wirkt wie ein Schalter: ein Tipp irgendwo darauf wechselt die Ansicht (shop.js) */
  .nav-view-switch {
    align-items: center;
    cursor: pointer;
  }
  /* Beschriftung "Ansicht" sitzt im Schalter, als kleine Zeile ueber den beiden Symbolen */
  .nav-view-switch .product-view-switch {
    margin: 0 2px 0 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    /* so hoch wie der Warenkorb-Button daneben */
    height: 44px;
    border-radius: 999px;
    padding: 3px 5px 2px;
    line-height: 1;
  }
  .nav-view-label {
    text-align: center;
    font-size: .56rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--st-slate);
    margin-bottom: 1px;
  }
  .nav-view-switch .product-view-switch .btn-group {
    margin: 0;
  }
  .nav-view-switch .product-view-switch .btn {
    flex: 0 0 auto;
    height: 24px;
    padding: 0 .32rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
  .nav-view-switch .product-view-switch .btn i {
    font-size: 1rem;
    line-height: 1;
  }
  .product-view-switch .btn {
    padding: .2rem .45rem;
  }
  .product-list th,
  .product-list td {
    padding-left: 6px;
    padding-right: 6px;
  }
  .product-list .pl-img {
    width: 44px;
    padding-left: 6px;
  }
  .product-list .pl-img img {
    width: 36px;
    height: 36px;
  }
  .product-list .pl-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .product-list .pl-name .title {
    font-size: .88rem;
  }
  .product-list .pl-name .list-sub {
    display: none;
  }
  .product-list .list-badges {
    margin-left: 0;
  }
  .product-list .list-badge,
  .product-list .low-stock {
    padding: 1px 6px;
    font-size: .66rem;
  }
  .product-list .low-stock i {
    display: none;
  }
  .product-list .pl-price s {
    display: block;
    line-height: 1.1;
  }
  .product-list .pl-price .product-price {
    font-size: .95rem;
  }
  .product-list td.pl-cart,
  .product-list th.pl-cart {
    padding-right: 8px;
  }
  .product-list thead th.pl-price,
  .product-list thead th.pl-cart {
    white-space: normal;
    line-height: 1.2;
  }
  .product-list .productform {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .product-list .bootstrap-touchspin {
    width: 84px;
  }
  .product-list .add-to-cart {
    width: 100%;
    height: 30px;
  }
  .product-list .cart-message {
    white-space: normal;
    max-width: 220px;
  }
}
/* Sehr schmale Geraete: in der Kopfzeile ist kein Platz, der Umschalter bleibt in der Werkzeugleiste */
@media (max-width: 359px) {
  .topbar .nav-view-switch {
    display: none !important;
  }
  .product-toolbar .product-view-switch {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   Snacktopia
   ========================================================================== */

/* Hero der Startseite: Verlauf in den Logofarben mit weisser Schrift */
.home-hero {
  background: linear-gradient(115deg, var(--st-violet-dark) 0%, var(--st-violet) 45%, var(--st-pink) 100%);
}
.home-hero h1,
.home-hero p {
  color: #fff;
}
.home-hero h1 em {
  color: #ffe45c;
  text-shadow: none;
}
.home-hero-actions .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--st-pink) !important;
}
.home-hero-actions .btn-outline-primary,
.home-hero-actions .btn-outline-primary i {
  color: #fff;
}
.home-hero-actions .btn-outline-primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--st-pink) !important;
}
.home-hero-actions .btn-outline-primary:hover i {
  color: var(--st-pink);
}

/* Kreis im Hero und im Logo-Bereich: Lutscher-Streifen statt Bild */
.home-hero-swirl,
.topbar .top-navbar .navbar-header::before {
  background: repeating-conic-gradient(from 0deg, #fff 0 22.5deg, var(--st-pink) 22.5deg 45deg);
}
.home-hero-swirl {
  border-color: rgba(255, 255, 255, .9);
}

/* Produktkarten: Text linksbuendig (bvf.css zentriert) */
.product {
  text-align: left;
}

/* Hinweis-Banner unter der Kopfzeile (Inline-CMS "banner") */
.page-wrapper > div[style*="#ecd1fb"] {
  background: var(--st-violet-soft) !important;
  color: var(--st-navy);
  font-weight: 600;
}
.page-wrapper > div[style*="#ecd1fb"] p:last-child {
  margin-bottom: 0;
}

/* Handy: weniger Rand links und rechts neben den Produktboxen */
@media (max-width: 767px) {
  #main-content {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* --- Erneut bestellen: Sortierung ----------------------------------------- */
.product-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-sort-label {
  color: var(--st-slate);
  font-size: .85rem;
}
.product-sort .btn-group {
  background: #fff;
  border: 2px solid var(--st-line);
  border-radius: 999px;
  padding: 2px;
}
.product-sort .btn {
  border: 0;
  border-radius: 999px !important;
  color: var(--st-slate);
  font-weight: 600;
  padding: .3rem .8rem;
}
.product-sort .btn:hover {
  color: var(--st-navy);
}
.product-sort .btn.active {
  background: var(--st-pink);
  color: #fff;
}
@media (max-width: 575px) {
  .product-sort-label {
    display: none;
  }
  .product-sort .btn {
    padding: .3rem .6rem;
    font-size: .8rem;
  }
}

/* --- Erneut bestellen: Teaser (Startseite, Kategorien) -------------------- */
/* Nur eine Reihe: so viele Karten, wie nebeneinander passen (kompakt bzw. mit allen Details).
   Aufgeklappt (.reorder-open, Schalter "Alle anzeigen" in den Kategorien) sind alle Karten sichtbar. */
@media (max-width: 767px) {
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper:nth-child(n+3),
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper.show-details:nth-child(n+2) {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper:nth-child(n+4),
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper.show-details:nth-child(n+3) {
    display: none !important;
  }
}
@media (min-width: 992px) and (max-width: 1599px) {
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper.show-details:nth-child(n+4) {
    display: none !important;
  }
}
@media (min-width: 1600px) {
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper:nth-child(n+7),
  .reorder-teaser:not(.reorder-open) .content-items .item-wrapper.show-details:nth-child(n+5) {
    display: none !important;
  }
}
/* In den Kategorien endet der Teaser mit der Zwischenueberschrift "Alle Produkte" fuer die Liste darunter */
.product-toolbar ~ .reorder-teaser {
  margin-bottom: 14px;
}
.reorder-all-head {
  margin: 30px 0 0;
}
.home-section.reorder-teaser.reorder-open .content-items .item-wrapper {
  display: flex !important;
}

/* Teaser in den Kategorien: Schalter "Alle anzeigen" als Button */
.reorder-toggle {
  white-space: nowrap;
}

/* --- Erneut bestellen: Produkte ohne Bestand ("derzeit nicht verfuegbar") --- */
.product-soldout .input-group,
.product-soldout .add-to-cart,
.product-soldout .productform .bootstrap-touchspin {
  display: none !important;
}
.product-soldout > .w-100[style*="aspect-ratio"],
.product-soldout .pl-img img {
  filter: grayscale(1);
  opacity: .55;
}
.product-soldout .title,
.product-soldout .product-meta,
.product-soldout .product-price,
.product-soldout .pl-inhalt,
.product-soldout .pl-mhd,
.product-soldout .pl-num,
.product-soldout .pl-tiers {
  color: var(--st-slate) !important;
  opacity: .7;
}
/* Hinweis an der Stelle von Mengenfeld und Warenkorb-Button */
.sold-out-info {
  margin-top: .5rem;
  text-align: center;
  color: var(--st-slate);
  font-size: .86rem;
  font-weight: 700;
}
.sold-out-info i {
  font-size: 1.1rem;
  vertical-align: -2px;
}
.product-list .sold-out-info {
  margin: 0;
  white-space: nowrap;
}
