/**
 * El Hamd Plastics Official Product Catalog & Detail Styles (v2.0.0)
 * Scoped strictly to avoid interfering with global theme/header/footer.
 * Palette: Navy (#062866), Brand Blue (#005BAA), Cyan (#00A5EE), Ice White (#F8FBFE).
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

/* Scope root container */
.elh-catalog-scope,
.elh-detail-scope {
  --elh-navy: #062866;
  --elh-blue: #005BAA;
  --elh-cyan: #00A5EE;
  --elh-bg: #F8FBFE;
  --elh-card-bg: #FFFFFF;
  --elh-border: #DCEAF4;
  --elh-border-hover: #00A5EE;
  --elh-text: #0D274D;
  --elh-muted: #5C7590;
  --elh-radius: 16px;
  --elh-shadow-sm: 0 4px 16px rgba(6, 40, 102, 0.05);
  --elh-shadow-md: 0 8px 24px rgba(6, 40, 102, 0.09);
  --elh-shadow-lg: 0 16px 40px rgba(6, 40, 102, 0.12);
  
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background-color: var(--elh-bg);
  color: var(--elh-text);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  overflow-x: clip;
}

.elh-catalog-scope *,
.elh-detail-scope * {
  box-sizing: border-box;
}

/* Technical number styling */
.elh-num,
.bdi-spec {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  unicode-bidi: embed;
  direction: ltr;
  display: inline-block;
}

/* RTL / LTR layout helpers */
[dir="rtl"] .elh-catalog-scope,
[dir="rtl"] .elh-detail-scope {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] .elh-catalog-scope,
[dir="ltr"] .elh-detail-scope {
  direction: ltr;
  text-align: left;
}

/* Accessible focus ring */
.elh-catalog-scope *:focus-visible,
.elh-detail-scope *:focus-visible {
  outline: 3px solid var(--elh-cyan) !important;
  outline-offset: 2px !important;
}

/* Wrappers */
.elh-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.elh-section {
  padding: 1.25rem 0;
}

/* Cards */
.elh-card {
  background: var(--elh-card-bg);
  border: 1.5px solid var(--elh-border);
  border-radius: var(--elh-radius);
  box-shadow: var(--elh-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.elh-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--elh-shadow-md);
  border-color: var(--elh-cyan);
}

.elh-pad {
  padding: 1.25rem;
}

.elh-pad-sm {
  padding: 0.85rem;
}

/* Breadcrumbs & Badges */
.elh-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--elh-muted);
}

.elh-breadcrumbs a {
  color: var(--elh-navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

.elh-breadcrumbs a:hover {
  color: var(--elh-cyan);
}

.elh-breadcrumbs .active {
  color: var(--elh-cyan);
  font-weight: 800;
}

.elh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 165, 238, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--elh-navy);
  border: 1px solid rgba(0, 165, 238, 0.28);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--elh-cyan);
  display: inline-block;
  box-shadow: 0 0 0 rgba(0, 165, 238, 0.5);
  animation: elhPulse 2s infinite;
}

@keyframes elhPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 165, 238, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(0, 165, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 165, 238, 0); }
}

/* Typography */
.elh-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.35;
  font-weight: 900;
  color: var(--elh-navy);
}

.elh-title span {
  color: var(--elh-blue);
}

.elh-rule {
  background: linear-gradient(90deg, var(--elh-cyan), var(--elh-blue));
  height: 3px;
  width: 56px;
  border-radius: 3px;
  margin: 0.6rem 0 1rem;
}

.elh-desc {
  font-size: 0.98rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--elh-text);
  margin-bottom: 1.25rem;
}

