/*
Theme Name: L6 Theme (Twenty Twenty-Five)
Theme URI: https://deinregal.de
Author: Dein Regal
Author URI: https://deinregal.de
Description: Child-Theme von Twenty Twenty-Five: bringt das L6-Design (Weiß/Schwarz, Inter, Ghost-Buttons, 4-Spalten-Produktgrid) auf eine volle Block-Theme-Grundlage, damit Bestellbestätigung, Mein Konto und weitere Inhaltsseiten im Block-Editor bearbeitbar werden. Fachlich identisch zu "L6 Theme" (klassisch) — siehe dessen CHANGELOG.md für die Versionshistorie der Design-Entscheidungen.
Version: 1.3.25
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: l6-theme-twentyfive
Tags: woocommerce, minimal, white, shop, custom-logo, custom-menu, featured-images, threaded-comments, full-site-editing, block-patterns

Parallel-Theme zur klassischen "L6 Theme" — für den Rücksprung auf den
bisherigen Stand einfach wieder "L6 Theme" aktivieren, dieses Theme bleibt
unabhängig installiert.
*/


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FFFFFF;
  --text: #000000;
  --text-light: rgba(0,0,0,0.5);
  --border: rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1400px;
  --gap: 24px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}

h1 { font-size: 3.75rem; }   /* 60px */
h2 { font-size: 3rem; }      /* 48px */
h3 { font-size: 2.25rem; }   /* 36px */
h4 { font-size: 2rem; }      /* 32px */
h5 { font-size: 1.5rem; }    /* 24px */
h6 { font-size: 1.125rem; }  /* 18px */

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.site-header--transparent {
  position: fixed;
  width: 100%;
  background: transparent;
  border-bottom: none;
  color: #fff;
}

.site-header--transparent a {
  color: #fff;
}

.site-header--scrolled {
  position: fixed;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.site-header--scrolled a {
  color: var(--text);
}

.site-header--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 40px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
}

.site-logo a {
  text-decoration: none;
}

.site-logo a:hover {
  opacity: 1;
}

/* Fallback path only: applies when l6_render_logo() (functions.php)
   falls back to WordPress's own the_custom_logo() — i.e. whenever the
   active logo is NOT the current "Leitner_6" file (scoped to
   img.custom-logo, the class WP itself adds, so it never touches the
   two-layer stack below).
   Colour switch is tied to the two actual header states (same classes
   that already flip the nav-link colour below), not to per-pixel blend
   math: previously this used filter:invert(1) + mix-blend-mode:difference
   to react live to whatever sits behind the logo — but the transparent
   header only ever sits over the busy, non-uniform front-page hero photo,
   and a difference blend against a detailed image produces a noisy,
   unpredictable colour per pixel instead of a clean white (that's what
   showed up live as a discoloured, seemingly displaced accent). The header
   only ever has two real states — transparent-over-hero (nav text #fff)
   or solid var(--bg)/var(--text) — so the logo now just swaps between two
   fixed, backdrop-independent looks to match, exactly like the nav text
   already does two rules below. */
.site-logo img.custom-logo {
  max-height: var(--l6-logo-height, 40px);
  width: auto;
  transform: translate(var(--l6-logo-offset-x, 0px), var(--l6-logo-offset-y, 0px));
}

.site-header--transparent .site-logo img.custom-logo {
  /* brightness(0) flattens every opaque pixel to pure black regardless of
     source tone, invert(1) then turns that into pure white — independent
     of whatever image is behind the header. */
  filter: brightness(0) invert(1);
}

/* Two-layer logo (current "Leitner_6" file, see l6_render_logo() in
   functions.php): the black wordmark swaps to white only on the
   transparent hero header (same brightness(0)+invert(1) as the fallback
   above); the red underscore never gets any filter, so it always shows
   the original red — regardless of header state. Both layers share one
   grid cell so they land perfectly on top of each other. */
.site-logo__stack {
  display: inline-grid;
}

.site-logo__layer {
  grid-area: 1 / 1;
  max-height: var(--l6-logo-height, 40px);
  width: auto;
  transform: translate(var(--l6-logo-offset-x, 0px), var(--l6-logo-offset-y, 0px));
}

