/* =========================================================
   MAKITA TAB – FULL CSS (Tech specs + Support as table)
   Scope: only inside .makita-tab
   ========================================================= */

/* --- Basic cleanup (HTML turi daug netvarkingų <p>) --- */
.makita-tab p { margin: 0; padding: 0; }
.makita-tab ul { margin: 0; padding: 0; list-style: none; }
.makita-tab li { margin: 0; padding: 0; list-style: none; }

.makita-tab { width: 100%; }
.makita-tab h6 { margin: 0 0 10px 0; }

/* =========================================================
   1) TECHNINĖS SPECIFIKACIJOS – TABLE
   ========================================================= */

.makita-tab .techspecs {
  margin: 0;
  padding: 0;
}

/* Grupės pavadinimai (jei yra) */
.makita-tab .techspecs-content { margin: 10px 0 6px 0; }
.makita-tab .techspecs-content-title { margin: 0; font-weight: 700; }

/* Eilutės wrapperis */
.makita-tab .techspecs--row { margin: 0; padding: 0; }

/* Lentelės eilutė */
.makita-tab .techspecs--row li.techspecs--row.row-content {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.6fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;

  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
}

/* Zebra */
.makita-tab .techspecs--row:nth-of-type(even) li.techspecs--row.row-content {
  background: #f8f8f8;
}

.makita-tab .techspecs--row-specification { font-weight: 600; }
.makita-tab .techspecs--row-value { font-weight: 500; white-space: nowrap; }
.makita-tab .techspecs--row-desc { opacity: 0.85; }

/* Responsive */
@media (max-width: 768px) {
  .makita-tab .techspecs--row li.techspecs--row.row-content {
    grid-template-columns: 1fr auto;
  }
  .makita-tab .techspecs--row-desc {
    grid-column: 1 / -1;
    padding-top: 6px;
  }
}

@media (max-width: 480px) {
  .makita-tab .techspecs--row li.techspecs--row.row-content {
    grid-template-columns: 1fr;
  }
  .makita-tab .techspecs--row-value {
    white-space: normal;
  }
}

/* =========================================================
   2) BARCODE – švariau
   ========================================================= */

.makita-tab .barcode-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.makita-tab .barcode-container h6 { margin-bottom: 6px; }

/* =========================================================
   3) SIMBOLIAI – tvarkingas išdėstymas
   ========================================================= */

.makita-tab .product-symbols {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.makita-tab .product-symbols-title { margin-bottom: 10px; }

.makita-tab .product-symbols-item {
  display: inline-block;
  vertical-align: top;
  margin: 0 14px 14px 0;
}

.makita-tab .product-symbols-item-image span {
  display: inline-block;
  width: 54px;
  height: 54px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.makita-tab .product-symbols-item-image p { margin: 6px 0 0 0; }

/* =========================================================
   4) PALAIKYMAS (SUPPORT) – TABLE + DIDESNĖ IKONA
   ========================================================= */

.makita-tab .product-additional-files { margin-top: 10px; }

.makita-tab .support-list {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.6fr) minmax(220px, 1fr);
  align-items: center;

  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
}

.makita-tab .support-list:nth-of-type(even) { background: #f8f8f8; }

.makita-tab .attachments-item-left { font-weight: 500; }

/* Dešinė pusė */
/* Linkas kaip "ikonos konteineris" */
.makita-tab .attachments-item-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

/* SVARBU: paslepiam span, paliekam tik img (kad nebūtų dubliavimo / 0x0 bugų) */
.makita-tab .attachments-item-right a span {
  display: none !important;
}

/* Padidinam IMG ikoną */
.makita-tab .attachments-item-right a img {
  display: inline-block;
  height: auto;
  vertical-align: middle;
  border: 0;
  max-height: 28px;

  /* jei ikona blanki – truputį pakeliam kontrastą */
  filter: contrast(120%);
}

/* Hover */
.makita-tab .attachments-item-right a:hover img {
  transform: scale(1.08);
  transition: transform 0.18s ease;
}

/* Responsive */
@media (max-width: 600px) {
  .makita-tab .support-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .makita-tab .attachments-item-right {
    justify-self: start;
    text-align: left;
  }
}

/* =========================================================
   5) Saugumas: paslepiam keistus <p> tagus, jei tema juos prikiša
   ========================================================= */
.makita-tab .techspecs--row > p,
.makita-tab .support-list > p {
  display: none;
}