.contact-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-footer .legal-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.contact-footer .company-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-footer .license-info {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-footer .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* IV Products page-specific styles moved from inline */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1rem 0;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-input {
  padding: 0.6rem 0.9rem;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.products-count {
  color: #5a6c7d;
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e1e8ed;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  color: #34495e;
  transition: all 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.filter-toggle:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.filter-toggle:active {
  transform: translateY(1px);
}

.filter-icon {
  display: inline-flex;
  gap: 3px;
}

.filter-icon .dot {
  width: 4px;
  height: 4px;
  background: #2c3e50;
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.filter-toggle:hover .dot:nth-child(1) {
  transform: translateY(-1px);
}

.filter-toggle:hover .dot:nth-child(2) {
  transform: translateY(1px);
}

.filter-toggle:hover .dot:nth-child(3) {
  transform: translateY(-1px);
}

.filter-panel {
  position: relative;
  margin: 0 auto 1.5rem auto;
  max-width: 1200px;
}

.filter-panel .panel {
  position: absolute;
  left: 2rem;
  top: 46px;
  z-index: 20;
  width: 400px;
  max-width: calc(100% - 4rem);
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  padding: 1.1rem 1.1rem 1rem 1.1rem;
  display: block;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.filter-panel .panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.panel h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #2c3e50;
}

.panel .filter-section {
  border-top: 1px solid #ecf0f1;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.panel .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.panel label {
  color: #5a6c7d;
  font-size: 0.95rem;
}

.panel select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  background: #ffffff;
}

.panel .categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
}

.panel .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.panel .btn {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
  background: #ffffff;
  font-weight: 600;
  color: #34495e;
  cursor: pointer;
}

.panel .btn.primary {
  background: #3498db;
  color: #ffffff;
  border-color: #3498db;
}

/* Mobile & small screens */
@media (max-width: 768px) {
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .toolbar-left {
    width: 100%;
  }

  .search-input {
    width: 100%;
    min-width: 0;
  }

  .products-count {
    text-align: center;
  }

  .filter-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }

  .filter-panel .panel {
    left: 1rem;
    right: 1rem;
    max-width: none;
    width: auto;
    top: 50px;
    transform-origin: top center;
  }
}

.contact-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 1.5rem auto 1.25rem auto;
  max-width: 90%;
}

.contact-legal-intro {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 1rem;
}

.email-inline {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Card labels (local) */
.labels {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f4fd;
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

/* Page footer (separate from contact section) */
.page-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 2rem 0;
  color: #5a6c7d;
  text-align: center;
}

.page-footer .company-name {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.page-footer a {
  color: #3498db;
  text-decoration: none;
}

@media (max-width: 768px) {
  .filter-panel .panel {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* Contact section legal block (blue styles like L_main) */
.contact-section .contact-legal {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-section .contact-legal .company-name {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-section .contact-legal .license-info {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.contact-section .contact-legal .email a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-section .contact-legal .copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Hover view details text */
.service-card {
  position: relative;
  padding-bottom: 3rem;
}

.service-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.service-btn:link,
.service-btn:visited,
.service-btn:hover,
.service-btn:active {
  text-decoration: none;
}

.view-details {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translate(-50%, 6px);
  color: #3498db;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.service-card:hover .view-details {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.service-card:hover .service-btn {
  transform: translateY(-6px);
}

/* Modal overlay for quick details */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.product-modal.active {
  display: flex;
}

.product-modal .modal-card {
  background: #ffffff;
  width: 640px;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid #e1e8ed;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 220ms ease, transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-modal.active .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-weight: 800;
  color: #2c3e50;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #7f8c8d;
}
.modal-body {
  padding: 1.2rem;
  color: #5a6c7d;
}
.modal-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.2rem 1.2rem;
}
.modal-actions .btn {
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 2px solid #3498db;
  font-weight: 700;
  text-decoration: none;
}
.modal-actions .btn.primary {
  background: #3498db;
  color: white;
}

@media (max-width: 600px) {
  .modal-body {
    font-size: 0.95rem;
  }
  .product-modal .modal-card {
    width: 100%;
  }
}