.site-header--transparent .site-logo__layer--main {
  filter: brightness(0) invert(1);
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav__list,
.primary-nav > ul {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list li,
.primary-nav > ul > li {
  display: inline-block;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  font-weight: 400;
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 0;
  min-width: 200px;
  z-index: 101;
}

.primary-nav li {
  position: relative;
}

.primary-nav li:hover > .sub-menu {
  display: block;
}

.primary-nav .sub-menu a {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: var(--text);
}

/* Header Icons */
.header__icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: inherit;
  position: relative;
  transition: opacity 0.2s;
}

.header__icon:hover {
  opacity: 0.6;
}

/* Hide search icon globally */
.header__icon--search {
  display: none;
}

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header--transparent .header__cart-count {
  background: #fff;
  color: #000;
}

/* Mobile Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.header__hamburger span {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 200;
  padding: 80px 40px 40px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

.mobile-menu__nav {
  padding: 40px 30px;
}

.mobile-menu__nav ul,
.mobile-menu__nav .mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__nav li {
  display: block;
}

.mobile-menu__nav a {
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
  display: block;
}

.mobile-menu__nav .sub-menu {
  padding-left: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__nav .sub-menu a {
  font-size: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-ghost {
  display: inline-block;
  padding: 8px 40px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.6;
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  opacity: 1;
}

.btn-ghost--light {
  color: #fff;
  border-color: #fff;
}

.btn-ghost--light:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback gradient when no image */
.hero__bg--placeholder {
  background: linear-gradient(135deg, #3D1F1F 0%, #5C2E20 30%, #7A4535 60%, #4A2828 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  color: #fff;
}

.hero__title {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 4px;
  line-height: 1.4;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
}

.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.hero__dot--active {
  background: #fff;
}

/* ============================================
   MEDIA + TEXT SECTIONS
   ============================================ */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.media-text--reverse .media-text__media {
  order: 2;
}

.media-text--reverse .media-text__content {
  order: 1;
}

.media-text__media {
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-text__media--placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.media-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
}

.media-text__title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.media-text__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
  text-align: justify;
}

/* ============================================
   PRODUCT CAROUSEL / FEATURED PRODUCTS
   ============================================ */
.product-carousel {
  padding: 80px 0;
}

.product-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  margin-bottom: 32px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.product-carousel__title {
  font-size: 28px;
  font-weight: 400;
}

.product-carousel__arrows {
  display: flex;
  gap: 12px;
}

.product-carousel__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-carousel__arrow:hover {
  border-color: #000;
}

.product-carousel__grid {
  display: flex;
  gap: 24px;
  padding: 0 40px;
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-carousel__grid::-webkit-scrollbar {
  display: none;
}

/* ============================================
   PRODUCT CARDS (WooCommerce)
   ============================================ */
.product-card,
.woocommerce ul.products li.product {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
  background: var(--bg);
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.product-card__image,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #F5F5F5;
  margin-bottom: 12px;
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  /* No margin-bottom here: the gap to .product-card__info below comes
     solely from that element's own padding-top (assets/css/woocommerce.css)
     — having both contribute (12px each) was stacking to 24px total
     instead of the intended 12px. */
  margin-bottom: 0;
}

.product-card__image-wrapper .product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.product-card__image-wrapper .product-card__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* v1.3.9: only on devices that genuinely support hover with a precise
   pointer (mouse/trackpad) — touchscreens fake a momentary :hover state on
   tap, which made this image-swap flash right before the tap's own
   navigation to the product page fired. */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__image,
  .woocommerce ul.products li.product:hover .product-card__image {
    transform: scale(1.03);
  }

  .product-card:hover .product-card__image--hover,
  .woocommerce ul.products li.product:hover .product-card__image--hover {
    opacity: 1;
  }
}

.product-card__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.6px;
  text-transform: none;
}

.product-card__price,
.woocommerce ul.products li.product .price {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
}

.woocommerce ul.products li.product .price del {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 300;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  font-weight: 300;
}

