/* ============================================
   CEDRAL — BACKGROUND
============================================ */
.cedral-lap {
    padding: 0;
    background: #EEE5E5;
    font-family: 'Poppins', system-ui, sans-serif;
}

.cedral-lap .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MAIN IMAGE + INFO (LEFT + RIGHT)
============================================ */
.lap-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 50px;
}

.lap-image {
    margin-top: 30px;
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
}

.lap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #EEE5E5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.lap-info {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lap-info h2 {
    margin-top: 30px;
    font-size: 36px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.02em;
}

.lap-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* ============================================
   THUMBNAIL CAROUSEL
============================================ */
.lap-thumbs-grid {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 14px;
}

.lap-thumbs-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    height: 105px;
    padding: 4px 0;
}

.lap-thumbs-carousel::-webkit-scrollbar {
    height: 6px;
    background: transparent !important;
}
.lap-thumbs-carousel::-webkit-scrollbar-track {
    background: transparent !important;
}

.thumb {
    flex: 0 0 auto;
    cursor: pointer;
}

.thumb img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    background: #EEE5E5;
    transition: 0.25s;
}

.thumb.active img,
.thumb:hover img {
    box-shadow: 0 0 12px rgba(227, 0, 15, 0.35);
}

/* Arrows */
.thumb-prev,
.thumb-next {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E3000F;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.25s;
}

.thumb-prev:hover,
.thumb-next:hover {
    background: #E3000F;
    color: #EEE5E5;
    box-shadow: 0 4px 10px rgba(227, 0, 15, 0.35);
}

/* ============================================
   CONTACT BLOCK
============================================ */
.lap-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 150px;
    padding: 18px 24px;
    background: #EEE5E5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    margin-top: 20px;
}

/* ============================================
   SPECIFICATION SECTION
============================================ */
.cedral-spec {
    padding: 20px 0 20px;
    background: #EEE5E5;
}

/* FIX: заголовки теперь одной логики и на одной высоте */
.spec-title {
    text-align: left;                 /* было center */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;              /* уменьшено */
    color: #232323;
}

/* 2–column layout */
.spec-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;               /* FIX */
}

