.leditaly-catalogue {
  --primary: #464646;
  --background: #f8f8f8;
  --panel: #f1f1f1;
  --text: #444;
  --muted: #737373;
  font-family: "Futura Book BT", Arial, Tahoma, sans-serif;
  color: var(--text);
  background: var(--background);
  width: 100%;
}

.leditaly-catalogue *,
.leditaly-catalogue *::before,
.leditaly-catalogue *::after {
  box-sizing: border-box;
}

.leditaly-catalogue__banner {
  min-height: 140px;
  padding: 48px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(40, 40, 40, 0.35), rgba(40, 40, 40, 0.35)),
    url("https://products.leditaly.net/static/img/banner.jpg") center/cover,
    #464646;
  color: #fff;
}

.leditaly-catalogue__banner h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.leditaly-catalogue__loading,
.led-cat-loading,
.led-cat-empty,
.led-cat-error {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.leditaly-catalogue__layout {
  display: grid;
  grid-template-columns: minmax(220px, 25%) minmax(0, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.led-cat-filter {
  padding: 24px 18px 16px;
  background: var(--panel);
  align-self: start;
}

.led-cat-filter__reset {
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.led-cat-filter__reset button {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

.led-cat-filter__group {
  margin: 0 0 18px;
}

.led-cat-filter__group small {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #333;
}

.led-cat-filter__check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  margin: 0 0 4px;
  font-size: 0.94rem;
  line-height: 1.25;
  cursor: pointer;
}

.led-cat-filter__check--child {
  margin-left: 12px;
  font-size: 0.88rem;
}

.led-cat-filter__check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.led-cat-range {
  position: relative;
  min-height: 56px;
  padding-top: 10px;
}

.led-cat-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 19px;
  height: 5px;
  border-radius: 4px;
  background:
    linear-gradient(
      to right,
      #ccc 0%,
      #ccc var(--range-left),
      var(--primary) var(--range-left),
      var(--primary) calc(100% - var(--range-right)),
      #ccc calc(100% - var(--range-right)),
      #ccc 100%
    );
}

.led-cat-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 4px;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.led-cat-range input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
}

.led-cat-range input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
}

.led-cat-range input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.led-cat-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
}

.led-cat-range output {
  display: block;
  padding-top: 34px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
}

.led-cat-results__inner {
  min-height: 360px;
  background: #fff;
  padding: 16px;
}

.led-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.led-cat-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.led-cat-card:hover,
.led-cat-card:focus {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.led-cat-card__media {
  position: relative;
  height: 280px;
  padding: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.led-cat-card__media img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  max-width: calc(100% - 12px);
  max-height: calc(100% - 12px);
  object-fit: cover;
  object-position: center;
  display: block;
  background: #fff;
  box-shadow: none;
  filter: none;
  transition: opacity 160ms ease;
}

.led-cat-card__img--hover {
  opacity: 0;
}

.led-cat-card.has-hover-image:hover .led-cat-card__img--hover,
.led-cat-card.has-hover-image:focus .led-cat-card__img--hover {
  opacity: 1;
}

.led-cat-card.has-hover-image:hover .led-cat-card__img--main,
.led-cat-card.has-hover-image:focus .led-cat-card__img--main {
  opacity: 0;
}

.led-cat-card__media img.is-wide {
  object-fit: contain;
}

.led-cat-card__placeholder {
  width: 60%;
  height: 50%;
  border: 1px dashed #cfcfcf;
}

.led-cat-card__body {
  padding: 16px;
}

.led-cat-card__body h3 {
  min-height: 52px;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  color: #444;
  overflow-wrap: anywhere;
}

.led-cat-card__meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.led-cat-pages {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px;
}

.led-cat-pages button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  color: #464646;
  cursor: pointer;
}

.led-cat-pages button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.led-cat-pages button:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 900px) {
  .leditaly-catalogue__layout {
    grid-template-columns: 1fr;
  }

  .led-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .leditaly-catalogue__layout {
    padding: 0;
  }

  .led-cat-grid {
    grid-template-columns: 1fr;
  }

  .led-cat-card__media {
    height: 260px;
  }
}

.leditaly-catalogue--specs {
  min-height: 100%;
}

.led-cat-specs {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.led-cat-specs__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.led-cat-specs__back,
.led-cat-specs__configure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 10px 16px;
  color: #464646;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.led-cat-specs__configure {
  color: #fff;
  background: #d99614;
  border-color: #d99614;
}

.led-cat-specs__back:hover,
.led-cat-specs__configure:hover {
  text-decoration: none;
}

.led-cat-specs__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.led-cat-specs__media {
  min-height: 380px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.led-cat-specs__media img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  display: block;
}

.led-cat-specs__summary {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.led-cat-specs__category {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: #f1f1f1;
  color: #555;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.led-cat-specs__summary h1 {
  margin: 0 0 12px;
  color: #444;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.led-cat-specs__code {
  margin: 0 0 18px;
  color: #222;
  font-size: 1.05rem;
  font-weight: 700;
}

.led-cat-specs__description {
  margin: 0;
  color: #666;
  line-height: 1.55;
}

.led-cat-specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.led-cat-specs__panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.led-cat-specs__panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 500;
  color: #444;
}

.led-cat-specs__drawing {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.led-cat-specs__drawing h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 500;
  color: #444;
}

.led-cat-specs__drawing img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.led-cat-tech-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.led-cat-tech-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: #fff;
  text-align: left;
}

.led-cat-tech-table th,
.led-cat-tech-table td {
  border: 1px solid #dcdcdc;
  padding: 10px 8px;
  vertical-align: middle;
  font-size: 0.88rem;
}

.led-cat-tech-table thead th {
  color: #333;
  font-weight: 600;
  background: #f8f8f8;
}