/* Sale Badge */
.woocommerce span.onsale {
  background-color: #000;
  color: #fff;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* Hide default add-to-cart on archive pages */
.woocommerce ul.products li.product .button {
  display: none;
}

/* Star ratings (hide on shop page) */
.woocommerce ul.products li.product .star-rating {
  display: none;
}

/* ============================================
   SHOP PAGE
   ============================================ */
.shop-page {
  /* No top padding: the category filter row supplies its own top
     spacing (.container > .shop-category-filter, below) so the gap to
     the header matches the single-product page exactly, which uses the
     same filter/spacing rule. */
  padding: 0 0 80px;
}

.shop-page__title,
.woocommerce-products-header__title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  padding: 0;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}

.woocommerce-page .woocommerce .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}

/* Result count & ordering */
.woocommerce .woocommerce-result-count {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  background: transparent;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 80px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

.product-gallery__thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb--active,
.product-gallery__thumb:hover {
  border-color: #000;
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  background: #F5F5F5;
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  padding-top: 20px;
}

/* Mobile-only breadcrumb (see l6_render_mobile_product_breadcrumb()) —
   hidden on desktop, where .shop-category-filter above the gallery
   already shows the full category list; shown ≤768px below, where that
   list is hidden for space (woocommerce.css). */
.product-mobile-breadcrumb {
  display: none;
}

.woocommerce div.product .product_title {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.woocommerce div.product .woocommerce-product-rating {
  margin-bottom: 16px;
}

.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link {
  font-size: 14px;
  color: var(--text-light);
}

.woocommerce div.product p.price {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text);
}

/* Variant Buttons */
.product-variants__label,
.woocommerce div.product form.cart .variations label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 10px;
  display: block;
}

.product-variants__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.variant-btn,
.woocommerce div.product form.cart .variations select {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.2s;
  border-radius: 0;
}

.variant-btn:hover,
.variant-btn--active {
  border-color: #000;
}

/* Quantity */
.woocommerce div.product form.cart .quantity {
  margin-right: 12px;
}

.woocommerce .quantity .qty {
  border: 1px solid var(--border);
  border-radius: 0;
  width: 60px;
  height: 46px;
  text-align: center;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.qty-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.qty-btn:hover {
  border-color: #000;
}

.qty-value {
  width: 60px;
  height: 46px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
}

/* Add to Cart */
.product-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.btn-add-cart {
  flex: 1;
  padding: 12px 40px;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
  text-transform: none;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.btn-add-cart:hover {
  background: #000;
  color: #fff;
}

/* Shipping notice */
.product-shipping {
  font-size: 13px;
  color: var(--text-light);
  margin: 16px 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-shipping::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Accordion (Product Description) */
.product-accordion {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  background: none;
  width: 100%;
  color: var(--text);
}

.accordion__icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s;
}

.accordion__body {
  padding: 0 0 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  display: none;
}

.accordion__item--open .accordion__body {
  display: block;
}

.accordion__item--open .accordion__icon {
  transform: rotate(45deg);
}

/* WooCommerce Tabs Override → Accordion */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 24px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: none;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0;
  padding: 0;
}

/* ============================================
   GALLERY: STICKY COLUMN + PREV/NEXT ARROWS
   ============================================ */

/* Keep the gallery in view while the info column scrolls (desktop only —
   the mobile breakpoint switches .single-product-layout to 1 column,
   where sticky would just pin the images awkwardly behind the content). */
@media (min-width: 1025px) {
  .single-product-layout .product-gallery {
    position: sticky;
    top: calc(var(--header-height, 64px) + 24px);
    align-self: start;
  }
}

/* ============================================
   GALLERY: MOBILE PROGRESS BAR
   Replaces the (hidden-on-mobile) thumbnail strip —
   one segment per image, current one filled. Built and
   kept in sync by JS (reads/observes the same flexslider
   thumbnail markup the desktop arrows already use).
   ============================================ */

.product-gallery__progress {
  display: none;
}

@media (max-width: 768px) {
  .product-gallery__progress {
    display: flex;
    width: 100%;
    gap: 4px;
    padding: 0;
    margin: 0;
    background: #fff;
  }

  .product-gallery__progress[hidden] {
    display: none;
  }
}

.product-gallery__progress-seg {
  flex: 1;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.product-gallery__progress-seg--active {
  background: #000;
}

/* ============================================
   VARIATION SWATCHES (color, with image thumb)
   Progressive enhancement over the native <select>,
   which stays in the DOM (visually hidden) and remains
   the single source of truth for WooCommerce's own
   variation-matching / price / stock / gallery-image JS.
   ============================================ */

.variations__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.variation-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.2s;
}

.variation-swatch--image {
  padding-left: 6px;
}

.variation-swatch__thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F5F5F5;
}