/* LEFT BOX */
.spec-box-left {
    background: #F3EAEA;
    padding: 24px 35px 30px;           /* FIX: меньше воздуха сверху */
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

/* RIGHT BOX — table */
.spec-right-side {
    position: sticky;
    top: 40px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: #EEE5E5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.tech-table td,
.tech-table th {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    font-size: 15px;
    color: #444;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   CEDRAL — DOCUMENTS
============================================ */

.cedral-docs {
	padding-bottom: 20px;
    background: #EEE5E5;
    font-family: 'Poppins', system-ui, sans-serif;
}

.docs-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
}

/* === TABS === */
.docs-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.docs-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid #E3000F;
    background: transparent;
    color: #E3000F;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.docs-tab:hover {
    background: rgba(227, 0, 15, 0.08);
}

.docs-tab.active {
    background: #E3000F;
    color: #fff;
}

/* === PANELS === */
.docs-panel {
    display: none;
}

.docs-panel.active {
    display: block;
}

/* === DOCUMENT CARD === */
.doc-card {
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 24px;
    background: #EEE5E5;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* PDF THUMB */
.doc-thumb {
    flex: 0 0 90px;
    height: 120px;
    background: #F3EAEA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #E3000F;
    letter-spacing: 0.05em;
}

/* INFO */
.doc-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-type {
    font-size: 12px;
    font-weight: 600;
    color: #E3000F;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.doc-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.doc-info p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* DOWNLOAD BUTTON */
.doc-download {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #E3000F;
    text-decoration: none;
    transition: 0.25s;
}

.doc-download:hover {
    text-decoration: underline;
}

/* ============================================
   MOBILE
============================================ */

@media (max-width: 768px) {

    .cedral-docs {
        padding: 60px 0;
    }

    .docs-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .doc-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .doc-thumb {
        width: 80px;
        height: 100px;
    }

    .doc-info h4 {
        font-size: 15px;
    }

    .doc-info p {
        font-size: 13px;
    }
}



.cedral-sizes-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.cedral-sizes-table {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.sizes-head,
.sizes-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
}

.sizes-head {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.sizes-head span,
.sizes-row span {
  padding: 14px 18px;
  text-align: center;
}

.sizes-head span:first-child,
.sizes-row span:first-child {
  text-align: left;
}

.sizes-row:nth-child(even) {
  background: #f4f4f4;
}

.yes {
  font-weight: 700;
}

.no {
  color: #999;
}
.cedral-sizes-wrap {
  display: flex;
  justify-content: center;
}

.cedral-sizes-table {
  max-width: 880px;
  width: 100%;
}
.cedral-sizes {
  padding: 30px 0 40px;
  background: #EEE5E5;
}

.cedral-sizes-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cedral-sizes-title {
  width: 100%;
  max-width: 880px;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: left;
}

.cedral-sizes-table {
  width: 100%;
  max-width: 880px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.sizes-head,
.sizes-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(7, 1fr);
  align-items: center;
}

.sizes-head {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.sizes-head span,
.sizes-row span {
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}

.sizes-head span:first-child,
.sizes-row span:first-child {
  text-align: left;
}

.sizes-row:nth-child(even) {
  background: #f4f4f4;
}

.sizes-note {
  width: 100%;
  max-width: 880px;
  margin-top: 10px;
  font-size: 13px;
  color: #444;
}
.smailiabriaunis-table {
  max-width: 700px;
  margin: 0 auto;
}

.smailiabriaunis-table .sizes-row {
  display: grid;
  grid-template-columns: 120px repeat(4, 1fr);
  align-items: center;
}

.smailiabriaunis-table .sizes-head {
  background: #000;
  color: #fff;
  font-weight: 500;
}

.smailiabriaunis-table .sizes-head span {
  padding: 14px 10px;
  text-align: center;
}

.smailiabriaunis-table .sizes-row span {
  padding: 12px 10px;
  text-align: center;
}

.smailiabriaunis-table .size-col {
  font-weight: 500;
  text-align: left;
  padding-left: 16px;
}
.smailiabriaunis-sizes .cedral-sizes-title {
  max-width: 700px;     /* ровно как у таблицы */
  margin: 0 auto 30px;
  text-align: center;
}

/* ===============================
   ROMBINIS – CLEAN SIZES TABLE
================================ */

.rombinis-sizes-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Заголовок по центру таблицы */
.rombinis-sizes-title {
  max-width: 280px;
  margin-bottom: 24px;
  text-align: center;
}

/* Карточка */
.rombinis-table {
  width: 280px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Чёрная шапка */
.rombinis-head {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
}

/* Строка */
.rombinis-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
}

/* Цвет — в одну строку */
.rombinis-color {
  white-space: nowrap;
}

/* Галочка */
.rombinis-check {
  text-align: center;
  font-size: 18px;
}
/* ===============================
   LAST VOKIŠKAS UŽAPVALINTAIS
   ISOLATED SIZES TABLE
================================ */

.last-vokiskas-apvl {
  padding: 30px 0 40px;
  background: #EEE5E5;
}

.last-vokiskas-apvl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.last-vokiskas-apvl-title {
  width: 720px;
  max-width: 100%;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  text-align: left;
}

/* TABLE CARD */
.last-vokiskas-apvl-table {
  width: 720px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

/* GRID */
.last-vokiskas-apvl-head,
.last-vokiskas-apvl-row {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr);
  align-items: center;
}

/* HEADER */
.last-vokiskas-apvl-head {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.last-vokiskas-apvl-head span,
.last-vokiskas-apvl-row span {
  padding: 14px 16px;
  font-size: 14px;
}

.last-vokiskas-apvl-head span:not(:first-child),
.last-vokiskas-apvl-row span:not(:first-child) {
  text-align: center;
}

/* ROWS */
.last-vokiskas-apvl-row:nth-child(even) {
  background: #f4f4f4;
}

/* NOTE */
.last-vokiskas-apvl-note {
  width: 720px;
  max-width: 100%;
  margin-top: 10px;
  font-size: 13px;
  color: #444;
}
/* ============================================
   SPEC HORIZONTALUS V2 — CENTER
============================================ */

.spec_horizontalus_v2 {
  display: flex;
  justify-content: center;
}

.spec_horizontalus_v2 > .container {
  width: 100%;
  max-width: 1100px; /* при необходимости меняй */
  margin: 0 auto;
}

/* Заголовок по центру */
.spec_horizontalus_v2 .cedral-sizes-title {
  text-align: center;
}

/* Таблица по центру */
.spec_horizontalus_v2 .cedral-sizes-table {
  margin: 0 auto;
}
/* ============================================
   SPEC HORIZONTALUS V2 — CLEAN REWRITE
   Полностью изолированная таблица
============================================ */

.spec_horizontalus_v2 {
  padding: 30px 0 40px;
  background: #EEE5E5;
}

/* Центрируем контент */
.spec_horizontalus_v2 .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Заголовок */
.spec_horizontalus_v2 .cedral-sizes-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Таблица — ОДИН grid */
.spec_horizontalus_v2 .cedral-sizes-table {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto;
}

/* Полностью отключаем старые grid/flex */
.spec_horizontalus_v2 .sizes-head,
.spec_horizontalus_v2 .sizes-row {
  display: contents;
}

/* Общие ячейки */
.spec_horizontalus_v2 .sizes-head span,
.spec_horizontalus_v2 .sizes-row span {
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}

/* Шапка */
.spec_horizontalus_v2 .sizes-head span {
  background: #000;
  color: #fff;
  font-weight: 600;
}

/* Первый столбец */
.spec_horizontalus_v2 .sizes-head span:first-child,
.spec_horizontalus_v2 .sizes-row span:first-child {
  text-align: left;
  font-weight: 500;
}

/* Чередование строк */
.spec_horizontalus_v2 .sizes-row:nth-child(even) span {
  background: #f4f4f4;
}

/* Да / нет */
.spec_horizontalus_v2 .yes {
  font-weight: 700;
}

.spec_horizontalus_v2 .no {
  color: #999;
}
/* ============================================
   GLOBAL MOBILE FIX — CEDRAL PAGES
   ONE SOURCE OF TRUTH
============================================ */
@media (max-width: 768px) {

  /* ===== CONTAINER ===== */
  .cedral-lap .container,
  .cedral-spec .container,
  .cedral-docs .container,
  .cedral-sizes .container,
  .spec_horizontalus_v2 .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ===== MAIN TOP SECTION ===== */
  .lap-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .lap-image {
    margin-top: 0;
    height: auto;
  }

  .lap-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .lap-info {
    width: 100%;
  }

  .lap-info h2 {
    margin-top: 10px;
    font-size: 26px;
    text-align: left;
  }

  .lap-info p {
    font-size: 14px;
  }

  /* ===== THUMB CAROUSEL ===== */
  .lap-thumbs-grid {
    grid-template-columns: 1fr;
  }

  .thumb-prev,
  .thumb-next {
    display: none;
  }

  .lap-thumbs-carousel {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  /* ===== CONTACT BLOCK ===== */
  .lap-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ===== SPEC SECTION ===== */
  .spec-two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .spec-right-side {
    position: static;
    top: auto;
  }

  .spec-title {
    font-size: 28px;
    text-align: center;
  }

  /* ===== ALL TABLES ===== */
  .tech-table,
  .cedral-sizes-table,
  .rombinis-table,
  .last-vokiskas-apvl-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  /* ===== SIZES TITLES ===== */
  .cedral-sizes-title,
  .last-vokiskas-apvl-title,
  .rombinis-sizes-title {
    font-size: 24px;
    text-align: center;
  }

  /* ===== DOCUMENTS ===== */
  .cedral-docs {
    padding: 40px 0;
  }

  .doc-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
/* ============================================
   MOBILE FIX — HEADER ↔ BREADCRUMBS SPACING
============================================ */
@media (max-width: 768px) {

  /* 1. Убираем лишний воздух под меню */
  header,
  .site-header,
  .header-inner {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
  }

  /* 2. Хлебные крошки — нормальный отступ сверху */
  .breadcrumbs,
  .breadcrumb,
  .woocommerce-breadcrumb {
    margin-top: 8px !important;
  }

  /* 3. Хлебные крошки — ОБЯЗАТЕЛЬНЫЙ отступ снизу */
  .breadcrumbs,
  .breadcrumb,
  .woocommerce-breadcrumb {
    margin-bottom: 16px !important;
  }

  /* 4. Первая секция (картинка) — без прилипания */
  .lap-image {
    margin-top: 0 !important;
  }
}
/* ============================================
   HARD FIX — HEADER / BREADCRUMBS / FIRST BLOCK
============================================ */
@media (max-width: 768px) {

  /* 1. УБИВАЕМ СХЛОПЫВАНИЕ MARGIN */
  .cedral-lap {
    padding-top: 0;
  }

  .cedral-lap .container {
    padding-top: 12px;
  }

  /* 2. ХЛЕБНЫЕ КРОШКИ — КОНТРОЛЬНЫЕ ОТСТУПЫ */
  .cedral-lap .container > *:first-child {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
  }

  /* 3. ПЕРВАЯ КАРТИНКА — ОТДЕЛЯЕМ ОТ КРОШЕК */
  .lap-image {
    margin-top: 12px !important;
  }

  /* 4. НА ВСЯКИЙ — ЕСЛИ ХЛЕБНЫЕ КРОШКИ ЭТО <p> ИЛИ <nav> */
  .cedral-lap p,
  .cedral-lap nav {
    margin-top: 0;
  }
}
/* ============================================
   MOBILE FIX — CEDRAL TABLE (REAL SCALE)
============================================ */
@media (max-width: 768px) {

  .cedral-sizes-wrap {
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
  }

  .cedral-sizes-table {
    zoom: 0.55;
  }
}
/* ============================================
   FIX — CENTER DOWNLOAD BUTTON (CEDRAL DOCS)
============================================ */
.doc-card {
    text-align: center;
}

.doc-download {
    margin-left: auto;
    margin-right: auto;
}
/* ============================================
   CEDRAL SIZES — V3 (WIDE, COMPACT, CENTERED)
============================================ */

.cedral-sizes.spec_horizontalus_v3 .cedral-sizes-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* TITLE */
.cedral-sizes.spec_horizontalus_v3 .cedral-sizes-title {
    text-align: center;
    margin-bottom: 20px;
}

/* TABLE */
.cedral-sizes.spec_horizontalus_v3 .cedral-sizes-table {
    display: grid;
    grid-template-columns: 160px repeat(7, minmax(56px, 1fr));
    border-radius: 16px;
    overflow: hidden;
}

/* HEADER */
.cedral-sizes.spec_horizontalus_v3 .sizes-head {
    display: contents;
}

.cedral-sizes.spec_horizontalus_v3 .sizes-head span {
    background: #2b2e32;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 6px;
    text-align: center;
    white-space: nowrap;
}

/* ROWS */
.cedral-sizes.spec_horizontalus_v3 .sizes-row {
    display: contents;
}

.cedral-sizes.spec_horizontalus_v3 .sizes-row span {
    background: #fff;
    padding: 10px 6px;
    font-size: 13px;
    text-align: center;
}

/* FIRST COLUMN */
.cedral-sizes.spec_horizontalus_v3 .sizes-row span:first-child {
    text-align: left;
    padding-left: 14px;
    font-weight: 500;
}

/* STRIPES */
.cedral-sizes.spec_horizontalus_v3 .sizes-row:nth-child(even) span {
    background: #f3f3f3;
}

/* ICONS */
.cedral-sizes.spec_horizontalus_v3 .yes {
    color: #f5a623;
    font-weight: 700;
}

.cedral-sizes.spec_horizontalus_v3 .no {
    color: #999;
}

/* NOTE */
.cedral-sizes.spec_horizontalus_v3 .cedral-sizes-note {
    margin-top: 10px;
    font-size: 13px;
}

/* ============================================
   SMAILIABRIAUNIO ROMBO TABLE
============================================ */

.smailiabriaunio-table {
    padding: 60px 0;
}

.smailiabriaunio-sizes-table {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    font-family: 'Poppins', system-ui, sans-serif;
}

.smt-head,
.smt-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
}

.smt-head {
    background: #2e2e2e;
    color: #fff;
    font-weight: 600;
}

.smt-head span {
    padding: 14px 18px;
    text-align: center;
}

.smt-head span:first-child {
    text-align: left;
}

.smt-row span {
    padding: 14px 18px;
    border-top: 1px solid #eee;
}

.smt-row span:first-child {
    font-weight: 500;
}

.smt-row .yes {
    text-align: center;
    color: #f5a623;
    font-size: 18px;
}
.smailiabriaunio-table .cedral-sizes-title {
    text-align: center;
    margin-bottom: 40px;
}
/* ============================================
   SMAILIABRIAUNIO – LAYOUT FIX
============================================ */

.smailiabriaunio-table {
    padding: 60px 0 40px;
}

.smailiabriaunio-table .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Заголовок */
.smailiabriaunio-table .cedral-sizes-title {
    text-align: center;
    max-width: 420px;
    width: 100%;
    margin-bottom: 32px;
}

/* Таблица */
.smailiabriaunio-sizes-table {
    width: 100%;
    max-width: 420px;
}
/* === Smailiabriaunio: static thumbs, no carousel === */

.eq-thumbs-static {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    overflow: visible;
}

.eq-thumbs-static .eq-thumb {
    width: 90px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-thumbs-static .eq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* === ROMBINIS: FIX THUMBS GRID (NO CAROUSEL) === */

.page-template-fasadas-rombinis-dengimas .eq-thumbs-grid {
    display: block !important;      /* убиваем grid под стрелки */
}

.page-template-fasadas-rombinis-dengimas .eq-thumbs-carousel {
    display: flex;
    gap: 12px;
    width: auto;
}

.page-template-fasadas-rombinis-dengimas .eq-thumb {
    width: 90px;
    height: 120px;
}

.page-template-fasadas-rombinis-dengimas .eq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* === HARD RESET FOR ROMBINIS THUMBS === */

.page-template-fasadas-rombinis-dengimas .eq-thumbs-grid,
.page-template-fasadas-rombinis-dengimas .eq-thumbs-carousel,
.page-template-fasadas-rombinis-dengimas #eqThumbs {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* убиваем любые flex/grid ограничения */
.page-template-fasadas-rombinis-dengimas .eq-thumbs-grid {
    display: block !important;
}

/* нормальный размер превью */
.page-template-fasadas-rombinis-dengimas .eq-thumb {
    width: 100px;
    height: 140px;
}

/* картинка ВЛЕЗАЕТ ВСЕГДА */
.page-template-fasadas-rombinis-dengimas .eq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* ============================================
   SIZES TABLE — V4 (CENTERED, FIXED WIDTH)
============================================ */

.cedral-sizes.v4 {
    padding: 80px 0;
}

/* Заголовок по центру */
.cedral-sizes.v4 .cedral-sizes-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Обёртка таблицы */
.cedral-sizes.v4 .cedral-sizes-table,
.cedral-sizes.v4 .smailiabriaunio-sizes-table {
    max-width: 820px;          /* ← КЛЮЧЕВОЕ */
    margin: 0 auto;            /* ← ЦЕНТР */
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

/* Шапка таблицы */
.cedral-sizes.v4 .sizes-head,
.cedral-sizes.v4 .smt-head {
    display: grid;
    grid-template-columns: 1.6fr repeat(2, 1fr);
    background: #111;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Строки */
.cedral-sizes.v4 .sizes-row,
.cedral-sizes.v4 .smt-row {
    display: grid;
    grid-template-columns: 1.6fr repeat(2, 1fr);
    align-items: center;
    background: #f6f6f6;
}

.cedral-sizes.v4 .sizes-row:nth-child(even),
.cedral-sizes.v4 .smt-row:nth-child(even) {
    background: #ececec;
}

/* Ячейки */
.cedral-sizes.v4 span {
    padding: 14px 16px;
    text-align: center;
}

.cedral-sizes.v4 span:first-child {
    text-align: left;
    font-weight: 500;
}

/* Галочки */
.cedral-sizes.v4 .yes {
    color: #ff9800;
    font-size: 18px;
}

.cedral-sizes.v4 .no {
    color: #999;
}
/* Заголовок — центр относительно таблицы */
.cedral-sizes.v4 .cedral-sizes-title {
    max-width: 820px;   /* ТО ЖЕ, ЧТО У ТАБЛИЦЫ */
    margin: 0 auto 40px;
    text-align: center;
}
/* ============================================
   SIZES TABLE — V5 (CENTERED)
============================================ */

.cedral-sizes.v5 {
    padding: 80px 0;
}

/* Заголовок по центру */
.cedral-sizes.v5 .cedral-sizes-title {
    max-width: 880px;
    margin: 0 auto 40px;
    text-align: center;
}

/* Контейнер таблицы */
.cedral-sizes.v5 .cedral-sizes-table {
    max-width: 880px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
}

/* Хедер */
.cedral-sizes.v5 .sizes-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    background: #0F0F10;
    color: #fff;
    font-weight: 600;
}

/* Строки */
.cedral-sizes.v5 .sizes-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: center;
}

/* Ячейки */
.cedral-sizes.v5 .sizes-head span,
.cedral-sizes.v5 .sizes-row span {
    padding: 14px 18px;
    text-align: center;
}

/* Первый столбец — названия */
.cedral-sizes.v5 .sizes-head span:first-child,
.cedral-sizes.v5 .sizes-row span:first-child {
    text-align: left;
    padding-left: 24px;
}

/* Чередование строк */
.cedral-sizes.v5 .sizes-row:nth-child(even) {
    background: #F4F4F4;
}

/* Галочки */
.cedral-sizes.v5 .yes {
    color: #F5A623;
    font-weight: 600;
}

.cedral-sizes.v5 .no {
    color: #999;
}
/* ===============================
   CEDRAL SIZES — V5 (FINAL)
================================ */

.cedral-sizes.v5 {
  padding: 80px 0;
}

.cedral-sizes.v5 .cedral-sizes-title {
  text-align: center;
  margin-bottom: 36px;
}

/* WRAPPER */
.cedral-sizes.v5 .cedral-sizes-table {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

/* HEADER */
.cedral-sizes.v5 .sizes-head {
  display: grid;
  grid-template-columns: 260px repeat(auto-fit, minmax(160px, 1fr));
  background: linear-gradient(90deg, #0b0b0b, #1a1a1a);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 18px 0;
}

.cedral-sizes.v5 .sizes-head span:first-child {
  text-align: left;
  padding-left: 32px;
}

/* ROWS */
.cedral-sizes.v5 .sizes-row {
  display: grid;
  grid-template-columns: 260px repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  padding: 18px 0;
  font-size: 15px;
}

.cedral-sizes.v5 .sizes-row:nth-child(even) {
  background: #f3f3f3;
}

.cedral-sizes.v5 .sizes-row span:first-child {
  padding-left: 32px;
  font-weight: 500;
}

/* CELLS */
.cedral-sizes.v5 .sizes-row span {
  text-align: center;
}

/* ICONS */
.cedral-sizes.v5 .yes {
  color: #ff9f0a;
  font-size: 18px;
  font-weight: 600;
}

.cedral-sizes.v5 .no {
  color: #9c9c9c;
}
/* === V5 COMPACT FIX === */

/* Header ниже */
.cedral-sizes.v5 .sizes-head {
  padding: 12px 0;
  font-size: 14px;
}

/* Строки компактнее */
.cedral-sizes.v5 .sizes-row {
  padding: 10px 0;
  font-size: 14px;
}

/* Уже колонки */
.cedral-sizes.v5 .sizes-head,
.cedral-sizes.v5 .sizes-row {
  grid-template-columns: 220px repeat(auto-fit, minmax(120px, 1fr));
}

/* Левый отступ меньше */
.cedral-sizes.v5 .sizes-head span:first-child,
.cedral-sizes.v5 .sizes-row span:first-child {
  padding-left: 25px;
}

/* Галочки компактнее */
.cedral-sizes.v5 .yes {
  font-size: 16px;
}
