/*
 * Komponenty prevzate z Portaro/phoenix/apps/tolarie-eshop
 * (design/extracted/css/04-base-components.css). Nase sablony se pisou
 * tak, aby sedely na tyhle tridy, ne naopak.
 *
 * Predloha je export navrhu, ne zivy stylopis - Svelte aplikace
 * v Portaru ji neimportuje a zadne prekopirovani se nedeje samo.
 * Proto je tahle kopie 5. 11. 2026 prostrihana o 95 pravidel, ktera
 * web nikde nevykresluje. Kdyz se bude kopirovat znovu, musi se
 * prostrihat zas - `docs/mrtve-tridy.py` to najde.
 *
 * `.rule` a jeji varianty zustaly schvalne: pouzivaji se v textech
 * v CMS, kde je hledani ve zdrojich nenajde.
 */

/* ============================================================
   Tolarie e-shop — base + components
   ============================================================ */

* {
    box-sizing: border-box;
}
body {
    margin: 0;
}

/* Each screen is a "frame" inside a DCArtboard — needs to fill it */
.screen {
    font-family: var(--f-body);
    color: var(--fg);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    min-height: 100%;
    position: relative;
    isolation: isolate;
}
.screen img {
    max-width: 100%;
    display: block;
}
.screen a {
    color: inherit;
    text-decoration: none;
}
.screen button {
    font: inherit;
    cursor: pointer;
}
.screen ul,
.screen ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===== TYPE ===== */
.eyebrow {
    font-family: var(--f-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: var(--accent-deep);
}

.h-display {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.05;
}
.h-section {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}


.muted {
    color: var(--fg-mute);
}

.mono {
    font-family: var(--f-mono);
    font-feature-settings: 'tnum';
}

/* ===== HEADER (desktop + mobile share core) ===== */
.tb-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--bg-rule);
    z-index: 5;
}
.tb-header__strip {
    background: var(--c-ink-deep);
    color: var(--c-paper);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.tb-header__strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
}
.tb-header__strip a {
    color: var(--c-gold-soft);
}
.tb-header__strip-links {
    display: flex;
    gap: 22px;
}
.tb-header__strip-links span {
    opacity: 0.8;
}

.tb-header__main {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 18px 32px;
}
.tb-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tb-header__brand img {
    height: 72px;
    width: auto;
}


.tb-header__search {
    position: relative;
}
.tb-header__search input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 50px;
    background: var(--bg-elev);
    border: 1px solid var(--bg-rule);
    border-radius: var(--r-2);
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--fg);
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.tb-header__search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.18);
}
.tb-header__search-ic {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--fg-mute);
}


.tb-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tb-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--fg);
    border: 1px solid transparent;
    border-radius: var(--r-2);
    position: relative;
}
.tb-icon-btn:hover {
    background: var(--bg-elev);
    border-color: var(--bg-rule);
}
.tb-icon-btn__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tb-header__nav {
    border-top: 1px solid var(--bg-rule);
    padding: 0 16px;
}
.tb-header__nav-list {
    display: flex;
    gap: 1px;
    align-items: stretch;
    overflow: visible;
}
.tb-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 13px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-soft);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition:
        color 0.12s,
        border-color 0.12s,
        background 0.12s;
}
.tb-nav-item__ic {
    color: var(--accent-deep);
    flex-shrink: 0;
}
.tb-nav-item:hover {
    color: var(--fg);
    background: var(--bg-elev);
}
.tb-nav-item.is-active {
    color: var(--accent-deep);
    border-bottom-color: var(--accent);
}
.tb-nav-item.is-active .tb-nav-item__ic {
    color: var(--accent);
}


