/* ==========================================================================
   AutoLab24 Content Styles — PROIZVODI
   Komponente za dugi opis (tab "Opis") i kratki opis proizvoda.
   ========================================================================== */

/* Uvodni pasus */
.al24c .al24c-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--al24c-ink);
  margin-bottom: 1.4em;
}

/* Glavne prednosti — mreža sa kvačicama */
.al24c ul.al24c-highlights {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 1.6em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.al24c ul.al24c-highlights li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 44px;
  background: var(--al24c-surface);
  border: 1px solid var(--al24c-border);
  border-radius: var(--al24c-radius);
  font-weight: 600;
  line-height: 1.45;
}
.al24c ul.al24c-highlights li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--al24c-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Funkcije — kartice u mreži */
.al24c .al24c-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--al24c-gap);
  margin: 1.2em 0 1.8em;
}
.al24c .al24c-feature {
  background: #fff;
  border: 1px solid var(--al24c-border);
  border-top: 3px solid var(--al24c-accent);
  border-radius: var(--al24c-radius);
  padding: 18px 18px 16px;
  transition: box-shadow .2s, transform .2s;
}
.al24c .al24c-feature:hover { box-shadow: 0 10px 28px rgba(17, 17, 34, .08); transform: translateY(-2px); }
.al24c .al24c-feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.al24c .al24c-feature p { margin: 0; font-size: 15px; color: var(--al24c-muted); line-height: 1.6; }

/* Specifikacije — tabela ključ/vrednost */
.al24c .al24c-specs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--al24c-border);
  border-radius: var(--al24c-radius);
  overflow: hidden;
  margin: 1.1em 0 1.8em;
  font-size: 15px;
}
.al24c .al24c-specs th,
.al24c .al24c-specs td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--al24c-border);
  text-align: left;
  vertical-align: top;
}
.al24c .al24c-specs th {
  width: 36%;
  background: var(--al24c-surface);
  font-weight: 650;
  color: var(--al24c-ink);
}
.al24c .al24c-specs tr:last-child th,
.al24c .al24c-specs tr:last-child td { border-bottom: 0; }

/* Kompatibilnost — marke vozila kao "čipovi" */
.al24c ul.al24c-compat {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.6em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.al24c ul.al24c-compat li {
  margin: 0;
  padding: 6px 13px;
  border: 1px solid var(--al24c-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

/* Sadržaj pakovanja */
.al24c .al24c-box {
  background: var(--al24c-surface);
  border: 1px dashed var(--al24c-border);
  border-radius: var(--al24c-radius);
  padding: 16px 20px;
  margin: 1.1em 0 1.8em;
}
.al24c .al24c-box ul { margin: 0; }
.al24c .al24c-box li::marker { color: var(--al24c-accent); }

/* Česta pitanja — <details>/<summary>, bez JavaScript-a */
.al24c .al24c-faq { margin: 1em 0 1.8em; }
.al24c .al24c-faq details {
  border: 1px solid var(--al24c-border);
  border-radius: var(--al24c-radius);
  background: #fff;
  margin: 0 0 10px;
}
.al24c .al24c-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 46px 14px 18px;
  font-weight: 700;
  position: relative;
}
.al24c .al24c-faq summary::-webkit-details-marker { display: none; }
.al24c .al24c-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--al24c-accent);
}
.al24c .al24c-faq details[open] summary::after { content: "−"; }
.al24c .al24c-faq details[open] summary { border-bottom: 1px solid var(--al24c-border); }
.al24c .al24c-faq details > *:not(summary) { padding: 0 18px; }
.al24c .al24c-faq details > p:first-of-type { padding-top: 12px; }
.al24c .al24c-faq details > *:last-child { padding-bottom: 14px; margin-bottom: 0; }

/* Poziv na akciju na kraju opisa */
.al24c .al24c-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(110deg, var(--al24-deep, #090b0e), var(--al24c-dark) 55%, var(--al24-glow, #3d1019));
  color: #fff;
  border-radius: calc(var(--al24c-radius) + 2px);
  padding: 22px 26px;
  margin: 2em 0 0;
}
.al24c .al24c-cta h3, .al24c .al24c-cta p { color: #fff; margin: 0; }
.al24c .al24c-cta p { color: #cfd4db; font-size: 15px; margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Kratki opis proizvoda (pored slike, iznad cene/dugmeta)             */
/* ------------------------------------------------------------------ */
.al24c.al24c-short { font-size: 15.5px; line-height: 1.6; }
.al24c.al24c-short p { margin: 0 0 .8em; color: var(--al24c-muted); }
.al24c.al24c-short ul.al24c-checks { margin-bottom: .6em; }
.al24c.al24c-short ul.al24c-checks li { margin: .35em 0; font-weight: 600; color: var(--al24c-ink); }

/* WooCommerce: malo vazduha oko taba "Opis" */
.woocommerce div.product .woocommerce-Tabs-panel--description .al24c { max-width: 920px; }

/* ------------------------------------------------------------------ */
/* Mobilni prikaz                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .al24c .al24c-lead { font-size: 16.5px; }
  .al24c ul.al24c-highlights { grid-template-columns: 1fr; }
  .al24c .al24c-specs th { width: 42%; }
  .al24c .al24c-specs th, .al24c .al24c-specs td { padding: 10px 12px; }
  .al24c .al24c-cta { padding: 18px; }
  .al24c .al24c-cta .al24c-btn { width: 100%; text-align: center; }
}
