/* === E-shop (modul Aardvark.Modules.Shop) ===
   Mobile first. Paleta přes theme proměnné portálu --aav-shop-* (Nastavení → Vzhled webu);
   výchozí hodnoty jsou vánoční: krémové pozadí, červená akce, jedlová zelená, zlatý akcent.
   Třídy shp-* jsou stabilní háčky pro vlastní CSS portálu. */
:root {
    --shp-bg: var(--aav-shop-bg, #fbf7f0);
    --shp-surface: var(--aav-shop-surface, #ffffff);
    --shp-ink: var(--aav-shop-ink, #2a2320);
    --shp-muted: var(--aav-shop-muted, #756a63);
    --shp-rule: var(--aav-shop-rule, #eadfce);
    --shp-primary: var(--aav-shop-primary, #b3202a);
    --shp-primary-ink: var(--aav-shop-primary-ink, #ffffff);
    --shp-accent: var(--aav-shop-accent, #1f5d44);
    --shp-gold: var(--aav-shop-gold, #c8962e);
    --shp-ok: var(--aav-shop-ok, #1f7a4d);
    --shp-warn: var(--aav-shop-warn, #9a6200);
    --shp-danger: var(--aav-shop-danger, #b3202a);
    --shp-radius: var(--aav-shop-radius, 14px);
    --shp-font: var(--aav-shop-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --shp-heading-font: var(--aav-shop-heading-font, Georgia, "Times New Roman", serif);
    --shp-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .07);
}

/* ---------- skin (šablona E-shop) ---------- */
.shp-skin {
    background: var(--shp-bg);
    color: var(--shp-ink);
    font-family: var(--shp-font);
    /* platformní prvky (odkazy, btn-primary mimo moduly obchodu) v barvě obchodu */
    --aav-primary: var(--shp-primary);
    /* containery modulů (aav-mod--*) v paletě obchodu */
    --aav-mod-surface: var(--shp-surface);
    --aav-mod-rule: var(--shp-rule);
    --aav-mod-muted-bg: color-mix(in srgb, var(--shp-gold) 12%, var(--shp-surface));
    --aav-mod-accent: var(--shp-primary);
    --aav-mod-ink: var(--shp-ink);
    --aav-mod-invert-bg: var(--shp-accent);
    --aav-mod-invert-fg: #fdf8ef;
    --aav-mod-radius: var(--shp-radius);
}

.shp-skin a:not(.btn) { color: var(--shp-primary); }

.shp-skin :is(h1, h2, h3) { font-family: var(--shp-heading-font); }

.shp-skin .btn-primary,
.shp-landing .btn-primary,
.shp-wrap .btn-primary {
    --bs-btn-bg: var(--shp-primary);
    --bs-btn-border-color: var(--shp-primary);
    --bs-btn-color: var(--shp-primary-ink);
    --bs-btn-hover-color: var(--shp-primary-ink);
    --bs-btn-active-color: var(--shp-primary-ink);
    --bs-btn-hover-bg: color-mix(in srgb, var(--shp-primary) 86%, black);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--shp-primary) 86%, black);
    --bs-btn-active-bg: color-mix(in srgb, var(--shp-primary) 76%, black);
    --bs-btn-active-border-color: color-mix(in srgb, var(--shp-primary) 76%, black);
    --bs-btn-disabled-bg: color-mix(in srgb, var(--shp-primary) 45%, #cfc8c2);
    --bs-btn-disabled-border-color: transparent;
    font-weight: 600;
    border-radius: 999px;
}

.shp-skin .btn-outline-primary,
.shp-wrap .btn-outline-primary {
    --bs-btn-color: var(--shp-primary);
    --bs-btn-border-color: var(--shp-primary);
    --bs-btn-hover-bg: var(--shp-primary);
    --bs-btn-hover-border-color: var(--shp-primary);
    --bs-btn-hover-color: var(--shp-primary-ink);
    --bs-btn-active-bg: var(--shp-primary);
    --bs-btn-active-border-color: var(--shp-primary);
    border-radius: 999px;
}

.shp-header {
    background: var(--shp-surface);
    border-bottom: 1px solid var(--shp-rule);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.shp-header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu brand actions" "search search search";
    align-items: center;
    gap: .5rem .75rem;
    padding-block: .6rem;
}

.shp-menu-btn { grid-area: menu; }
.shp-brand { grid-area: brand; display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
.shp-header-search { grid-area: search; }
.shp-header-actions { grid-area: actions; display: flex; align-items: center; gap: .25rem; }

.shp-logo { height: var(--aav-shop-logo-height, 40px); width: auto; display: block; }

.shp-brand-text {
    font-family: var(--shp-heading-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--shp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--shp-ink) !important;
    position: relative;
    text-decoration: none;
}

.shp-icon-btn:hover { background: color-mix(in srgb, var(--shp-ink) 8%, transparent); }

.shp-cart-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--shp-primary);
    color: var(--shp-primary-ink);
    font-size: .72rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.shp-nav { border-top: 1px solid var(--shp-rule); background: var(--shp-surface); }

.shp-nav-list {
    list-style: none;
    margin: 0;
    padding: .25rem 0;
    display: flex;
    flex-direction: column;
}

.shp-nav-list a {
    display: block;
    padding: .65rem .25rem;
    color: var(--shp-ink) !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid color-mix(in srgb, var(--shp-rule) 60%, transparent);
}

.shp-nav-list a.active,
.shp-nav-list a:hover { color: var(--shp-primary) !important; }
/* stránky portálu vedle kategorií — tlumenější, ať kategorie vedou */
.shp-nav-page a { color: var(--shp-muted) !important; font-weight: 400; }
.shp-nav-admin { opacity: .75; }

.shp-main { padding-block: 1rem 2.5rem; }
.shp-page-title { margin-top: .5rem; }

.shp-footer {
    background: var(--shp-accent);
    color: #f3ede2;
    padding: 2rem 0 1.25rem;
    font-size: .95rem;
}

.shp-skin .shp-footer a:not(.btn),
.shp-footer .btn-link { color: inherit; }
.shp-footer-content { margin-bottom: 1.5rem; }
.shp-footer-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.shp-footer-cols > div > div { margin-bottom: .2rem; }
.shp-footer-title { font-family: var(--shp-heading-font); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem !important; }

.shp-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: .85rem;
    opacity: .85;
}

@media (min-width: 992px) {
    .shp-header-row {
        grid-template-columns: auto minmax(240px, 520px) auto;
        grid-template-areas: "brand search actions";
        justify-content: space-between;
        gap: 1.5rem;
        padding-block: .8rem;
    }

    .shp-brand-text { font-size: 1.45rem; }
    .shp-nav-list { flex-direction: row; flex-wrap: wrap; gap: 0 1.4rem; }
    .shp-nav-list a { padding: .55rem 0; border-bottom: 0; }
    .shp-footer-cols { grid-template-columns: 2fr 1fr; }
    .shp-main { padding-block: 1.5rem 3.5rem; }
}

/* ---------- společné stavební prvky modulů ---------- */
.shp-wrap { color: var(--shp-ink); }
.shp-skin .aav-sec .shp-wrap, .shp-skin .shp-main > .container .shp-wrap { background: transparent; }

.shp-h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.2; margin: 0 0 .9rem; font-weight: 700; }
.shp-h2 { font-size: clamp(1.25rem, 3.5vw, 1.6rem); margin: 0 0 1rem; font-weight: 700; }
.shp-note { font-size: .875rem; color: var(--shp-muted); }
.shp-error { color: var(--shp-danger); font-size: .9rem; margin: .25rem 0 .6rem; font-weight: 500; }
.shp-back { display: inline-block; margin-top: 1rem; font-size: .95rem; }
.shp-more { text-align: center; margin: 1.5rem 0 0; }

.shp-empty {
    background: var(--shp-surface);
    border: 1px dashed var(--shp-rule);
    border-radius: var(--shp-radius);
    padding: 2rem 1.25rem;
    text-align: center;
}

.shp-box {
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    border-radius: var(--shp-radius);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.shp-box > h2 { font-size: 1.15rem; margin: 0 0 .9rem; font-weight: 700; }
.shp-box > h3, .shp-address > h3 { font-size: 1rem; margin: 1.1rem 0 .7rem; font-weight: 600; font-family: var(--shp-font); }

.shp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .45rem;
    font-size: .875rem;
    color: var(--shp-muted);
    margin-bottom: .75rem;
}

.shp-breadcrumb a { color: var(--shp-muted) !important; text-decoration: none; }
.shp-breadcrumb a:hover { color: var(--shp-primary) !important; text-decoration: underline; }

.shp-price { font-weight: 700; color: var(--shp-ink); white-space: nowrap; }
.shp-price--lg { font-size: 1.75rem; font-family: var(--shp-heading-font); }
.shp-price-old { color: var(--shp-muted); font-weight: 400; font-size: .9em; margin-right: .35rem; }

.shp-stock { font-size: .85rem; font-weight: 600; }
.shp-stock--in { color: var(--shp-ok); }
.shp-stock--demand { color: var(--shp-warn); }
.shp-stock--out { color: var(--shp-muted); }

.shp-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--shp-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.shp-badge--sale { background: var(--shp-primary); }
.shp-badge--draft { background: #6c757d; }

/* ---------- výpis produktů ---------- */
.shp-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.shp-chips::-webkit-scrollbar { display: none; }

.shp-chip {
    display: inline-block;
    white-space: nowrap;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    color: var(--shp-ink) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: .93rem;
}

.shp-chip:hover { border-color: var(--shp-primary); color: var(--shp-primary) !important; }

.shp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: .9rem;
    font-size: .9rem;
}

.shp-count { color: var(--shp-muted); }
.shp-sort { display: flex; gap: .9rem; overflow-x: auto; }
.shp-sort a { color: var(--shp-muted) !important; text-decoration: none; white-space: nowrap; padding-block: .25rem; }
.shp-sort a.active { color: var(--shp-ink) !important; font-weight: 700; border-bottom: 2px solid var(--shp-primary); }

.shp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

@media (min-width: 576px) { .shp-grid { gap: 1rem; } }
@media (min-width: 768px) { .shp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.shp-card {
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    border-radius: var(--shp-radius);
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}

.shp-card:hover { box-shadow: var(--shp-shadow); transform: translateY(-2px); }
.shp-card-link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none; }

.shp-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: color-mix(in srgb, var(--shp-gold) 10%, var(--shp-surface));
    display: flex;
    align-items: center;
    justify-content: center;
}

.shp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shp-card-noimg { color: color-mix(in srgb, var(--shp-muted) 45%, transparent); }

.shp-card-title {
    font-family: var(--shp-font) !important;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    margin: .7rem .75rem .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shp-card-foot {
    margin-top: auto;
    padding: 0 .75rem .8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .15rem .5rem;
}

.shp-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.shp-pager-info { color: var(--shp-muted); font-size: .9rem; }
.shp-category-desc { margin-bottom: 1rem; max-width: 70ch; }

.shp-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .shp-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.shp-cat {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 110px;
    aspect-ratio: 4 / 3;
    border-radius: var(--shp-radius);
    overflow: hidden;
    background: var(--shp-accent);
    color: #fff !important;
    text-decoration: none;
}

.shp-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shp-cat:hover img { transform: scale(1.04); }

.shp-cat-name {
    position: relative;
    width: 100%;
    padding: 1.6rem .8rem .7rem;
    font-family: var(--shp-heading-font);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}

/* ---------- hledání ---------- */
.shp-search { position: relative; }

.shp-search .form-control {
    border-radius: 999px;
    border-color: var(--shp-rule);
    background: color-mix(in srgb, var(--shp-bg) 60%, var(--shp-surface));
    padding: .55rem 2.8rem .55rem 1.1rem;
}

.shp-search .form-control:focus { border-color: var(--shp-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--shp-primary) 18%, transparent); }

.shp-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--shp-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shp-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1050;
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    border-radius: var(--shp-radius);
    box-shadow: var(--shp-shadow);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}

.shp-suggest a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem .8rem;
    color: var(--shp-ink) !important;
    text-decoration: none;
}

.shp-suggest a:hover, .shp-suggest a.active { background: color-mix(in srgb, var(--shp-gold) 14%, var(--shp-surface)); }
.shp-suggest img, .shp-suggest .shp-suggest-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--shp-bg); }
.shp-suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp-suggest-price { font-weight: 700; white-space: nowrap; }
.shp-suggest-head { padding: .45rem .8rem .2rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--shp-muted); }
.shp-suggest-more { justify-content: center; font-weight: 600; border-top: 1px solid var(--shp-rule); color: var(--shp-primary) !important; }
.shp-suggest-empty { padding: .9rem; color: var(--shp-muted); text-align: center; }

/* ---------- detail produktu ---------- */
.shp-product-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
    .shp-product-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
}

.shp-gallery-main {
    aspect-ratio: 1 / 1;
    border-radius: var(--shp-radius);
    overflow: hidden;
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.shp-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .2rem; }

.shp-thumb {
    flex: 0 0 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--shp-surface);
}

.shp-thumb.active { border-color: var(--shp-primary); }
.shp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shp-perex { font-size: 1.05rem; color: var(--shp-muted); margin-bottom: .9rem; }
.shp-price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.shp-buy-form { margin-top: 1.1rem; }

.shp-variants { border: 0; padding: 0; margin: 0 0 1rem; }
.shp-variants legend { font-size: .9rem; font-weight: 600; margin-bottom: .45rem; float: none; }
.shp-variant-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.shp-variant { position: relative; cursor: pointer; margin: 0; }
.shp-variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.shp-variant span {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    padding: .5rem .95rem;
    border: 1.5px solid var(--shp-rule);
    border-radius: 999px;
    background: var(--shp-surface);
    font-weight: 500;
}

.shp-variant input:checked + span { border-color: var(--shp-primary); background: color-mix(in srgb, var(--shp-primary) 8%, var(--shp-surface)); color: var(--shp-primary); font-weight: 700; }
.shp-variant input:focus-visible + span { outline: 2px solid var(--shp-primary); outline-offset: 2px; }
.shp-variant.is-out span { opacity: .45; text-decoration: line-through; }

.shp-field { margin-bottom: 1rem; }
.shp-field label { font-size: .9rem; font-weight: 600; margin-bottom: .35rem; display: block; }

.shp-buy-row { display: flex; gap: .75rem; align-items: stretch; }
.shp-add-btn { flex: 1; }

.shp-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--shp-rule);
    border-radius: 999px;
    background: var(--shp-surface);
    overflow: hidden;
}

