/* Pagina principală (magazinul): hero, plăci cu secțiuni, carduri de produse, coș și ferestre. */
.store section { max-width: 1120px; margin: 0 auto; padding: var(--s-8) max(16px, env(safe-area-inset-right, 0px)) 0 var(--gutter); scroll-margin-top: 0; }
.store .section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.store .section-sub { color: var(--muted); font-size: 17px; margin: var(--s-2) 0 var(--s-6); max-width: 76ch; }

/* ---- hero */
.hero { max-width: 1120px; margin: 0 auto; padding: var(--s-8) max(16px, env(safe-area-inset-right, 0px)) 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); align-items: center; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--brand); margin-bottom: var(--s-3); }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 650; line-height: 1.04; letter-spacing: -.04em; margin-bottom: var(--s-4); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin-bottom: var(--s-5); }
.hero .btn-row { margin-bottom: var(--s-6); }
.facts { display: flex; gap: var(--s-6); flex-wrap: wrap; }
@media (max-width: 520px) { .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } .facts dt { font-size: 24px; } .facts dd { font-size: 13px; line-height: 1.3; } }
.facts div { min-width: 0; }
.facts dt { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.facts dd { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-6); } .count { order: 2; } }

/* cronometru până la admiterea din 1 august 2027 */
.count { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); text-align: center; min-width: 0; }
.count .c-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.count .c-title { font-size: clamp(19px, 2.6vw, 24px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin-bottom: var(--s-5); text-wrap: balance; }
.count .c-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.count .c-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 4px 10px; min-width: 0; }
.count .c-box b { display: block; font-size: clamp(26px, 4.6vw, 40px); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.count .c-box span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.count .c-date { margin-top: var(--s-4); font-size: 15px; color: var(--ink-2); }
.count .c-msg { font-size: 17px; font-weight: 600; padding: var(--s-4) 0; }

/* ---- plăci: alege secțiunea */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tiles.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.five .tile { grid-column: span 2; }
.tiles.five .tile:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles.five .tile, .tiles.five .tile:nth-child(n+4) { grid-column: auto; } .tiles.five .tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .tiles.five { grid-template-columns: 1fr; } .tiles.five .tile:last-child { grid-column: auto; } }
.tile { display: flex; flex-direction: column; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); text-decoration: none; color: var(--ink); min-height: 168px; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.tile .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--s-2); }
.tile .ic svg { width: 24px; height: 24px; }
.tile b { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.tile span.d { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tile .go { margin-top: auto; padding-top: var(--s-2); font-size: 15px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.tile .go svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
  .tile:hover .go svg { transform: translateX(3px); }
}
.tile:active { transform: translateY(0) scale(.99); }

/* ---- carduri de produse */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-5); }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin: 0; }
.card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; grid-column: 1 / -1; }
@media (min-width: 760px) { .card.featured { grid-column: span 2; } }
.card.featured::before { content: 'Cel mai avantajos'; align-self: flex-start; background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: 50px; }
.card-title { font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.card-items { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-items li { position: relative; padding-left: 20px; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.card-items li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.card-items li strong { color: var(--ink); font-weight: 600; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-price { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.card-price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-md);
  background: var(--ink); color: #fff; border: 1px solid var(--ink); font-weight: 600; font-size: 16px; transition: background .15s, transform .15s var(--ease), border-color .15s;
}
@media (hover: hover) and (pointer: fine) { .btn-add:hover { background: #2d3340; transform: translateY(-1px); } }
.btn-add:active { transform: translateY(1px) scale(.985); }
.btn-add.added { background: var(--ok); border-color: var(--ok); }

/* ---- platforma de exerciții */
.plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 760px) { .plat { grid-template-columns: 1fr; } }
.plat .how { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-5) var(--s-7); align-items: start; }
.plat .how .card-title { grid-column: 1 / -1; }
.plat .how .btns { display: flex; flex-direction: column; gap: var(--s-3); }
@media (max-width: 760px) { .plat .how { grid-template-columns: 1fr; } }

/* ---- pregătire individuală, close friends */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.price-line { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.price-line small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.btn-contact { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-md); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); font-weight: 600; font-size: 16px; text-decoration: none; transition: border-color .15s, transform .15s var(--ease); align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .btn-contact:hover { border-color: var(--ink); transform: translateY(-1px); } }
.btn-contact.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-contact.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); } }

