:root{
  --top5-pad: 18px;
  --top5-radius: 22px;
  --top5-gap: 16px;
}

/* Card */
.rp-top5-card{
  position: relative;
  overflow: hidden !important;
  border-radius: var(--top5-radius);
}

.rp-top5-card-content{
  position: relative;
  z-index: 2;
  padding: var(--top5-pad);
  box-sizing: border-box;
  text-align: left !important;
}

/* =========================
   HEADBAR
========================= */

.rp-top5-headbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  margin: 0 0 14px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid rgba(41,255,38,0.18);
}

.rp-top5-headbar:after{
  content:"";
  display:block;
  height:1px;
  margin-top:12px;
  background: linear-gradient(90deg, transparent, rgba(41,255,38,0.85), transparent);
  box-shadow: 0 0 18px rgba(41,255,38,0.35);
}

.rp-top5-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;

  font-weight: 950;
  font-size: 14px;
  letter-spacing: 0.02em;

  padding: 7px 12px;
  border-radius: 999px;

  color: rgba(210,255,210,0.98);
  background: rgba(41,255,38,0.12);
  border: 1px solid rgba(41,255,38,0.36);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.40),
    0 0 22px rgba(41,255,38,0.16);

  white-space: nowrap;
}

.rp-top5-pricebar{
  display:inline-flex;
  align-items:baseline;
  gap:10px;

  padding: 7px 12px;
  border-radius: 999px;

  background: rgba(41,255,38,0.09);
  border: 1px solid rgba(41,255,38,0.22);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.40),
    0 0 22px rgba(41,255,38,0.12);

  white-space: nowrap;
  margin-left: auto;
}

.rp-price-old{
  font-size: 13px !important;
  font-weight: 800;
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,255,255,0.55);
}

.rp-price-new{
  font-size: 22px !important;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #29ff26;
  text-shadow:
    0 0 16px rgba(41,255,38,0.24),
    0 8px 30px rgba(0,0,0,0.55);
}

/* =========================
   TITLE
========================= */

.rp-top5-title-full{
  margin: 6px 0 14px 0 !important;
  width: 100%;
}

/* Terméknév szín */
.rp-top5-title{
  color: #29ff26 !important;
}

/* =========================
   ✅ TWO COLUMN LAYOUT (50/50)
========================= */

.rp-top5-two-col{
  width: 100% !important;
  max-width: 100% !important;

  display: grid;
  grid-template-columns: 1fr 1fr;  /* ✅ 50% / 50% */
  gap: var(--top5-gap);
  align-items: start;

  justify-items: stretch;
}

.rp-top5-col{
  min-width: 0; /* ✅ fontos: ne tolja szét a gridet */
}

/* LEFT image box */
.rp-top5-image-box{
  width: 100%;
  padding: 10px;

  border-radius: var(--top5-radius);
  overflow: hidden;
  box-sizing: border-box;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}

.rp-top5-product-img{
  display:block;
  width: 100% !important;
  max-width: 100% !important;

  aspect-ratio: 1 / 1;    /* ✅ square */
  height: auto !important;

  object-fit: cover;
  border-radius: 18px;

  opacity: 0.98;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.40));
}

/* RIGHT QA */
.rp-top5-points-stacked{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 18px !important;     /* ✅ kérdés nagyobb */
  line-height: 0.8 !important;
  display: grid;
  gap: 10px;
}

.rp-top5-points-stacked li{
  margin: 0;
  padding: 12px 14px;

  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.rp-top5-points-stacked strong{
  display:block !important;
  margin: 0 0 2px 0 !important; /* ✅ ne legyen nagy kihagyás */
  font-weight: 950;
  color: rgba(185,255,195,0.98) !important;
}

.rp-top5-answer{
  display:block;
  margin: 0 !important;
  opacity: 0.92;
  line-height: 1.35;
  font-size: 16px !important;     /* ✅ válasz nagyobb */
  line-height: 1.45 !important;
}

/* =========================================================
   TOP5 – HARD FIX: stop right-aligned layout (Divi overrides)
========================================================= */

/* 1) Force the whole Top5 content to be left aligned */
.rp-top5-card-content{
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

/* 2) Force the wrapper to occupy FULL width and stick LEFT */
.rp-top5-two-col{
  display: grid !important;

  /* ✅ true 50/50 columns */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;

  gap: 16px !important;

  /* ✅ THIS is the missing piece */
  width: 100% !important;
  max-width: 100% !important;

  /* ✅ prevent “shrink-to-fit” + right drifting */
  justify-content: start !important;
  justify-items: stretch !important;
  align-items: start !important;

  margin: 0 !important;
}

/* 3) Important: columns must be allowed to shrink */
.rp-top5-col,
.rp-top5-col-image,
.rp-top5-col-qa{
  min-width: 0 !important;
  width: 100% !important;
}

/* 4) Ensure image box doesn't center itself */
.rp-top5-image-box{
  width: 100% !important;
  margin: 0 !important;
}

/* 5) If Divi tries to align inner content */
.rp-top5-col *{
  text-align: left !important;
}

/* Mobile stays stacked */
@media (max-width: 767px){
  .rp-top5-two-col{
    grid-template-columns: 1fr !important;
  }
}

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

@media (max-width: 767px){

  .rp-top5-headbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rp-top5-pricebar{
    width: 100%;
    justify-content: center;
  }

  .rp-top5-two-col{
    grid-template-columns: 1fr; /* ✅ mobilon stacked */
  }
}

/* =========================================================
   TOP5 – SPEC ICONS (under Q&A)
========================================================= */

.rp-top5-spec-icons{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rp-top5-spec{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* ICON BASE */
.rp-spec-icon{
  width: 34px;
  height: 34px;
  flex-shrink: 0;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  filter:
    drop-shadow(0 0 10px rgba(41,255,38,0.35))
    drop-shadow(0 0 20px rgba(41,255,38,0.15));
}

/* ICON TYPES – ezekhez ugyanazokat az SVG-ket használd,
   mint a product cardoknál */

.rp-spec-speed{
  background-image: url("/wp-content/uploads/icons/speed.svg");
}

.rp-spec-battery{
  background-image: url("/wp-content/uploads/icons/battery.svg");
}

.rp-spec-range{
  background-image: url("/wp-content/uploads/icons/range.svg");
}

/* TEXT */
.rp-spec-text strong{
  display:block;
  font-size: 13px;
  font-weight: 900;
  color: rgba(185,255,195,0.98);
  line-height: 1.1;
}

.rp-spec-text span{
  font-size: 14px;
  opacity: 0.9;
}

/* MOBILE */
@media (max-width: 767px){
  .rp-top5-spec-icons{
    grid-template-columns: 1fr;
  }
}