.shp-qty button { width: 42px; border: 0; background: transparent; font-size: 1.25rem; line-height: 1; color: var(--shp-ink); }
.shp-qty button:hover { background: color-mix(in srgb, var(--shp-ink) 7%, transparent); }

.shp-qty input {
    width: 46px;
    border: 0;
    text-align: center;
    font-weight: 600;
    background: transparent;
    color: var(--shp-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}

.shp-qty input::-webkit-outer-spin-button, .shp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shp-qty--sm button { width: 34px; font-size: 1.1rem; }
.shp-qty--sm input { width: 38px; }
.shp-qty--sm { min-height: 38px; }

.shp-description { margin-top: 2rem; max-width: 75ch; }
.shp-description h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.shp-description img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- „přidáno do košíku" ---------- */
.shp-toast {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 1080;
    background: var(--shp-surface);
    color: var(--shp-ink);
    border: 1px solid var(--shp-rule);
    border-radius: var(--shp-radius);
    box-shadow: 0 10px 40px rgba(40, 25, 10, .25);
    padding: 1rem;
    animation: shp-rise .22s ease-out;
}

@media (min-width: 576px) { .shp-toast { left: auto; right: 1.25rem; bottom: 1.25rem; width: 370px; } }
@keyframes shp-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shp-toast { animation: none; } .shp-card, .shp-cat img { transition: none; } }

