/* Rigicon Products Page - Custom Styles */
/* All classes prefixed with .products-page- to avoid conflicts */

/* Reset and Base Styles */
.products-page-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Typography Margin Resets */
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6, .uk-heading-2xlarge, .uk-heading-3xlarge, .uk-heading-large, .uk-heading-medium, .uk-heading-small, .uk-heading-xlarge, h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0px 0 !important;
}

address, dl, fieldset, figure, ol, p, pre, ul {
    margin: 0 0 0px 0 !important;
}

*+address, *+dl, *+fieldset, *+figure, *+ol, *+p, *+pre, *+ul {
    margin-top: 0px !important;
}

*+.uk-h1, *+.uk-h2, *+.uk-h3, *+.uk-h4, *+.uk-h5, *+.uk-h6, *+.uk-heading-2xlarge, *+.uk-heading-3xlarge, *+.uk-heading-large, *+.uk-heading-medium, *+.uk-heading-small, *+.uk-heading-xlarge, *+h1, *+h2, *+h3, *+h4, *+h5, *+h6 {
    margin-top: 0px !important;
}

.products-page-container {
  min-height: 100vh;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Toolbar Styles */
.products-page-toolbar {
  position: relative;
  background-color: #ffffff;
  border-bottom: 1px solid #cccccc;
}

.products-page-toolbar-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #0a1628 0%, #1a4d6d 70%, #dc2626 100%);
  display: none; /* Hidden - not needed */
}

@media (min-width: 768px) {
  .products-page-toolbar {
    border-bottom: none;
  }
  .products-page-toolbar-gradient {
    display: none;
  }
}

.products-page-toolbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 4px;
}

.products-page-search-btn,
.products-page-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.products-page-search-btn:hover,
.products-page-region-btn:hover {
  background-color: #f9fafb;
  color: #111827;
}

@media (min-width: 768px) {
  .products-page-search-btn,
  .products-page-region-btn {
    display: none;
  }
}

/* Header Styles */
.products-page-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.products-page-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
}

.products-page-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-page-logo {
  height: 48px;
}

.products-page-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.products-page-search-desktop {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .products-page-search-desktop {
    display: block;
  }
}

.products-page-search-input {
  padding: 0 36px 0 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
  width: 250px;
  height: 36px;
}

.products-page-search-input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 0;
  border-color: transparent;
}

.products-page-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.products-page-region-dropdown {
  display: none;
}

@media (min-width: 768px) {
  .products-page-region-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    height: 36px;
  }
  
  .products-page-region-dropdown:hover {
    background-color: #f9fafb;
  }
}

/* Region Dropdown Menu */
.products-page-region-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.products-page-region-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.products-page-region-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid #f3f4f6;
}

.products-page-region-menu-item:last-child {
  border-bottom: none;
}

.products-page-region-menu-item:hover {
  background-color: #f9fafb;
  color: #dc2626;
}

/* Mobile Region Menu */
.products-page-mobile-region-wrapper {
  position: relative;
}

