/* Product Tab System Accessibility Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus management for keyboard navigation */
.user-is-tabbing .product-tab:focus {
  outline: 2px solid #3fb5a8;
  outline-offset: 2px;
}

.user-is-mousing .product-tab:focus {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-tab {
    border: 1px solid currentColor;
  }
  
  .product-tab.active {
    background: #3fb5a8;
    border-color: #3fb5a8;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .product-tabs {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .product-tab {
    color: #e2e8f0;
  }
  
  .product-tab:hover,
  .product-tab.active {
    color: #ffffff;
  }
}

/* Print styles */
@media print {
  .product-tabs-wrapper {
    display: none;
  }
  
  .tab-content:not(.active) {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .tab-content {
    page-break-before: always;
  }
}