.shp-toast-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: .6rem; }
.shp-toast-head.is-error { color: var(--shp-danger); }
.shp-toast-item { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.shp-toast-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.shp-toast-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.shp-toast-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--shp-muted); padding: 0 .25rem; }

/* ---------- košík ---------- */
.shp-lines { list-style: none; margin: 0 0 1rem; padding: 0; }

.shp-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas: "media body remove" "media qty total";
    gap: .5rem .75rem;
    align-items: center;
    background: var(--shp-surface);
    border: 1px solid var(--shp-rule);
    border-radius: var(--shp-radius);
    padding: .75rem;
    margin-bottom: .6rem;
}

.shp-line.has-problem { border-color: color-mix(in srgb, var(--shp-danger) 45%, var(--shp-rule)); }

.shp-line-media { grid-area: media; align-self: start; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--shp-bg); display: block; }
.shp-line-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shp-line-body { grid-area: body; min-width: 0; }
.shp-line-name { font-weight: 600; color: var(--shp-ink) !important; text-decoration: none; }
.shp-line-variant { font-size: .875rem; color: var(--shp-muted); }
.shp-line-problem { font-size: .875rem; color: var(--shp-danger); font-weight: 600; }
.shp-line-qty { grid-area: qty; margin: 0; }
.shp-line-total { grid-area: total; font-weight: 700; text-align: right; white-space: nowrap; }
.shp-line-remove { grid-area: remove; margin: 0; align-self: start; justify-self: end; }
.shp-line-remove .shp-icon-btn { width: 34px; height: 34px; color: var(--shp-muted) !important; }