.led-cat-tech-table tbody th {
  width: 42%;
  color: #666;
  font-weight: 500;
  background: #fafafa;
}

.led-cat-tech-table tbody td {
  color: #333;
  font-weight: 600;
}

.led-cat-specs__chips-block {
  margin-bottom: 20px;
}

.led-cat-specs__chips-block h3 {
  margin: 0 0 9px;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.led-cat-specs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.led-cat-specs__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dedede;
  background: #f8f8f8;
  color: #444;
  font-size: 0.86rem;
}

.led-cat-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.led-cat-color {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
}

.led-cat-color__swatches {
  display: flex;
  align-items: center;
}

.led-cat-color__swatches span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  margin-left: -5px;
}

.led-cat-color__swatches span:first-child {
  margin-left: 0;
}

.led-cat-color strong {
  color: #333;
  font-size: 0.86rem;
}

.led-cat-color > span {
  color: #666;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.led-cat-specs__list {
  margin: 0;
}

.led-cat-specs__list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.led-cat-specs__list div:last-child {
  border-bottom: 0;
}

.led-cat-specs__list dt {
  color: #777;
  font-weight: 400;
}

.led-cat-specs__list dd {
  margin: 0;
  color: #333;
  font-weight: 600;
  text-align: right;
}

.led-cat-docs {
  margin-bottom: 18px;
}

.led-cat-photometric img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
}

.led-profile-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.led-profile-media__item {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 170px;
  padding: 10px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #444;
  text-decoration: none;
}

.led-profile-media__item span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.led-profile-media__item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: #fff;
  box-shadow: none;
}

.led-profile-media__file {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border: 1px dashed #d6d6d6;
  color: #777;
  font-weight: 700;
}

.led-cat-docs h3 {
  margin: 0 0 8px;
  color: #777;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.led-cat-doc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #464646;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.25;
}

.led-cat-doc-btn:hover,
.led-cat-doc-btn:focus {
  border-color: #464646;
  background: #f8f8f8;
  color: #222;
  text-decoration: none;
}

.led-cat-doc-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #d8d8d8;
  background: #f5f5f5;
  color: #555;
}

.led-cat-doc-btn__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.led-cat-doc-btn__icon--pdf {
  background: #fff1f1;
  border-color: #f0b5b5;
  color: #b42323;
}

.led-cat-doc-btn__icon--dwg,
.led-cat-doc-btn__icon--dxf {
  background: #eef6ff;
  border-color: #b7d5f2;
  color: #1f5f99;
}

.led-cat-doc-btn__icon--ies,
.led-cat-doc-btn__icon--ldt {
  background: #fff8e7;
  border-color: #ead391;
  color: #8b6813;
}

.led-cat-doc-btn__icon--jpg,
.led-cat-doc-btn__icon--jpeg,
.led-cat-doc-btn__icon--png,
.led-cat-doc-btn__icon--webp {
  background: #f3efff;
  border-color: #cdbff5;
  color: #6246a1;
}

.led-cat-doc-btn__icon--zip {
  background: #f3f3f3;
  border-color: #c8c8c8;
  color: #555;
}

.led-cat-specs__empty {
  color: #777;
  margin: 0;
}

.led-flex-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.led-flex-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.led-flex-panel--wide {
  margin-top: 24px;
}

.led-profile-specs .led-flex-panel--wide {
  grid-column: 1 / -1;
}

.led-flex-panel h2 {
  margin: 0 0 16px;
  color: #444;
  font-size: 1.35rem;
  font-weight: 500;
}

.led-flex-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.led-flex-mini-card {
  min-height: 160px;
  padding: 12px;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  text-align: center;
}

.led-flex-mini-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  background: #fff;
}

.led-flex-mini-card strong,
.led-flex-light strong {
  display: block;
  color: #333;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.led-flex-mini-card span,
.led-flex-light span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.led-flex-accessory[data-accessory-modal] {
  cursor: zoom-in;
}

.led-flex-accessory[data-accessory-modal]:focus {
  outline: 2px solid #d99614;
  outline-offset: 2px;
}

.led-accessory-modal[hidden] {
  display: none;
}

.led-accessory-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.led-accessory-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.led-accessory-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.led-accessory-modal__dialog img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  background: #fff;
}

.led-accessory-modal__dialog h2 {
  margin: 18px 42px 6px 0;
  color: #333;
  font-size: 1.35rem;
}

.led-accessory-modal__dialog p {
  margin: 0;
  color: #666;
  line-height: 1.45;
}

.led-accessory-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

body.led-modal-open {
  overflow: hidden;
}

.led-flex-curvature {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.led-flex-curvature img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
  border: 1px solid #e4e4e4;
}

.led-flex-curvature p {
  margin: 0;
  color: #555;
  line-height: 1.45;
}

.led-flex-light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.led-flex-light {
  padding: 12px;
  border: 1px solid #e4e4e4;
  background: #fff;
}

.led-flex-light__swatches {
  display: flex;
  min-height: 24px;
  margin-bottom: 8px;
}

.led-flex-light__swatches span {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  margin-left: -5px;
}

.led-flex-light__swatches span:first-child {
  margin-left: 0;
}

.led-flex-light em {
  display: block;
  margin-top: 7px;
  color: #777;
  font-size: 0.78rem;
  font-style: normal;
}

@media (max-width: 760px) {
  .led-cat-specs__hero,
  .led-cat-specs__grid,
  .led-flex-specs {
    grid-template-columns: 1fr;
  }

  .led-cat-specs__media {
    min-height: 260px;
  }

  .led-cat-specs__summary {
    padding: 24px 20px;
  }

  .led-cat-specs__summary h1 {
    font-size: 1.55rem;
  }
}