.variation-swatch:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.variation-swatch--active {
  border-color: #000;
}

.variations-select--enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   STICKY MINI ADD-TO-CART BAR
   Shown via JS once the real add-to-cart button
   scrolls out of view.
   ============================================ */

/* Anchored at the very top (not at the header's bottom edge) and hidden
   via translateY(-100%) — that always clears the full viewport regardless
   of the bar's own height. Anchoring at top:var(--header-height) instead
   (with the same -100%) only moved it up by ITS OWN height, which can be
   less than the header height — leaving a sliver of it visible under the
   header at all times, not just while scrolled. The visible state slides
   it back down by exactly the header height instead. */
.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-atc.is-visible {
  transform: translateY(var(--header-height, 64px));
}

.sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 40px;
}

.sticky-atc__image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #F5F5F5;
  overflow: hidden;
}

.sticky-atc__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-atc__info {
  flex: 1;
  min-width: 0;
}

.sticky-atc__title {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc__price {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
}

.sticky-atc__button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 32px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s;
}

.sticky-atc__button:hover {
  background: transparent;
  color: #000;
}

@media (max-width: 768px) {
  .sticky-atc__inner {
    padding: 10px 20px;
    gap: 12px;
  }

  .sticky-atc__price {
    display: none;
  }

  .sticky-atc__button {
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
  }
}

/* ============================================
   CONFIGURATOR SECTION
   ============================================ */
.configurator-section {
  padding: 80px 0;
  background: #FAFAFA;
}

.configurator-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.configurator-section__title {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 16px;
}

.configurator-section__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.configurator-placeholder {
  width: 100%;
  min-height: 500px;
  background: #fff;
  border: 1px solid var(--border);
}

/* ============================================
   JOURNAL / BLOG
   ============================================ */
.journal {
  padding: 60px 0 80px;
}

.journal__grid {
  display: flex;
  gap: 24px;
  padding: 0 40px;
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.journal__grid::-webkit-scrollbar {
  display: none;
}

.journal__card {
  flex: 0 0 calc(33.333% - 16px);
  cursor: pointer;
}

.journal__card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  overflow: hidden;
}

.journal__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.journal__card:hover .journal__card-img img {
  transform: scale(1.03);
}

.journal__card-title {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.about-layout__lead {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
}

.about-layout__body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  text-align: justify;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg);
}

.footer__inner {
  /* inner now uses container class, no duplicate max-width */
}

.footer__columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer__newsletter {
  display: flex;
  gap: 0;
}

.footer__input {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #000;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  background: transparent;
}

.footer__submit {
  padding: 8px 24px;
  border: 1px solid #000;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.3s;
}

.footer__submit:hover {
  background: #000;
  color: #fff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 300;
}

.footer__bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer__newsletter-row {
  display: flex;
  gap: 0;
}