@media (min-width: 768px) {
    .shp-line { grid-template-columns: 72px 1fr auto 110px auto; grid-template-areas: "media body qty total remove"; padding: .9rem 1rem; }
    .shp-line-media { width: 72px; height: 72px; align-self: center; }
    .shp-line-remove { align-self: center; }
}

.shp-cart-foot { display: grid; gap: 1rem; }
@media (min-width: 768px) { .shp-cart-foot { grid-template-columns: 1fr 340px; align-items: start; } }

.shp-cart-sum { background: var(--shp-surface); border: 1px solid var(--shp-rule); border-radius: var(--shp-radius); padding: 1.1rem; }
.shp-cart-sum .btn { margin-top: .9rem; }
.shp-free { background: color-mix(in srgb, var(--shp-gold) 14%, var(--shp-surface)); border-radius: var(--shp-radius); padding: .8rem 1rem; font-size: .95rem; }
.shp-free--done { color: var(--shp-ok); font-weight: 600; }
.shp-progress { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--shp-ink) 10%, transparent); margin-top: .55rem; overflow: hidden; }
.shp-progress span { display: block; height: 100%; background: var(--shp-accent); border-radius: 999px; }

.shp-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.shp-sum-row--total { font-size: 1.15rem; padding-top: .6rem; margin-top: .35rem; border-top: 1px solid var(--shp-rule); }