/* Standalone HQ Product Photo Viewer */
.elh-sheet-view {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  background-color: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid var(--elh-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.elh-sheet-view.no-zoom {
  cursor: default;
}

.elh-main-img,
.elh-card-img,
.elh-photo-view img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.elh-sheet-view,
.elh-zoom-sprite,
.elh-thumb-sprite {
  background-image: none !important;
}

.elh-photo-notice {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--elh-border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--elh-navy);
  text-align: center;
  box-shadow: 0 2px 8px rgba(6, 40, 102, 0.08);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.elh-retry-btn {
  background: var(--elh-blue);
  color: #FFFFFF !important;
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.elh-retry-btn:hover {
  background: var(--elh-navy);
}

/* Fallback state when photo is unavailable */
.elh-sheet-view.is-fallback,
.elh-photo-view.is-fallback {
  background: linear-gradient(145deg, #F0F7FD, #FFFFFF);
}

.elh-fallback-icon {
  width: 56px;
  height: 56px;
  color: var(--elh-blue);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.elh-fallback-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--elh-muted);
}

/* Buttons */
.elh-btn,
.elh-btn-wa,
.elh-btn-outline,
.elh-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  font-family: 'Cairo', sans-serif !important;
  padding: 0.65rem 1.4rem;
  border: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.elh-btn {
  background: linear-gradient(135deg, var(--elh-cyan) 0%, var(--elh-blue) 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 91, 170, 0.2);
}

.elh-btn:hover {
  background: linear-gradient(135deg, #0093d5 0%, #003e73 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 91, 170, 0.3);
}

.elh-btn-wa {
  background: var(--elh-blue);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 91, 170, 0.22);
}

.elh-btn-wa:hover {
  background: #004480;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 91, 170, 0.32);
}

.elh-btn-outline {
  background: #FFFFFF;
  color: var(--elh-navy) !important;
  border: 1.5px solid var(--elh-border);
}

.elh-btn-outline:hover {
  border-color: var(--elh-cyan);
  color: var(--elh-blue) !important;
  background: #F0F7FD;
}

/* Pill with white arrow circle (#005BAA) */
.elh-pill-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--elh-blue);
  color: #FFFFFF !important;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 91, 170, 0.22);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.elh-pill-arrow:hover {
  background: #004582;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 91, 170, 0.32);
}

.elh-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--elh-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

[dir="rtl"] .elh-arrow-circle svg {
  transform: rotate(180deg);
}

/* Variant Selectors */
.elh-selector-group {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--elh-border);
  background: #FFFFFF;
}

.elh-selector-title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--elh-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.elh-selected-label {
  font-size: 0.82rem;
  color: var(--elh-blue);
  font-weight: 800;
}

/* Cap color swatch buttons */
.elh-cap-swatches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.elh-cap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--elh-border);
  background: #FFFFFF;
  color: var(--elh-text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-cap-btn:hover {
  border-color: var(--elh-cyan);
  background: #F8FAFC;
}

.elh-cap-btn.is-active,
.elh-cap-btn[aria-checked="true"] {
  border-color: var(--elh-blue);
  background: rgba(0, 91, 170, 0.08);
  color: var(--elh-blue);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.18);
}

.elh-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--dot-border, #CBD5E1);
  background-color: var(--dot-color, #FFFFFF);
  display: inline-block;
  flex-shrink: 0;
}

/* Body color options */
.elh-body-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.elh-body-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--elh-border);
  background: #FFFFFF;
  color: var(--elh-text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-body-btn.is-active,
.elh-body-btn[aria-checked="true"] {
  border-color: var(--elh-blue);
  background: rgba(0, 91, 170, 0.08);
  color: var(--elh-blue);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.18);
}

.elh-color-notice {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--elh-muted);
  line-height: 1.5;
}

/* Cap type selector buttons */
.elh-cap-types {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.elh-cap-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--elh-border);
  background: #FFFFFF;
  color: var(--elh-text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-cap-type-btn:hover {
  border-color: var(--elh-cyan);
  background: #F8FAFC;
}

.elh-cap-type-btn.is-active,
.elh-cap-type-btn[aria-checked="true"] {
  border-color: var(--elh-blue);
  background: rgba(0, 91, 170, 0.08);
  color: var(--elh-blue);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.18);
}