/* Logistikpartner row */
.footer__partners {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer__partners-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__partners-logos {
  display: flex;
  gap: 12px;
}

.footer__partner {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Zahlungsmethoden row */
.footer__payments {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer__payments-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__payments-icons {
  display: flex;
  gap: 8px;
}

.footer__payment {
  width: 44px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 500;
  color: var(--text-light);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  padding-top: 48px;
}

/* Upsells + Cross-sells sections */
.product-upsells,
.product-cross-sells {
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

/* Recently viewed */
.product-recently-viewed {
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

/* Shop page */
.shop-page__title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-top: 20px;
}

/* Category filter row — same base type formatting as .primary-nav a
   (below), but a heavier active weight (600 vs. the nav's 400) since
   this row needs to read clearly at a glance on its own, not just next
   to a "you are here" page context. Same active-item class
   (.current-menu-item) as the primary nav: this can render either as a
   real, admin-managed wp_nav_menu() (WP adds that class itself) or the
   auto-generated fallback (added manually to match), so one rule covers
   both. Reused on both the shop page and above the single-product
   layout (see l6_render_shop_category_filter()) — this one rule change
   applies to both automatically. */
.shop-category-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

/* Top clearance to the header — same rule on both pages that use this
   filter (shop and single-product), so the row sits at an identical
   height on both instead of relying on each page's own padding. */
.container > .shop-category-filter {
  margin-top: 24px;
}

.shop-category-filter__list a {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.shop-category-filter__list .current-menu-item > a {
  font-weight: 600;
}

.shop-page__pagination {
  margin-top: 48px;
}

/* Configurator wrapper */
.l6-configurator-wrapper {
  position: relative;
  background: #F5F5F5;
  border: none;
  width: 100%;
  min-height: calc(100vh - var(--header-height, 64px));
}

.l6-configurator {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.l6-configurator__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
}

/*
 * Configurator sidebar (right panel with options + pricing).
 * The configurator app should assign .l6-configurator__sidebar
 * to its right-side panel for these styles to apply.
 */
.l6-configurator__sidebar {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px 0;
  z-index: 10;
}

/* Push the price block to start at ~1/3 viewport from top */
.l6-configurator__sidebar .l6-configurator__options {
  flex: 0 0 auto;
}

.l6-configurator__sidebar .l6-configurator__pricing {
  margin-top: auto;
  padding-top: 24px;
  /* Position pricing roughly 1/3 from top by using a spacer or flex alignment */
}

/* Alternative: if the sidebar content is simple, use padding-top to push pricing up */
.l6-configurator__sidebar--pricing-high .l6-configurator__pricing,
.l6-configurator__sidebar > [data-section="pricing"] {
  position: sticky;
  top: calc(var(--header-height, 64px) + 33vh);
}

/*
 * Mobile sticky bar for price + add-to-cart button.
 * The configurator app should assign .l6-configurator__sticky-bar
 * to the bottom bar containing total price and the cart button.
 */
.l6-configurator__sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   PAGINATION
   ============================================ */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 48px;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: #000;
  font-weight: 400;
}

/* ============================================
   CART & CHECKOUT
   ============================================ */
.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: 0;
}

.woocommerce table.shop_table th {
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce table.shop_table td {
  border-top: 1px solid var(--border);
  font-weight: 300;
}

.woocommerce .cart_totals table {
  border: 1px solid var(--border);
  border-radius: 0;
}

.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  text-transform: none;
  padding: 12px 40px;
  transition: all 0.3s;
}

.woocommerce a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #place_order:hover {
  background: #000;
  color: #fff;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: #000;
  outline: none;
  box-shadow: none;
}

/* ============================================
   MESSAGES & NOTICES
   ============================================ */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  border-top-color: #000;
  background: #FAFAFA;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
  color: #000;
}

.woocommerce .woocommerce-error {
  border-top-color: #C00;
}

/* ============================================
   WIDGETS & SIDEBAR
   ============================================ */
.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
  text-transform: none;
}

.widget ul li {
  padding: 4px 0;
}

.widget ul li a {
  font-size: 14px;
  font-weight: 300;
}

/* ============================================
   SEARCH
   ============================================ */
.search-form {
  display: flex;
}

.search-form .search-field {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
}

.search-form .search-submit {
  border: 1px solid #000;
  background: transparent;
  color: #000;
  padding: 10px 20px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
}

.search-form .search-submit:hover {
  background: #000;
  color: #fff;
}

/* ============================================
   COMMENTS
   ============================================ */
.comment-list {
  margin: 0;
  padding: 0;
}