/* ---------- pokladna ---------- */
.shp-checkout-grid { display: grid; gap: 0; }
@media (min-width: 992px) { .shp-checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; } .shp-checkout-side { position: sticky; top: 130px; } }

.shp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shp-company { margin-top: .5rem; }
.shp-options { display: grid; gap: .5rem; }

.shp-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border: 1.5px solid var(--shp-rule);
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    background: var(--shp-surface);
}

.shp-option:has(input:checked) { border-color: var(--shp-primary); background: color-mix(in srgb, var(--shp-primary) 5%, var(--shp-surface)); }
.shp-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.shp-option input { width: 1.15rem; height: 1.15rem; accent-color: var(--shp-primary); flex-shrink: 0; }
.shp-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shp-option-name { font-weight: 600; }
.shp-option-desc { font-size: .85rem; color: var(--shp-muted); }
.shp-option-price { font-weight: 700; white-space: nowrap; }

.shp-pickup { margin-top: .75rem; padding: .9rem; border-radius: 12px; background: color-mix(in srgb, var(--shp-gold) 12%, var(--shp-surface)); }
.shp-pickup-current { margin-bottom: .6rem; font-weight: 500; }

.shp-summary-lines { list-style: none; padding: 0; margin: 0 0 .75rem; font-size: .93rem; }
.shp-summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid color-mix(in srgb, var(--shp-rule) 70%, transparent); }
.shp-summary-lines li > span:last-child { white-space: nowrap; font-weight: 500; }
.shp-legal { font-size: .8rem; color: var(--shp-muted); margin: .75rem 0 0; line-height: 1.45; }

/* ---------- objednávka a účet ---------- */
.shp-order, .shp-account { max-width: 760px; }
.shp-thanks { margin-bottom: .5rem; }
.shp-order-state { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1.1rem; }

.shp-state {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--shp-gold) 22%, var(--shp-surface));
    color: #6b4a00;
}

