/* ===========================================================
   Layout Containers
=========================================================== */

body .rmc-product-catalog .rmc-search-input,
.rmc-search-input {
  width: 100% !important;
  padding: 0.75rem 1rem 0.75rem 2.5rem !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 2rem !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 20px !important;
  background-color: white !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: normal !important;
  min-height: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: all 0.2s ease !important;
}

body .rmc-product-catalog .rmc-search-input:focus,
.rmc-search-input:focus {
  outline: none !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

body .rmc-product-catalog .rmc-search-input::placeholder,
.rmc-search-input::placeholder {
  color: #9aa0a6 !important;
  font-size: 0.875rem !important;
}

/* Main Product Catalog Container */
.rmc-product-catalog {
  display: flex;
  width: 100%;
  height: 86vh; /* Keep original height */
  padding: 16px 36px 24px 36px;
  position: relative;
  max-width: none; /* Add max-width */
  margin: 0 auto; /* Center the catalog */
  box-sizing: border-box;
}

/* Filters Sidebar */
.rmc-filters {
  width: clamp(280px, 30vw, 320px);
  max-width: 100%;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
  padding: 0 15px;
  flex-shrink: 0; /* Prevent shrinking */
}

.desktop-filters {
  width: 320px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

.mobile-filters {
  display: none;
}

/* Product Grid Area */
.rmc-product-grid {
  height: calc(100% - 60px);
  padding: 0;
}

.rmc-product-grid-empty {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

/* ===========================================================
   Active Filters and Search Bar
=========================================================== */
.rmc-catalog-layout {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.rmc-catalog-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
}

.rmc-active-filters-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: white;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rmc-active-filters-label {
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.rmc-no-filters {
  color: #6b7280;
  font-style: italic;
}

.rmc-active-filters-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  position: relative;
  padding: 4px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rmc-active-filters-list::-webkit-scrollbar {
  display: none;
}

.rmc-search-container {
  position: relative;
  min-width: 250px;
  margin-left: auto;
  margin-right: 12px;
  z-index: 4;
}

.rmc-active-filters-scroll-container {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.rmc-active-filters-scroll-container.show-shadow::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 8px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.01) 15%,
    rgba(0, 0, 0, 0.03) 30%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.07) 75%,
    rgba(0, 0, 0, 0.08) 100%
  );
  box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.3) inset;
  z-index: 1;
}

.rmc-active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  transition: background-color 150ms ease-in-out;
  white-space: nowrap;
}

.rmc-active-filter-tag:hover {
  background-color: #a6a7a9;
}

.rmc-filter-tag-text {
  display: inline-block;
  font-size: 0.875rem;
  color: #555;
}

.rmc-filter-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  border-radius: 9999px;
  font-size: 1rem;
  line-height: 1;
  color: #6b7280;
  transition: background-color 150ms ease-in-out;
}

.rmc-filter-tag-remove:hover {
  color: #374151;
  background-color: #d1d5db;
}

/* ===========================================================
   Product Grid and Cards
=========================================================== */

.product-category-section {
  margin-bottom: 2rem;
}

.category-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rmc-product-card {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rmc-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rmc-product-card h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2em;
}

.rmc-download-button {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #ff8c00;
  border: none;
  cursor: pointer;
  padding: 0;
  color: white;
  transition: all 0.2s ease;
}

.rmc-download-button:hover {
  background: #ff7000;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

.rmc-download-button:active {
  background: #e66000;
  transform: translateY(1px);
  box-shadow: none;
  color: white;
}

.rmc-download-button svg {
  stroke: white;
}

/* Tooltip styling */
.rmc-download-button::after {
  content: "Download Spec Sheet";
  position: absolute;
  top: 50%;
  right: calc(100% + 8px); /* Move to the left of the button */
  transform: translateY(-50%); /* Center vertically */
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.rmc-download-button::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100%); /* Position arrow at the right end of tooltip */
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.rmc-download-button:hover::after,
.rmc-download-button:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ===========================================================
   Scrollbar Styles
=========================================================== */

.rmc-filters::-webkit-scrollbar,
.rmc-product-grid::-webkit-scrollbar {
  width: 8px;
}

.rmc-filters::-webkit-scrollbar-track,
.rmc-product-grid::-webkit-scrollbar-track {
  background: transparent;
}

.rmc-filters::-webkit-scrollbar-thumb,
.rmc-product-grid::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* ===========================================================
   Filter Components
=========================================================== */

/* Filter Header */
.filter-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}