/* ===== MEGA dropdown ===== */
.tb-header__nav {
    overflow: visible;
    position: relative;
    z-index: 20;
}
.tb-nav-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.tb-mega {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 540px;
    padding: 16px;
    background: var(--bg-elev);
    border: 1px solid var(--bg-rule);
    border-radius: var(--r-2);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.14s ease,
        transform 0.14s ease,
        visibility 0.14s;
}
.tb-nav-wrap.has-mega:hover .tb-mega,
.tb-nav-wrap.has-mega:focus-within .tb-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tb-mega__head {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-rule);
}
.tb-mega__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
}
.tb-mega--sm {
    min-width: 240px;
}
.tb-mega--sm .tb-mega__grid {
    grid-template-columns: 1fr;
}
.tb-mega__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--r-1);
    font-family: var(--f-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-soft);
}
.tb-mega__item svg {
    color: var(--accent);
    opacity: 0.55;
    flex: 0 0 auto;
}
.tb-mega__item:hover {
    background: var(--bg-sunk);
    color: var(--accent-deep);
}
.tb-mega__item:hover svg {
    opacity: 1;
}
/* dropdown u krajních položek vpravo zarovnat doprava, ať nevyteče */
.tb-nav-wrap:nth-last-child(-n + 3) .tb-mega {
    left: auto;
    right: 0;
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-2);
    background: var(--bg-elev);
    color: var(--fg);
    transition:
        background 0.14s,
        color 0.14s,
        border-color 0.14s,
        transform 0.12s;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent-deep);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn--primary:hover {
    background: var(--accent-soft);
}
.btn--ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--bg-rule);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}


.btn--sm {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.16em;
}
.btn--lg {
    padding: 18px 28px;
    font-size: 13px;
}
.btn--block {
    width: 100%;
}

/* ===== CHIPS / TAGS ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    background: var(--bg-elev);
    border: 1px solid var(--bg-rule);
    border-radius: var(--r-1);
    color: var(--fg-soft);
    white-space: nowrap;
}
.chip--gold {
    color: var(--accent-deep);
    border-color: var(--accent);
    background: rgba(201, 162, 74, 0.08);
}
.chip--ink {
    background: var(--c-ink);
    color: var(--c-gold-soft);
    border-color: var(--c-ink);
}
.chip--ok {
    color: var(--ok);
    border-color: var(--ok);
    background: rgba(47, 87, 71, 0.08);
}
.chip--bad {
    color: var(--bad);
    border-color: var(--bad);
    background: rgba(139, 46, 46, 0.08);
}

.chip--lg {
    padding: 8px 14px;
    font-size: 12px;
}

/* condition pills — NM/LP/MP/HP/DMG */
.cond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 22px;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    border-radius: 2px;
    padding: 0 6px;
}
.cond--nm {
    background: #2f5747;
    color: #e8f0ea;
}

.cond--lp {
    background: #6e8a55;
    color: #fffcef;
}

.cond--pl {
    background: #b57434;
    color: #fff7ea;
}


/* MTG mana symbols */
.mana {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}


/* color identity bar (5 dots) */
.color-id {
    display: inline-flex;
    gap: 3px;
}
.color-id .d {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}


/* ===== Section header ===== */
.sec {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
}
.sec__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sec__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.sec__link {
    color: var(--accent-deep);
    font-family: var(--f-display);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.sec__link:hover {
    color: var(--accent);
}

/* ===== rules / dividers ===== */
.rule {
    height: 1px;
    background: var(--bg-rule);
    border: 0;
    margin: 0;
}
.rule--gold {
    background: var(--accent);
    height: 1px;
}
.rule--diamond {
    position: relative;
    height: 1px;
    background: var(--bg-rule);
    margin: 18px 0;
}
.rule--diamond::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ===== footer ===== */
.tb-footer {
    background: var(--c-ink-deep);
    color: var(--c-paper);
    padding: 56px 32px 28px;
    margin-top: 80px;
}
.tb-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 36px;
    max-width: 1280px;
    margin: 0 auto;
}
.tb-footer h4 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold-soft);
    margin: 0 0 16px;
}
.tb-footer ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tb-footer a {
    color: rgba(244, 236, 219, 0.78);
    font-size: 13px;
}
.tb-footer a:hover {
    color: var(--c-gold-soft);
}
.tb-footer__brand img {
    height: 88px;
    width: auto;
    margin-bottom: 14px;
    display: block;
}
.tb-footer__brand p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(244, 236, 219, 0.7);
    margin: 0;
    max-width: 280px;
}
.tb-footer__bottom {
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 162, 74, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(244, 236, 219, 0.55);
}


/* ===== utility ===== */
.flex {
    display: flex;
}


.center {
    align-items: center;
}

.wrap {
    flex-wrap: wrap;
}