.shp-state--inproduction { background: #e3ecfb; color: #1e4fa3; }
.shp-state--shipped, .shp-state--completed { background: #dff1e6; color: #17603c; }
.shp-state--cancelled { background: #eceae8; color: #5f5a55; }

.shp-pay-grid { display: grid; gap: 1rem; align-items: center; margin-bottom: .8rem; }
@media (min-width: 576px) { .shp-pay-grid { grid-template-columns: 200px 1fr; } }
.shp-pay-qr { width: 200px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--shp-rule); background: #fff; justify-self: center; }
.shp-pay-data { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.shp-pay-data dt { color: var(--shp-muted); font-weight: 400; }
.shp-pay-data dd { margin: 0; font-weight: 700; word-break: break-word; }

.shp-orders { list-style: none; padding: 0; margin: 0; }
.shp-orders a { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--shp-rule); color: var(--shp-ink) !important; text-decoration: none; }
.shp-orders li:last-child a { border-bottom: 0; }
.shp-orders a strong { margin-left: auto; }
.shp-orders-no { font-weight: 700; }

/* ---------- šablona „E-shop – brzy otevíráme" (ShopLandingTemplate) ----------
   Pevná vánoční paleta (scéna je obrázek, theme proměnné by se s ní rozešly):
   jedlová noční obloha, sníh v barvě pozadí obchodu, červená a zlatá. */
.shp-landing {
    --shp-land-snow: #fbf7f0;
    --shp-land-ink: #2a2320;
    --shp-land-red: #b3202a;
    --shp-land-gold: #f0cf7a;
    --aav-primary: var(--shp-land-red);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--shp-land-snow);
    color: var(--shp-land-ink);
    font-family: var(--shp-font);
}

.shp-landing-sky {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 95% at 50% 0%, #236f51 0%, #15483a 42%, #0c2f25 100%);
    color: #fdf6e6;
    text-align: center;
    /* vlasová spára mezi oblohou a sněhem při zlomkovém zoomu */
    margin-bottom: -1px;
}

.shp-landing-head { position: relative; z-index: 2; padding-top: clamp(1.75rem, 6vw, 3.5rem); }

.shp-landing-brand {
    margin: 0;
    font-family: var(--shp-heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 7vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: .01em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

div.shp-landing-brand { font-size: clamp(1.1rem, 3vw, 1.5rem); opacity: .9; margin-bottom: .4rem; }

.shp-landing-title {
    margin: 0;
    font-family: var(--shp-heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 7vw, 3.75rem);
    line-height: 1.1;
    text-wrap: balance;
}

.shp-landing-logo { max-height: clamp(64px, 14vw, 120px); max-width: min(80vw, 420px); width: auto; }

/* zlatá linka s hvězdičkou pod názvem */
.shp-landing-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: clamp(.75rem, 2.5vw, 1.25rem);
    color: var(--shp-land-gold);
}

.shp-landing-rule::before,
.shp-landing-rule::after {
    content: "";
    width: clamp(40px, 12vw, 96px);
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.shp-landing-rule span {
    width: 14px;
    height: 14px;
    background: currentColor;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* scéna: obrázek na výšku bloku, vystředěný — kopce v SVG sahají daleko do stran */
.shp-landing-scene {
    position: relative;
    z-index: 1;
    height: clamp(230px, 44vw, 460px);
    margin-top: clamp(-2.5rem, -4vw, -.5rem);
    background: url("landing-scene.svg") center bottom / auto 100% no-repeat;
}

/* spodní hrana obrázku se vyhlazuje proti obloze — proužek sněhu překryje vlasovou linku */
.shp-landing-scene::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--shp-land-snow);
}

/* sněžení: dvě vrstvy dlaždic s tečkami, posun o výšku dlaždice = plynulá smyčka */
.shp-landing-snow,
.shp-landing-snow::before,
.shp-landing-snow::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shp-landing-snow { z-index: 3; overflow: hidden; }

.shp-landing-snow::before,
.shp-landing-snow::after {
    content: "";
    top: -260px;
    background-repeat: repeat;
    will-change: transform;
}

.shp-landing-snow::before {
    background-image:
        radial-gradient(circle at 24px 30px, rgba(255, 255, 255, .95) 0 2.4px, transparent 3px),
        radial-gradient(circle at 150px 96px, rgba(255, 255, 255, .8) 0 1.8px, transparent 2.4px),
        radial-gradient(circle at 86px 170px, rgba(255, 255, 255, .9) 0 2.8px, transparent 3.4px),
        radial-gradient(circle at 214px 214px, rgba(255, 255, 255, .75) 0 2px, transparent 2.6px);
    background-size: 260px 260px;
    animation: shp-snow-near 11s linear infinite;
}

.shp-landing-snow::after {
    background-image:
        radial-gradient(circle at 60px 20px, rgba(255, 255, 255, .6) 0 1.4px, transparent 2px),
        radial-gradient(circle at 12px 112px, rgba(255, 255, 255, .5) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 118px 70px, rgba(255, 255, 255, .55) 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 96px 150px, rgba(255, 255, 255, .5) 0 1.2px, transparent 1.8px);
    background-size: 170px 170px;
    top: -170px;
    animation: shp-snow-far 19s linear infinite;
}

@keyframes shp-snow-near { to { transform: translate3d(0, 260px, 0); } }
@keyframes shp-snow-far { to { transform: translate3d(0, 170px, 0); } }

@media (prefers-reduced-motion: reduce) {
    .shp-landing-snow::before,
    .shp-landing-snow::after { animation: none; }
}

/* obsah stránky na sněhu */
.shp-landing-main { padding: 0 1.25rem clamp(2rem, 6vw, 3.5rem); }

.shp-landing-content {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
}

.shp-landing-content .aav-module:last-child { margin-bottom: 0 !important; }

.shp-landing-content :is(h1, h2, h3) {
    font-family: var(--shp-heading-font);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
    color: var(--shp-land-red);
}

.shp-landing-content h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); margin-bottom: .9rem; }
.shp-landing-content h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
.shp-landing-content .lead { font-size: clamp(1.1rem, 3.2vw, 1.3rem); font-weight: 400; text-wrap: pretty; }
.shp-landing-content p { margin-bottom: .9rem; }
.shp-landing a:not(.btn) { color: var(--shp-land-red); }

/* štítek nad nadpisem — použitelný v HTML obsahu: <p class="shp-landing-badge">Brzy otevíráme</p> */
.shp-landing-badge {
    display: inline-block;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    background: var(--shp-land-red);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(179, 32, 42, .25);
}

/* formulář na úvodní stránce (typicky mini formulář „dejte mi vědět") */
.shp-landing {
    --shp-primary: var(--shp-land-red);
    --shp-primary-ink: #fff;
}

.shp-landing-content .aav-frm { max-width: 31rem; margin: 1.75rem auto 0; }
.shp-landing-content .aav-frm-form { text-align: start; }
.shp-landing-content .aav-frm-intro { font-weight: 600; font-size: 1.1rem; margin-bottom: .75rem; }
.shp-landing-content .aav-frm-intro p { margin-bottom: 0; }

.shp-landing-content .aav-frm .form-control {
    border-color: #e2d6c2;
    border-radius: 999px;
    padding: .65rem 1.15rem;
    background: #fff;
}

.shp-landing-content .aav-frm .form-control:focus {
    border-color: var(--shp-land-red);
    box-shadow: 0 0 0 .2rem rgba(179, 32, 42, .15);
}

.shp-landing-content .aav-frm .btn-primary { padding: .65rem 1.4rem; white-space: nowrap; }
.shp-landing-content .aav-frm-consent { text-align: center; color: #756a63; }

.shp-landing-content .aav-frm-thanks {
    border: 1px solid #cfe3d6;
    border-radius: var(--shp-radius);
    background: #eaf4ee;
    color: #17603c;
}

.shp-landing-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1.25rem;
    padding: 1rem 1.25rem 1.5rem;
    font-size: .85rem;
    color: #756a63;
}

.shp-landing .shp-landing-footer a:not(.btn),
.shp-landing-footer .btn-link { color: inherit; font-size: inherit; }

/* editor stránky (?edit=1): bez kulis, obsah na celou šířku */
.shp-landing--edit .shp-landing-scene,
.shp-landing--edit .shp-landing-snow { display: none; }
.shp-landing--edit .shp-landing-head { padding-block: 1rem; }
.shp-landing--edit .shp-landing-brand { font-size: 1.4rem; }
.shp-landing--edit .shp-landing-content { max-width: 1140px; text-align: start; font-size: 1rem; }

/* ---------- skin „E-shop – vánoční" (ShopTemplate Variant="xmas") ----------
   Sezónní převlek skinu obchodu ve stylu úvodní stránky: noční jedlová obloha se sněžením
   v hlavičce, pod ní zasněžené kopce (na homepage celá scéna s elfem), obsah na „sněhu",
   patička zpátky v noci. Moduly obchodu dostávají jen drobné vánoční akcenty — nákup musí
   zůstat čitelný. Paleta navazuje na výchozí proměnné --shp-* (červená, jedlová, zlatá). */
.shp-skin--xmas {
    --shp-xmas-night: #12402f;
    --shp-xmas-night-deep: #0c2f25;
    --shp-xmas-cream: #fdf6e6;
    --shp-xmas-gold: #f0cf7a;
    --shp-xmas-snow: #fbf7f0;
    --shp-xmas-mint: #e4efe8;
}

/* hlavička: noční obloha; spodní hrana má jednotnou barvu, na kterou navazuje pruh kopců */
.shp-skin--xmas .shp-header {
    background: radial-gradient(80% 160% at 50% -40%, #2a7a59 0%, var(--shp-xmas-night) 70%);
    border-bottom: 0;
    color: var(--shp-xmas-cream);
}

.shp-skin--xmas .shp-header-row,
.shp-skin--xmas .shp-nav { position: relative; z-index: 4; }

.shp-skin--xmas .shp-brand-text { color: var(--shp-xmas-cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.shp-skin--xmas .shp-header .shp-icon-btn { color: var(--shp-xmas-cream) !important; }
.shp-skin--xmas .shp-header .shp-icon-btn:hover { background: rgba(255, 255, 255, .14); }
.shp-skin--xmas .shp-cart-count { background: var(--shp-xmas-gold); color: #3a2a05; }

.shp-skin--xmas .shp-header .shp-search .form-control { background: #fff; border-color: transparent; }
.shp-skin--xmas .shp-header .shp-search .form-control:focus { border-color: var(--shp-xmas-gold); box-shadow: 0 0 0 .2rem rgba(240, 207, 122, .35); }

.shp-skin--xmas .shp-nav { background: transparent; border-top: 1px solid rgba(255, 255, 255, .14); }
.shp-skin--xmas .shp-nav-list a { color: var(--shp-xmas-cream) !important; border-bottom-color: rgba(255, 255, 255, .12); }
.shp-skin--xmas .shp-nav-list a.active,
.shp-skin--xmas .shp-nav-list a:hover { color: var(--shp-xmas-gold) !important; }
.shp-skin--xmas .shp-nav-page a { color: rgba(253, 246, 230, .72) !important; }

/* pruh kopců pod hlavičkou (všechny stránky kromě homepage) */
.shp-xmas-hills {
    position: relative;
    height: clamp(66px, 11vw, 116px);
    background: url("xmas-hills.svg") center bottom / auto 100% repeat-x, linear-gradient(var(--shp-xmas-night), #1c5a43);
}

/* homepage: scéna s elfem jako na úvodní stránce */
.shp-xmas-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(var(--shp-xmas-night), #1c5a43);
}

.shp-xmas-hero-scene {
    position: relative;
    z-index: 1;
    height: clamp(210px, 36vw, 400px);
    background: url("landing-scene.svg") center bottom / auto 100% no-repeat;
}

/* spodní hrana obrázků se vyhlazuje proti obloze — proužek sněhu překryje vlasovou linku */
.shp-xmas-hills::after,
.shp-xmas-hero-scene::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--shp-xmas-snow);
}

.shp-skin--xmas .shp-main { padding-top: .75rem; }

/* nadpisy jako na úvodní stránce: červené patkové, sekce modulů vystředěné se zlatou hvězdičkou */
.shp-skin--xmas :is(.shp-h1, .shp-h2, .shp-page-title) { color: var(--shp-primary); }

.shp-skin--xmas .shp-products > .shp-h2,
.shp-skin--xmas .shp-categories > .shp-h2 {
    text-align: center;
    font-size: clamp(1.45rem, 4.2vw, 2rem);
    margin-bottom: 1.4rem;
}

.shp-skin--xmas .shp-products > .shp-h2::after,
.shp-skin--xmas .shp-categories > .shp-h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 14px;
    margin: .6rem auto 0;
    /* linka – hvězdička – linka */
    background:
        linear-gradient(#c8962e, #c8962e) left center / 58px 1px no-repeat,
        linear-gradient(#c8962e, #c8962e) right center / 58px 1px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0 -10 Q1.4 -1.4 10 0 Q1.4 1.4 0 10 Q-1.4 1.4 -10 0 Q-1.4 -1.4 0 -10 Z' fill='%23c8962e'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* karty produktů: produkt stojí „na sněhu", při najetí zlatý okraj */
.shp-skin--xmas .shp-card-media,
.shp-skin--xmas .shp-gallery-main { background: var(--shp-xmas-mint); }
.shp-skin--xmas .shp-card:hover { border-color: var(--shp-gold); }
.shp-skin--xmas .shp-card .shp-price { color: var(--shp-primary); }
.shp-skin--xmas .shp-price--lg { color: var(--shp-primary); }
.shp-skin--xmas .shp-chip:hover { background: color-mix(in srgb, var(--shp-primary) 6%, var(--shp-surface)); }
.shp-skin--xmas .shp-free { background: var(--shp-xmas-mint); }

/* patička: noc se sněhovou závějí nahoře */
.shp-skin--xmas .shp-footer {
    position: relative;
    background: linear-gradient(#15483a, var(--shp-xmas-night-deep));
    padding-top: 3.25rem;
}

.shp-skin--xmas .shp-footer::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    /* dlaždice je vyšší než prvek — její spodní okraj (prosakuje do něj horní řada) zůstane mimo */
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 32' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H600 V10 C520 10 480 24 400 22 C320 20 280 6 200 8 C120 10 80 22 0 10 Z' fill='%23fbf7f0'/%3E%3C/svg%3E") center top / 600px 32px repeat-x;
}

.shp-skin--xmas .shp-footer-title { color: var(--shp-xmas-gold); }