/* View thumbnails row */
.elh-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.elh-thumb-btn {
  border: 1.5px solid var(--elh-border);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-thumb-btn:hover {
  border-color: var(--elh-cyan);
}

.elh-thumb-btn.is-active,
.elh-thumb-btn[aria-pressed="true"] {
  border-color: var(--elh-blue);
  box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.2);
  background: #F0F7FD;
}

.elh-thumb-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elh-thumb-img,
.elh-thumb-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.elh-thumb-fallback {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--elh-muted);
}

.elh-thumb-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--elh-navy);
  text-align: center;
}

/* Tabs */
.elh-tabs-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--elh-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.elh-tab-btn {
  border: 1.5px solid var(--elh-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: #FFFFFF;
  color: var(--elh-navy);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-tab-btn:hover,
.elh-tab-btn:focus-visible {
  background: #F0F3FF;
  border-color: var(--elh-cyan);
  color: var(--elh-blue);
}

.elh-tab-btn.is-active,
.elh-tab-btn[aria-selected="true"] {
  background: var(--elh-navy);
  color: #FFFFFF;
  border-color: var(--elh-navy);
}

.elh-tab-pane {
  display: none;
}

.elh-tab-pane.is-active {
  display: block;
}

/* Data Tables */
.elh-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.elh-table th,
.elh-table td {
  border: 1.5px solid var(--elh-border);
  padding: 0.7rem 0.85rem;
  text-align: inherit;
}

.elh-table th {
  background: var(--elh-navy);
  color: #FFFFFF;
  font-weight: 800;
}

.elh-table td {
  background: #FFFFFF;
  font-weight: 600;
  color: var(--elh-text);
}

.elh-table tr:nth-child(even) td {
  background: #F9FBFE;
}

.elh-table td:first-child {
  font-weight: 800;
  color: var(--elh-navy);
  width: 38%;
}

.elh-table-notice {
  display: inline-block;
  color: var(--elh-blue);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Callout Notice Boxes */
.elh-notice-box {
  background: #EFF6FC;
  border: 1.5px solid #C7E2F8;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.elh-notice-icon {
  width: 22px;
  height: 22px;
  color: var(--elh-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.elh-notice-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--elh-navy);
  font-weight: 600;
  margin: 0;
}

/* Forms */
.elh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.elh-form-full {
  grid-column: 1 / -1;
}

.elh-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.elh-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--elh-navy);
}

.elh-label .req {
  color: #DC2626;
}

.elh-input,
.elh-select,
.elh-textarea {
  width: 100%;
  border: 1.5px solid var(--elh-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--elh-text);
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.elh-input:hover,
.elh-select:hover,
.elh-textarea:hover {
  border-color: var(--elh-cyan);
}

.elh-input:focus,
.elh-select:focus,
.elh-textarea:focus {
  border-color: var(--elh-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.15);
  outline: none;
}

.elh-input.has-error,
.elh-select.has-error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.elh-field-error {
  font-size: 0.75rem;
  font-weight: 700;
  color: #DC2626;
  margin-top: 0.2rem;
}

.elh-form-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
}

.elh-form-feedback.is-error {
  display: block;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  color: #991B1B;
}

.elh-form-feedback.is-success {
  display: block;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
}

/* Zoom Modal Dialog */
.elh-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 40, 102, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.elh-zoom-overlay.is-open {
  display: flex;
}

.elh-zoom-dialog {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 860px;
  max-height: 90vh;
  width: 100%;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.elh-zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1.5px solid var(--elh-border);
  color: var(--elh-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  transition: all 0.15s ease;
  z-index: 10;
}

[dir="rtl"] .elh-zoom-close {
  right: auto;
  left: 12px;
}

.elh-zoom-close:hover {
  background: #E2E8F0;
  color: #DC2626;
}

.elh-zoom-sprite,
.elh-zoom-viewport {
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--elh-border);
}

.elh-zoom-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.elh-zoom-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--elh-muted);
}

