/* ==========================================================================
   MODERN PROFESSIONAL DICHTSTOFF SHOP STYLESHEET
   Inspired by silikon24.com & dichtstoffe24.de
   ========================================================================== */

:root {
  --primary: #025E81;
  --primary-hover: #014763;
  --primary-light: #e8f4f9;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --dark: #1E232A;
  --dark-soft: #2D333B;
  --text-main: #24292F;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --bg-light: #F9FAFB;
  --bg-surface: #FFFFFF;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Roboto Condensed', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------------- Top Announcement Bar ---------------- */
.announcement-bar {
  background: var(--dark);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #E2E8F0;
}

.announcement-item svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* B2C / B2B Mode Switcher */
.customer-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.mode-btn {
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: #CBD5E1;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
}

.mode-btn.active {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-mode-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #94A3B8;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.admin-mode-btn:hover, .admin-mode-btn.active {
  background: #334155;
  color: #38BDF8;
  border-color: #38BDF8;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #0380b0 100%);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -1px;
  box-shadow: 0 4px 10px rgba(2, 94, 129, 0.3);
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-claim {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 94, 129, 0.15);
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  outline: none;
}

.search-btn {
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* Search Live Results */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.search-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background: #F8FAFC;
}

.search-result-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.action-btn:hover {
  background: #F3F4F6;
}

.cart-icon-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-btn:hover .cart-icon-wrapper {
  background: var(--primary);
  color: #FFFFFF;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cart-text-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cart-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-total-header {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

/* ---------------- Category Navigation ---------------- */
.category-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-link.highlight {
  color: #B45309;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 48px 0 56px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 94, 129, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.hero-card-preview {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.hero-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.color-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.color-circle:hover, .color-circle.active {
  transform: scale(1.15);
  border-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Trust Bar / USPs */
.trust-bar {
  background: #FFFFFF;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
}

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

/* ---------------- Interactive Calculator & Color Matcher Widgets ---------------- */
.tools-section {
  padding: 40px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tool-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tool-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}

/* Calculator Inputs */
.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  background: #F9FAFB;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

.calc-result-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calc-result-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #166534;
  line-height: 1;
}

.calc-result-text {
  font-size: 0.82rem;
  color: #15803D;
}

/* Color Finder Widget */
.ral-swatches-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ral-chip {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ral-chip:hover, .ral-chip.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ral-chip-code {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
}

.custom-ral-input-row {
  display: flex;
  gap: 10px;
}

/* ---------------- Products Catalog Section ---------------- */
.catalog-section {
  padding: 40px 0 80px 0;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  background: #FFFFFF;
  outline: none;
  cursor: pointer;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-badge-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-badge-corner.primary { background: var(--primary); color: white; }
.product-badge-corner.dark { background: #1E293B; color: white; }
.product-badge-corner.danger { background: #DC2626; color: white; }
.product-badge-corner.warning { background: #D97706; color: white; }
.product-badge-corner.success { background: #059669; color: white; }
.product-badge-corner.secondary { background: #64748B; color: white; }
.product-badge-corner.info { background: #0284C7; color: white; }

.product-img-wrapper {
  background: #F8FAFC;
  padding: 30px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  border-bottom: 1px solid #F1F5F9;
}

.cartridge-render {
  width: 90px;
  height: 160px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
  transition: var(--transition);
}

.product-card:hover .cartridge-render {
  transform: scale(1.05) rotate(-2deg);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 44px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-chip {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Margin Indicator in Admin Mode */
.margin-badge-container {
  background: #F0FDF4;
  border: 1px dashed #22C55E;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-bottom: 12px;
  display: none;
}

body.admin-mode-active .margin-badge-container {
  display: block;
}

.margin-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.margin-pct {
  color: #16A34A;
  font-weight: 800;
}

.product-card-footer {
  margin-top: auto;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.price-wrapper {
  display: flex;
  flex-direction: column;
}

.price-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.price-main {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.btn-card-buy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-card-buy:hover {
  background: var(--primary-hover);
}

/* ---------------- Offcanvas Cart Drawer ---------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.cart-drawer.active {
  transform: translateX(0);
}

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

.cart-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

/* Free Shipping Meter */
.free-shipping-bar {
  background: #F8FAFC;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.free-shipping-text {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  width: 0%;
  transition: width 0.4s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-variant {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  background: #FFFFFF;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  font-weight: 700;
  cursor: pointer;
}

.qty-val {
  width: 30px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.75rem;
  margin-top: 4px;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #F8FAFC;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #475569;
}

.cart-summary-line.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-heading);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

/* ---------------- Product Detail Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
}

.modal-body {
  padding: 32px;
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.modal-gallery {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.staffel-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.staffel-table th, .staffel-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}

.staffel-table th {
  background: #F1F5F9;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 60px 0 30px 0;
  font-size: 0.88rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

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

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--accent);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .modal-product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .search-container { max-width: 100%; }
  .header-actions { justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .announcement-bar .container { justify-content: center; }
}
