/*
Theme Name: Zivar Werbung
Theme URI: http://zivarwerbung.de
Author: Zivarwerbung - Dildar Shekhmous
Author URI: http://zivarwerbung.de
Description: Professionelles, modernes WordPress-Theme für Großformatdruck, Werbeschilder, Banner, Folien & Werbetechnik nach Maß – inspiriert von Elefantprint.dk.
Version: 1.4.5
Text Domain: zivar-werbung
*/

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-light: #e0f2fe;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ------------------- Typography ------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.6rem; }
}

/* ------------------- Buttons ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #035380 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #c2410c 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  border-color: var(--border-color);
  background: #ffffff;
  color: var(--secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ------------------- Top Announcement Bar ------------------- */
.top-bar {
  background-color: var(--secondary);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.top-bar-usp {
  display: flex;
  align-items: center;
}

.top-bar-usp-track {
  display: flex;
  align-items: center;
}

.top-bar-usp-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.top-bar-usp-group[aria-hidden="true"] {
  display: none;
}

.top-bar-usp-group .usp-divider {
  display: none;
}

.top-bar-usp span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.top-bar-usp span svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
  flex-shrink: 0;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.top-bar-contact a {
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.top-bar-contact a:hover {
  color: var(--accent);
}

/* Mobile: Animated Seamless Ticker / Marquee */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.4rem 0;
  }

  .top-bar-inner {
    padding: 0 0.25rem;
    max-width: 100%;
    justify-content: center;
  }

  .top-bar-contact {
    display: none !important;
  }

  .top-bar-usp {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }

  .top-bar-usp-track {
    width: max-content;
    display: flex;
    animation: zivarTopBarMarquee 20s linear infinite;
    will-change: transform;
  }

  .top-bar-usp-track:hover,
  .top-bar-usp-track:active {
    animation-play-state: paused;
  }

  .top-bar-usp-group {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .top-bar-usp-group[aria-hidden="true"] {
    display: flex !important;
  }

  .top-bar-usp-group .usp-divider {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
  }

  .top-bar-usp span {
    font-size: 0.785rem;
    font-weight: 600;
    color: #f8fafc;
  }

  @keyframes zivarTopBarMarquee {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-50%, 0, 0);
    }
  }
}

/* ------------------- Main Header ------------------- */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0 !important;
  max-width: 230px !important;
}

.brand-logo img,
.site-header .site-logo-img,
img.site-logo-img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 230px !important;
  object-fit: contain !important;
  display: block !important;
  transition: var(--transition);
}

.brand-logo img:hover,
.site-header .site-logo-img:hover,
img.site-logo-img:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 55px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .site-logo-img {
    height: 42px;
    max-width: 170px;
  }
}

.header-search {
  flex: 1;
  max-width: 420px;
  display: none;
}

@media (min-width: 992px) {
  .header-search {
    display: block;
  }
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}

.header-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.header-search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-hotline {
  display: none;
  text-align: right;
}

@media (min-width: 768px) {
  .header-hotline {
    display: block;
  }
}

.header-hotline-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.header-hotline-number {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.header-hotline-number:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ------------------- Shopping Cart Button ------------------- */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--secondary);
  background-color: #ffffff;
  transition: var(--transition);
  text-decoration: none;
}

.header-cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

/* ------------------- Navigation Bar (Elefantprint Mega Menu) ------------------- */
.header-nav {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: none;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.main-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-menu > li {
  position: static;
}

.main-menu > li > a.nav-cat-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  color: var(--secondary);
  font-size: 0.925rem;
  font-weight: 700;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.main-menu > li:hover > a.nav-cat-link,
.main-menu > li.current-menu-item > a.nav-cat-link {
  color: #0f172a;
  border-bottom-color: #e11d48; /* Authentic red line like Elefantprint */
}

/* Mega Menu Dropdown Panel */
.mega-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-mega-menu:hover .mega-menu-panel,
.has-mega-menu:focus-within .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  padding: 2.25rem 0 2.5rem;
}

.mega-menu-grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