/* Catalog Filter Bar */
.elh-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.elh-family-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.elh-family-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--elh-border);
  background: #FFFFFF;
  color: var(--elh-navy);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.elh-family-btn:hover {
  border-color: var(--elh-cyan);
  color: var(--elh-blue);
}

.elh-family-btn.is-active {
  background: var(--elh-navy);
  color: #FFFFFF;
  border-color: var(--elh-navy);
}

.elh-filter-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

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

.elh-search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--elh-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

[dir="rtl"] .elh-search-icon {
  right: 12px;
}

[dir="ltr"] .elh-search-icon {
  left: 12px;
}

[dir="rtl"] .elh-search-input {
  padding-right: 2.4rem;
}

[dir="ltr"] .elh-search-input {
  padding-left: 2.4rem;
}

/* Catalog Grid & Cards */
.elh-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.elh-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.elh-card-media {
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--elh-border);
  padding: 1rem;
  position: relative;
}

.elh-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.elh-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.elh-card-title {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--elh-navy);
  line-height: 1.4;
}

.elh-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.elh-card-title a:hover {
  color: var(--elh-blue);
}

.elh-card-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
  font-size: 0.78rem;
}

.elh-card-specs td {
  border: 1px solid var(--elh-border);
  padding: 0.35rem 0.5rem;
  font-weight: 700;
  color: var(--elh-text);
}

.elh-card-specs td:first-child {
  background: #F8FBFE;
  color: var(--elh-muted);
  width: 35%;
  white-space: nowrap;
}

.elh-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Groups Showcase in Catalog */
.elh-groups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin: 1rem 0;
}

.elh-group-card {
  background: #FFFFFF;
  border: 1.5px solid var(--elh-border);
  border-radius: 14px;
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.elh-group-card:hover {
  border-color: var(--elh-cyan);
  transform: translateY(-2px);
  box-shadow: var(--elh-shadow-sm);
}

.elh-group-img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.elh-group-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--elh-navy);
  margin: 0;
}

/* Empty state */
.elh-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #FFFFFF;
  border: 1.5px dashed var(--elh-border);
  border-radius: 16px;
}

.elh-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--elh-muted);
  margin-bottom: 0.75rem;
}

/* Related Products Grid (4 items) */
.elh-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Hero Split layout on Detail Page */
.elh-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .elh-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .elh-groups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .elh-filter-controls {
    grid-template-columns: 1fr 1fr;
  }
  .elh-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .elh-detail-hero {
    grid-template-columns: 1fr;
  }
  .elh-form-grid {
    grid-template-columns: 1fr;
  }
  .elh-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .elh-catalog-grid {
    grid-template-columns: 1fr;
  }
  .elh-filter-controls {
    grid-template-columns: 1fr;
  }
  .elh-related-grid {
    grid-template-columns: 1fr;
  }
  .elh-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
  .elh-groups-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .elh-catalog-scope *,
  .elh-detail-scope * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Acceptance fixes: readable selected view labels and brand colors. */
