/* ═══════════════════════════════════════════════════════════
   Uložený výber (TrofVyber) + obľúbené (TrofOblubene)
   Farby a zaoblenia z astra-child :root (--tfl-*), zálohy pre istotu.
   ═══════════════════════════════════════════════════════════ */

/* ── Srdiečko ───────────────────────────────────────────── */

.trof-heart {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
    color: var(--tfl-muted, #5e5a6b); line-height: 1;
}
.trof-heart svg { fill: transparent; stroke: currentColor; stroke-width: 2; transition: fill .15s, transform .15s; }
.trof-heart:hover { color: var(--tfl-sale, #c62828); }
.trof-heart.is-on { color: var(--tfl-sale, #c62828); }
.trof-heart.is-on svg { fill: currentColor; }
.trof-heart.is-pop svg { animation: trof-heart-pop .32s ease-out; }
@keyframes trof-heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.trof-heart:focus-visible { outline: 2px solid var(--tfl-primary, #2f196e); outline-offset: 2px; border-radius: var(--tfl-r-sm, 4px); }

/* Karta vo výpise: pravý horný roh fotky (nálepky sú vľavo). */
.astra-shop-thumbnail-wrap { position: relative; }
.trof-heart--card {
    position: absolute; top: 8px; right: 8px; z-index: 6;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(29, 26, 38, .14);
}
@media (hover: hover) {
    .astra-shop-thumbnail-wrap .trof-heart--card:not(.is-on) { opacity: 0; transition: opacity .15s; }
    li.product:hover .trof-heart--card, .trof-heart--card:focus-visible { opacity: 1; }
}

/* Detail produktu: tichý riadok pod názvom. */
.trof-heart-row { margin: -4px 0 10px; }
.trof-heart--detail { font-size: 14px; font-weight: 500; }
.trof-heart--detail .trof-heart__txt { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tfl-line, #e4e2ec); }
.trof-heart--detail.is-on .trof-heart__txt { color: var(--tfl-ink, #1d1a26); text-decoration: none; }

/* Hlavička: srdiečko vedľa košíka. */
.tfl-header__actions { display: flex; align-items: center; gap: 18px; }
.tfl-fav-link { position: relative; display: flex; align-items: center; color: var(--tfl-primary, #2f196e); text-decoration: none !important; }
.tfl-fav-link:hover { color: var(--tfl-sale, #c62828); }
.tfl-fav-count {
    position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    background: var(--tfl-accent, #00e5a0); color: var(--tfl-primary, #2f196e);
    font-size: 10px; font-weight: 800; border-radius: var(--tfl-r-md, 6px);
}
.tfl-fav-count.is-empty { display: none; }
@media (max-width: 921px) { .tfl-header__actions { gap: 14px; } }

/* ── Tlačidlá ───────────────────────────────────────────── */

.trof-vy-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 42px; padding: 9px 16px; margin: 0;
    border: 1px solid var(--tfl-border, #d8dbe0); border-radius: var(--tfl-r-sm, 4px);
    background: #fff; color: var(--tfl-ink, #1d1a26) !important;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none !important; cursor: pointer;
}
.trof-vy-btn:hover { border-color: var(--tfl-primary, #2f196e); color: var(--tfl-primary, #2f196e) !important; }
.trof-vy-btn--primary { background: var(--tfl-primary, #2f196e); border-color: var(--tfl-primary, #2f196e); color: #fff !important; }
.trof-vy-btn--primary:hover { background: var(--tfl-primary-dark, #1e1048); color: #fff !important; }
.trof-vy-btn--block { display: flex; width: 100%; }
.trof-vy-btn.is-done { border-color: var(--tfl-ok, #1f6f47); color: var(--tfl-ok, #1f6f47) !important; }
.trof-vy-btn + .trof-vy-btn--block, .trof-vy-btn--block + .trof-vy-btn--block { margin-top: 8px; }

/* ── Košík: „Potrebujete to najprv schváliť?“ ───────────── */

.trof-vy-cartbox__txt { margin: 0 0 10px; font-size: 13.5px; color: var(--tfl-muted, #5e5a6b); line-height: 1.45; }
.trof-vy-cartbox__btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.trof-vy-chip {
    flex: 1 1 auto; padding: 8px 10px; margin: 0;
    border: 1px solid var(--tfl-border, #d8dbe0); border-radius: var(--tfl-r-sm, 4px);
    background: #fff; color: var(--tfl-ink, #1d1a26); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    white-space: nowrap;
}
.trof-vy-chip:hover { border-color: var(--tfl-primary, #2f196e); color: var(--tfl-primary, #2f196e); background: #fff; }
.trof-vy-cartbox__done { margin: 10px 0 0; font-size: 13px; color: var(--tfl-ok, #1f6f47); }
.trof-vy-cartbox__done span { display: block; margin-bottom: 6px; font-weight: 600; }
.trof-vy-cartbox__done .trof-vy-link__input { width: 100%; margin-bottom: 4px; }
.trof-vy-cartbox__open { font-size: 13px; }

/* ── Stránka výberu ─────────────────────────────────────── */

.trof-vy { max-width: 1180px; margin: 0 auto; padding: 8px 0 48px; color: var(--tfl-text, #2a2733); }
.trof-vy__kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tfl-muted, #5e5a6b); }
.trof-vy__title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--tfl-primary, #2f196e); }
.trof-vy__meta { margin: 0 0 20px; color: var(--tfl-muted, #5e5a6b); font-size: 15px; }
.trof-vy-safe { margin: -8px 0 20px; padding: 10px 14px; border-radius: var(--tfl-r-md, 6px); background: var(--tfl-panel, #f7f6f3); font-size: 14px; color: var(--tfl-text, #2a2733); }
.trof-vy-cartbox__src { margin: 0 0 10px; padding: 8px 10px; border-radius: var(--tfl-r-sm, 4px); background: var(--tfl-panel, #f7f6f3); font-size: 13px; line-height: 1.45; }
.trof-vy__warn { color: #8a5300; font-weight: 600; }
.trof-vy__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 921px) { .trof-vy__grid { grid-template-columns: 1fr; } }

.trof-vy-item {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start;
    padding: 16px 0; border-bottom: 1px solid var(--tfl-line, #e4e2ec);
}
.trof-vy-item:first-child { border-top: 1px solid var(--tfl-line, #e4e2ec); }
.trof-vy-item__img img { display: block; width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--tfl-r-sm, 4px); }
.trof-vy-item__name { display: block; font-weight: 700; font-size: 16px; color: var(--tfl-ink, #1d1a26) !important; text-decoration: none !important; margin-bottom: 6px; }
.trof-vy-item__cfg { margin: 0; font-size: 14px; }
.trof-vy-item__cfg > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; padding: 2px 0; }
.trof-vy-item__cfg dt { color: var(--tfl-muted, #5e5a6b); font-weight: 400; }
.trof-vy-item__cfg dd { margin: 0; color: var(--tfl-ink, #1d1a26); }
.trof-vy-plus { color: var(--tfl-muted, #5e5a6b); white-space: nowrap; }
.trof-vy-item__price { text-align: right; white-space: nowrap; }
.trof-vy-item__qty { display: block; font-size: 13px; color: var(--tfl-muted, #5e5a6b); margin-bottom: 2px; }
.trof-vy-item__price strong { font-size: 17px; color: var(--tfl-price, #1d1a26); }
@media (max-width: 600px) {
    .trof-vy-item { grid-template-columns: 64px minmax(0, 1fr); }
    .trof-vy-item__img img { width: 64px; height: 64px; }
    .trof-vy-item__price { grid-column: 2; text-align: left; }
    .trof-vy-item__cfg > div { grid-template-columns: 1fr; gap: 0; padding: 3px 0; }
}
.trof-vy__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; font-size: 18px; }
.trof-vy__total strong { font-size: 22px; color: var(--tfl-price, #1d1a26); }
.trof-vy__note { margin: 0; font-size: 13.5px; color: var(--tfl-muted, #5e5a6b); }

.trof-vy__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
@media (max-width: 921px) { .trof-vy__side { position: static; } }
.trof-vy-card { background: #fff; border: 1px solid var(--tfl-line, #e4e2ec); border-radius: var(--tfl-r-md, 6px); padding: 16px; }
.trof-vy-card--buy { border-color: var(--tfl-primary, #2f196e); }
.trof-vy-card__h { margin: 0 0 6px; font-size: 16px; color: var(--tfl-ink, #1d1a26); }
.trof-vy-buy { margin: 0; }
.trof-vy-buy__q { margin: 0 0 8px; font-size: 14px; color: var(--tfl-muted, #5e5a6b); }
.trof-vy-card--buy > .trof-vy-btn--block { margin-top: 8px; }
.trof-vy-hint { margin: 8px 0 0; font-size: 13px; color: var(--tfl-muted, #5e5a6b); line-height: 1.45; }
.trof-vy-ok { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--tfl-r-sm, 4px); background: #e6f6ee; color: var(--tfl-ok, #1f6f47); font-size: 14px; }
.trof-vy-link { display: flex; gap: 6px; margin-top: 10px; }
.trof-vy-link__input {
    flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; color: var(--tfl-muted, #5e5a6b);
    border: 1px solid var(--tfl-border, #d8dbe0); border-radius: var(--tfl-r-sm, 4px); background: var(--tfl-panel, #f7f6f3);
}
.trof-vy-activity { margin: 10px 0 0; font-size: 13px; color: var(--tfl-muted, #5e5a6b); }

.trof-vy-fold { padding: 0; }
.trof-vy-fold > summary {
    list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; color: var(--tfl-ink, #1d1a26);
    display: grid; grid-template-columns: 26px 1fr; column-gap: 6px;
}
.trof-vy-fold > summary::-webkit-details-marker { display: none; }
.trof-vy-fold > summary small { grid-column: 2; font-weight: 400; font-size: 13px; color: var(--tfl-muted, #5e5a6b); }
.trof-vy-fold[open] > summary { border-bottom: 1px solid var(--tfl-line, #e4e2ec); }
.trof-vy-fold__ico { grid-row: span 2; font-size: 18px; line-height: 1.2; }
.trof-vy-form { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; margin: 0; }
.trof-vy-card.trof-vy-form { padding: 16px; margin: 12px 0; }
.trof-vy-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--tfl-ink, #1d1a26); }
.trof-vy-form label small { font-weight: 400; color: var(--tfl-muted, #5e5a6b); }
.trof-vy-form input[type=text], .trof-vy-form input[type=email], .trof-vy-form textarea {
    width: 100%; padding: 9px 11px; font: inherit; font-size: 15px; font-weight: 400;
    border: 1px solid var(--tfl-border, #d8dbe0); border-radius: var(--tfl-r-sm, 4px); background: #fff;
}
.trof-vy-form input:focus, .trof-vy-form textarea:focus { outline: none; border-color: var(--tfl-primary, #2f196e); box-shadow: 0 0 0 2px rgba(47, 25, 110, .12); }
.trof-vy-form .trof-vy-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.trof-vy-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.trof-vy-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.trof-vy-ico__adresa { display: flex; flex-direction: column; gap: 10px; }
.trof-vy-ico__msg { margin: -4px 0 0; font-size: 13px; color: var(--tfl-muted, #5e5a6b); }
.trof-vy-ico__msg.is-ok { color: var(--tfl-ok, #1f6f47); }
.trof-vy-ico__msg.is-err { color: #8a5300; }
.trof-vy-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.trof-vy-help { margin: 4px 0 0; font-size: 13.5px; color: var(--tfl-muted, #5e5a6b); }

.trof-vy-msg { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--tfl-r-md, 6px); font-size: 15px; line-height: 1.5; }
.trof-vy-msg .trof-vy-btn { margin: 6px 6px 0 0; min-height: 36px; padding: 6px 12px; }
.trof-vy-msg--ok { background: #e6f6ee; border: 1px solid #bfe3d3; }
.trof-vy-msg--err { background: #fdecec; border: 1px solid #f3c4c4; color: #8b1c1c; }
.trof-vy__empty { max-width: 560px; margin: 40px auto; text-align: center; }

/* ── Stránka obľúbených ─────────────────────────────────── */

.trof-obl { max-width: 1180px; margin: 0 auto; padding: 8px 0 48px; }
.trof-obl__title { margin: 0 0 6px; color: var(--tfl-primary, #2f196e); font-size: clamp(24px, 3vw, 32px); }
.trof-obl__sub { margin: 0 0 18px; color: var(--tfl-muted, #5e5a6b); }
.trof-obl__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.trof-obl__tools[hidden] { display: none; }
.trof-obl-mail { max-width: 520px; }
.trof-obl-mail[hidden] { display: none; }
.trof-obl-mail__msg { margin: 0; font-size: 14px; }
.trof-obl-mail__msg.is-ok { color: var(--tfl-ok, #1f6f47); }
.trof-obl-mail__msg.is-err { color: #8b1c1c; }
.trof-obl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
@media (max-width: 600px) { .trof-obl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.trof-obl-card { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.trof-obl-card .trof-heart--card { opacity: 1; }
.trof-obl-card__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.trof-obl-card__name { font-weight: 600; color: var(--tfl-ink, #1d1a26) !important; text-decoration: none !important; line-height: 1.35; }
.trof-obl-card__price { font-weight: 700; color: var(--tfl-price, #1d1a26); }
.trof-obl-card__stock:empty { display: none; }
.trof-obl-card__stock { font-size: 13px; color: #8a5300; }
.trof-obl-card__go { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--tfl-primary, #2f196e) !important; }
.trof-obl__empty { padding: 30px 0; max-width: 560px; color: var(--tfl-muted, #5e5a6b); }
.trof-obl__empty[hidden] { display: none; }
.trof-obl__ico svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--tfl-sale, #c62828); stroke-width: 2; }
.trof-obl__loading { color: var(--tfl-muted, #5e5a6b); }

/* ── Prezentácia ponuky: detail produktu, okno košíka, výpis ── */

.trof-vy-pdp { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px;
    border: 1px dashed var(--tfl-border, #d8dbe0); border-radius: var(--tfl-r-md, 6px);
    font-size: 13.5px; line-height: 1.45; color: var(--tfl-muted, #5e5a6b); }
.trof-vy-pdp strong { color: var(--tfl-ink, #1d1a26); }
.trof-vy-pdp a { color: var(--tfl-primary, #2f196e); font-weight: 600; white-space: nowrap; }
.trof-vy-pdp__ico { font-size: 16px; line-height: 1.2; }
.trof-toast-quote { display: block; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--tfl-line, #e4e2ec);
    text-align: center; font-size: 13.5px; color: var(--tfl-muted, #5e5a6b) !important; text-decoration: none !important; }
.trof-toast-quote strong { color: var(--tfl-primary, #2f196e); text-decoration: underline; text-underline-offset: 3px; }
.trof-vy-cartbox__org { margin: 10px 0 0; font-size: 13px; }
.trof-vy-cartbox__org a { color: var(--tfl-primary, #2f196e); font-weight: 600; }
.tff-hint__more { margin: 6px 0 0; font-size: 13px; color: var(--tfl-muted, #5e5a6b); }
.tff-hint__more a { color: var(--tfl-primary, #2f196e); font-weight: 600; }

/* ── Bublina pri prvom srdiečku ─────────────────────────── */

.trof-heart-tip { position: absolute; z-index: 9999; max-width: 250px; padding: 10px 12px;
    background: var(--tfl-ink, #1d1a26); color: #fff; border-radius: var(--tfl-r-md, 6px);
    font-size: 13px; line-height: 1.4; box-shadow: 0 6px 20px rgba(29, 26, 38, .25); }
.trof-heart-tip a { color: var(--tfl-accent, #00e5a0); font-weight: 700; }
.trof-heart-tip::before { content: ""; position: absolute; top: -6px; right: 18px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--tfl-ink, #1d1a26); }

/* ── Stránka Pre školy, kluby a obce (obsah z migrácie 013) ── */

.trof-org { max-width: 860px; margin: 0 auto; color: var(--tfl-text, #2a2733); font-size: 16px; line-height: 1.6; }
.trof-org h1 { color: var(--tfl-primary, #2f196e); margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; }
.trof-org__lead { font-size: 18px; color: var(--tfl-muted, #5e5a6b); margin: 0 0 26px; }
.trof-org h2 { color: var(--tfl-ink, #1d1a26); font-size: 21px; margin: 34px 0 12px; }
.trof-org__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.trof-org__steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--tfl-panel, #f7f6f3);
    border-radius: var(--tfl-r-md, 6px); margin: 0; }
.trof-org__steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--tfl-primary, #2f196e); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.trof-org__steps strong { color: var(--tfl-ink, #1d1a26); }
.trof-org__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.trof-org__card { border: 1px solid var(--tfl-line, #e4e2ec); border-radius: var(--tfl-r-md, 6px); padding: 14px 16px; }
.trof-org__card h3 { margin: 0 0 6px; font-size: 16px; color: var(--tfl-ink, #1d1a26); }
.trof-org__card p { margin: 0; font-size: 14.5px; }
.trof-org details { border-bottom: 1px solid var(--tfl-line, #e4e2ec); padding: 12px 0; }
.trof-org summary { cursor: pointer; font-weight: 600; color: var(--tfl-ink, #1d1a26); }
.trof-org details p { margin: 8px 0 0; }
.trof-org__cta { margin: 34px 0 0; padding: 18px 20px; border-radius: var(--tfl-r-md, 6px); background: var(--tfl-gold-soft, #fdf6e3);
    border: 1px solid var(--tfl-gold-line, #f0e2b8); }
.trof-org__cta p { margin: 0 0 6px; }