.products-page-mobile-region-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  max-width: 90vw;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.products-page-mobile-region-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile specific touch-friendly sizes */
@media (max-width: 767px) {
  .products-page-mobile-region-menu .products-page-region-menu-item {
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

.products-page-contact-btn {
  display: none;
}

@media (min-width: 768px) {
  .products-page-contact-btn {
    display: inline-flex;
    align-items: center;
    background-color: #dc2626;
    color: #ffffff;
    padding: 0 24px;
    height: 36px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
  }
  
  .products-page-contact-btn:hover {
    background-color: #b91c1c;
  }
}

.products-page-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.products-page-menu-btn:hover {
  color: #111827;
}

@media (min-width: 768px) {
  .products-page-menu-btn {
    display: none;
  }
}

/* Navigation Bar */
.products-page-nav-bar {
  display: none;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .products-page-nav-bar {
    display: block;
  }
}

.products-page-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

.products-page-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.products-page-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.products-page-nav-link:hover {
  color: #111827;
}

/* Mobile Menu */
.products-page-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.products-page-mobile-menu.active {
  right: 0;
}

@media (min-width: 400px) {
  .products-page-mobile-menu {
    width: 400px;
  }
}

.products-page-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.products-page-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.products-page-mobile-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.products-page-close-btn {
  padding: 8px;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.products-page-close-btn:hover {
  background-color: #f3f4f6;
}

.products-page-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}

.products-page-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
  background: none;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
  transition: all 0.2s;
}

.products-page-mobile-nav-link:hover {
  color: #111827;
}

.products-page-mobile-contact {
  margin-top: 16px;
}

.products-page-mobile-contact-btn {
  width: 100%;
  background-color: #dc2626;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.products-page-mobile-contact-btn:hover {
  background-color: #b91c1c;
}

/* Main Content */
.products-page-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.products-page-breadcrumbs {
  padding: 16px 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.products-page-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-page-breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}

.products-page-breadcrumb-link:hover {
  color: #111827;
}

.products-page-breadcrumb-separator {
  color: #9ca3af;
}

.products-page-breadcrumb-current {
  color: #9ca3af;
}

/* Healthcare Banner */
.products-page-healthcare-banner {
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.products-page-banner-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .products-page-banner-title {
    line-height: 0.3 !important;
  }
}

.products-page-banner-gradient {
  color: #232f58;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.products-page-gender-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #232f58;
}

/* Page Header */
.products-page-page-header {
  padding-top: 8px;
  padding-bottom: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.products-page-h1 {
  margin-bottom: 12px;
  font-size: 48px;
  font-weight: 700;
  color: #232f58;
}

.products-page-subtitle {
  color: #6b7280;
  font-size: 18px;
}

/* Featured Product Carousel */
.products-page-featured {
  margin-top: 12px;
  margin-bottom: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.products-page-carousel {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #1a4d6d 100%);
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
}

@media (min-width: 768px) {
  .products-page-carousel {
    min-height: 500px;
  }
}

.products-page-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.products-page-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

@media (min-width: 768px) {
  .products-page-slide {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
  }
}

.products-page-slide-image {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto !important;
  padding-right: 50px !important;
}

.products-page-image-wrapper {
  position: relative; /* Enable absolute positioning for badge */
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.products-page-product-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .products-page-product-img {
    max-width: 448px;
  }
}

.products-page-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-right: 20px; /* Mobile padding */
  padding-left: 20px;  /* Mobile padding */
}

@media (min-width: 768px) {
  .products-page-slide-content {
    padding-right: 48px;
    padding-left: 0;
  }
}

.products-page-slide-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.products-page-product-tag {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(to right, #60a5fa, #3b82f6, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.products-page-product-title {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  max-width: 100%;
}

@media (min-width: 768px) {
  .products-page-product-title {
    font-size: 48px;
  }
}

.products-page-product-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  padding-right: 10px; /* Extra padding for mobile */
}

@media (min-width: 768px) {
  .products-page-product-subtitle {
    padding-right: 0;
  }
}

.products-page-explore-btn {
  background-color: #ffffff;
  color: #111827;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.products-page-explore-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* Disabled state for button without link */
.products-page-explore-btn-disabled {
  cursor: default;
  opacity: 0.6;
}

/* ============================================
   BUTTON CONTAINER - Dual Button Support
   Version: 1.3.0 | Added: 2025-11-06
   ============================================ */

/* Button Container - Mobile First (< 1440px: Vertical Stack) */
.products-page-slide-buttons {
  display: flex;
  flex-direction: column; /* Vertical stack for mobile/tablet/notebook */
  gap: 12px;
  width: 100%;
  align-items: flex-start; /* Align buttons to left on mobile */
}

/* Buttons keep auto width (content-based) on all screens */
.products-page-slide-buttons .products-page-explore-btn {
  width: auto !important; /* Override any inherited width */
  justify-content: center;
  white-space: nowrap;
}

/* Desktop (≥ 1440px): Switch to horizontal layout */
@media (min-width: 1440px) {
  .products-page-slide-buttons {
    flex-direction: row; /* Horizontal layout */
    gap: 16px;
    width: auto;
    align-items: center;
  }
}

/* ============================================
   SECONDARY BUTTON - Custom Red Style
   Matches primary button dimensions exactly
   ============================================ */

.products-page-btn-secondary {
  /* Match primary button styling */
  background: #ce0e2d !important;
  color: #fff !important;
  padding: 12px 24px !important; /* Same as primary button */
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.products-page-btn-secondary:hover {
  background: #a50b24 !important; /* Darker red on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(206, 14, 45, 0.3);
  text-decoration: none !important;
  color: #fff !important;
}

/* Ensure icon color is white */
.products-page-btn-secondary [uk-icon] {
  color: #fff !important;
}

/* Primary button - ensure white background is maintained */
.products-page-btn-primary {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.products-page-btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Carousel Navigation - Mobile */
.products-page-nav-prev,
.products-page-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 56px;
}

.products-page-nav-prev {
  left: 0;
  border-left: none;
  border-radius: 0 28px 28px 0;
  display: none; /* Hidden by default, shown by JS when currentSlide > 0 */
}

.products-page-nav-next {
  right: 0;
  border-right: none;
  border-radius: 28px 0 0 28px;
}

.products-page-nav-prev:hover,
.products-page-nav-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .products-page-nav-prev,
  .products-page-nav-next {
    display: none;
  }
}

/* Carousel Navigation - Desktop */
.products-page-nav-desktop {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: none;
  gap: 8px;
  z-index: 10;
}

@media (min-width: 768px) {
  .products-page-nav-desktop {
    display: flex;
  }
}

.products-page-nav-btn {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.products-page-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Dot Navigation */
.products-page-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.products-page-dot {
  background-color: #d1d5db;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.products-page-dot.active {
  background-color: #1a4d6d;
  width: 32px;
}

.products-page-dot:hover {
  background-color: #9ca3af;
}

/* Product Filter */
.products-page-filter-section {
  margin-top: 48px;
  margin-bottom: 32px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.products-page-filter-label {
  color: #6b7280;
  margin-bottom: 16px !important;
  font-size: 16px;
}

.products-page-select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 2px solid #1e5a8e;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

@media (min-width: 768px) {
  .products-page-select {
    width: 500px;
  }
}

.products-page-category-title {
  font-weight: 700;
  color: #232f58;
  margin-top: 20px !important;
  font-size: 24px;
}

/* Product List */
.products-page-product-list {
  padding-bottom: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.products-page-category-group {
  margin-bottom: 48px;
}

.products-page-category-group:last-child {
  margin-bottom: 0;
}

.products-page-category-header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 24px;
  font-weight: 700;
  color: #232f58;
}

.products-page-products {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-page-product-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .products-page-product-card {
    flex-direction: row !important;
    gap: 24px;
  }
}

/* Hover effect for card (subtle) */
.products-page-product-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.products-page-product-image {
  flex-shrink: 0;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 50%, #1a4d6d 100%);
}

@media (min-width: 768px) {
  .products-page-product-image {
    width: 112px;
    height: 112px;
    padding: 20px;
  }
}

.products-page-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-page-product-info {
  flex: 1;
  text-align: left;
}

.products-page-product-name {
  color: #1e5a8e;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.2s;
}

.products-page-product-description {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

/* Product Buttons Container */
.products-page-product-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button responsive sizing */
@media (max-width: 767px) {
  .products-page-product-buttons {
    flex-direction: column;
  }
  
  .products-page-product-buttons .uk-button {
    width: 100%;
    justify-content: center;
  }
}

/* CTA Section */
.products-page-cta {
  max-width: 1400px;
  margin: 48px auto 48px auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .products-page-cta {
    margin-top: 64px;
    margin-bottom: 64px;
  }
}

.products-page-cta-content {
  background: linear-gradient(135deg, #F5F7FA 0%, #E8EDF3 100%);
  border-radius: 16px;
  border: 1px solid #E1E8EF;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .products-page-cta-content {
    padding: 40px 48px;
  }
}

.products-page-cta-title {
  color: #232f58;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px auto !important;
  line-height: 1.2;
  max-width: 800px;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .products-page-cta-title {
    font-size: 29px;
    margin-bottom: 0px !important;
  }
}

.products-page-cta-description {
  color: #5f6b7a;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 24px auto !important;
  max-width: 850px;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .products-page-cta-description {
    font-size: 18px;
    margin-bottom: 24px !important;
    margin-top: 16px !important;
    max-width: 900px;
  }
}

.products-page-cta-button {
  background: linear-gradient(135deg, #1ED760 0%, #16A667 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-block;
}

.products-page-cta-button:hover {
  background: linear-gradient(135deg, #19c254 0%, #128c56 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
}

@media (min-width: 768px) {
  .products-page-cta-button {
    padding: 14px 32px;
    font-size: 15px;
  }
}

/* Disclaimer */
.products-page-disclaimer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.products-page-disclaimer-box {
  background-color: rgba(249, 250, 251, 0.5);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.6);
  overflow: hidden;
}

.products-page-disclaimer-header {
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  padding: 16px 32px;
  background-color: rgba(255, 255, 255, 0.4);
}

.products-page-disclaimer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.products-page-disclaimer-content {
  padding: 24px 32px;
}

.products-page-disclaimer-text {
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.7;
}

.products-page-disclaimer-caution p {
  color: #6b7280;
  margin: 0;
  line-height: 1.7;
}

.products-page-disclaimer-caution strong {
  font-weight: 600;
  color: #6b7280;
}

/* Icons */
.products-page-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.products-page-icon-md {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.products-page-icon-lg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Utility Classes */
.products-page-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .products-page-h1 {
    font-size: 36px;
  }
  
  .products-page-product-title {
    font-size: 28px;
  }
}

/* Product Badge Styles */
.products-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
  white-space: nowrap;
}

/* Desktop Badge - inline with title */
.products-page-badge-desktop {
  display: none;
  margin-left: 12px;
}

@media (min-width: 768px) {
  .products-page-badge-desktop {
    display: inline-flex;
  }
}

/* Mobile Badge - below title */
.products-page-badge-mobile {
  display: inline-flex;
  margin-top: 8px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .products-page-badge-mobile {
    display: none;
  }
}

/* ============================================
   SLIDER BADGE - Image Overlay Badge
   Version: 1.4.0 | Added: 2025-11-06
   ============================================ */

/* Slider badge - positioned in top-right corner of image box */
.products-page-slide-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important; /* Override any left positioning */
  bottom: auto !important; /* Override any bottom positioning */
  z-index: 10; /* Above image, below navigation */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Slight shadow for visibility */
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .products-page-slide-badge {
    top: 8px !important;   /* Slightly smaller padding on mobile */
    right: 8px !important;
    font-size: 12px; /* Smaller text on mobile */
    padding: 3px 10px; /* Compact padding */
  }
}

/* Product Title Wrapper - for flexbox layout */
.products-page-product-title-wrapper {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .products-page-product-title-wrapper {
    align-items: center;
    flex-wrap: nowrap;
  }
}

/* Product SKU */
.products-page-product-sku {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* HTML Typography Support */
.products-page-product-title sup,
.products-page-product-name sup,
.products-page-product-subtitle sup,
.products-page-product-description sup {
  font-size: 0.50em;
  vertical-align: super;
  line-height: 0;
}

sup {
  top: -0.2em;
}

.products-page-product-title sub,
.products-page-product-name sub,
.products-page-product-subtitle sub,
.products-page-product-description sub {
  font-size: 0.6em;
  vertical-align: sub;
  line-height: 1;
  position: relative;
  bottom: -0.2em;
}

.products-page-product-title strong,
.products-page-product-name strong,
.products-page-product-subtitle strong,
.products-page-product-description strong {
  font-weight: 700;
}

.products-page-product-title em,
.products-page-product-name em,
.products-page-product-subtitle em,
.products-page-product-description em {
  font-style: italic;
}

/* Fix line-height for elements containing superscript */
.products-page-product-title,
.products-page-product-name,
.products-page-product-subtitle {
  line-height: 1.4;
}

/* ============================================
   LARGE SCREEN RESPONSIVE (1440px+)
   Remove horizontal padding for full-width layout
   ============================================ */
@media (min-width: 1440px) {
  .products-page-breadcrumbs,
  .products-page-healthcare-banner,
  .products-page-page-header,
  .products-page-featured,
  .products-page-filter-section,
  .products-page-product-list,
  .products-page-cta,
  .products-page-disclaimer {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ============================================
   INSTANT FILTER TRANSITIONS (v1.5.0)
   Client-Side Filtering Performance Enhancements
   ============================================ */

/* Smooth fade transitions for filtering */
.products-page-category-group,
.products-page-product-card {
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

/* Hidden state (managed by jQuery fadeIn/fadeOut) */
.products-page-category-group[style*="display: none"],
.products-page-product-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.98);
}

/* Visible state */
.products-page-category-group:not([style*="display: none"]),
.products-page-product-card:not([style*="display: none"]) {
  opacity: 1;
  transform: scale(1);
}

/* Pulse effect on category headers when filtering */
@keyframes categoryPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.products-page-category-header {
  animation: categoryPulse 0.3s ease-in-out;
}

/* Optional: Prevent layout shift during filter */
.products-page-product-list {
  min-height: 400px;
}

/* Category count styling */
.category-count {
  display: inline;
  font-weight: inherit;
}

/* ============================================
   RTL SUPPORT (Arabic and other RTL languages)
   WPML adds dir="rtl" to <html> for RTL languages
   ============================================ */

/* --- Text Alignment --- */
[dir="rtl"] .products-page-product-info {
  text-align: right;
}

[dir="rtl"] .products-page-mobile-nav-link {
  text-align: right;
}

[dir="rtl"] .products-page-region-menu-item {
  text-align: right;
}

/* --- Product Card: Flip image/info order --- */
[dir="rtl"] .products-page-product-card {
  direction: rtl;
}

/* --- Select Dropdown Arrow: Move to left side --- */
[dir="rtl"] .products-page-select {
  background-position: left 16px center;
  padding: 0 16px 0 36px;
}

/* --- Carousel Slide: Flip image/content padding --- */
[dir="rtl"] .products-page-slide-image {
  padding-right: 0 !important;
  padding-left: 50px !important;
}

@media (min-width: 768px) {
  [dir="rtl"] .products-page-slide-content {
    padding-right: 0;
    padding-left: 48px;
  }
}

/* --- Slider Badge: Flip to left corner --- */
[dir="rtl"] .products-page-slide-badge {
  right: auto !important;
  left: 12px !important;
}

@media (max-width: 767px) {
  [dir="rtl"] .products-page-slide-badge {
    right: auto !important;
    left: 8px !important;
  }
}

/* --- Product Badge Desktop: Flip margin --- */
[dir="rtl"] .products-page-badge-desktop {
  margin-left: 0;
  margin-right: 12px;
}

/* --- Search Icon: Flip position --- */
[dir="rtl"] .products-page-search-icon {
  right: auto;
  left: 10px;
}

[dir="rtl"] .products-page-search-input {
  padding: 0 12px 0 36px;
}

/* --- Mobile Menu: Slide from left instead of right --- */
[dir="rtl"] .products-page-mobile-menu {
  right: auto;
  left: -100%;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .products-page-mobile-menu.active {
  right: auto;
  left: 0;
}

/* --- Mobile Menu Header: Flip close button --- */
[dir="rtl"] .products-page-mobile-header {
  justify-content: flex-start;
}

/* --- Carousel Navigation Desktop: Flip position --- */
[dir="rtl"] .products-page-nav-desktop {
  right: auto;
  left: 24px;
}

/* --- Carousel Navigation Mobile: Flip prev/next --- */
[dir="rtl"] .products-page-nav-prev {
  left: auto;
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 28px 0 0 28px;
}

[dir="rtl"] .products-page-nav-next {
  right: auto;
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-radius: 0 28px 28px 0;
}

/* --- Region Dropdown Menu: Flip position --- */
[dir="rtl"] .products-page-region-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .products-page-mobile-region-menu {
  left: auto;
  right: 0;
}

/* --- Breadcrumb Separator: Flip direction --- */
[dir="rtl"] .products-page-breadcrumb-separator svg {
  transform: scaleX(-1);
}

/* --- Toolbar: Flip alignment --- */
[dir="rtl"] .products-page-toolbar-content {
  justify-content: flex-start;
}

/* --- Slide Button Container: Flip alignment --- */
/* RTL: flex-start = right side (inline-start in RTL) */
[dir="rtl"] .products-page-slide-buttons {
  align-items: flex-start;
}

@media (min-width: 1440px) {
  [dir="rtl"] .products-page-slide-buttons {
    align-items: center;
  }
}

/* --- Product Description: Ensure RTL text rendering --- */
[dir="rtl"] .products-page-product-description {
  direction: rtl;
  text-align: right;
}

/* --- Product SKU: RTL alignment --- */
[dir="rtl"] .products-page-product-sku {
  direction: ltr;
  text-align: right;
}

/* --- CTA Section: Already centered, ensure RTL text --- */
[dir="rtl"] .products-page-cta-content {
  direction: rtl;
}

/* --- Disclaimer: RTL text --- */
[dir="rtl"] .products-page-disclaimer-content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .products-page-disclaimer-title {
  direction: rtl;
}

/* --- Banner: RTL alignment --- */
[dir="rtl"] .products-page-banner-title {
  direction: rtl;
}

/* --- Filter Label: RTL alignment --- */
[dir="rtl"] .products-page-filter-label {
  text-align: right;
}

/* --- Category Header: RTL alignment --- */
[dir="rtl"] .products-page-category-header {
  text-align: right;
}

/* --- No Products Message: RTL --- */
[dir="rtl"] .products-page-no-products {
  text-align: right;
}