/* Visual Product Card in Mega Menu */
.mega-card {
  flex: 0 0 160px;
  max-width: 175px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.mega-card-box {
  width: 100%;
  height: 130px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mega-card:hover .mega-card-box {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 20px -3px rgba(2, 132, 199, 0.18), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.mega-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.mega-card:hover .mega-card-img {
  transform: scale(1.05);
}

.mega-card-title {
  display: block;
  font-size: 0.885rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 0.75rem;
  line-height: 1.25;
  transition: var(--transition);
}

.mega-card:hover .mega-card-title {
  color: #e11d48;
}

.mega-card-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.25;
}

/* ------------------- Mobile Drawer ------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a:hover {
  background-color: var(--bg-body);
  color: var(--primary);
}

.mobile-cat-group {
  border-bottom: 1px solid var(--border-color);
}

.mobile-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  background-color: #f1f5f9;
}

.mobile-badge-count {
  font-size: 0.72rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.mobile-subcat-list {
  list-style: none;
  padding: 0.35rem 0 0.5rem 1rem;
  background-color: #ffffff;
}

.mobile-subcat-item {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.75rem;
  padding: 0.55rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  text-decoration: none;
  border-bottom: none !important;
}

.mobile-subcat-item:hover {
  color: var(--primary) !important;
  background-color: var(--primary-light) !important;
}

.mobile-subcat-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px;
}

.drawer-footer {
  margin-top: auto;
  padding: 1.5rem;
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-color);
}

/* ------------------- Hero Section with Video Background ------------------- */
.hero {
  position: relative;
  background-color: #0f172a;
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.15);
  object-position: center;
  filter: brightness(0.8) contrast(1.1) blur(3px);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.82) 50%,
    rgba(7, 89, 133, 0.88) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero h1 span {
  color: #38bdf8;
  background: linear-gradient(120deg, #38bdf8 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-badge-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-badge-item .icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: #38bdf8;
}

.hero-badge-item .title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ------------------- Hero Quick Calculator Card ------------------- */
.hero-calc-card {
  background: #ffffff;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-calc-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-calc-card .badge-speed {
  font-size: 0.75rem;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.hero-calc-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ------------------- Quick Category Bar ------------------- */
.quick-categories {
  padding: 2.5rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.quick-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .quick-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .quick-cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.quick-cat-card {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .quick-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .quick-cat-card {
    padding: 1rem 0.85rem;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.85rem;
  }
  .quick-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .quick-cat-icon svg {
    width: 22px;
    height: 22px;
  }
  .quick-cat-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
  }
  .quick-cat-sub {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
  }
}

.quick-cat-card:hover {
  background-color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.quick-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.quick-cat-card:hover .quick-cat-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

.quick-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.quick-cat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ------------------- Interactive Live Preiskalkulator (Elefantprint Style) ------------------- */
.calc-section {
  padding: 4.5rem 0;
  background-color: var(--bg-body);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.calc-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .calc-box {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calc-form-pane {
  padding: 2.5rem;
}

.calc-form-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
}

.calc-label .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dimensions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  padding-right: 2.75rem;
}

.input-with-unit .unit {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  pointer-events: none;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.option-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-body);
  cursor: pointer;
  transition: var(--transition);
}

.option-pill:hover {
  border-color: var(--primary);
  background-color: #ffffff;
}

.option-pill input[type="checkbox"],
.option-pill input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}

.option-pill-text {
  flex: 1;
}

.option-pill-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.25;
}

.option-pill-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ------------------- Calculator Summary Box ------------------- */
.calc-summary-pane {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2.5rem;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.summary-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.summary-product-name {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.35rem;
}

.summary-specs-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-specs-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-specs-list li strong {
  color: var(--secondary);
  font-weight: 600;
}

.price-calculation-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-top: auto;
  box-shadow: var(--shadow-sm);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-row.discount {
  color: var(--success);
  font-weight: 600;
}

.price-row.total-netto {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-row.total-brutto {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.price-row.vat-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ------------------- Category Showcase ------------------- */
.categories-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.cat-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .cat-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .cat-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.cat-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cat-card-img {
  height: 200px;
  background-color: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.cat-card-price-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}

.cat-card-price-tag span {
  color: #38bdf8;
}

.cat-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  line-height: 1.35;
}

.cat-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.cat-card-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0;
}

.cat-card-body > .btn {
  margin-top: auto !important;
}

.cat-card-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-card-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Tablet & Medium Screen Specific Rules for Category Cards */
@media (min-width: 640px) and (max-width: 1023px) {
  .cat-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .cat-card-img {
    height: 180px;
  }
  .cat-card-body {
    padding: 1.25rem;
  }
  .cat-card-title {
    font-size: 1.15rem;
    min-height: 2.9rem;
  }
  .cat-card-desc {
    font-size: 0.85rem;
    min-height: 3.8rem;
    margin-bottom: 1rem;
  }
  .cat-card-features {
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }
  .cat-card-features li {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .cat-card-title {
    min-height: 3.1rem;
  }
  .cat-card-desc {
    min-height: 4.1rem;
  }
}

/* ------------------- How it Works (Workflow) ------------------- */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--bg-body);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.step-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ------------------- Bad Kreuznach Local Banner ------------------- */
.local-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .local-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.local-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.local-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.local-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.local-high-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.local-high-box h4 {
  color: #38bdf8;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.local-high-box p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.local-card {
  background: #ffffff;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.local-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.local-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.local-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.local-contact-list svg {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ------------------- Print Data Specifications (Druckdaten) ------------------- */
.specs-section {
  padding: 4.5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.spec-box:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.spec-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.spec-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------- Footer ------------------- */
.site-footer {
  background-color: var(--secondary);
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-top {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact-items svg {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-contact-items a {
  color: #f1f5f9;
}

.footer-contact-items a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 1.75rem 0;
  background-color: #0b1120;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* ------------------- Floating Action Bar / Mobile Bar ------------------- */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 990;
}

.floating-whatsapp {
  width: 52px;
  height: 52px;
  background-color: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  font-size: 1.75rem;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* ------------------- Legal Page Styles (Impressum & Datenschutz) ------------------- */
.legal-page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}

.legal-page-header h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.legal-content-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
  line-height: 1.8;
}

.legal-content-card h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.4rem;
}

.legal-content-card h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-content-card p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.legal-content-card ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-info-table th, .legal-info-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.legal-info-table th {
  background-color: var(--bg-body);
  font-weight: 700;
  width: 30%;
}

/* ------------------- Modal Styling ------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.75rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--secondary);
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 4000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ------------------- Elefantprint-Style Category Archive Pages ------------------- */
.elefant-cat-page {
  background-color: #ffffff;
  padding-bottom: 5rem;
}

.cat-breadcrumbs-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
}

.cat-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.cat-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cat-breadcrumb .sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.cat-breadcrumb .current {
  color: var(--secondary);
  font-weight: 600;
}

.cat-page-head {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.cat-page-title {
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  color: #0f172a;
  display: inline-block;
  position: relative;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.cat-page-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3.5px;
  background-color: #e11d48; /* Exact Elefantprint Red line */
  margin: 8px auto 0;
  border-radius: 2px;
}

.cat-page-desc {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cat-grid-container {
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

/* Category Grid (Screenshot 1, 2, 3) */
.elefant-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .elefant-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .elefant-item-imgbox {
    aspect-ratio: 16 / 11;
    padding: 1.5rem;
  }
  .elefant-item-name {
    font-size: 1.1rem;
    margin-top: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .elefant-card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
  }
}

.elefant-item-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.elefant-item-imgbox {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.elefant-item-card:hover .elefant-item-imgbox {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.16), 0 6px 10px -4px rgba(0, 0, 0, 0.06);
}

.elefant-item-imgbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.elefant-item-card:hover .elefant-item-imgbox img {
  transform: scale(1.06);
}

.elefant-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

.elefant-item-card:hover .elefant-item-name {
  color: #e11d48;
}

.elefant-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.2rem;
}

/* Bottom Promo Section (Screenshot 2 bottom) */
.cat-bottom-promo {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-color);
}

.promo-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
}

@media (min-width: 992px) {
  .promo-box-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.promo-text-pane h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.promo-text-pane p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.promo-trust-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Single Product & Variable Product Page Styles (Elefantprint Style)
   ========================================================================== */
.product-detail-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.product-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .product-main-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* Left Column: Visuals */
.product-visual-pane {
  position: sticky;
  top: 100px;
}

.product-image-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.main-prod-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-image-card:hover .main-prod-img {
  transform: scale(1.03);
}

.product-badges-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prod-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cmyk {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-express {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.product-trust-features {
  margin-top: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feat-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.feat-info strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.feat-info p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.15rem 0 0;
}

/* Right Column: Configuration & Form */
.product-category-tag {
  display: inline-block;
  color: #e11d48;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .product-hero-title {
    font-size: 2.15rem;
  }
}

.product-price-display {
  background: #f8fafc;
  border-left: 4px solid #e11d48;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.price-val {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.price-updated {
  transform: scale(1.06);
  color: #e11d48;
}

.price-tax-sub {
  font-size: 0.825rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.product-bullets-box {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  margin-bottom: 1.75rem;
}

.bullets-intro {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-spec-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-spec-bullets li {
  font-size: 0.9rem;
  color: #475569;
  position: relative;
  padding-left: 1.35rem;
}

.product-spec-bullets li::before {
  content: "•";
  color: #e11d48;
  font-size: 1.35rem;
  position: absolute;
  left: 0;
  top: -0.2rem;
}

/* Interactive Dropdown Selectors matching screenshots */
.form-option-group {
  margin-bottom: 1.25rem;
}

.option-label {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.select-wrapper {
  position: relative;
}

.custom-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Drag & Drop File Upload Area (Screenshot 4) */
.drag-drop-zone {
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.drag-drop-zone:hover,
.drag-drop-zone.drag-over {
  border-color: #e11d48;
  background: #fff1f2;
}

.file-hidden-input {
  display: none;
}

.dropzone-icon {
  width: 38px;
  height: 38px;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.925rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.btn-browse {
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-browse:hover {
  background: #cbd5e1;
}

.dropzone-sub {
  font-size: 0.775rem;
  color: #64748b;
}

.file-selected-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
}

.btn-remove-file {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Purchase Row */
.action-purchase-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.qty-btn {
  background: none;
  border: none;
  width: 42px;
  height: 48px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #f1f5f9;
}

.qty-input {
  width: 55px;
  height: 48px;
  border: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-to-cart {
  flex: 1;
  min-width: 220px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 1.75rem;
  height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.38);
}

.cart-feedback-alert {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.stripe-checkout-notice {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.stripe-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sec-badge {
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Tabs */
.product-tabs-wrapper {
  margin-top: 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tabs-nav-bar {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1.15rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #0f172a;
}

.tab-btn.active {
  color: #e11d48;
  background: #ffffff;
  border-bottom-color: #e11d48;
}

.tab-pane {
  display: none;
  padding: 2.5rem;
}

.tab-pane.active {
  display: block;
}

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tab-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tab-content-grid h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.tab-content-grid p,
.tab-content-grid li {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.6;
}

.tab-content-grid ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.tab-content-grid li {
  margin-bottom: 0.4rem;
}

/* Related Products */
.related-products-section {
  margin-top: 4.5rem;
}

.related-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2rem;
  text-align: center;
}

/* ==========================================================================
   WooCommerce Native Dynamic Variations Form Styling
   ========================================================================== */
form.variations_form {
  margin-top: 1.25rem;
}

table.variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  background: transparent;
  margin-bottom: 0.5rem;
}

table.variations tbody,
table.variations tr,
table.variations th,
table.variations td {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

table.variations tr {
  margin-bottom: 1.25rem;
}

table.variations th.label {
  text-align: left;
  margin-bottom: 0.45rem;
}

table.variations th.label label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

table.variations td.value {
  position: relative;
}

table.variations td.value select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

table.variations td.value select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

table.variations a.reset_variations {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #e11d48;
  text-decoration: underline;
  font-weight: 600;
}

.single_variation_wrap {
  margin-top: 1.25rem;
}

.woocommerce-variation.single_variation {
  background: #f8fafc;
  border-left: 4px solid #e11d48;
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.woocommerce-variation.single_variation .woocommerce-variation-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
}

.woocommerce-variation.single_variation .woocommerce-variation-availability {
  font-size: 0.85rem;
  color: #166534;
  font-weight: 600;
  margin-top: 0.25rem;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.woocommerce-variation-add-to-cart .quantity,
form.cart .quantity {
  display: inline-flex;
  align-items: center;
}

.woocommerce-variation-add-to-cart .quantity input.qty,
form.cart .quantity input.qty {
  width: 65px;
  height: 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.woocommerce-variation-add-to-cart button.single_add_to_cart_button,
form.cart button.single_add_to_cart_button {
  flex: 1;
  min-width: 220px;
  height: 48px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.woocommerce-variation-add-to-cart button.single_add_to_cart_button:hover,
form.cart button.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.38);
}

.woocommerce-variation-add-to-cart button.single_add_to_cart_button.disabled,
form.cart button.single_add_to_cart_button.disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}


/* ==========================================================================
   Modern German WooCommerce Cart & Checkout Styling (Zivar Werbung)
   ========================================================================== */

/* ------------------- 3-Step Checkout Progress Bar ------------------- */
.checkout-steps-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.steps-progress-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0.45;
  transition: opacity 0.25s, transform 0.25s;
}

.step-item.active,
.step-item.completed {
  opacity: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.step-item.completed .step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.step-label strong {
  display: block;
  font-size: 0.925rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
}

.step-label span {
  display: block;
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 2px;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 1.25rem;
  max-width: 100px;
  transition: background 0.3s;
}

.step-divider.active {
  background: #10b981;
}

@media (max-width: 768px) {
  .step-label span {
    display: none;
  }
  .step-divider {
    max-width: 40px;
    margin: 0 0.5rem;
  }
}

/* ------------------- WooCommerce Main Page Container ------------------- */
.woocommerce-page-container {
  padding-top: 1rem;
  padding-bottom: 4rem;
  min-height: 60vh;
}

.woocommerce-page-inner {
  width: 100%;
}

/* ------------------- WooCommerce Notices & Alerts ------------------- */
.woocommerce-notices-wrapper {
  margin-bottom: 1.5rem;
  width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.woocommerce-message {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.woocommerce-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.woocommerce-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  color: #9f1239;
  list-style: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  background: #0f172a;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background: #e11d48;
}

/* ------------------- Cart Page 2-Column Layout ------------------- */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: 1fr 390px !important;
  gap: 2.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
}

/* Notices wrapper MUST span across all columns at the top */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

/* Left Column: Cart Form */
.woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

/* Right Column: Sticky Summary */
.woocommerce-cart .cart-collaterals,
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  position: sticky !important;
  top: 90px !important;
  float: none !important;
}

@media (max-width: 991px) {
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals,
  .woocommerce .cart-collaterals,
  .woocommerce-page .cart-collaterals {
    grid-column: 1 !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
  }
}

/* Ensure full desktop table display on medium and large screens */
@media (min-width: 769px) {
  .woocommerce-cart-form table.shop_table.cart {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }
  .woocommerce-cart-form table.shop_table.cart thead {
    display: table-header-group !important;
  }
  .woocommerce-cart-form table.shop_table.cart tbody {
    display: table-row-group !important;
  }
  .woocommerce-cart-form table.shop_table.cart tr {
    display: table-row !important;
  }
  .woocommerce-cart-form table.shop_table.cart th,
  .woocommerce-cart-form table.shop_table.cart td {
    display: table-cell !important;
  }
}

.woocommerce-cart-form table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  border: none !important;
}

.woocommerce-cart-form table.shop_table th {
  background: #f8fafc !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-cart-form table.shop_table td {
  padding: 1.25rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

/* Column 1: Remove Button */
.woocommerce-cart-form table.shop_table th.product-remove,
.woocommerce-cart-form table.shop_table td.product-remove {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  text-align: center !important;
  padding: 1rem 0.5rem !important;
}

.woocommerce a.remove,
.woocommerce-page a.remove,
.woocommerce-cart-form table.shop_table td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  color: #ef4444 !important;
  background: #fee2e2 !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  margin: 0 auto !important;
  border: 1px solid #fecaca !important;
}

.woocommerce a.remove:hover,
.woocommerce-page a.remove:hover,
.woocommerce-cart-form table.shop_table td.product-remove a.remove:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

/* Column 2: Thumbnail */
.woocommerce-cart-form table.shop_table th.product-thumbnail,
.woocommerce-cart-form table.shop_table td.product-thumbnail {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  text-align: center !important;
  padding: 1rem 0.5rem !important;
}

.woocommerce table.cart td.product-thumbnail img,
.woocommerce-cart-form table.shop_table td.product-thumbnail img {
  width: 72px !important;
  min-width: 72px !important;
  height: 72px !important;
  min-height: 72px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  display: block !important;
  margin: 0 auto !important;
  background: #f8fafc !important;
}

/* Column 3: Product Name & Variations */
.woocommerce-cart-form table.shop_table td.product-name a {
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}

.woocommerce-cart-form table.shop_table td.product-name a:hover {
  color: #e11d48 !important;
}

.woocommerce-cart-form table.shop_table td.product-name .variation {
  font-size: 0.825rem !important;
  color: #64748b !important;
  margin-top: 0.45rem !important;
  line-height: 1.4 !important;
}

.woocommerce-cart-form table.shop_table td.product-name .variation dt {
  font-weight: 700 !important;
  color: #475569 !important;
  display: inline-block !important;
  margin-right: 0.25rem !important;
}

.woocommerce-cart-form table.shop_table td.product-name .variation dd {
  display: inline-block !important;
  margin: 0 0.75rem 0 0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Column 4: Price */
.woocommerce-cart-form table.shop_table th.product-price,
.woocommerce-cart-form table.shop_table td.product-price {
  width: 105px !important;
  min-width: 105px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
}

/* Column 5: Quantity */
.woocommerce-cart-form table.shop_table th.product-quantity,
.woocommerce-cart-form table.shop_table td.product-quantity {
  width: 115px !important;
  min-width: 115px !important;
  text-align: center !important;
}

.woocommerce-cart-form table.shop_table td.product-quantity input.qty {
  width: 65px !important;
  padding: 0.45rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
}

/* Column 6: Subtotal */
.woocommerce-cart-form table.shop_table th.product-subtotal,
.woocommerce-cart-form table.shop_table td.product-subtotal {
  width: 125px !important;
  min-width: 125px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  text-align: right !important;
  white-space: nowrap !important;
  padding-right: 1.5rem !important;
}

/* Table Actions: Coupon & Update Cart */
.woocommerce-cart-form table.shop_table td.actions {
  background: #f8fafc !important;
  padding: 1.25rem 1.5rem !important;
  border-top: 1px solid #e2e8f0 !important;
}

.woocommerce-cart-form .actions .coupon {
  display: inline-flex !important;
  gap: 0.5rem !important;
  align-items: center !important;
  float: left !important;
}

.woocommerce-cart-form .actions .coupon input.input-text {
  padding: 0.65rem 1rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.9rem !important;
  min-width: 170px !important;
  background: #ffffff !important;
}

.woocommerce-cart-form .actions .coupon .button {
  background: #334155 !important;
  color: #ffffff !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.woocommerce-cart-form .actions .coupon .button:hover {
  background: #0f172a !important;
}

.woocommerce-cart-form .actions > .button {
  float: right !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.woocommerce-cart-form .actions > .button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

@media (max-width: 640px) {
  .woocommerce-cart-form .actions .coupon,
  .woocommerce-cart-form .actions > .button {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
  }
  .woocommerce-cart-form .actions .coupon input.input-text {
    flex: 1 !important;
  }
}

/* ------------------- Cart Collaterals / Sticky Summary ------------------- */
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals,
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Overriding WooCommerce core float: right and width: 48% on .cart_totals */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals,
.woocommerce-cart .cart_totals,
.cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 1.75rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.cart_totals h2 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.85rem !important;
  border-bottom: 2px solid #f1f5f9 !important;
}

/* Remove default WooCommerce table borders and pseudo-elements */
.cart_totals table.shop_table,
.cart_totals table.shop_table.shop_table_responsive,
.woocommerce .cart_totals table.shop_table,
.woocommerce-page .cart_totals table.shop_table {
  width: 100% !important;
  border: none !important;
  border-collapse: collapse !important;
  margin: 0 0 1.5rem 0 !important;
  border-radius: 0 !important;
}

.cart_totals table.shop_table tbody {
  display: block !important;
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cart_totals table.shop_table tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0.85rem 0 !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.cart_totals table.shop_table tr th,
.cart_totals table.shop_table tr td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.95rem !important;
}

.cart_totals table.shop_table tr th {
  font-weight: 600 !important;
  color: #475569 !important;
  text-align: left !important;
}

.cart_totals table.shop_table tr td {
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: right !important;
}

/* PREVENT "Gesamtsumme35,00 €" COLLISION: Hide pseudo-element injected by WooCommerce responsive table */
.cart_totals table.shop_table tr td::before,
.cart_totals table.shop_table tr th::before {
  display: none !important;
  content: none !important;
}

.cart_totals table.shop_table tr.order-total {
  border-top: 2px solid #e2e8f0 !important;
  border-bottom: none !important;
  padding-top: 1.15rem !important;
  margin-top: 0.5rem !important;
}

.cart_totals table.shop_table tr.order-total th {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.cart_totals table.shop_table tr.order-total td,
.cart_totals table.shop_table tr.order-total td strong {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: #e11d48 !important;
}

/* Checkout Button: full width, 1 single line, no wrapping */
.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout,
.woocommerce-page .cart-collaterals .cart_totals .wc-proceed-to-checkout,
.cart_totals .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button,
.cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  white-space: nowrap !important;
  min-height: 52px !important;
  padding: 1rem 1.5rem !important;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm, 8px) !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45) !important;
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
}

/* Trust & Security Assurances below Cart Totals */
.zivar-cart-trust-badges {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

.zivar-cart-trust-badges .trust-badge-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

.zivar-cart-trust-badges .trust-badge-item .trust-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  background: #ecfdf5 !important;
  color: #10b981 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
}

.zivar-cart-trust-badges .trust-badge-item .trust-text {
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}

.zivar-cart-trust-badges .trust-badge-item .trust-text strong {
  color: #1e293b !important;
  font-size: 0.85rem !important;
}


/* ------------------- Checkout 2-Column Grid ------------------- */
form.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "customer review-heading"
    "customer review";
  column-gap: 2.5rem;
  row-gap: 1rem;
  align-items: start;
}

#customer_details {
  grid-area: customer;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#customer_details h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

#customer_details .col-2 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

#order_review_heading {
  grid-area: review-heading;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

#order_review {
  grid-area: review;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 90px;
}

@media (max-width: 991px) {
  form.woocommerce-checkout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "customer"
      "review-heading"
      "review";
  }
  #order_review {
    position: static;
  }
}

/* Form Rows & Inputs in Checkout */
.woocommerce-checkout .form-row {
  margin-bottom: 1.25rem;
}

.woocommerce-checkout .form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.woocommerce-checkout .form-row label .required {
  color: #e11d48;
  font-weight: 700;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
  box-sizing: border-box;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: #e11d48;
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* Order Review Table */
table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  margin-bottom: 1.5rem !important;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.95rem !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

table.woocommerce-checkout-review-order-table td::before {
  display: none !important;
  content: none !important;
}

table.woocommerce-checkout-review-order-table th {
  color: #475569;
  font-weight: 600;
  text-align: left;
}

table.woocommerce-checkout-review-order-table td {
  text-align: right;
  color: #0f172a;
}

table.woocommerce-checkout-review-order-table .product-name {
  text-align: left;
  font-weight: 600;
}

table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .order-total td {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #e11d48 !important;
  border-top: 2px solid #e2e8f0 !important;
  padding-top: 1rem !important;
}


/* Stripe Payment Box in Checkout */
#payment {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

#payment ul.payment_methods li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
}

#payment ul.payment_methods li:last-child {
  border-bottom: none;
}

#payment ul.payment_methods label {
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#payment .payment_box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* Final Order Button: Zahlungspflichtig bestellen */
#payment #place_order {
  display: block;
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  margin-top: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  box-sizing: border-box;
}

#payment #place_order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
}

/* Privacy & Terms Note */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 1.25rem;
}

.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-wrapper a {
  color: #e11d48;
  font-weight: 600;
  text-decoration: underline;
}

/* ------------------- Empty Cart Styles ------------------- */
.cart-empty-container {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.empty-cart-card {
  max-width: 580px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  background: #fef2f2;
  color: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-cart-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.empty-cart-desc {
  color: #64748b;
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.empty-cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------- Order Confirmation / Thankyou ------------------- */
.order-thankyou-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.thankyou-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  text-align: center;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid #a7f3d0;
}

.failed-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  color: #ef4444;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid #fecdd3;
}

.thankyou-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.thankyou-sub {
  color: #64748b;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.order-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

@media (max-width: 768px) {
  .order-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-box .metric-label {
  display: block;
  font-size: 0.775rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.metric-box .metric-val {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  margin-top: 0.25rem;
}

.thankyou-location-box {
  display: flex;
  gap: 1.25rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
}

.loc-icon {
  font-size: 2rem;
  line-height: 1;
}

.loc-details h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #9f1239;
}

.loc-details p {
  margin: 0;
  font-size: 0.9rem;
  color: #881337;
  line-height: 1.5;
}

.thankyou-details-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   Mobile Optimization for Single Product Page (Zivar Werbung)
   ========================================================================== */

@media (max-width: 991px) {
  .product-main-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  /* Make visual pane contents participate in flex layout for superior mobile order */
  .product-visual-pane {
    position: static !important;
    top: auto !important;
    display: contents;
  }

  /* Order on mobile: 1. Image, 2. Product Details & Buy Form, 3. Trust Features */
  .product-image-card {
    order: 1;
    min-height: 240px;
    padding: 1.5rem 1rem;
  }

  .main-prod-img {
    max-height: 210px;
  }

  .product-config-pane {
    order: 2;
  }

  .product-trust-features {
    order: 3;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    gap: 0.85rem;
  }
}

@media (max-width: 768px) {
  .product-hero-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    word-break: break-word;
  }

  .product-price-display {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
  }

  .price-val {
    font-size: 1.65rem;
  }

  .product-bullets-box {
    padding: 0.85rem 0;
    margin-bottom: 1.25rem;
  }

  .product-spec-bullets li {
    font-size: 0.85rem;
  }

  /* Dropdown variations on mobile */
  table.variations tr {
    margin-bottom: 1rem;
  }

  table.variations th.label label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }

  table.variations td.value select {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    height: 48px;
    padding: 0.75rem 1rem;
  }

  /* Upload dropzone on mobile */
  .drag-drop-zone {
    padding: 1.25rem 1rem;
  }

  .dropzone-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.25rem;
  }

  .dropzone-text {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 0.35rem;
  }

  .btn-browse {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }

  /* Tabs on mobile */
  .product-tabs-wrapper {
    margin-top: 2.25rem;
  }

  .tabs-nav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .tabs-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 0.85rem 1.15rem;
    font-size: 0.875rem;
  }

  .tab-pane {
    padding: 1.5rem 1rem;
  }

  .tab-content-grid {
    gap: 1.25rem;
  }

  /* Breadcrumbs on mobile */
  .cat-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 0.8rem;
  }

  .cat-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* Related Products Grid on mobile */
  .elefant-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .elefant-item-card {
    padding: 0.85rem;
  }

  .elefant-item-imgbox {
    height: 110px;
  }

  .elefant-item-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Quantity and Add to cart button: Full width stack on small screens */
  .woocommerce-variation-add-to-cart,
  form.cart {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100%;
  }

  .woocommerce-variation-add-to-cart .quantity,
  form.cart .quantity {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .woocommerce-variation-add-to-cart .quantity input.qty,
  form.cart .quantity input.qty {
    width: 100% !important;
    max-width: 130px !important;
    height: 48px !important;
    font-size: 1.1rem !important;
  }

  .woocommerce-variation-add-to-cart button.single_add_to_cart_button,
  form.cart button.single_add_to_cart_button {
    width: 100% !important;
    min-width: 100% !important;
    height: 52px !important;
    font-size: 1.1rem !important;
  }
}

/* ==========================================================================
   Product Showcase Illustrations
   ========================================================================== */
.cat-product-illustration {
  max-height: 140px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.cat-card:hover .cat-product-illustration {
  transform: scale(1.08) translateY(-4px);
}

/* ==========================================================================
   Legal Cookie Consent Banner (DSGVO / TTDSG)
   ========================================================================== */
.zivar-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 460px;
  width: calc(100% - 3rem);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-xl, 1rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 999999;
  font-family: inherit;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-content-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cookie-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cookie-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cookie-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.btn-cookie {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md, 0.5rem);
  cursor: pointer;
  text-align: center;
  border: none;
  transition: all 0.2s ease;
}

.btn-cookie#zivar-accept-all-cookies {
  background: var(--accent, #e11d48);
  color: #ffffff;
}

.btn-cookie#zivar-accept-all-cookies:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.btn-cookie#zivar-essential-only-cookies {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie#zivar-essential-only-cookies:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cookie-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.cookie-links a {
  color: #94a3b8;
  text-decoration: underline;
}

.cookie-links a:hover {
  color: #ffffff;
}

.cookie-links .sep {
  color: #64748b;
}

@media (max-width: 640px) {
  .zivar-cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    padding: 1.25rem;
  }
  .cookie-actions {
    flex-direction: column;
  }
}