.filter-header-checkbox {
  margin-left: 8px !important;
  margin-right: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 13px !important;
  height: 13px !important;
  border: 2px solid #6b7280 !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  position: relative !important;
  background: white !important;
}

.filter-header-checkbox:checked {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.filter-header-checkbox:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  width: 4px !important;
  height: 7px !important;
  border: solid white !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Filter Count Display */
.filter-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  min-height: 28px;
}

/* Filter Badge */
.filter-badge {
  background-color: #e0e7ff;
  color: #4f46e5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 2rem; /* Add minimum width to prevent collapse */
  opacity: 1;
  transition: all 0.2s ease; /* Transition all properties */
  overflow: hidden; /* Contain the number */
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-badge-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Clear Filters Button */
.clear-filters {
  font-size: 0.875rem;
  color: #53525b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  margin-left: 8px;
  white-space: nowrap;
  height: 28px;
  opacity: 1;
  border-radius: 9999px;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e7ff;
}

.clear-filters:hover {
  background-color: #c7d2fe;
  color: #4f46e5;
}

.clear-filters-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Filter Sections Container */
.filter-sections {
  position: relative;
  padding-bottom: 0;
}

/* Individual Filter Section */
.filter-section {
  padding: 0 0 16px 0;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease-in-out;
  transform-origin: top;
  opacity: 1;
  position: relative;
}

/* Remove Border for Last Filter Section */
.filter-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* Filter Section Header */
.filter-section-header {
  position: sticky;
  top: 42px;
  background: white;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  user-select: none;
  height: 28px; /* Set explicit height to ensure consistent centering */
}

/* Header checkbox specific styling and positioning */
.filter-section-header .filter-section-title {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
}

.filter-section-header .filter-section-title input[type="checkbox"] {
  margin-left: 18px !important;
  margin-right: 4px !important;
  /* Visual styling */
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 13px !important;
  height: 13px !important;
  border: 2px solid #6b7280 !important;
  border-radius: 2px !important;
  background-color: white !important;
  position: relative !important;
  cursor: pointer !important;
}

/* Header checkbox checked state */
.filter-section-header .filter-section-title input[type="checkbox"]:checked {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

/* Header checkbox checkmark */
.filter-section-header
  .filter-section-title
  input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  width: 4px !important;
  height: 7px !important;
  border: solid white !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Header checkbox hover state */
.filter-section-header .filter-section-title input[type="checkbox"]:hover {
  border-color: #4f46e5 !important;
}

.filter-section-header .filter-section-title h3 {
  margin: 0;
  padding-left: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.filter-section-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.2s ease-out;
}

.filter-section-content.expanded {
  max-height: 500px; /* Arbitrary large value */
  opacity: 1;
}

.expand-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #6b7280;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.expand-icon.expanded {
  transform: translateY(-50%) rotate(0deg);
}

.expand-icon:not(.expanded) {
  transform: translateY(-50%) rotate(-90deg);
}

/* Filter Tooltip */
.filter-tooltip {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #848484;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0;
  padding: 0;
}

.filter-tooltip:hover {
  background: #d1d5db;
  color: #2f3540;
  border: 1px solid #646464;
}

/* ===========================================================
   Tooltip Components
=========================================================== */

.tooltip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tooltip-popup {
  position: fixed;
  min-height: 80px;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0;
  z-index: 1001;
  animation: tooltipFadeIn 0.2s ease-out;
  left: auto !important;
  transform-origin: right top;
}

.tooltip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #848484;
  font-size: 11px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.tooltip-close:hover {
  background: #d1d5db;
  color: #2f3540;
  border: 1px solid #646464;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.tooltip-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.tooltip-content {
  padding: 10px 16px 16px;
}

.tooltip-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================================================
   Filter Options
=========================================================== */

.filter-group {
  padding-left: 38px;
  display: flex;
  flex-direction: column;
  gap: 1.8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 0;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  outline: none !important;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  border: 2px solid #6b7280 !important;
  border-radius: 2px !important;
  background-color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.filter-option input[type="checkbox"]:checked {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.filter-option input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  width: 4px !important;
  height: 7px !important;
  border: solid white !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  box-sizing: content-box !important;
}

.filter-option input[type="checkbox"]:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2) !important;
}

