/* vdmedica Product Configurator Styles */

/* Header */
.vdm-header { margin-bottom: 24px; }

.vdm-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Active Filter Chips - EXAKT WIE AUF DEN BILDERN */
.vdm-active-filters { display:flex; align-items:center; gap:12px; padding: 15px 0 0 0; border-bottom: none; }
.vdm-active-filters .vdm-filter-chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vdm-active-filters .vdm-clear-all-btn {
  margin-left: auto;
  padding: 12px 30px;
  line-height: 18px;
  font-size: 15px;
}

.vdm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.vdm-chip {
	display:inline-flex;
	align-items:center;
	gap:10px;
	background: transparent;
	color:#007ec7;
	padding: 12px 30px;
	border-radius: 6px;
	font-size:15px;
	font-weight:400;
	text-decoration:none;
	transition: all .2s ease;
	border: 1px solid #007ec7; }

.vdm-chip:hover { background: transparent; }

.vdm-chip__label {
  font-weight:400;
  color:#007ec7;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vdm-chip__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	color: #007ec7;
	text-decoration: none;
	font-weight: 400;
	font-size: 15px;
}

.vdm-clear-all-btn {
	display:inline-flex;
	align-items:center;
	gap:8px;
	background: transparent;
	color:#007ec7;
	padding: 6px 15px;
	border-radius: 6px;
	font-size:14px;
	font-weight:400;
	text-decoration:none;
	transition: all .2s ease;
	border: 1px solid #007ec7;
}
.vdm-chip__close:hover {
	background: transparent;
	color: #007ec7;
}

/* Main Layout */
.vdm-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }

/* Sidebar */
.vdm-sidebar {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  align-self: flex-start;
}

/* Hide scrollbar for sidebar but keep functionality */
.vdm-sidebar::-webkit-scrollbar {
  display: none;
}

.vdm-sidebar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.vdm-filters-container {
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transition: all 0.3s ease;
  padding-right: 0; /* No space needed for hidden scrollbar */
  position: relative;
  scroll-behavior: smooth;
}

/* Hide scrollbar for filters container but keep functionality */
.vdm-filters-container::-webkit-scrollbar {
  display: none;
}

.vdm-filters-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Subtle fade gradient to indicate more content when scrollable */
.vdm-filters-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0; /* No scrollbar space needed */
  height: 20px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show fade gradient only when container is scrollable */
.vdm-filters-container.vdm-filters--scrollable::after {
  opacity: 0.3;
}

