/* The plans of the home page as product cards of an eshop (administrator's decision, option Α, only here): a grid of
   3 / 2 / 1, the provider's box large in a soft light like a product in a shop window, the name, «Σταθερή τιμή · 12
   μήνες», the cost a month, a thin bar without words, the price and fee, then «Σύγκριση» and the round cart. The
   colour of each kind on the top edge and a soft tint; «Χαμηλότερο κόστος» a ribbon on the cheapest, with the soft
   orange. Three orange icons only: lock, trophy, bulb. Loaded after plan-row.css, so it decides the layout of the
   cards. */
.catalog-section--home .badge-icon{flex:0 0 auto;color:var(--orange)}
.catalog-section--home .calculator-tip{display:inline-flex;align-items:center;gap:6px}
.catalog-section--home .calculator-tip .badge-icon{width:18px;height:18px}

.catalog-section--home .plan-list.is-active{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-top:4px}
.catalog-section--home .price-row{--kind:#0c67b9;--tint:#eef7ff;position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:0;margin:0;padding:16px 18px 14px;border:1px solid #dfe7f0;border-top:4px solid var(--kind);border-radius:18px;background:linear-gradient(180deg,var(--tint) 0,#fff 45%);box-shadow:0 8px 24px rgba(7,31,73,.07);overflow:visible;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,opacity .5s ease}
.catalog-section--home .price-row--yellow{--kind:#e4b900;--tint:#fff7ce}
.catalog-section--home .price-row--gas{--kind:#268f57;--tint:#eaf8f0}
.catalog-section--home .price-row--dual{--kind:#f28c28;--tint:#fff1e2}
.catalog-section--home .price-row.is-cheapest{--kind:var(--orange);--tint:#fff1e2;border-color:#f6b77a;border-top-color:var(--orange);box-shadow:0 12px 30px rgba(242,140,40,.18)}
@media(hover:hover) and (pointer:fine){
  .catalog-section--home .price-row:hover{transform:translateY(-6px);border-color:#bcd3ea;box-shadow:0 20px 40px rgba(7,31,73,.16)}
  .catalog-section--home .price-row.is-cheapest:hover{border-color:#f2a35a;box-shadow:0 20px 40px rgba(242,140,40,.24)}
  .catalog-section--home .price-row:hover .price-box{transform:translateY(-5px) rotate(-1.5deg) scale(1.04)}
}

/* «Χαμηλότερο κόστος»: a quiet ribbon on the corner. */
.catalog-section--home .price-best{position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:5px;padding:4px 11px 4px 6px;border-radius:999px;background:var(--navy);color:#fff;font-size:.72rem;font-weight:800;box-shadow:0 4px 12px rgba(7,31,73,.2)}
.catalog-section--home .price-best .badge-icon{width:16px;height:16px}

/* The box in a shop window: a soft light behind it and its shadow on the floor. */
.catalog-section--home .price-provider{position:relative;display:grid;place-items:center;width:auto;height:150px;margin:0 -6px 12px;padding:0;border:0;border-radius:14px;background:radial-gradient(ellipse 60% 70% at 50% 55%,rgba(255,255,255,.98) 0,rgba(255,255,255,.6) 45%,rgba(255,255,255,0) 75%);cursor:pointer}
.catalog-section--home .price-provider::after{content:"";position:absolute;bottom:12px;left:50%;width:58%;height:12px;border-radius:50%;background:radial-gradient(closest-side,rgba(7,31,73,.18),rgba(7,31,73,0));transform:translateX(-50%);pointer-events:none}
.catalog-section--home .price-provider .price-box{position:relative;z-index:1;width:auto;max-width:78%;max-height:128px;height:auto;aspect-ratio:320/194;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(7,31,73,.14));transition:transform .3s ease}
.catalog-section--home .price-name{display:-webkit-box;min-height:2.5em;padding:0;overflow:hidden;border:0;background:none;color:var(--navy);font-size:1.02rem;font-weight:800;line-height:1.25;text-align:left;cursor:pointer;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.catalog-section--home .price-name:hover{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.catalog-section--home .price-provider:focus-visible,.catalog-section--home .price-name:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.catalog-section--home .plan-short-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:6px 0 0;color:var(--muted);font-size:.8rem;font-weight:600}
.catalog-section--home .price-lock{display:inline-flex;align-items:center;gap:4px;padding:0;background:none;color:var(--muted);font-size:inherit;font-weight:inherit;text-transform:none;letter-spacing:0}
.catalog-section--home .price-lock .badge-icon{width:15px;height:15px}
.catalog-section--home .price-cost{margin-top:12px;min-width:0}
.catalog-section--home .price-estimate{display:block;color:var(--navy);font-size:1.45rem;font-weight:800;letter-spacing:-.01em;line-height:1.1;text-align:left;font-variant-numeric:tabular-nums}
.catalog-section--home .price-bar{position:relative;height:4px;margin:10px 6px 0;border-radius:999px;background:#e3eaf2}
.catalog-section--home .price-bar__dot{position:absolute;top:50%;left:var(--at,0%);width:11px;height:11px;border:2px solid var(--orange);border-radius:50%;background:#fff;transform:translate(-50%,-50%)}
.catalog-section--home .price-facts{margin:8px 0 14px;color:var(--muted);font-size:.76rem;line-height:1.45}
.catalog-section--home .price-actions{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(7,31,73,.08)}
.catalog-section--home .price-actions .compare-check{margin:0;font-size:.8rem}
.catalog-section--home .price-actions .plan-cart{margin-left:auto}
.catalog-section--home .price-moved{display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 8px;border:1px solid #d6e2ec;border-radius:999px;background:#f5f8fb;color:var(--navy);font-size:.74rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}
.catalog-section--home .price-moved--up{border-color:#f2c4c0;background:#fdf1f0;color:#a23b2f}
.catalog-section--home .price-moved--down{border-color:#b9dfc8;background:#eef9f2;color:#1f7a45}

/* The cards come in softly while scrolling (home.js), never for whoever turned movement off. */
.catalog-section--home.cards-reveal .price-row:not(.is-shown){opacity:0;transform:translateY(18px)}

/* «Ρεύμα + Αέριο»: a provider a card, its electricity and its gas one under the other, the cost of both together. */
.catalog-section--home .price-combo .price-provider{cursor:default}
.catalog-section--home .price-combo__plans{display:grid;gap:8px}
.catalog-section--home .price-combo__plan+.price-combo__plan{padding-top:8px;border-top:1px dashed var(--line)}
.catalog-section--home .price-combo__kind{display:block;margin-bottom:2px;color:var(--blue);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.catalog-section--home .price-combo .price-name{min-height:0;font-size:.95rem}
.catalog-section--home .price-combo__plan .plan-short-line{margin-top:3px;font-size:.76rem}
.calculator-gas{display:flex;flex-direction:column;gap:4px}.calculator-gas[hidden]{display:none}
.calculator-gas label,.calculator-power__label{color:#c5d4e8;font-size:.78rem;font-weight:700}
.calculator-power{display:flex;flex-direction:column;gap:4px}.calculator-power__label[hidden]{display:none}

/* A tablet: two cards a row. */
@media(max-width:1023px){
  .catalog-section--home .plan-list.is-active{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}

/* A phone: one card a row, compact: the box on the left, the name, the line and the cost on the right. */
@media(max-width:680px){
  .catalog-section--home .plan-list.is-active{grid-template-columns:minmax(0,1fr);gap:14px}
  .catalog-section--home .price-row{display:grid;grid-template-columns:104px minmax(0,1fr);grid-template-areas:"box program" "box cost" "box facts" "actions actions";gap:0 12px;padding:12px 14px}
  .catalog-section--home .price-provider{grid-area:box;align-self:center;height:100px;margin:0}
  .catalog-section--home .price-provider::after{bottom:6px}
  .catalog-section--home .price-provider .price-box{max-width:100%;max-height:72px}
  .catalog-section--home .price-program{grid-area:program;align-self:end}
  .catalog-section--home .price-name{min-height:0;font-size:.96rem}
  .catalog-section--home .plan-short-line{margin-top:4px;font-size:.76rem}
  .catalog-section--home .price-cost{grid-area:cost;align-self:start;margin-top:6px}
  .catalog-section--home .price-estimate{font-size:1.25rem}
  .catalog-section--home .price-bar{margin:8px 4px 0}
  .catalog-section--home .price-facts{grid-area:facts;margin:6px 0 0;font-size:.72rem}
  .catalog-section--home .price-actions{grid-area:actions;margin-top:10px;padding-top:8px}
  .catalog-section--home .price-best{top:-10px;left:12px}
  .catalog-section--home .price-row.is-cheapest{padding-top:16px}
}

/* What is hidden stays hidden, whatever its display above. */
.catalog-section--home .price-row[hidden],.catalog-section--home .price-best[hidden],.catalog-section--home .price-bar[hidden]{display:none}

/* A list the choices leave empty (site.js). */
.catalog-section--home .plan-list-empty{margin:8px 0 0;padding:28px 16px;border:1px dashed var(--line);border-radius:14px;background:#fff;color:var(--muted);text-align:center}
.catalog-section--home .plan-list-empty[hidden],.catalog-section--home .plan-list:not(.is-active)+.plan-list-empty{display:none}