.filter-option input[type="checkbox"]:hover {
  border-color: #4f46e5 !important;
}

.filter-option input[type="checkbox"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.filter-option span {
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.filter-option:hover span {
  color: #333;
}

/* ===========================================================
   Product Card Components
=========================================================== */

.rmc-product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.rmc-product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.rmc-type-indicator {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
}

.rmc-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.emt .rmc-type-dot {
  background-color: #10b981;
}

.imc .rmc-type-dot {
  background-color: #3b82f6;
}

.rigid .rmc-type-dot {
  background-color: #94a3b8;
}

.rmc-type-label {
  color: #374151;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.rmc-product-content {
  padding: 0.5rem 1rem 1.25rem;
}

.rmc-product-title {
  margin: 0;
  padding: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: #111827;
  line-height: 1.3;
}

.rmc-primary-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rmc-spec {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
}

.rmc-environments {
  margin-bottom: 1rem;
}

.rmc-env-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.rmc-env-tag {
  background-color: #e0e7ff;
  color: #4338ca;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.rmc-options {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.4;
}

.rmc-certifications ul,
.rmc-options ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.rmc-certifications li,
.rmc-options li {
  margin-bottom: 0.25rem;
}

.rmc-options li:last-child {
  margin-bottom: 0;
}

.rmc-product-card strong {
  font-size: 0.875rem;
  color: #374151;
}

.rmc-product-description {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #4b5563;
  margin: 0.5rem 0 1rem;
}

.rmc-product-details {
  padding: 0;
}

.rmc-product-details p {
  color: #666;
  margin: 0 0 15px 0;
  font-size: 0.9em;
}

.rmc-product-details ul {
  margin: 0;
  padding-left: 20px;
  color: #444;
}

.rmc-product-details li {
  margin-bottom: 8px;
  font-size: 0.9em;
}

/* ===========================================================
   Responsive Adjustments
=========================================================== */

@media (max-width: 1200px) {
  .rmc-product-grid {
    padding: 0px;
    margin-top: 1rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rmc-product-catalog {
    padding: 0 20px;
  }
  .rmc-catalog-layout {
    gap: 1rem;
  }
  .rmc-filters {
    width: 280px;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .rmc-product-grid {
    padding: 0px;
  }
  .rmc-catalog-layout {
    flex-direction: column;
    gap: 0rem;
  }

  .rmc-catalog-content {
    width: 100%;
  }

  .rmc-product-catalog {
    height: auto;
    flex-direction: column;
  }

  /* Hide desktop sidebar filters on mobile */
  .rmc-catalog-layout > .rmc-filters {
    display: none;
  }
  .mobile-filters {
    display: block;
  }

  .rmc-filters {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

  .rmc-filters.expanded {
    transform: none;
  }

  .filter-sections {
    height: calc(100% - 24px);
    overflow-y: auto;
    padding: 0 15px 100px;
  }

  .filter-section-header {
    top: 0;
  }
  .filter-drawer {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 0;
    width: 100%;
    transform: translateY(calc(100% - 60px));
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  .filter-drawer.expanded {
    transform: translateY(15vh);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .filter-drawer-content {
    flex: 1;
    overflow: auto;
    position: relative;
  }

  .filter-drawer-handle {
    flex-shrink: 0;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    z-index: 2;
    border-radius: 16px 16px 0 0;
  }

  .filter-drawer-handle .handle-icon {
    display: inline-block;
    padding-top: 12px;
    padding-bottom: 0px;
    font-size: 1.2rem;
  }

  .filter-drawer-handle .handle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .filter-drawer.expanded .handle-arrow {
    transform: rotate(180deg);
  }

  .filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
  }

  .filter-drawer-overlay.visible {
    opacity: 0.9;
    pointer-events: auto;
  }

  .rmc-product-grid {
    margin-left: 0;
    height: auto;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .rmc-active-filters-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 12px;
  }

  .rmc-search-container {
    min-width: 100%;
    order: -1;
    margin: 0;
  }

  .rmc-active-filters-label {
    width: auto;
  }
  .rmc-filters {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 0 15px;
    position: relative;
    background: white;
  }
}

@media (max-width: 576px) {
  .rmc-product-catalog {
    padding: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Single Product View (v2)
=========================================================== */

.rmc-single-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.rmc-single-product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rmc-single-product-header .rmc-type-indicator {
  position: static;
}

.rmc-product-category {
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
}

.rmc-single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.rmc-single-product-image {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmc-single-product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rmc-single-product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rmc-product-sku {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.rmc-product-sku strong {
  color: #374151;
  font-family: monospace;
}

.rmc-single-product .rmc-product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.rmc-product-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rmc-spec-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rmc-spec-group strong {
  font-size: 0.875rem;
  color: #374151;
}

.rmc-spec-group span {
  color: #4b5563;
}

.rmc-spec-group .rmc-env-tags {
  margin-top: 0.25rem;
}

.rmc-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.rmc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.rmc-button-primary {
  background: #ff8c00;
  color: white;
}

.rmc-button-primary:hover {
  background: #ff7000;
  color: white;
}

.rmc-button-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.rmc-button-secondary:hover {
  background: #e5e7eb;
  color: #111827;
}

.rmc-back-to-catalog {
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.rmc-back-to-catalog a {
  color: #4f46e5;
  text-decoration: none;
  font-size: 0.875rem;
}

.rmc-back-to-catalog a:hover {
  text-decoration: underline;
}

/* Product card link styles */
.rmc-product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.rmc-product-link:hover {
  text-decoration: none;
  color: inherit;
}

.rmc-product-card {
  display: flex;
  flex-direction: column;
}

.rmc-product-content {
  flex: 1;
  padding: 1rem;
}

/* No image placeholder */
.rmc-no-image {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

@media (max-width: 768px) {
  .rmc-single-product {
    padding: 1rem;
  }

  .rmc-single-product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rmc-product-actions {
    flex-direction: column;
  }

  .rmc-button {
    justify-content: center;
  }
}

/* ===========================================================
   Full Product Page Template (v2)
   Matches Kadence-built product pages exactly
=========================================================== */

.rmc-product-page {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0;
}

/* Breadcrumb Row Container - matches Kadence row layout */
.rmc-breadcrumb-row {
  max-width: 2000px;
  padding: 1.5rem 0 0 0;
  margin: 0;
}

/* Breadcrumb Navigation - matches Kadence H5 advancedheading */
h5.rmc-breadcrumb {
  padding: 0 0 0 56px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #3b4453;
  font-family: var(--global-heading-font-family, inherit);
}

h5.rmc-breadcrumb a {
  color: #3b4453;
  text-decoration: underline;
}

/* Hero Section - matches Kadence row layout */
.rmc-product-hero {
  display: grid;
  grid-template-columns: 47% 1fr;
  column-gap: 48px;
  padding: 32px 56px;
  margin: 0;
}

.rmc-product-hero-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: -2rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rmc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.rmc-hero-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.rmc-product-hero-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 8px;
}

/* Product Title Group - keeps title and SKU tight */
.rmc-product-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Product Title - matches .kt-adv-heading H3 */
.rmc-product-page .rmc-product-title {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #303030;
  text-transform: uppercase;
  line-height: 1.4;
}

/* SKU Display - subheader with Chakra Petch */
h4.rmc-product-sku-display {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f2562c;
  text-transform: uppercase;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
}

/* Actions Row: Spec Sheet + Cert Logos */
.rmc-product-actions-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 8px 0;
  flex-wrap: wrap;
}

/* Spec Sheet Button - matches Kadence button styling */
.rmc-spec-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #292929;
  border: 2px solid #f2562c;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rmc-spec-sheet-btn:hover {
  background: #4a5568;
  color: #fff;
  border-color: #f2562c;
}

.rmc-spec-sheet-btn svg {
  fill: #292929;
  transition: fill 0.2s ease;
}

.rmc-spec-sheet-btn:hover svg {
  fill: #fff;
}

.rmc-cert-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rmc-cert-logo {
  height: auto;
  object-fit: contain;
}

/* Individual logo sizes to match original Kadence */
.rmc-cert-logo[alt="CUL"] {
  max-width: 66px;
}

.rmc-cert-logo[alt="UL"] {
  max-width: 100px;
}

.rmc-cert-logo[alt="CSA"] {
  max-width: 80px;
}

/* Section Headings */
h3.rmc-section-heading {
  margin: 0;
  padding: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #303030;
  text-transform: uppercase;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
}

/* Product Features */
.rmc-product-features {
  margin: 0;
}

/* Shared list styles */
.rmc-features-list,
.rmc-certifications-list,
.rmc-applications-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.6;
}

.rmc-features-list li,
.rmc-certifications-list li,
.rmc-applications-list li {
  padding-bottom: 12px;
}

/* Certifications */
.rmc-product-certifications {
  margin-top: 1rem;
}

/* Applications Section - matches Kadence two-column layout */
.rmc-applications-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 4rem;
  padding: 32px 56px;
  margin: 0;
}

.rmc-applications-content {
  padding: 0;
}

.rmc-applications-image {
  min-height: 300px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #000;
}

/* Jump to Chart Links - matches Kadence button group */
.rmc-table-jumps {
  padding: 1.5rem 56px;
  margin: 0;
}

.rmc-jumps-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #303030;
  text-transform: uppercase;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
  margin: 0 0 0.75rem 0;
}

.rmc-jumps-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Jump Buttons - matches Spec Sheet button styling */
.rmc-jump-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #292929;
  border: 2px solid #f2562c;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rmc-jump-btn:hover {
  background: #4a5568;
  color: #fff;
}

/* Specification Tables Section */
.rmc-spec-tables-section {
  padding: 0 56px 2rem 56px;
}

.rmc-spec-table-wrapper {
  margin-bottom: 2rem;
}

.rmc-spec-table-wrapper[id] {
  scroll-margin-top: 48px;
}

.rmc-spec-table-wrapper:last-child {
  margin-bottom: 0;
}

/* Divider before table title */
.rmc-spec-table-wrapper .rmc-table-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 1.5rem 0;
}

.rmc-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: #303030;
  text-transform: uppercase;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
  margin: 0 0 0.75rem 0;
  padding: 0;
}

.rmc-spec-table-content {
  overflow-x: auto;
}

/* Table styling (for inline tables and shortcode tables) */
.rmc-spec-table-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rmc-spec-table-content th,
.rmc-spec-table-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.rmc-spec-table-content th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
}

.rmc-spec-table-content tr:nth-child(even) {
  background: #f9fafb;
}

/* Back Link */
.rmc-back-link {
  padding: 2rem 56px;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

.rmc-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #292929;
  border: 2px solid #f2562c;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Chakra Petch', var(--global-heading-font-family), sans-serif;
  transition: all 0.2s ease;
}

.rmc-back-link a:hover {
  background: #4a5568;
  color: #fff;
}

.rmc-back-link svg {
  stroke: currentColor;
}

/* Product Page Responsive - Tablet */
@media (max-width: 992px) {
  h5.rmc-breadcrumb {
    padding-left: 24px;
  }

  .rmc-product-hero {
    column-gap: 2rem;
    padding: 0 24px;
  }

  .rmc-product-hero-image {
    margin-top: 0;
  }

  .rmc-applications-section {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .rmc-applications-image {
    min-height: 250px;
    order: -1;
  }

  .rmc-table-jumps,
  .rmc-spec-tables-section,
  .rmc-back-link {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Product Page Responsive - Mobile */
@media (max-width: 768px) {
  h5.rmc-breadcrumb {
    padding-left: 16px;
    font-size: 16px;
  }

  .rmc-product-hero {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 1.5rem;
  }

  .rmc-product-hero-image {
    max-height: 350px;
    margin-top: 0;
    aspect-ratio: auto;
  }

  .rmc-product-page .rmc-product-title {
    font-size: 1.125rem;
  }

  .rmc-product-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .rmc-cert-logos {
    flex-wrap: wrap;
  }

  .rmc-cert-logo[alt="CUL"],
  .rmc-cert-logo[alt="UL"],
  .rmc-cert-logo[alt="CSA"] {
    max-width: 60px;
  }

  .rmc-applications-section {
    padding: 32px 16px;
    gap: 1.5rem;
  }

  .rmc-applications-image {
    min-height: 200px;
  }

  .rmc-table-jumps {
    padding: 1.5rem 16px;
  }

  .rmc-jumps-buttons {
    flex-direction: column;
  }

  .rmc-jump-btn {
    text-align: center;
    justify-content: center;
  }

  .rmc-spec-tables-section {
    padding: 1.5rem 16px;
  }

  .rmc-spec-table-content {
    font-size: 0.8125rem;
  }

  .rmc-back-link {
    padding: 1.5rem 16px;
  }
}