.elh-detail-scope .elh-thumb-btn.is-active .elh-thumb-label { color:#004481!important; }
.elh-detail-scope .elh-arrow-circle { width:28px;height:28px;flex:0 0 28px; }
.elh-detail-scope .elh-arrow-circle svg { fill:none;stroke:currentColor;stroke-width:2; }
.elh-detail-scope[dir="rtl"] .elh-arrow-circle svg { transform:rotate(180deg); }
.elh-detail-scope .elh-cap-btn.is-active,
.elh-detail-scope .elh-body-btn.is-active,
.elh-detail-scope .elh-cap-type-btn.is-active,
.elh-detail-scope .elh-cap-btn[aria-checked="true"],
.elh-detail-scope .elh-body-btn[aria-checked="true"],
.elh-detail-scope .elh-cap-type-btn[aria-checked="true"] { color:#004481!important; }
.elh-detail-scope .elh-notice-text,
.elh-detail-scope #elh-custom-cap-box small,
.elh-detail-scope #elh-custom-body-box small {color:#004481!important;}
@media(max-width:600px){
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .header-inner{width:100%!important;max-width:100%!important;padding:0 12px!important;gap:8px!important;}
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .header-phone{display:none!important;}
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .mobile-toggle-btn{display:flex!important;flex:0 0 36px!important;}
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .brand-logo{width:116px!important;max-width:116px!important;height:auto!important;}
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .header-actions{gap:8px!important;min-width:0!important;}
  body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) #site-header .header-cta-btn{font-size:11px!important;padding:7px 10px!important;white-space:nowrap!important;}
}
.elh-sheet-view,.elh-thumb-sprite{transition:none;}
@media(max-width:640px){
 .elh-detail-scope .elh-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
 .elh-detail-scope .elh-thumb-btn{padding:4px;min-height:84px;}
 .elh-catalog-scope .elh-groups-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
}
body:has(.elh-detail-scope,.elh-catalog-scope,.elh-category-scope,.elh-caps-scope) .mobile-nav-drawer.is-open{visibility:visible!important;opacity:1!important;}
.elh-detail-scope .elh-cap-btn.is-active > span,
.elh-detail-scope .elh-body-btn.is-active > span,
.elh-detail-scope .elh-cap-type-btn.is-active > span,
.elh-detail-scope .elh-cap-btn[aria-checked="true"] > span,
.elh-detail-scope .elh-body-btn[aria-checked="true"] > span,
.elh-detail-scope .elh-cap-type-btn[aria-checked="true"] > span {color:#004481!important;}
.elh-detail-scope #elh-main-sheet {max-width:440px;margin-inline:auto;}
.elh-detail-scope .elh-thumbs {max-width:440px;margin-inline:auto;}
.elh-detail-scope .elh-detail-hero {align-items:start;}

.elh-detail-scope .elh-thumb-btn.is-active .elh-thumb-label,
.elh-detail-scope .elh-thumb-btn[aria-pressed="true"] .elh-thumb-label{color:#004481!important;}

/* Product controls must remain readable while the theme applies global hover colors. */
#main-content .elh-detail-scope :is(.elh-cap-btn,.elh-body-btn,.elh-cap-type-btn,.elh-thumb-btn),
#main-content .elh-detail-scope :is(.elh-cap-btn,.elh-body-btn,.elh-cap-type-btn) > span,
#main-content .elh-detail-scope .elh-thumb-btn .elh-thumb-label {color:#004481!important;}
#main-content .elh-detail-scope :is(.elh-cap-btn,.elh-body-btn,.elh-cap-type-btn,.elh-thumb-btn):is(:hover,:focus-visible) {background:#E0F2FE!important;}
/* Show the complete object when opening the larger preview. */
.elh-detail-scope .elh-zoom-viewport {display:block;overflow:auto;}
.elh-detail-scope .elh-zoom-img {width:100%;height:auto;max-height:70vh;object-fit:contain;}

/* Independent front-view colors, using a dedicated mask for each catalog model. */
.elh-color-trial-intro {background:#F0F3FF;border:1px solid #DCEAF4;border-radius:16px;padding:16px;margin-bottom:16px;color:#004481;line-height:1.8;}
.elh-color-trial-intro strong {font-size:1.05rem;font-weight:900;}
.elh-color-trial-intro p {margin:5px 0 10px;font-size:.85rem;}
.elh-color-trial-intro small {display:block;margin-top:10px;color:#004481;font-size:.75rem;}
.elh-color-picker-row {margin-top:12px;padding-top:12px;border-top:1px solid #E2E8F0;}
.elh-color-picker-row label {display:block;font-size:.85rem;font-weight:700;margin-bottom:7px;}
.elh-color-picker-fields {display:flex;align-items:center;gap:12px;}
.elh-color-picker-fields input[type=color] {width:60px;height:44px;padding:3px;background:#fff;border:1px solid #DCEAF4;border-radius:10px;cursor:pointer;flex-shrink:0;}
.elh-color-picker-fields .elh-color-hex {width:140px;max-width:100%;font-family:'Space Grotesk',sans-serif;letter-spacing:1px;}
.elh-color-error {display:block;min-height:0;font-size:.75rem;color:#D92D20;line-height:1.8;}
.elh-color-picker-fields input:focus-visible {outline:3px solid #00B4D8;outline-offset:3px;}
.elh-detail-scope[data-color-trial="1"] #elh-custom-cap-box,
.elh-detail-scope[data-color-trial="1"] #elh-custom-body-box {display:none!important;}
.elh-detail-scope[data-color-trial="1"] .elh-selected-label {overflow-wrap:anywhere;}

.elh-color-order-summary {padding:12px 16px;border:1px solid #DCEAF4;border-radius:12px;background:#F0F3FF;color:#004481;font-weight:700;line-height:1.9;overflow-wrap:anywhere;}

.elh-detail-scope[data-color-trial="1"] #elh-photo-notice {position:static;margin:10px auto 12px;max-width:440px;box-sizing:border-box;box-shadow:none;background:#F0F3FF;}

.elh-factory-engineering {margin:20px 0 28px;padding:22px;border:1px solid #DCEAF4;border-radius:16px;background:#F8FAFC;color:#0E1C2F;line-height:1.8;}
.elh-factory-heading h3 {color:#004481;font-size:1.2rem;margin:10px 0 6px;font-weight:900;}
.elh-factory-heading p,.elh-factory-pending {font-size:.86rem;}
.elh-factory-grid {display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);gap:24px;margin-top:18px;align-items:start;}
.elh-factory-diagram {margin:0;background:#F0F3FF;border:1px solid #DCEAF4;border-radius:12px;padding:14px;}
.elh-factory-diagram svg {display:block;width:100%;max-height:350px;}
.elh-factory-diagram figcaption {font-size:.75rem;color:#004481;text-align:center;}
.elh-factory-values {margin:0 0 16px;}
.elh-factory-values>div {display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #E2E8F0;}
.elh-factory-values dt {font-size:.82rem;}
.elh-factory-values dd {margin:0;color:#004481;font-size:.86rem;font-weight:700;max-width:56%;}
.elh-factory-values bdi,.elh-factory-formula {font-family:'Space Grotesk',sans-serif;}
.elh-factory-label-result {background:#E0F2FE;border-radius:10px;padding:12px!important;}
.elh-factory-formula {color:#005BAA;font-weight:700;}
@media(max-width:700px){.elh-factory-grid{grid-template-columns:1fr;gap:16px;}.elh-factory-engineering{padding:14px;}.elh-factory-values>div{flex-wrap:wrap;}.elh-factory-values dd{max-width:100%;}.elh-factory-diagram svg{max-height:300px;}}

.elh-engineering-panels {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px;}
.elh-engineering-panel {margin:0;padding:10px;background:#fff;border:1px solid #DCEAF4;border-radius:14px;min-width:0;}
.elh-technical-svg {width:100%;height:auto;display:block;}
.elh-technical-svg text {text-anchor:middle;fill:#004481;}
.elh-technical-svg .elh-svg-heading {font-family:'Cairo',sans-serif;font-size:17px;font-weight:800;}
.elh-technical-svg .elh-svg-value {font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:700;direction:ltr;unicode-bidi:embed;}
.elh-technical-svg .elh-svg-small {font-family:'Cairo',sans-serif;font-size:17px;}
.elh-svg-dimension {fill:none;stroke:#00B4D8;stroke-width:1.4;}
@media(max-width:1000px){.elh-engineering-panels{grid-template-columns:repeat(2,minmax(0,1fr));}.elh-engineering-data{grid-column:1/-1;max-width:480px;width:100%;box-sizing:border-box;justify-self:center;}}
@media(max-width:650px){.elh-engineering-panels{grid-template-columns:1fr;}.elh-engineering-panel{padding:4px;}.elh-engineering-data{grid-column:auto;max-width:none;}}

.elh-tab-story {display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;margin:20px 0 28px;}
.elh-tab-story h2,.elh-tab-story h3 {font-size:1.5rem;line-height:1.8;color:#004481;margin:12px 0;font-weight:900;}
.elh-tab-story p {font-size:.95rem;line-height:1.9;color:#0E1C2F;}
.elh-tab-story strong {color:#005BAA;line-height:1.8;}
.elh-tab-story figure{margin:0;min-width:0;}
.elh-tab-story img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border:1px solid #DCEAF4;border-radius:16px;background:#F0F3FF;}
.elh-tab-story figcaption {font-size:.73rem;color:#004481;line-height:1.8;margin-top:8px;}
.elh-tab-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0;}
.elh-tab-info-card {padding:20px;border:1px solid #E2E8F0;border-radius:16px;background:#fff;box-shadow:0 4px 16px -2px rgba(11,25,44,.04);}
.elh-tab-step {display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#E0F2FE;color:#005BAA;width:38px;height:38px;font-family:'Space Grotesk',sans-serif;font-weight:700;}
.elh-tab-info-card h3 {font-size:1rem;line-height:1.8;color:#004481;margin:12px 0 8px;}
.elh-tab-info-card p,.elh-review-points p {font-size:.87rem;line-height:1.9;color:#0E1C2F;margin:0;}
.elh-tab-subtitle{font-size:1.15rem;color:#004481;line-height:1.8;margin-top:28px;}
.elh-review-points {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px;}
.elh-review-points>div {border-inline-start:3px solid #00B4D8;background:#F8FAFC;padding:15px;border-radius:12px;}
.elh-review-points strong {display:block;color:#004481;margin-bottom:8px;line-height:1.8;}
.elh-review-points small {display:block;line-height:1.8;margin-top:8px;}
.elh-tab-note {padding:14px 18px;background:#F0F3FF;border:1px solid #DCEAF4;border-radius:12px;font-size:.84rem;line-height:1.9;color:#004481;margin:18px 0;}
.elh-request-summary {padding:18px;margin:0 0 22px;border:1px solid #DCEAF4;border-radius:14px;background:#fff;}
.elh-request-summary>strong{color:#004481;font-size:1rem;}
.elh-request-summary dl {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 0;}
.elh-request-summary dl>div{padding-bottom:10px;border-bottom:1px solid #E2E8F0;min-width:0;}
.elh-request-summary dt{font-size:.76rem;color:#004481;}
.elh-request-summary dd{font-size:.88rem;color:#0E1C2F;margin:5px 0 0;overflow-wrap:anywhere;line-height:1.8;font-weight:700;}
.elh-prepared-request {margin:20px 0;padding:18px;border:1px solid #00B4D8;border-radius:14px;background:#F0F3FF;}
.elh-prepared-request[hidden]{display:none!important;}
.elh-prepared-request textarea{width:100%;margin-bottom:12px;}
.elh-field-group small {display:block;font-size:.75rem;line-height:1.8;color:#004481;margin-top:5px;}
@media(max-width:900px){.elh-tab-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.elh-tab-story,.elh-review-points,.elh-tab-card-grid{grid-template-columns:1fr;}.elh-tab-story{gap:18px;}.elh-request-summary dl{grid-template-columns:1fr;}.elh-tab-story h2{font-size:1.3rem;}.elh-tab-info-card{padding:16px;}}

.elh-optional-details{border:1px solid #DCEAF4;border-radius:12px;padding:14px;background:#fff;}
.elh-optional-details summary{cursor:pointer;font-weight:700;color:#004481;line-height:1.8;}
.elh-optional-details[open]>.elh-form-grid{margin-top:18px;}
.elh-optional-details summary:focus-visible{outline:3px solid #00B4D8;outline-offset:4px;border-radius:6px;}
