/* ============================================================
   Sterilite Color Swatches Widget
   ============================================================ */

.sterilite-color-swatches-wrapper {
  display: inline-flex;
  flex-direction: column;
  gap: 13px;
}

.sterilite-swatch-header {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}

.sterilite-swatch-label {
  font-weight: 600;
  font-size: 18px;
}

.sterilite-swatch-color-name {
  font-size: 18px;
  font-weight: 400;
}

.sterilite-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sterilite-swatch-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.3s ease;
  outline-color: #757575;
  outline-style: solid;
  outline-width: 1px;
}

.sterilite-swatch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.sterilite-swatch-item.is-active {
  outline-color: #757575;
  outline-style: solid;
  outline-width: 2px;
}

.sterilite-swatch-item:hover {
  outline-color: #757575;
  outline-style: solid;
  outline-width: 2px;
}

.sterilite-swatch-notice {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* ============================================================
   Sterilite Specs Table Widget
   ============================================================ */

.sterilite-specs-table-wrapper {
  width: 100%;
}

.sterilite-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  line-height: 1.3;
  font-family: "Nunito", Sans-serif;
}

.sterilite-specs-table tbody tr:nth-child(odd) td {
  background-color: #eeeeee;
}

.sterilite-specs-table tbody tr:nth-child(even) td {
  background-color: #ffffff;
}

.sterilite-specs-table tbody tr td:first-child {
  border-radius: 12px 0 0 12px;
}

.sterilite-specs-table tbody tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.sterilite-specs-table td {
  padding: 10px 18px;
  vertical-align: top;
  border: 0;
}

.sterilite-specs-table td.sterilite-specs-label {
  font-weight: 600;
  width: 40%;
  color: #222222;
  white-space: nowrap;
}

/* ============================================================
   Sterilite Where to Buy Widget
   ============================================================ */

.sterilite-where-to-buy-wrapper {
  display: inline-block;
}

.sterilite-where-to-buy-wrapper .ps-widget {
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1px solid #1d9086 !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.sterilite-where-to-buy-wrapper .ps-button-label {
  flex: 1 !important;
  background: #ffffff !important;
  color: #1d9086 !important;
  font-family: "Nunito", Sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 16px 39px 15px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: all 0.5s ease !important;
}

.sterilite-where-to-buy-wrapper .ps-widget:hover .ps-button-label {
  background: #1d9086 !important;
  color: #ffffff !important;
}

.sterilite-where-to-buy-wrapper .ps-widget::after {
  content: "" !important;
  display: flex !important;
  align-items: stretch !important;
  flex-shrink: 0 !important;
  width: 52px !important;
  background-color: #1d9086 !important;
  background-image: url("../images/where-to-buy-car.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 28px 28px !important;
}

.sterilite-where-to-buy-wrapper .ps-widget > small {
  display: none !important;
}

/* ============================================================
   Sterilite Product Filter Widget
   ============================================================ */

.sterilite-product-filter {
  display: flex;
  gap: 21px;
  align-items: flex-start;
  position: relative;
}

.sterilite-sidebar {
  width: 264px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sterilite-search-wrap {
  position: relative;
}

.sterilite-search {
  padding: 14px 40px 11px 16px !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 50px !important;
  font-size: 16px;
  background: #fff;
}

.sterilite-search::placeholder {
  color: #b3b3b3;
}

.sterilite-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e1e1e;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.sterilite-filter-group {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.1);
}

.sterilite-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 19px 24px;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}

.sterilite-filter-header:hover,
.sterilite-filter-header:focus {
  background: none;
}

.sterilite-filter-label {
  font-weight: 600;
  font-size: 20px;
  color: #1e1e1e;
  text-wrap: auto;
}

.sterilite-filter-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #000000;
  transition: transform 0.5s ease;
}

.sterilite-filter-group:not(.is-open) .sterilite-filter-chevron {
  transform: rotate(180deg);
}

.sterilite-filter-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px 21px;
  overflow: auto;
  max-height: 500px;
  transition: all 0.25s ease;
}

.sterilite-filter-body.sterilite-body-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Checkbox row */
.sterilite-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}

/* Hierarchical category — child items indented */
.sterilite-checkbox-child {
  padding-left: 8px;
}

/* Native checkbox — sized and styled to match the mockup */
.sterilite-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #9ca3af;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s;
  margin: 0;
}

.sterilite-checkbox-label input[type="checkbox"]:checked {
  background: #111827;
  border-color: #111827;
}

/* Checkmark via pseudo-element */
.sterilite-checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Remove the now-unused custom box element */
.sterilite-checkbox-custom {
  display: none;
}

.sterilite-checkbox-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

.sterilite-term-count {
  color: #9ca3af;
  font-size: 13px;
}

/* ── Content area ── */
.sterilite-content {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* Loading overlay */
.sterilite-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.sterilite-loading[hidden] {
  display: none;
}

.sterilite-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: sterilite-spin 0.7s linear infinite;
}

@keyframes sterilite-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Product grid */
.sterilite-products-grid {
  display: grid;
  gap: 20px;
  transition: opacity 0.2s;
}

.sterilite-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.sterilite-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.sterilite-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Product card */
.sterilite-product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.sterilite-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sterilite-product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sterilite-product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f9fafb;
}

.sterilite-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.sterilite-product-card:hover .sterilite-product-image {
  transform: scale(1.04);
}

.sterilite-product-info {
  padding: 12px 4px 8px;
}

/* Stars */
.sterilite-product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

.sterilite-star {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1;
}

.sterilite-star.filled {
  color: #f59e0b;
}

.sterilite-rating-score {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  margin-left: 4px;
}

.sterilite-rating-count {
  font-size: 12px;
  color: #9ca3af;
}

.sterilite-product-title {
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sterilite-product-sku {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* No products message */
.sterilite-no-products {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 40px 0;
  font-size: 15px;
}

/* ── Pagination bar (count + nav) ── */
.sterilite-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.sterilite-product-count {
  font-size: 14px;
  font-family: "Nunito", Sans-serif;
  color: #374151;
  white-space: nowrap;
}

.sterilite-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sterilite-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-family: "Nunito", Sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  line-height: 1;
  white-space: nowrap;
}

.sterilite-page-btn:hover:not(:disabled):not(.active) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.sterilite-page-btn.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  cursor: default;
}

.sterilite-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sterilite-page-ellipsis {
  padding: 0 4px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 36px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sterilite-product-filter {
    flex-direction: column;
  }

  .sterilite-sidebar {
    width: 100%;
  }

  .sterilite-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sterilite-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sterilite-cols-4,
  .sterilite-cols-3,
  .sterilite-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Sterilite Product Gallery Widget
   ============================================================ */

.sterilite-thumbnail-slider {
  padding-top: 10px;
}

/* ============================================================
    Product Description - Product Page
============================================================ */

.prod-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.prod-description.expanded {
  display: block;
}

.read-more-btn {
  display: inline-block;
  color: #1d9086;
  cursor: pointer;
  font-weight: 700;
  border: none;
  padding: 0;
  text-align: left;
}

.read-more-btn:hover,
.read-more-btn:focus,
.read-more-btn:focus-visible {
  background: #ffffff;
  color: #1d9086;
}