.comment-body {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.comment-author {
  font-weight: 400;
  margin-bottom: 4px;
}

.comment-content {
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   GUTENBERG BLOCKS – FRONTEND-STYLES
   ============================================ */

/* Front-page: keine Container-Einschränkung */
.entry-content--front-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

.entry-content--front-page > * {
  max-width: none;
}

/* Cover Block → Hero */
.wp-block-cover.alignfull {
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
}

.wp-block-cover .wp-block-cover__inner-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.wp-block-cover .wp-block-cover__inner-container p,
.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2,
.wp-block-cover .wp-block-cover__inner-container h3 {
  font-weight: 300;
  color: #fff;
}

/* Media + Text Block */
.wp-block-media-text.alignfull {
  min-height: 500px;
}

.wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-media-text .wp-block-media-text__content {
  padding: 60px 80px;
}

.wp-block-media-text .wp-block-media-text__content p {
  font-weight: 300;
  line-height: 1.7;
  text-align: justify;
}

/* Buttons → Ghost Style */
.wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 0 !important;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: none;
  padding: 8px 40px;
  transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* White outline buttons (in Cover blocks) */
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: #fff;
  color: #fff;
}

.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

/* Group Block */
.wp-block-group.alignfull {
  max-width: none;
}

/* Separator */
.wp-block-separator {
  border-color: var(--border);
  opacity: 1;
}

/* Latest Posts → Journal-Style */
.wp-block-latest-posts {
  padding: 0;
  margin: 0;
}

.wp-block-latest-posts.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wp-block-latest-posts li {
  margin: 0;
}

.wp-block-latest-posts li a {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text);
}

.wp-block-latest-posts li a:hover {
  opacity: 0.6;
}

.wp-block-latest-posts .wp-block-latest-posts__featured-image {
  margin-bottom: 12px;
}

.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* WooCommerce Product Collection Block */
.wp-block-woocommerce-product-collection {
  width: 100%;
}

.wp-block-woocommerce-product-collection .wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 48px 24px;
  width: 100%;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product {
  text-align: left;
  width: 100%;
  max-width: 100%;
}

/* Ensure all image containers fill their space */
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wc-block-components-product-image,
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wc-block-components-product-image a,
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product figure,
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wp-block-woocommerce-product-image,
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wp-block-woocommerce-product-image a {
  display: block;
  width: 100%;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  background: #F5F5F5;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wp-block-post-title {
  font-size: 16px;
  font-weight: 400;
}

.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wp-block-post-title a {
  text-decoration: none;
  color: var(--text);
}

/* WooCommerce blocks price styling */
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wc-block-components-product-price,
.wp-block-woocommerce-product-collection .wc-block-product-template .wc-block-product .wp-block-woocommerce-product-price {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
}

/* Columns Block */
.wp-block-columns.alignfull {
  padding: 0 40px;
}

/* Image Block */
.wp-block-image img {
  border-radius: 0;
}