.vdm-filters__title { font-size: 24px; font-weight: 400; color: #3d3d3c; margin: 0 0 12px 0; border-bottom: 4px solid #007ec7; }

/* Filter Form */
.vdm-filter-form {
  width: 100%;
}

/* Accordion Styles */
.vdm-accordion { border: none; border-bottom: 1px solid #dbe2ea; margin: 0; background: transparent; border-radius: 0; }

.vdm-accordion:last-child {
  border-bottom: none;
}

.vdm-accordion__summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
}

/* removed hover color change on filter headlines */
/* .vdm-accordion__summary:hover { color: #007ec7; } */

.vdm-accordion__summary::-webkit-details-marker {
  display: none;
}

.vdm-accordion__label {
  color: #007ec7;
  font-weight: 400;
}

.vdm-accordion__icon { margin-right: 3px;color: #007ec7; transition: transform 0.2s ease, border-color 0.2s ease; display:inline-block; width:10px; height:10px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(135deg); }
.vdm-accordion[open] .vdm-accordion__icon { transform: rotate(120deg); color:#007ec7; }

.vdm-accordion[open] .vdm-accordion__icon { transform: rotate(240deg); color: #007ec7; }

.vdm-accordion__panel {
  padding: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Checkbox Styles */
.vdm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.vdm-check:hover {
  color: #374151;
}

.vdm-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #007ec7; cursor: pointer; flex-shrink: 0; }

.vdm-check span {
  line-height: 1.4;
}

.vdm-check--selected {
  background: #e3f2fd !important;
  border-radius: 4px;
  padding: 6px 8px;
  margin: -2px -4px;
}

.vdm-check--selected input[type="checkbox"] {
  accent-color: #1976d2;
}

.vdm-check--selected span {
  color: #1565c0;
  font-weight: 600;
}

/* Chip animations */
.vdm-chip--removing {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

/* Mobile Filter Toggle */
.vdm-mobile-filter-toggle {
  display: none;
  background: #007ec7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.vdm-mobile-filter-toggle:hover {
  background: #2563eb;
}

.vdm-mobile-filter-toggle__icon {
  font-size: 16px;
}

/* Mobile sidebar overlay */
.vdm-sidebar--mobile-open {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.vdm-sidebar--mobile-open .vdm-filters-container {
  background: white;
  margin: 20px;
  border-radius: 12px;
  max-height: calc(100vh - 40px);
  overflow-y: auto !important; /* Always show scrollbar on mobile */
  padding: 20px;
}

/* Mobile scrollbar - also hidden */
.vdm-sidebar--mobile-open .vdm-filters-container::-webkit-scrollbar {
  display: none;
}

/* Prevent body scroll when mobile filters are open */
.vdm-mobile-filters-open {
  overflow: hidden;
}

/* Loading state */
.vdm-product-grid--loading {
  opacity: 0.6;
  pointer-events: none;
}

.vdm-product-grid--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #007ec7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Product card hover effects */
.vdm-product-card--hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Enhanced accordion hover states */
.vdm-accordion__summary:hover {
  background: transparent;
}

/* Filter Actions */
.vdm-filter-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vdm-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.vdm-filter-btn--primary {
  background: #007ec7;
  color: white;
}

.vdm-filter-btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.vdm-filter-btn--secondary {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.vdm-filter-btn--secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* Main Content */
.vdm-main {
  min-width: 0;
	border-top: 4px solid #007ec7;
	margin: 50px 0 0 0;
}

.vdm-results {
  width: 100%;
}

/* Product Grid */
.vdm-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 15px 0 0 0;
}

.vdm-product-card {
  background: #ffffff;
  border: 2px solid #D9D9D9;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vdm-product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.vdm-product-card__image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.vdm-product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vdm-product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 6px;
}

.vdm-product-card__placeholder svg {
  opacity: 0.6;
}

.vdm-product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vdm-product-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.vdm-sustainability {
  display:inline-flex; 
}

.vdm-sustainability-filter {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

/* Sustainability icons in filters should be 18px */
.vdm-sustainability-filter .vdm-leaf,
.vdm-chip .vdm-sustainability-filter .vdm-leaf {
  width: 18px;
  height: 18px;
}

.vdm-leaf {
  width: 24px;
  height: 24px;
}

.vdm-product-card__description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;

  p {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Guard badge placement under description, left aligned */
.vdm-guard-badge {
  margin: 8px 0 0 0;
}

.vdm-product-card__guard-badge {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

/* No Results Message */
.vdm-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.vdm-no-results__content {
  max-width: 400px;
  margin: 0 auto;
}

.vdm-no-results__title {
  font-size: 24px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.vdm-no-results__text {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.vdm-product-card__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.vdm-product-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 61px;
  height: 63px;
  background: #fff;
  color: #007ec7;
  border: 2px solid #D9D9D9;
  border-radius: 8px;
  transition:all .2s ease;
}

.vdm-product-card__link:hover { background:#007ec7; color:#fff; border-color:#007ec7; transform: translateX(2px); box-shadow:0 4px 12px rgba(34,113,177,.25); }

.vdm-product-card__arrow { width: 10px; height: 10px; display:inline-block; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.vdm-product-card__link:hover .vdm-product-card__arrow { transform: rotate(45deg) translateX(0px) !important; }

.vdm-product-card__link:hover .vdm-product-card__arrow {
  transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .vdm-layout {
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }

  .vdm-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Filter Result Count */
.vdm-result-count {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

/* Product hidden state */
.vdm-product--hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .vdm-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vdm-sidebar {
    order: 2;
    position: static;
    display: none;
  }

  .vdm-sidebar--mobile-open {
    display: block !important;
  }

  .vdm-mobile-filter-toggle {
    display: flex;
  }

  .vdm-main {
    order: 1;
  }

  .vdm-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    position: relative;
  }

  .vdm-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .vdm-product-grid {
    grid-template-columns: 1fr;
  }

  .vdm-filter-chips {
    gap: 8px;
  }

  .vdm-chip {
    font-size: 13px;
    padding: 6px 12px;
  }

  .vdm-sidebar {
    padding: 20px;
  }

  .vdm-active-filters {
    padding: 12px 16px;
  }
}

/* Product Detail Page Styles */

/* Hero Section */
.vdm-product {
  background: rgba(232, 232, 232, 0.8);
  margin-top: -84px;
  padding-top: 84px;
}

.vdm-product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.vdm-product-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 40px;
  min-height: 400px;
}

.vdm-product-image {
	position: relative;
}

.vdm-product-image__cta {
	width: 100%;
	text-align: center;
}

.vdm-product-image__cta .button.color-2.type-1:hover {
	background-color: #ffffff;
}

@media (min-width: 1024px) {
	.vdm-product-image__cta {
		position: absolute;
		bottom: 80px;
	}
}

.vdm-product-hero__image {
  width: 100%;
  object-fit: cover;
}

.vdm-product-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  color: #94a3b8;
}
.vdm-product-text {
  padding: 60px 0;
}

.vdm-product-text__content {
  text-align: left;
  padding: 20px 40px 40px;
  background: #ffffff;
  position: relative;

  .vdm-product-text__header {
    display: flex;
    justify-content: space-between;

    @media (max-width: 767px) {
      flex-direction: column;

      .vdm-product-text__title {
        order: 2;
      }

      span {
        justify-content: end;
      }
    }
  }
}

.vdm-product-text__title {
  font-size: 48px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px 0;
  line-height: 1.1;
}

.vdm-product-text__description {
  p {

    font-size: 18px;
    color: #00114C;
    line-height: 1.6;
  }
}

/* Product Features */
.vdm-product-features {
  margin-bottom: 40px;
}

.vdm-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vdm-feature__icon {
  position: relative;
  width: 30px;
  height: 20px;
  display: inline-block;

  &:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg height='18' viewBox='0 0 25 18' width='25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6.68965L9.80851 16L24 1' stroke='%23007EC7' stroke-width='2' fill-rule='evenodd'/%3E%3C/svg%3E");
    display: block;
    width: 30px;
    height: 20px;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 4px;
  }
}

.vdm-feature__text {
  color: #334155;
  font-weight: 500;
  padding-bottom: 0;
  font-family: TheSansC5-Bold,sans-serif;
}

/* CTA Buttons */
.vdm-product-ctas {
  display: flex;
  gap: 16px;
  align-items: flex-start;
	flex-wrap: wrap;
}

.vdm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 160px;
}

.vdm-btn--primary {
  background: #007ec7;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 126, 199, 0.3);
}

.vdm-btn--primary:hover {
  background: #0066a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 126, 199, 0.4);
}

.vdm-btn--secondary {
  background: white;
  color: #007ec7;
  border: 2px solid #007ec7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vdm-btn--secondary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Product Details Section */
.vdm-product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.vdm-product-details__title {
  font-size: 32px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 32px 0;
}

/* Application Icons */
.vdm-application-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vdm-application-icon {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vdm-application-icon__circle {
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    height: 100%;
    width: 100%;
  }

  i {
    font-size: 60px;
    line-height: 1;
  }
}

.vdm-application-icon__label {
  font-size: 18px;
  color: #00114C;
  line-height: 28px;
  text-align: left;
}

/* Properties List */
.vdm-properties-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vdm-properties-list li {
  display: flex;
  align-items: center;
  padding: 12px 0 0 24px;
  font-size: 18px;
  color: #00114C;
  position: relative;
  line-height: 28px;
}

.vdm-properties-list li:last-child {
  border-bottom: none;
}

.vdm-properties-list li::before {
  content: "•";
  color: #007ec7;
  font-weight: 700;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 12px;
}

/* Product Description */
.vdm-product-description {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.vdm-product-description h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  margin: 40px 0 20px 0;
}

.vdm-product-description h3 {
  font-size: 22px;
  font-weight: 600;
  color: #334155;
  margin: 32px 0 16px 0;
}

.vdm-product-description p {
  font-size: 18px;
  color: #00114C;
  line-height: 1.6;
}

.vdm-product-description ul,
.vdm-product-description ol {
  margin: 16px 0;
  padding-left: 24px;
}

.vdm-product-description li {
  margin: 8px 0;
}

/* Responsive Design for Product Detail */
@media (max-width: 1024px) {
  .vdm-product-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
  }

  .vdm-product-hero__title {
    font-size: 36px;
  }

  .vdm-product-details {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .vdm-application-icons {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .vdm-product-hero__title {
    font-size: 32px;
  }

  .vdm-product-hero__description {
    font-size: 16px;
  }

  .vdm-product-ctas {
    flex-direction: column;
    width: 100%;
  }

  .vdm-btn {
    width: 100%;
    max-width: 300px;
  }

  .vdm-product-details__title {
    font-size: 24px;
  }

	.vdm-application-icons {
		display: inline-block;
	}

  .vdm-product-description {
    padding: 40px 20px;
  }
}

/* 3D Viewer */
.vdm-3d-viewer {
  width: 100%;
}

.vdm-3d-viewer__canvas {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background: #0f0f0f;
  border-radius: 8px;
  overflow: hidden;
}