/* ---- cum comanzi */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: st; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-bottom: var(--s-3); }
.step b { display: block; font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---- subsol */
.store footer { margin: var(--s-9) 0 0; padding: var(--s-6) max(var(--gutter), calc((100% - 1120px) / 2 + 16px)) var(--s-9); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.store footer a { color: var(--ink); font-weight: 500; }

/* ---- coș și ferestre (clasele sunt folosite de scriptul magazinului) */
.cart-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 120;
  background: var(--ink); color: #fff; border-radius: 50px; min-height: 52px; padding: 0 var(--s-5) 0 var(--s-4); display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .25s var(--ease); box-shadow: 0 12px 28px rgba(21, 25, 34, .25); white-space: nowrap;
}
.cart-bar.visible { transform: translate(-50%, 0); }
.cart-count { background: #fff; color: var(--ink); min-width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 650; }
.cart-bar #cartTotal { color: #fff !important; font-size: 16px !important; font-weight: 500; }
.modal-overlay { position: fixed; inset: 0; background: rgba(21, 25, 34, .5); display: none; align-items: flex-end; justify-content: center; z-index: 300; }
.modal-overlay.open { display: flex; }
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: var(--s-4); } }
.modal { background: var(--surface); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s-5) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { .modal { border-radius: var(--r-lg); } }
.modal-handle { width: 40px; height: 4px; background: var(--line-strong); border-radius: 2px; margin: -8px auto var(--s-4); }
@media (min-width: 640px) { .modal-handle { display: none; } }
.modal h2 { font-size: 22px; font-weight: 650; margin-bottom: var(--s-4); }
.modal-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.modal-item-name { flex: 1; font-size: 16px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.modal-item-price { font-weight: 650; flex: none; }
.modal-item-remove { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); flex: none; font-size: 14px; color: var(--muted); }
.modal-item-remove:hover { border-color: var(--bad); color: var(--bad); }
.modal-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 650; padding: var(--s-4) 0; }
.btn-order { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 1px solid var(--brand); border-radius: var(--r-md); background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; transition: background .15s, transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn-order:hover { background: var(--brand-dark); transform: translateY(-1px); } }
.btn-order:active { transform: translateY(1px) scale(.985); }
.btn-order + .btn-order { margin-top: var(--s-2); }
.btn-wa-order { background: #167a3f; border-color: #167a3f; }
@media (hover: hover) and (pointer: fine) { .btn-wa-order:hover { background: #0f5f31; } }
.btn-close-modal { display: block; width: 100%; min-height: 48px; margin-top: var(--s-2); background: transparent; border: 0; color: var(--muted); font-weight: 500; font-size: 16px; }
.btn-close-modal:hover { color: var(--ink); }
.empty-cart { text-align: center; color: var(--muted); padding: var(--s-5) 0; font-size: 15px; }
.order-hint { font-size: 14px; color: var(--muted); text-align: center; margin: var(--s-3) var(--s-1) var(--s-1); line-height: 1.5; }
.order-fallback { display: none; margin-top: var(--s-3); }
.order-fallback.show { display: block; }
.order-fallback-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.order-fallback textarea { width: 100%; min-height: 110px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg); padding: var(--s-3); font-size: 14px; }
.var-sub { font-size: 15px; color: var(--muted); margin: -8px 0 var(--s-4); line-height: 1.5; }
.var-opt { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); width: 100%; padding: var(--s-4); margin-bottom: var(--s-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); text-align: left; min-height: 64px; transition: border-color .15s, transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .var-opt:hover { border-color: var(--ink); transform: translateY(-1px); } }
.var-opt:active { transform: scale(.99); }
.var-opt.hl { border-color: var(--brand); background: var(--brand-soft); }
.var-opt .v-name { font-size: 17px; font-weight: 600; }
.var-opt .v-name small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.var-opt .v-price { font-size: 20px; font-weight: 650; flex: none; }
.var-opt .v-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.confirm-list { margin: var(--s-2) 0 var(--s-3) 18px; }
.confirm-list li { margin-bottom: 4px; }
#variantOverlay { z-index: 400; }
#confirmOverlay { z-index: 500; }

/* ---- navigare pe pagină (pastile) */
.jump { display: flex; gap: var(--s-2); margin-top: var(--s-5); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 50px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.jump a:hover { border-color: var(--ink); color: var(--ink); }
.jump a:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.valid-note { display: flex; align-items: center; gap: 10px; margin-top: var(--s-4); padding: 10px 14px; width: fit-content; max-width: 100%; background: var(--brand-soft); color: var(--ink); border-radius: var(--r-md); font-size: 15px; line-height: 1.4; }
.valid-note svg { flex: none; color: var(--brand); }
.valid-note span { text-wrap: balance; }
.store section[id] { scroll-margin-top: 80px; }
.store .section-sub { text-wrap: pretty; }
/* abonamente: cele 3 pe un singur rand */
.plans-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans-3 .card.featured { grid-column: auto; }
.plans-3 .card.featured::before { display: none; }
.plans-3 .card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.badge-best { background: var(--brand); color: #fff; font-size: 12px; font-weight: 550; letter-spacing: 0; padding: 3px 10px; border-radius: 50px; white-space: nowrap; }
.plans-3 .card-footer { flex-direction: column; align-items: stretch; }
.plans-3 .card-footer .btn-add { width: 100%; }