/* ============================================
   RESPONSIVE – TABLET
   ============================================ */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page .woocommerce .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
  }

  .media-text__content {
    padding: 40px 40px;
  }

  /* Gutenberg blocks tablet */
  .wp-block-media-text .wp-block-media-text__content {
    padding: 40px;
  }

  .wp-block-woocommerce-product-collection .wc-block-product-template {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================
   RESPONSIVE – MOBILE
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Category filter row: single scrollable line instead of wrapping to
     multiple rows, so it doesn't eat vertical space on mobile — the
     standard pattern for this kind of category/type sub-nav (Zalando,
     ASOS, Uniqlo, etc.). li's need flex-shrink:0 or the flex container
     would squeeze them instead of overflowing. Scrollbar hidden since
     the fade edge below is the "there's more" affordance instead —
     whether a word happens to get visibly cut off at the right edge
     depends on viewport width vs. content width (e.g. not visible on a
     wider phone where "Beistelltische" just fits), so it can't be relied
     on by itself. */
  .shop-category-filter {
    position: relative;
  }

  .shop-category-filter::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
  }

  /* .is-at-end toggled by initShopCategoryFilterScroll() (main.js) once
     the row is scrolled all the way to the last item — hiding the fade
     then signals "end of list" instead of implying there's still more. */
  .shop-category-filter.is-at-end::after {
    opacity: 0;
  }

  .shop-category-filter__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 20px;
  }

  .shop-category-filter__list::-webkit-scrollbar {
    display: none;
  }

  .shop-category-filter__list li {
    flex-shrink: 0;
  }

  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  /* Header */
  .primary-nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .header__inner {
    height: 56px;
    padding: 0 20px;
  }

  .site-logo {
    font-size: 24px;
  }

  /* Hero */
  .hero {
    height: 100vh;
    min-height: 500px;
  }

  .hero__content {
    padding: 40px 20px;
  }

  /* Media + Text */
  .media-text {
    grid-template-columns: 1fr;
  }

  .media-text--reverse .media-text__media {
    order: 1;
  }

  .media-text--reverse .media-text__content {
    order: 2;
  }

  .media-text__content {
    padding: 40px 20px;
  }

  .media-text__title {
    font-size: 26px;
  }

  /* Product Grid */
  .woocommerce ul.products,
  .woocommerce-page .woocommerce .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .product-card {
    flex: 0 0 calc(50% - 12px);
  }

  /* Product Detail */
  .single-product-layout {
    grid-template-columns: 1fr;
    padding: 20px 0 60px;
    gap: 24px;
  }

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

  .product-gallery__thumbnails {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }

  .product-gallery__thumb {
    flex-shrink: 0;
  }

  .woocommerce div.product .product_title {
    font-size: 26px;
  }

  /* Gap above the breadcrumb comes from .product-info's own padding-top
     (20px, see base rule above) — halved here on mobile only, so the
     desktop layout (where this breadcrumb doesn't show) is unaffected. */
  .product-info {
    padding-top: 10px;
  }

  .product-mobile-breadcrumb {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .product-mobile-breadcrumb a {
    color: var(--text-light);
  }

  /* Both breadcrumb links are <a> now (the current category links back
     to its own archive) — needs the type+class selector below to beat
     ".product-mobile-breadcrumb a" above on specificity, otherwise that
     rule's muted gray would win over this bold/black styling. */
  .product-mobile-breadcrumb a.product-mobile-breadcrumb__current {
    font-weight: 700;
    color: var(--text);
  }

  .product-buttons {
    flex-direction: column;
  }

  .btn-add-cart,
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
  }

  /* Configurator */
  .configurator-placeholder {
    min-height: 300px;
  }

  .l6-configurator-wrapper {
    min-height: calc(100vh - var(--header-height, 64px));
    /* Reserve space at bottom for sticky bar */
    padding-bottom: 64px;
  }

  .l6-configurator__sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 20px;
  }

  .l6-configurator__sticky-bar {
    display: flex;
  }

  .configurator-section__inner {
    padding: 0 20px;
  }

  .configurator-section__title {
    font-size: 26px;
  }

  /* Product Carousel */
  .product-carousel__header {
    padding: 0 20px;
  }

  .product-carousel__grid {
    padding: 0 20px;
  }

  /* Journal */
  .journal__grid {
    padding: 0 20px;
  }

  .journal__card {
    flex: 0 0 85%;
  }

  /* Footer */
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__partners,
  .footer__payments {
    flex-wrap: wrap;
  }

  .footer__bottom {
    padding: 20px 20px 0;
    flex-direction: column;
    gap: 16px;
  }

  /* About */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }

  /* Gutenberg blocks mobile */
  .wp-block-cover.alignfull {
    min-height: 100vh;
  }

  /* Full-width media+text blocks on mobile */
  .wp-block-media-text.alignfull {
    min-height: auto;
  }

  .wp-block-media-text .wp-block-media-text__content {
    padding: 0 !important;
  }

  /* Inner wp-block-group inside media+text: override Gutenberg inline padding */
  .wp-block-media-text .wp-block-media-text__content .wp-block-group {
    padding: 30px 20px !important;
  }

  .wp-block-media-text .wp-block-media-text__content p {
    text-align: left !important;
  }

  .wp-block-media-text .wp-block-media-text__content h2 {
    font-size: 1.75rem !important;
    word-break: break-word;
    hyphens: auto;
  }

  /* Full-width group blocks on mobile */
  .entry-content--front-page .wp-block-group.alignfull {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .wp-block-latest-posts.columns-3 {
    grid-template-columns: 1fr;
  }

  .wp-block-woocommerce-product-collection .wc-block-product-template {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px 16px;
  }

  .wp-block-columns.alignfull {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .product-carousel__grid {
    gap: 16px;
  }
}
