/* ============================================================================
   Krásné písmo — nový design „Ateliér" (2026-11).
   Přepis stylů vzoru cdDesign/novy-design-2026-11/Krasne_pismo_novy_design.html HODNOTY 1:1,
   jen třídy mají předponu ka- (aby se nepletly se staršími kp- komponentami) a pořadí bloků
   zůstává jako ve vzoru (základ → doladění), protože druhý blok přepisuje první.
   Barvy vzoru jsou proměnné --ink, --wine, --raspberry… v tokens.css; konkrétní hexy uvnitř
   pravidel jsou opsané ze vzoru (vzor je tak má) — při úpravách držet stejný přístup.
   Načítá se POSLEDNÍ (App.razor), takže přebíjí základ ze site.css.

   Odchylky od vzoru (vědomé):
   - bez lišty „Toto je návrh…" a textu „Designový koncept • nezveřejněná ukázka" (nepatří na ostrý web),
   - body má line-height:normal (vzor ho nenastavuje; site.css by jinak vnutil 1.6),
   - .ka-btn--light: tlačítko na vínovém podkladu (vzor ho má inline); při najetí zůstává čitelné
     (ve vzoru by bílý podklad s bílým textem tlačítko „zmizel"),
   - mobilní menu ovládá Blazor (SiteHeader), třída .ka-links--open místo .open.
   ========================================================================== */

/* --- Základ (vzor, 1. blok) ----------------------------------------------- */

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--ivory); font-family: 'DM Sans', Arial, sans-serif; color: var(--ink); font-size: 15px; line-height: normal }
a { text-decoration: none; color: inherit }
button { font: inherit }
img { max-width: 100% }
::selection { background: var(--blush) }

.ka-wrap { width: min(1200px, calc(100% - 68px)); margin: auto }
.ka-announcement { background: var(--wine); color: #ffeff5; text-align: center; letter-spacing: .17em; font-size: 10px; padding: 11px 12px; text-transform: uppercase }

.ka-header { background: rgba(255,254,251,.97); border-bottom: 1px solid #ece3e3; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px) }
.ka-nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px }
.ka-brand { display: flex; align-items: center; gap: 13px; white-space: nowrap }
.ka-brand img { height: 57px; width: 57px; border-radius: 50%; object-fit: cover }
.ka-brand-type { display: flex; flex-direction: column; gap: 2px }
.ka-brand-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 29px; line-height: 1; letter-spacing: .01em }
.ka-brand-sub { font-size: 9px; letter-spacing: .27em; color: var(--raspberry); text-transform: uppercase }
.ka-links { display: flex; align-items: center; gap: 30px }
.ka-links a { font-size: 12px; letter-spacing: .025em; font-weight: 600; transition: color .2s }
.ka-links a:hover, .ka-footer a:hover { color: var(--raspberry) }
.ka-nav-end { display: flex; align-items: center; gap: 16px }
.ka-menu-toggle { border: 0; background: none; display: none; font-size: 23px; cursor: pointer; color: var(--wine) }

.ka-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #fffdf9 8%, #f8f2ee 65%, #f1e6e8 100%); border-bottom: 1px solid #e9dddd }
.ka-hero::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(173,71,101,.08); border-radius: 50%; top: -260px; left: -210px }
.ka-hero-grid { min-height: 645px; display: grid; grid-template-columns: 1fr .94fr; align-items: center; gap: 30px; padding: 78px 0 75px }
.ka-eyebrow { display: flex; align-items: center; gap: 13px; text-transform: uppercase; letter-spacing: .23em; color: var(--raspberry); font-size: 11px; font-weight: 700 }
.ka-eyebrow:before { content: ''; width: 34px; height: 1px; background: var(--raspberry) }
h1, h2, h3, p { margin-top: 0 }
.ka-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(68px, 7.5vw, 112px); letter-spacing: -.045em; line-height: .91; font-weight: 500; margin: 30px 0 26px }
.ka-hero h1 em { font-weight: 400; color: var(--raspberry); letter-spacing: -.06em }
.ka-hero .ka-desc { font-size: 15px; color: #75646b; line-height: 1.9; max-width: 480px; margin-bottom: 31px }
.ka-actions { display: flex; flex-wrap: wrap; gap: 13px }
.ka-btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; min-height: 52px; letter-spacing: .045em; font-weight: 700; font-size: 12px; border: 1px solid var(--wine); transition: all .2s; border-radius: 2px; cursor: pointer }
.ka-btn--primary { background: var(--wine); color: #fff }
.ka-btn--primary:hover { background: var(--raspberry); border-color: var(--raspberry) }
.ka-btn--ghost { background: transparent; color: var(--wine) }
.ka-btn--ghost:hover { background: #fff }
.ka-btn:disabled { opacity: .5; cursor: default }
.ka-hero-note { display: flex; align-items: center; gap: 12px; color: #857077; margin-top: 34px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-style: italic }
.ka-hero-note svg { width: 33px; color: var(--gold) }

.ka-hero-art { position: relative; height: 510px; isolation: isolate }
.ka-hero-art:before { content: ''; position: absolute; width: 80%; height: 81%; right: 1%; top: 10%; border: 1px solid #d6bcbe; border-radius: 48% 51% 49% 52%; transform: rotate(12deg) }
.ka-hero-art:after { content: ''; position: absolute; background: rgba(230,198,205,.46); width: 65%; height: 84%; right: 10%; top: 8%; border-radius: 49% 51% 43% 57%; filter: blur(24px); z-index: -1 }
.ka-paper-card { width: 67%; height: 83%; position: absolute; top: 8%; left: 19%; background: linear-gradient(140deg, #fffcf6, #f4ece5); box-shadow: 0 20px 48px #3b193224; transform: rotate(-10deg); border: 10px solid #fffaf4; display: flex; align-items: center; justify-content: center }
.ka-paper-card:after { content: ''; position: absolute; inset: 13px; border: 1px solid #dfc9c6 }
.ka-paper-card img { width: 77%; object-fit: contain; filter: saturate(.88) }
.ka-seal { height: 112px; width: 112px; border-radius: 50%; position: absolute; bottom: 0; right: 3%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 32% 25%, #df93a2, #ae3e63 65%, #752545); border: 8px solid #b84d70; box-shadow: 0 14px 28px #34182d2a; transform: rotate(13deg); color: #f8d7df; font-family: 'Cormorant Garamond', serif; font-size: 49px; font-style: italic }
.ka-seal:before { content: ''; position: absolute; inset: 7px; border: 1px dashed #e8afb6; border-radius: 50% }
.ka-ribbon { position: absolute; left: 1%; bottom: 18%; background: #dfc5cb; padding: 9px 30px; transform: rotate(-10deg); font-family: 'Cormorant Garamond', serif; letter-spacing: .03em; font-size: 21px; box-shadow: 0 8px 14px #0000000d }
.ka-hero-small { position: absolute; top: 6%; right: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--raspberry); font-size: 21px; transform: rotate(9deg) }

.ka-strip { background: #fffdfa; border-bottom: 1px solid #ebdedb }
.ka-strip .ka-wrap { display: flex; align-items: center; justify-content: center; gap: 5vw; padding: 21px 0; flex-wrap: wrap }
.ka-strip span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #827078; white-space: nowrap }
.ka-strip b { font-weight: 400; color: var(--gold); font-size: 20px }

.ka-section { padding: 104px 0 }
.ka-section-intro { max-width: 660px; margin: 0 auto 50px; text-align: center }
.ka-section-intro .ka-eyebrow { justify-content: center }
.ka-section-intro .ka-eyebrow:before { display: none }
.ka-section-intro h2 { font-size: clamp(43px, 5vw, 65px); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.03; margin: 17px 0 }
.ka-section-intro p { line-height: 1.8; color: var(--muted); font-size: 14px }
.ka-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.ka-cat { background: #fff; min-height: 365px; border: 1px solid #eee4e2; transition: transform .25s, box-shadow .25s; overflow: hidden }
.ka-cat:hover { transform: translateY(-5px); box-shadow: var(--shadow) }
.ka-cat-visual { height: 250px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden }
.ka-cat:nth-child(1) .ka-cat-visual { background: #f1e8e1 }
.ka-cat:nth-child(2) .ka-cat-visual { background: #ecdae0 }
.ka-cat:nth-child(3) .ka-cat-visual { background: #e6e3dc }
.ka-cat:nth-child(4) .ka-cat-visual { background: #f0e8e1 }
.ka-cat-visual:before { content: ''; width: 180px; height: 180px; border: 1px solid #fff9; position: absolute; border-radius: 100%; top: 37px; left: calc(50% - 90px) }
.ka-cat-visual svg { width: 147px; height: 147px; filter: drop-shadow(4px 9px 5px #34182d13); z-index: 1 }
.ka-cat-info { padding: 24px 23px 25px }
.ka-cat-info h3 { font-size: 27px; font-family: 'Cormorant Garamond', serif; font-weight: 600; margin: 0 0 8px }
.ka-cat-info .ka-textline { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #997b86; font-size: 11px; text-transform: uppercase; letter-spacing: .1em }
.ka-arrow { font-size: 19px; color: var(--raspberry) }

.ka-feature { background: #3c1a31; color: #fffdf9; position: relative; overflow: hidden }
.ka-feature:before { content: attr(data-letter); font-family: 'Cormorant Garamond', serif; font-style: italic; position: absolute; right: -36px; top: -163px; font-size: 710px; color: #ffffff06; line-height: 1 }
.ka-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 105px 0; position: relative }
.ka-feature .ka-eyebrow { color: #dcb2bc }
.ka-feature .ka-eyebrow:before { background: #dcb2bc }
.ka-feature h2 { font-size: clamp(50px, 5vw, 75px); font-family: 'Cormorant Garamond', serif; line-height: .97; font-weight: 500; margin: 24px 0 }
.ka-feature h2 em { color: #e2b7bd; font-weight: 400 }
.ka-feature p { line-height: 1.9; color: #eadbe2; font-size: 14px }
.ka-feature-art { border: 1px solid #9a7884; min-height: 350px; position: relative; display: flex; align-items: center; justify-content: center }

.ka-quote { padding: 97px 0 104px; background: #fffaf6; text-align: center }
.ka-quote .ka-sigil { font-size: 35px; color: var(--raspberry); line-height: 1 }
.ka-quote h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.13; font-weight: 400; max-width: 750px; margin: 16px auto 24px }
.ka-quote h2 em { color: var(--raspberry) }
.ka-quote p { max-width: 665px; margin: 0 auto 26px; color: #7a6871; line-height: 1.95 }
.ka-signature { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-style: italic; color: var(--wine) }

.ka-cta-band { background: #eedde0; padding: 64px 0 }
.ka-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px }
.ka-cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 4vw, 60px); font-weight: 500; line-height: 1; margin: 10px 0 }
.ka-cta-band p { margin: 0; font-size: 13px; color: #755e67 }

.ka-footer { background: #faf7f2; padding: 52px 0 27px }
.ka-foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 47px }
.ka-footer p { max-width: 360px; color: #7b6c73; font-size: 13px; line-height: 1.8 }
.ka-footer h4 { text-transform: uppercase; letter-spacing: .12em; font-size: 11px }
.ka-footer a { display: block; font-size: 13px; margin: 10px 0; color: #6d5963 }
.ka-footer .ka-brand { display: flex; margin: 0 0 16px }
.ka-foot-bottom { display: flex; justify-content: space-between; border-top: 1px solid #e9dade; padding-top: 22px; color: #9a8c8f; font-size: 11px; gap: 20px }

@media (max-width: 1080px) {
    .ka-links { gap: 16px }
    .ka-nav { gap: 12px }
    .ka-hero-grid { min-height: 610px }
    .ka-hero h1 { font-size: 78px }
    .ka-cat-visual { height: 205px }
    .ka-cat { min-height: 320px }
}

@media (max-width: 780px) {
    .ka-wrap { width: min(100% - 36px, 610px) }
    .ka-announcement { font-size: 8px; line-height: 1.7 }
    .ka-nav { min-height: 69px }
    .ka-brand img { width: 45px; height: 45px }
    .ka-brand-name { font-size: 24px }
    .ka-brand-sub { font-size: 8px }
    .ka-menu-toggle { display: block }
    .ka-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fffdfa; box-shadow: 0 14px 22px #34182d18; padding: 25px; gap: 23px; flex-direction: column; align-items: flex-start }
    .ka-links.ka-links--open { display: flex }
    .ka-links a { font-size: 14px }
    .ka-hero-grid { padding: 62px 0 60px; display: flex; flex-direction: column-reverse; gap: 19px }
    .ka-hero-art { height: 320px; width: 100%; max-width: 400px }
    .ka-paper-card { height: 90%; width: 65%; left: 20%; top: 0 }
    .ka-paper-card img { width: 72% }
    .ka-hero-art:before { width: 75%; height: 82% }
    .ka-hero-small { font-size: 16px }
    .ka-seal { width: 78px; height: 78px; border-width: 6px; font-size: 36px; bottom: 0; right: 7% }
    .ka-ribbon { font-size: 15px; bottom: 12%; padding: 8px 13px }
    .ka-hero h1 { font-size: clamp(60px, 14vw, 86px); margin: 21px 0 }
    .ka-hero .ka-desc { font-size: 14px; line-height: 1.75 }
    .ka-hero-note { margin-top: 22px; font-size: 18px }
    .ka-strip .ka-wrap { padding: 19px 0; gap: 14px }
    .ka-strip span { font-size: 9px }
    .ka-strip b { display: none }
    .ka-section { padding: 73px 0 }
    .ka-section-intro { margin-bottom: 37px }
    .ka-section-intro h2 { font-size: 48px }
    .ka-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px }
    .ka-cat { min-height: 0 }
    .ka-cat-visual { height: 180px }
    .ka-cat-visual svg { width: 115px; height: 115px }
    .ka-cat-info { padding: 17px }
    .ka-cat-info h3 { font-size: 23px }
    .ka-cat-info .ka-textline { font-size: 9px }
    .ka-feature-grid { grid-template-columns: 1fr; gap: 45px; padding: 79px 0 }
    .ka-feature-art { min-height: 300px }
    .ka-quote { padding: 70px 0 }
    .ka-quote h2 { font-size: 46px }
    .ka-cta-inner { align-items: flex-start; flex-direction: column }
    .ka-foot-top { grid-template-columns: 1fr 1fr }
    .ka-foot-top > div:first-child { grid-column: span 2 }
    .ka-foot-bottom { flex-direction: column }
    .ka-cta-band { padding: 54px 0 }
}

@media (max-width: 390px) {
    .ka-cat-visual { height: 150px }
    .ka-cat-info h3 { font-size: 20px }
    .ka-cat-info { padding: 13px }
    .ka-hero h1 { font-size: 60px }
    .ka-actions { flex-direction: column }
    .ka-btn { width: 100% }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    .ka-cat { transition: none }
}

/* --- Doladění (vzor, 2. blok — přepisuje první) --------------------------- */

.ka-links a { font-size: 14px }
.ka-brand-sub { font-size: 10px; letter-spacing: .17em }
.ka-hero .ka-desc, .ka-feature p, .ka-quote p { font-size: 16px; line-height: 1.85 }
.ka-section-intro p { font-size: 16px }
.ka-cat-info .ka-textline { font-size: 12px; letter-spacing: .045em }
.ka-strip span { font-size: 12px; letter-spacing: .06em }
.ka-announcement { font-size: 11px; letter-spacing: .09em }
.ka-hero h1 { line-height: 1.02 }
.ka-btn { font-size: 13px }
a:focus-visible, button:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 5px }
/* Zaškrtávátka a přepínače (pokladna, souhlasy) mají při ovládání klávesnicí stejný malinový rámeček
   jako odkazy, ne výchozí černý od prohlížeče. */
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 2px }
/* Po každé navigaci Blazor fokusuje <h1> (FocusOnNavigate v Routes.razor — čtečky a klávesnice musí vědět,
   že se stránka vyměnila) a přidá mu tabindex="-1"; prohlížeč pak kolem nadpisu kreslí černý rámeček.
   Prvek s tabindex="-1" se nedá vytabovat, rámeček tu nenese žádnou informaci, proto se nekreslí.
   Fokusovatelné prvky (odkazy, tlačítka, pole) pravidlo nezasáhne — rámeček jim zůstat MUSÍ. */
[tabindex="-1"]:focus { outline: none }
/* Fotka banneru Z Itálie: od 2026-11-22 jantarové pero na šířku (1200 × 800) — rámeček v jejím poměru 3 : 2, celá
   fotka (dřív pečeť na výšku v rámečku min. 510 px s ořezem) */
.ka-feature-art { overflow: hidden; border: 0; min-height: 0; aspect-ratio: 3 / 2; border-radius: 3px }
.ka-feature-photo { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 50% }

@media (max-width: 780px) {
    .ka-hero-grid { flex-direction: column; padding: 38px 0 48px; gap: 32px }
    .ka-hero-art { height: 320px }
    .ka-hero .ka-desc { font-size: 16px }
    .ka-hero h1 { font-size: clamp(56px, 13vw, 78px) }
    .ka-cat-info h3 { font-size: 25px }
    .ka-cat-info .ka-textline { font-size: 11px }
    .ka-feature-art { min-height: 0 }
    .ka-section { padding: 64px 0 }
    .ka-brand-sub { font-size: 8px }
    .ka-strip .ka-wrap { gap: 16px }
    .ka-strip span { font-size: 11px }
}

@media (max-width: 390px) {
    .ka-cat-grid { grid-template-columns: 1fr }
    .ka-cat-visual { height: 190px }
    .ka-cat-info h3 { font-size: 28px }
    .ka-cat-info { padding: 20px }
    .ka-brand-name { font-size: 23px }
}

/* --- Rozšíření pro web (ve vzoru inline nebo chybí) ------------------------ */

/* Tlačítko na vínovém podkladu (vzor: inline color #fffdf9; border-color #b99fa8). */
.ka-btn--light { color: #fffdf9; border-color: #b99fa8 }
.ka-btn--light:hover { background: #fff; color: var(--wine) }

/* Obal stránky: patička nikdy nevyjede nad spodní hranu okna. */
.ka-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh }
.ka-shell > main { flex: 1 0 auto; min-width: 0 }

/* Přepínač jazyka ve spodním řádku patičky (místo textu vzoru „Designový koncept…"), ADR‑0058. */
.ka-langs { display: flex; flex-wrap: wrap; gap: 6px 14px }
.ka-footer .ka-langs__item { display: inline; margin: 0; font-size: 11px; color: #9a8c8f }
.ka-footer a.ka-langs__item:hover { color: var(--raspberry) }
.ka-langs__item--current { color: var(--wine); font-weight: 600 }

/* ==========================================================================
   Katalog (etapa 2 ADR‑0058) — výpisy, dlaždice, hledání, detail. Mimo vzor (ten má jen homepage),
   proto ve stejném jazyce: karty jako .ka-cat, titulky Cormorant, malinové akcenty, ostré rohy.
   ========================================================================== */

/* Lupa v hlavičce */
.ka-nav-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--wine); border-radius: 50%; transition: background .2s, color .2s }
.ka-nav-search svg { width: 21px; height: 21px }
.ka-nav-search:hover { background: var(--blush); color: var(--raspberry) }

/* Hlavička výpisu (kategorie, celá nabídka, značka, hledání) */
.ka-listing-head { background: linear-gradient(120deg, #fffdf9 8%, #f8f2ee 65%, #f1e6e8 100%); border-bottom: 1px solid #e9dddd; padding: 46px 0 38px }
.ka-listing-head .kp-crumbs { margin-bottom: 22px }
.ka-listing-head h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(44px, 5vw, 66px); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; margin: 16px 0 14px }
.ka-listing-head__perex { max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 }

.ka-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px }
.ka-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #e3d3d6; background: #fffefb; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; border-radius: 2px; cursor: pointer; transition: border-color .2s, color .2s, background .2s }
.ka-chip:hover { border-color: var(--raspberry); color: var(--raspberry) }
.ka-chip.is-active { background: var(--wine); border-color: var(--wine); color: #fff }
.ka-chip__count { font-size: 11px; font-weight: 500; color: #a08a92 }
.ka-chip.is-active .ka-chip__count { color: #e2b7bd }
.ka-chip--back { border-style: dashed }

.ka-section--listing { padding: 40px 0 96px }
.ka-listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap }
.ka-listing__count { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8b7880 }
.ka-listing__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted) }
.ka-listing__sort select { font: inherit; font-size: 13px; color: var(--ink); background: #fffefb; border: 1px solid #e3d3d6; border-radius: 2px; padding: 8px 30px 8px 12px }
.ka-listing__sort select:focus { outline: none; border-color: var(--raspberry); box-shadow: 0 0 0 3px rgba(173,71,101,.14) }
.ka-listing__empty { padding: 48px 0; color: var(--muted); font-size: 16px; line-height: 1.8 }
.ka-listing__empty .ka-actions { margin-top: 18px }
.ka-listing__about { margin-top: 64px; max-width: 760px }

/* Dlaždice produktu */
.ka-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.ka-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee4e2; transition: transform .25s, box-shadow .25s; overflow: hidden }
.ka-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow) }
.ka-tile__img { position: relative; aspect-ratio: 1 / 1; background: #f4ece5; overflow: hidden; display: flex; align-items: center; justify-content: center }
/* Fotka produktu vždy celá (2026-11-16: jiný poměr stran než 1:1 se ořezával); podklad bílý jako pozadí fotek,
   béžová zůstává jen u dlaždice bez fotky */
.ka-tile__img:has(img) { background: #fff }
.ka-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.ka-tile__mark { font-size: 46px; color: #c9a9b0 }
.ka-tile__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1 }
.ka-tile__brand { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--raspberry) }
.ka-tile__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.12; margin: 0 }
.ka-tile__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px }
.ka-tile__price { font-size: 16px; font-weight: 700; color: var(--wine) }
.ka-tile__price--custom { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-style: italic; font-weight: 500; color: var(--raspberry) }
.ka-tile__stock { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap }
.ka-tile__stock::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor }
.ka-tile__stock.is-in { color: #5c7d5a }
.ka-tile__stock.is-out { color: #a08a92 }
/* ADR-0065: bez zásoby, objednáme u dodavatele — okrová (není skladem, ale ani vyprodané) */
.ka-tile__stock.is-order { color: #9a7442 }

/* Stránkování */
.ka-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px }
.ka-pages__num, .ka-pages__step { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #e3d3d6; font-size: 13px; font-weight: 600; color: var(--ink); border-radius: 2px }
.ka-pages a:hover { border-color: var(--raspberry); color: var(--raspberry) }
.ka-pages__num.is-current { background: var(--wine); border-color: var(--wine); color: #fff }

/* Pás novinek pod kartami kategorií na homepage */
.ka-rail { margin-top: 72px }
.ka-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px }
.ka-rail__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; margin: 0 }
.ka-rail__more { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--raspberry) }
.ka-rail__more:hover { color: var(--wine) }

/* Hledání */
.ka-search { display: flex; gap: 10px; max-width: 640px; margin-top: 22px }
.ka-search__input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: #fffefb; border: 1px solid #e3d3d6; border-radius: 2px; padding: 0 16px; min-height: 52px }
.ka-search__input:focus { outline: none; border-color: var(--raspberry); box-shadow: 0 0 0 3px rgba(173,71,101,.14) }

/* Blokový popis (kategorie, značka) */
.ka-richtext { color: #6f5d66; font-size: 16px; line-height: 1.85 }
.ka-richtext h2, .ka-richtext h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 12px }
.ka-richtext h2 { font-size: 36px }
.ka-richtext h3 { font-size: 26px }

/* Detail produktu (doplněk kp-product) */
.ka-product-brand { display: inline-block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--raspberry) }
a.ka-product-brand:hover { color: var(--wine) }
.ka-product-vat { margin: -4px 0 12px; font-size: 13px; color: var(--muted) }
.ka-avail { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 600 }
.ka-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.ka-avail.is-in { color: #5c7d5a }
.ka-avail.is-order { color: #9a7442; font-weight: 500; line-height: 1.5; align-items: baseline }
.ka-avail.is-order::before { flex: none; transform: translateY(-1px) }
.ka-avail__hint { margin: -2px 0 8px 16px; font-size: 13px; color: var(--muted) }
.ka-section--related { padding: 72px 0 96px; background: #fffaf6; border-top: 1px solid #ebdedb }
/* Fotky v pásu pod detailem jsou tlačítka — kliknutí je prohodí s velkou fotkou (kp.revealTop ji pak ukáže) */
.kp-product__feature { scroll-margin-top: 96px }
.kp-product__thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in }
/* Pás fotek pod detailem ve formátu fotek (čtverec jako velká fotka), ne 3 : 4 z PhotoTile */
.kp-product__thumb .kp-phototile { aspect-ratio: 1 / 1; transition: transform .2s ease, box-shadow .2s ease }
.kp-product__thumb:hover .kp-phototile { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(52,24,45,.13) }
.kp-product__thumb:focus-visible { outline-offset: 3px }
.ka-section--related .ka-section-intro { margin-bottom: 34px }

@media (max-width: 1080px) {
    .ka-tiles { grid-template-columns: repeat(3, 1fr) }
}

@media (max-width: 780px) {
    .ka-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px }
    .ka-tile__body { padding: 13px 13px 15px }
    .ka-tile__name { font-size: 20px }
    .ka-tile__foot { flex-direction: column; align-items: flex-start; gap: 4px }
    .ka-listing-head { padding: 32px 0 28px }
    .ka-section--listing { padding: 28px 0 64px }
    .ka-rail { margin-top: 52px }
    .ka-search { flex-direction: column }
    .ka-nav-end { gap: 6px }
}

/* ==========================================================================
   Košík a objednávka (etapa 3 ADR‑0058) — košík, pokladna, stránka objednávky, nákup z dlaždice a detailu.
   Stejný jazyk jako katalog: bílé karty s jemným rámečkem, titulky Cormorant, vínová tlačítka, ostré rohy.
   ========================================================================== */

/* Košík v hlavičce */
.ka-nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--wine); border-radius: 50%; transition: background .2s, color .2s }
.ka-nav-cart svg { width: 22px; height: 22px }
.ka-nav-cart:hover { background: var(--blush); color: var(--raspberry) }
.ka-nav-cart__count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--raspberry); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center }

/* Nákup z dlaždice (dlaždice je <article>, odkaz a tlačítko vedle sebe) */
.ka-tile__link { display: flex; flex-direction: column; flex: 1 }
.ka-tile__buy { padding: 0 18px 18px }
.ka-tile__add, .ka-tile__incart { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; padding: 10px 14px; border: 1px solid var(--wine); border-radius: 2px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .045em; cursor: pointer; transition: all .2s }
.ka-tile__add { background: var(--wine); color: #fff }
.ka-tile__add:hover { background: var(--raspberry); border-color: var(--raspberry) }
.ka-tile__add:disabled { opacity: .6; cursor: default }
.ka-tile__incart { background: #fff; color: var(--wine) }
.ka-tile__incart:hover { border-color: var(--raspberry); color: var(--raspberry) }
.ka-tile__error { display: block; margin-top: 8px; font-size: 12px; color: var(--raspberry) }

/* Počet kusů (detail, košík) */
.ka-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 22px 0 10px }
.ka-qty { display: grid; gap: 7px }
.ka-qty__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b7880 }
.ka-qty__box { display: inline-flex; align-items: stretch; border: 1px solid #e3d3d6; background: #fffefb; border-radius: 2px; height: 52px }
.ka-qty__step { width: 42px; border: 0; background: none; color: var(--wine); font-size: 18px; cursor: pointer }
.ka-qty__step:hover:not(:disabled) { color: var(--raspberry); background: var(--blush) }
.ka-qty__step:disabled { color: #cdbcc2; cursor: default }
.ka-qty__input { width: 52px; border: 0; border-left: 1px solid #efe4e6; border-right: 1px solid #efe4e6; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-align: center; -moz-appearance: textfield; appearance: textfield }
.ka-qty__input::-webkit-outer-spin-button, .ka-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.ka-qty__input:focus { outline: none; background: #fff }
.ka-buy__add { min-width: 200px }
.ka-buy__error { margin: 0 0 12px; color: var(--raspberry); font-size: 14px; font-weight: 600 }
.ka-buy__incart { margin: 0 0 12px; font-size: 14px; color: #5c7d5a; font-weight: 600 }
.ka-buy__incart a { color: var(--wine); margin-left: 6px; border-bottom: 1px solid currentColor }
.ka-buy__incart a:hover { color: var(--raspberry) }

/* Společné pro košík, pokladnu a objednávku */
.ka-listing-head--slim { padding: 34px 0 30px }
.ka-listing-head--slim h1 { font-size: clamp(40px, 4.4vw, 56px); margin-bottom: 8px }
.ka-section--shop { padding: 40px 0 96px }
.ka-shop__loading { padding: 40px 0; color: var(--muted) }
.ka-shop__empty { padding: 24px 0 40px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.8 }
.ka-shop__empty .ka-actions { margin-top: 18px }
.ka-shop__error { margin: 14px 0 0; color: var(--raspberry); font-size: 14px; font-weight: 600 }
.ka-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em }

/* Košík */
.ka-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start }
.ka-cart__count { margin: 0 0 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8b7880 }
.ka-cart__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 110px 36px; align-items: center; gap: 18px; padding: 16px; background: #fff; border: 1px solid #eee4e2; margin-bottom: 10px }
.ka-cart__row.is-short { border-color: #e4b9c5 }
.ka-cart__thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 92px; aspect-ratio: 1 / 1; background: #f4ece5; overflow: hidden; color: #c9a9b0; font-size: 30px }
.ka-cart__thumb:has(img) { background: #fff }
.ka-cart__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.ka-cart__info { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.ka-cart__brand { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--raspberry) }
.ka-cart__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.15 }
.ka-cart__name:hover { color: var(--raspberry) }
.ka-cart__unit { font-size: 13px; color: var(--muted) }
.ka-cart__unit s { margin-right: 6px; color: #a08a92 }
.ka-cart__warn { font-size: 13px; font-weight: 600; color: var(--raspberry) }
.ka-cart__note { font-size: 13px; font-weight: 500; color: #9a7442 }
.ka-cart__qty { height: 44px }
.ka-cart__qty .ka-qty__step { width: 36px }
.ka-cart__qty .ka-qty__input { width: 46px }
.ka-cart__total { font-size: 16px; font-weight: 700; color: var(--wine); text-align: right; white-space: nowrap }
.ka-cart__remove { width: 36px; height: 36px; border: 0; background: none; color: #a08a92; font-size: 15px; cursor: pointer; border-radius: 50% }
.ka-cart__remove:hover:not(:disabled) { color: var(--raspberry); background: var(--blush) }

/* Souhrn (košík, pokladna) */
.ka-summary { position: sticky; top: 112px; background: #fff; border: 1px solid #eee4e2; padding: 26px 24px 24px }
.ka-summary__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; margin: 0 0 16px }
.ka-summary__lines { margin: 0; display: grid; gap: 9px }
.ka-summary__lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px }
.ka-summary__lines dt { color: var(--ink) }
.ka-summary__lines dd { margin: 0; font-weight: 600; white-space: nowrap; text-align: right }
.ka-summary__lines .is-minor { font-size: 13px; color: var(--muted) }
.ka-summary__lines .is-minor dt { color: var(--muted) }
.ka-summary__lines .is-minor dd { font-weight: 500 }
.ka-summary__lines .is-discount { color: var(--raspberry) }
.ka-summary__lines .is-discount dt { color: var(--raspberry) }
.ka-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee4e2 }
.ka-summary__total span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase }
.ka-summary__total strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; color: var(--wine); white-space: nowrap }
.ka-summary__note { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted) }
.ka-summary__cta { width: 100%; margin-top: 18px }
.ka-summary__back { display: block; margin-top: 14px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--raspberry) }
.ka-summary__back:hover { color: var(--wine) }

/* Slevový kód */
.ka-coupon { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e3d3d6 }
.ka-coupon__toggle { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--raspberry); cursor: pointer; border-bottom: 1px solid currentColor }
.ka-coupon__toggle:hover { color: var(--wine) }
.ka-coupon__label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b7880 }
.ka-coupon__row { display: flex; gap: 8px }
.ka-coupon__input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #e3d3d6; border-radius: 2px; background: #fffefb; font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink) }
.ka-coupon__input:focus { outline: none; border-color: var(--raspberry); box-shadow: 0 0 0 3px rgba(173,71,101,.14) }
.ka-coupon__input.is-invalid { border-color: var(--raspberry) }
.ka-coupon__apply { height: 42px; padding: 0 16px; border: 1px solid var(--wine); border-radius: 2px; background: #fff; color: var(--wine); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .045em; cursor: pointer }
.ka-coupon__apply:hover:not(:disabled) { background: var(--wine); color: #fff }
.ka-coupon__apply:disabled { opacity: .5; cursor: default }
.ka-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.ka-coupon__code { padding: 5px 10px; border: 1px dashed currentColor; font-size: 13px; font-weight: 700; letter-spacing: .1em }
.ka-coupon__applied.is-ok .ka-coupon__code { color: #5c7d5a }
.ka-coupon__applied.is-off .ka-coupon__code { color: #a08a92 }
.ka-coupon__remove { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 1px solid currentColor }
.ka-coupon__remove:hover { color: var(--raspberry) }
.ka-coupon__text { margin: 8px 0 0; font-size: 13px; color: var(--ink) }
.ka-coupon__state { margin: 6px 0 0; font-size: 13px; line-height: 1.5 }
.ka-coupon__state.is-ok { color: #5c7d5a }
.ka-coupon__state.is-off { color: var(--raspberry) }
.ka-coupon__error { margin: 8px 0 0; font-size: 13px; color: var(--raspberry); font-weight: 600 }

/* Pokladna */
.ka-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start }
.ka-checkout__main { display: grid; gap: 18px; min-width: 0 }
.ka-co__card { background: #fff; border: 1px solid #eee4e2; padding: 26px 26px 24px }
.ka-co__title { display: flex; align-items: center; gap: 12px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 18px }
.ka-co__num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; font-family: 'DM Sans', Arial, sans-serif; font-size: 13px; font-weight: 700 }
.ka-co__optional { font-family: 'DM Sans', Arial, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #a08a92 }
.ka-co__hint { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted) }
.ka-co__sub { margin: 4px 0 8px }
.ka-co__ares { display: flex; gap: 8px }
.ka-co__ares .kp-field__control { flex: 1; min-width: 0 }
.ka-co__aresbtn { flex: none; padding: 0 14px; border: 1px solid var(--wine); border-radius: 2px; background: #fff; color: var(--wine); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap }
.ka-co__aresbtn:hover:not(:disabled) { background: var(--wine); color: #fff }
.ka-co__vat { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid #e3d3d6; background: #fffaf6; font-size: 13px; line-height: 1.6 }
.ka-co__vat p { margin: 0 0 6px }
.ka-co__vat.is-ok { border-color: #5c7d5a }
.ka-co__vat.is-bad { border-color: var(--raspberry); color: var(--raspberry) }
.ka-co__vat.is-wait { border-color: var(--gold) }
.ka-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.5; cursor: pointer }
.ka-check input { margin-top: 3px; accent-color: var(--wine) }

.ka-options { display: grid; gap: 10px }
.ka-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid #eadfe1; background: #fffefb; cursor: pointer; transition: border-color .2s, background .2s }
.ka-option:hover { border-color: #d7b9c2 }
.ka-option.is-selected { border-color: var(--wine); background: #fff; box-shadow: inset 3px 0 0 var(--wine) }
.ka-option input { accent-color: var(--wine); width: 17px; height: 17px; margin: 0 }
.ka-option__body { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.ka-option__name { font-size: 15px; font-weight: 600 }
.ka-option__note { font-size: 13px; line-height: 1.5; color: var(--muted) }
.ka-option__price { font-weight: 700; color: var(--wine); white-space: nowrap; text-align: right }
.ka-option__price s { display: block; font-weight: 500; font-size: 12px; color: #a08a92 }
.ka-option__price.is-free { color: #5c7d5a }

.ka-pickup { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 16px; border: 1px dashed #d7b9c2; background: #fffaf6 }
.ka-pickup.is-missing { border-color: var(--raspberry) }
.ka-pickup.is-chosen { border-style: solid; border-color: #b9cdb7; background: #f7faf5 }
.ka-pickup__body { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.ka-pickup__name { font-weight: 600 }
.ka-pickup__btn { flex: none; padding: 10px 16px; border: 1px solid var(--wine); border-radius: 2px; background: var(--wine); color: #fff; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .045em; cursor: pointer }
.ka-pickup__btn:hover { background: var(--raspberry); border-color: var(--raspberry) }

.ka-co__summary .ka-summary__lines { margin-top: 14px }
.ka-co__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.ka-co__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px }
.ka-co__thumb { position: relative; width: 52px; aspect-ratio: 1 / 1; background: #f4ece5 }
.ka-co__thumb:has(img) { background: #fff }
.ka-co__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.ka-co__qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center }
.ka-co__itemname { display: flex; flex-direction: column; gap: 2px; line-height: 1.35 }
.ka-co__itemnote { font-size: 12px; color: #9a7442 }
.ka-co__itemtotal { font-weight: 700; white-space: nowrap; text-align: right }
.ka-co__itemtotal s { display: block; font-weight: 500; font-size: 12px; color: #a08a92 }
.ka-co__edit { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--raspberry); border-bottom: 1px solid currentColor }
.ka-co__edit:hover { color: var(--wine) }
.ka-co__alert { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--raspberry); background: var(--blush); color: var(--raspberry); font-size: 13px; font-weight: 600; line-height: 1.5 }
.ka-co__alert a { color: var(--wine); border-bottom: 1px solid currentColor }
.ka-co__terms { margin: 18px 0 0 }
.ka-co__survey { font-size: 13px; color: var(--muted) }

/* Stránka objednávky */
.ka-order__head.is-closed h1 { color: var(--muted) }
.ka-order__actions { margin-top: 22px }
.ka-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0 }
.ka-steps__item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #a08a92 }
.ka-steps__dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d9c6cb; background: #fffefb; font-size: 12px }
.ka-steps__item.is-done { color: var(--ink) }
.ka-steps__item.is-done .ka-steps__dot { background: #5c7d5a; border-color: #5c7d5a; color: #fff }
.ka-steps__item.is-current { color: var(--wine) }
.ka-steps__item.is-current .ka-steps__dot { background: var(--wine); border-color: var(--wine); color: #fff }
.ka-order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start }
.ka-order__main, .ka-order__side { display: grid; gap: 18px; min-width: 0 }
.ka-order__items { margin-bottom: 18px }
.ka-order__text { margin: 0 0 12px; font-size: 14px; line-height: 1.7 }
.ka-order__text:last-child { margin-bottom: 0 }
.ka-order__text a { color: var(--wine); border-bottom: 1px solid currentColor }
.ka-order__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px }
.ka-order__docs li { display: flex; flex-direction: column; gap: 2px }
.ka-order__docs a { font-weight: 600; color: var(--wine) }
.ka-order__docs a:hover { color: var(--raspberry) }
.ka-transfer .ka-co__hint { margin: -6px 0 18px }
.ka-transfer__grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px }
.ka-transfer__lines { margin: 0; display: grid; gap: 8px; min-width: 260px; flex: 1 }
.ka-transfer__lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px solid #f2eaeb; padding-bottom: 7px }
.ka-transfer__lines dt { color: var(--muted) }
.ka-transfer__lines dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere }
.ka-transfer__qr { margin: 0; text-align: center; font-size: 12px; color: var(--muted) }
.ka-transfer__qr img { display: block; width: 180px; height: 180px; margin-bottom: 6px; border: 1px solid #eee4e2; background: #fff }

@media (max-width: 1080px) {
    .ka-cart, .ka-checkout, .ka-order { grid-template-columns: 1fr }
    .ka-summary { position: static }
}

@media (max-width: 780px) {
    .ka-nav-cart { width: 36px; height: 36px }
    .ka-tile__buy { padding: 0 13px 13px }
    .ka-buy__add { flex: 1; min-width: 0 }
    .ka-section--shop { padding: 28px 0 64px }
    .ka-cart__row { grid-template-columns: 72px minmax(0, 1fr) 32px; grid-template-areas: "thumb info remove" "thumb qty total"; gap: 10px 14px; padding: 12px }
    .ka-cart__thumb { grid-area: thumb; width: 72px; align-self: start }
    .ka-cart__info { grid-area: info }
    .ka-cart__qty { grid-area: qty; justify-self: start }
    .ka-cart__total { grid-area: total; align-self: center }
    .ka-cart__remove { grid-area: remove; align-self: start; width: 32px; height: 32px }
    .ka-cart__name { font-size: 20px }
    .ka-co__card { padding: 20px 16px 18px }
    .ka-summary { padding: 22px 16px 20px }
    .ka-co__title { font-size: 24px }
    .ka-pickup { flex-direction: column; align-items: stretch }
    .ka-co__ares { flex-direction: column }
    .ka-co__aresbtn { min-height: 44px }
}

/* ==========================================================================
   Platba objednávky (etapa 4 ADR‑0058) — panel na stránce objednávky a návratu od brány.
   ========================================================================== */

.ka-pay { border-left: 3px solid var(--wine) }
.ka-pay.is-failed { border-left-color: var(--raspberry) }
.ka-pay .ka-co__title { margin-bottom: 8px }
.ka-pay .ka-co__hint { margin: 0 0 16px }
.ka-pay__count { display: flex; align-items: center; gap: 18px; margin-bottom: 4px }
.ka-pay__ring { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--wine); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--wine) }
.ka-pay__test { margin: 0 0 14px; padding: 6px 10px; display: inline-block; background: #fff6e6; border: 1px dashed var(--gold); font-size: 12px; font-weight: 600; color: #7a5a2a }
.ka-pay__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.ka-pay__later { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--raspberry); cursor: pointer; border-bottom: 1px solid currentColor }
.ka-pay__later:hover:not(:disabled) { color: var(--wine) }
.ka-pay__choose, .ka-pay__confirm { margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e3d3d6; display: grid; gap: 12px }
.ka-pay__subtitle { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600 }
.ka-pay__was { display: block; font-size: 12px; font-weight: 500; color: #a08a92 }
.ka-pay__status { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--raspberry) }
.ka-pay__status.is-paid { color: #5c7d5a }
.ka-pay__page { max-width: 760px }
.ka-option--button { grid-template-columns: minmax(0, 1fr) auto; width: 100%; font: inherit; color: inherit; text-align: left }
.ka-option--button:disabled { cursor: default }

@media (max-width: 780px) {
    .ka-pay__actions .ka-btn { flex: 1 1 100% }
}

/* ==========================================================================
   Informační stránky (etapa 5 ADR‑0058) — podmínky, reklamace, ochrana údajů, doprava a platba, kontakt, o mně.
   Úzký sloupec pro čtení, titulky oddílů Cormorant, tabulky s jemnými linkami.
   ========================================================================== */

/* Patička se sloupcem Nakupování (odchylka od vzoru: vzor má dva sloupce odkazů) */
.ka-foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr }

.ka-info__wrap { max-width: 860px }
.ka-legal { display: grid; gap: 8px }
.ka-legal__section { padding-top: 26px }
.ka-legal__section h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.15; margin: 0 0 12px }
.ka-legal__section p, .ka-legal__section li { color: #5f4f57; font-size: 15px; line-height: 1.8 }
.ka-legal__section p { margin: 0 0 12px }
.ka-legal__section ul { margin: 0 0 14px; padding-left: 20px }
.ka-legal__section li { margin-bottom: 6px }
.ka-legal__section a { color: var(--wine); border-bottom: 1px solid currentColor }
.ka-legal__section a:hover { color: var(--raspberry) }
.ka-legal__table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; line-height: 1.55 }
.ka-legal__table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8b7880; padding: 10px 12px 10px 0; border-bottom: 1px solid #e3d3d6 }
.ka-legal__table td { vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid #f0e6e8; color: #5f4f57 }
.ka-legal__form { margin: 8px 0 0; padding: 18px 20px; background: #fff; border: 1px dashed #d7b9c2 }
.ka-legal__form p { margin: 0 0 6px; font-size: 14px }
.ka-legal__effective { margin: 28px 0 0; font-size: 13px; color: #8b7880 }

.ka-operator { padding: 18px 20px; background: #fff; border: 1px solid #eee4e2; border-left: 3px solid var(--wine) }
.ka-operator__title { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--raspberry) }
.ka-operator__lines { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: #5f4f57 }
.ka-operator__lines:last-child { margin-bottom: 0 }
.ka-operator__registry { font-size: 13px; color: #8b7880 }
.ka-operator a { color: var(--wine); border-bottom: 1px solid currentColor }

/* Doprava a platba */
.ka-ship__market { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--wine) }
.ka-ship__heading { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; margin: 22px 0 6px }
.ka-ship__card { padding: 18px 20px }
.ka-ship__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px }
.ka-ship__card .ka-option__note { margin: 4px 0 0 }
.ka-ship__rates { margin: 10px 0 4px; max-width: 420px }

/* Kontakt */
.ka-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.ka-contact__card .ka-co__title { margin-bottom: 6px }
.ka-contact__card .ka-co__hint { margin: 0 0 16px }
.ka-contact__big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--wine); overflow-wrap: anywhere }
.ka-contact__big:hover { color: var(--raspberry) }
.ka-contact__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 }
.ka-contact__links a { font-size: 14px; font-weight: 600; color: var(--wine); border-bottom: 1px solid currentColor }
.ka-contact__wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }

/* Partnerské weby (2026-12-02) — seznam karet; název i tlačítko jsou plnohodnotný odkaz na partnera */
.ka-partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px }
.ka-partner__name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.15; margin: 0 0 10px }
.ka-partner__name a { color: var(--wine) }
.ka-partner__name a:hover { color: var(--raspberry) }
.ka-partner__text { color: #5f4f57; font-size: 15px; line-height: 1.8; margin: 0 0 18px }

/* O mně */
.ka-about .ka-info__wrap { max-width: 1200px }
.ka-about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start }
.ka-about__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #f4ece5; box-shadow: var(--shadow) }
.ka-about__photo img { width: 100%; height: 100%; object-fit: cover }
.ka-about__text p { color: #5f4f57; font-size: 16px; line-height: 1.85; margin: 0 0 14px }
.ka-about__text .ka-about__intro { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 500; color: var(--ink); line-height: 1.1 }
.ka-about__quote { margin: 26px 0 10px; padding: 4px 0 4px 22px; border-left: 2px solid var(--raspberry); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-style: italic; line-height: 1.4; color: var(--wine) }
.ka-about__text .ka-about__sign { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-style: italic; color: var(--raspberry); margin-bottom: 24px }
.ka-about__gallery { margin-top: 88px }
.ka-about__works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.ka-about__work { margin: 0; background: #fff; border: 1px solid #eee4e2 }
.ka-about__work img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover }
.ka-about__work figcaption { padding: 12px 14px; font-size: 13px; color: #6d5963 }

@media (max-width: 1080px) {
    .ka-about__works { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

@media (max-width: 780px) {
    .ka-foot-top { grid-template-columns: 1fr 1fr }
    .ka-legal__section h2, .ka-ship__heading { font-size: 26px }
    .ka-legal__table { display: block; overflow-x: auto }
    .ka-contact, .ka-contact__wide { grid-template-columns: 1fr }
    .ka-about__grid { grid-template-columns: 1fr; gap: 28px }
    .ka-about__photo { max-width: 420px }
    .ka-about__gallery { margin-top: 56px }
}

/* ==========================================================================
   Výběr země doručení a jazyka v hlavičce (LocaleSwitch, 2026-11-14) — na místě tlačítka „Prozkoumat nabídku",
   obrys v barvě vína jako dřív. Rozbalení nativní <details>, zavírání kp (site.js). Pod 1080 px jen kódy (CZ · CS).
   ========================================================================== */
.ka-locale { position: relative }
.ka-locale__button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border: 1px solid var(--wine); border-radius: 3px; color: var(--wine); font-size: 12px; letter-spacing: .04em; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; transition: background .2s, color .2s }
.ka-locale__button::-webkit-details-marker { display: none }
.ka-locale__button::marker { content: '' }
.ka-locale__button:hover, .ka-locale[open] .ka-locale__button { background: var(--wine); color: #fff }
.ka-locale__globe { width: 17px; height: 17px; flex: none }
.ka-locale__chevron { width: 13px; height: 13px; flex: none; transition: transform .2s }
.ka-locale[open] .ka-locale__chevron { transform: rotate(180deg) }
.ka-locale__full, .ka-locale__short { display: inline-flex; gap: 6px }
.ka-locale__short { display: none }
.ka-locale__dot { opacity: .55 }
.ka-locale__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px; padding: 14px 10px 10px; background: #fffdfa; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 34px #34182d1f }
.ka-locale__head { margin: 0 8px 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--raspberry); font-weight: 700 }
.ka-locale__head:not(:first-child) { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line) }
.ka-locale__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 9px 8px; border: 0; border-radius: 3px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer }
a.ka-locale__item:hover, button.ka-locale__item:hover { background: var(--blush-2); color: var(--raspberry) }
.ka-locale__item--current { color: var(--wine); font-weight: 700 }
span.ka-locale__item--current { cursor: default }
.ka-locale__item--current .ka-locale__name::after { content: ' ✓'; color: var(--raspberry) }
.ka-locale__meta { font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 600 }
.ka-locale__hint { margin: 4px 8px 0; font-size: 11px; line-height: 1.45; color: var(--muted) }
.ka-locale-inline { display: none }

/* Odkaz hlavičky s ikonou — E-shop: vozík na úvodní stránce, jinde domeček (NavIcon) */
.ka-link--icon { display: inline-flex; align-items: center; gap: 7px }
.ka-link__icon { width: 17px; height: 17px; flex: none }

@media (max-width: 1080px) {
    .ka-locale__full { display: none }
    .ka-locale__short { display: inline-flex }
}

@media (max-width: 780px) {
    /* Vedle lupy, košíku a ☰ se tlačítko nevejde (na 360–375 px by překrylo název) — výběr je v mobilním menu */
    .ka-nav-end .ka-locale { display: none }
    .ka-links .ka-locale-inline { display: block; width: 100%; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line) }
    .ka-links .ka-locale-inline .ka-locale__item { padding: 10px 0; font-size: 15px }
    .ka-links .ka-locale-inline .ka-locale__head { margin-left: 0; margin-right: 0 }
    .ka-links .ka-locale-inline .ka-locale__hint { margin-left: 0 }
}

/* ==========================================================================
   Okno obnovy spojení s circuitem (App.razor, ovládá js/reconnect.js; od 2026-11-16, vzor Mixboxcz).
   data-view="working" = pruh dole a jemné zastření (posouvat jde, klepnutí zahazuje skript),
   data-view="failed" = hláška s tlačítky přes zastřenou stránku; data-hint = i „Načíst stránku znovu".
   ========================================================================== */
.ka-reconnect { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: transparent; pointer-events: none; transition: background-color .2s ease }
.ka-reconnect[hidden] { display: none }
.ka-reconnect[data-view="working"] { background: rgba(52,24,45,.10) }
.ka-reconnect[data-view="failed"] { background: rgba(52,24,45,.40); pointer-events: auto }
.ka-reconnect__box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; padding: 14px 22px; border: 1px solid var(--edge); border-radius: 3px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; text-align: center; pointer-events: auto; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease }
.ka-reconnect[data-view] .ka-reconnect__box { opacity: 1; transform: none }
.ka-reconnect[data-view="failed"] .ka-reconnect__box { padding: 26px 30px }
.ka-reconnect__status { display: none; margin: 0; line-height: 1.5 }
.ka-reconnect[data-view="working"] .ka-reconnect__status--working { display: flex; align-items: center; gap: 10px }
.ka-reconnect[data-view="failed"] .ka-reconnect__status--failed { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--wine) }
.ka-reconnect__actions { display: none; flex-wrap: wrap; justify-content: center; gap: 10px }
.ka-reconnect[data-view="failed"] .ka-reconnect__actions, .ka-reconnect[data-hint] .ka-reconnect__actions { display: flex }
.ka-reconnect .ka-reconnect__retry { display: none }
.ka-reconnect[data-view="failed"] .ka-reconnect__retry { display: inline-flex }
.ka-reconnect__spinner { flex: none; width: 16px; height: 16px; border: 2px solid var(--edge); border-top-color: var(--raspberry); border-radius: 50%; animation: ka-reconnect-spin .8s linear infinite }
@keyframes ka-reconnect-spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) {
    .ka-reconnect, .ka-reconnect__box { transition: none }
    .ka-reconnect__spinner { animation: none; border-top-color: var(--edge) }
}

/* ==========================================================================
   Lišta souhlasu s cookies (App.razor, ovládá kp.consent v site.js; od 2026-11-17) — jen když má web měřicí ID
   Google Analytics. Panel dole na papírovém podkladu vzoru, tlačítka Ateliér; na mobilu přes celou šířku.
   ========================================================================== */
.ka-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; justify-content: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); pointer-events: none }
.ka-consent[hidden] { display: none }
.ka-consent__box { max-width: 760px; width: 100%; padding: 22px 26px; border: 1px solid var(--edge); border-radius: 3px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); pointer-events: auto }
.ka-consent__title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--wine) }
.ka-consent__text { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: #6d5963 }
.ka-consent__text a { color: var(--wine); border-bottom: 1px solid currentColor }
.ka-consent__text a:hover { color: var(--raspberry) }
.ka-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px }
.ka-consent__actions .ka-btn { min-height: 44px; padding: 12px 22px }
@media (max-width: 390px) {
    .ka-consent__actions .ka-btn { flex: 1 1 100% }
}

/* „Nastavení cookies" v patičce (SiteFooter) — vypadá jako text spodního řádku, je to tlačítko (otevře lištu) */
.ka-footer__cookies { margin-left: 14px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer }
.ka-footer__cookies:hover { color: var(--raspberry) }

/* Provozovatel e-shopu pod větou o webu (SiteFooter, od 2026-11-22) — drobněji, ať nepřebíjí popis */
.ka-footer .ka-footer__operator { margin-top: 12px; font-size: 12px; line-height: 1.7; color: #8a7a80 }
/* Odkaz na mixbox.cz téhož provozovatele (2026-12-02) — nenápadně: barva a velikost řádku, bez podtržení, v toku textu
   (.ka-footer a je blok s okraji); najetí malinové jako ostatní odkazy patičky */
.ka-footer .ka-footer__operator a { display: inline; margin: 0; font-size: inherit; color: inherit }
.ka-footer .ka-footer__operator a:hover { color: var(--raspberry) }

/* ==========================================================================
   Galerie z Instagramu (ADR‑0066, od 2026-11-24): mřížka InstagramGrid na úvodní stránce (.ka-ig-home) a na stránce
   Instagram (.ka-ig-page), náhled příspěvku .ka-ig-viewer. Dlaždice 4 : 5 (formát příspěvků) s ořezem podle ohniska —
   na rozdíl od fotek produktů, které jsou vždy celé. V náhledu je fotka celá. Bez skriptů, stav drží Blazor.
   ========================================================================== */
.ka-ig-home .ka-section-intro h2 em { font-weight: 400; color: var(--raspberry) }
.ka-ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.ka-ig-tile { margin: 0 }
.ka-ig-tile__link { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #f3ebe6; border: 1px solid #eee4e2 }
.ka-ig-tile__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease }
.ka-ig-tile__link:after { content: ""; position: absolute; inset: 0; background: rgba(52, 24, 45, 0); transition: background .25s ease }
.ka-ig-tile__link:hover img { transform: scale(1.03) }
.ka-ig-tile__link:hover:after { background: rgba(52, 24, 45, .12) }
.ka-ig-tile__album { position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) }
.ka-ig-tile__album svg { display: block; width: 100%; height: 100% }
.ka-ig-tile__play { position: absolute; top: 50%; left: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(52, 24, 45, .55); color: #fff }
.ka-ig-tile__play svg { width: 26px; height: 26px; margin-left: 3px }
.ka-ig-actions { justify-content: center; margin-top: 40px }
.ka-ig-page__empty { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.8 }

/* Náhled příspěvku: fotka vlevo, datum, popisek a odkaz vpravo; na mobilu pod sebou přes celou obrazovku */
body:has(.ka-ig-viewer) { overflow: hidden }
.ka-ig-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; outline: none }
.ka-ig-viewer__backdrop { position: absolute; inset: 0; background: rgba(36, 14, 30, .82) }
.ka-ig-viewer__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: 100%; max-width: 1100px; max-height: calc(100vh - 48px); overflow: hidden; border-radius: 3px; background: var(--ivory); box-shadow: 0 30px 80px rgba(0, 0, 0, .35) }
.ka-ig-viewer__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; margin: 0; background: #1f0f1a }
.ka-ig-viewer__media img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain }
.ka-ig-viewer__step { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(250, 247, 242, .9); color: var(--wine); font-size: 30px; line-height: 1; cursor: pointer; transform: translateY(-50%) }
.ka-ig-viewer__step:hover { color: var(--raspberry) }
.ka-ig-viewer__step:disabled { opacity: .35; cursor: default }
.ka-ig-viewer__step--prev { left: 12px }
.ka-ig-viewer__step--next { right: 12px }
.ka-ig-viewer__counter { position: absolute; bottom: 12px; left: 50%; padding: 3px 10px; border-radius: 10px; background: rgba(31, 15, 26, .6); color: #fff; font-size: 12px; letter-spacing: .04em; transform: translateX(-50%) }
.ka-ig-viewer__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(250, 247, 242, .9); color: var(--wine); font-size: 18px; cursor: pointer }
.ka-ig-viewer__close:hover { color: var(--raspberry) }
.ka-ig-viewer__side { display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 48px); padding: 58px 28px 26px; overflow-y: auto }
.ka-ig-viewer__date { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--raspberry) }
.ka-ig-viewer__caption { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; color: var(--ink) }
.ka-ig-viewer__open { align-self: flex-start }
.ka-ig-viewer__posts { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ebdedb }
.ka-ig-viewer__post { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--wine); cursor: pointer }
.ka-ig-viewer__post:hover { color: var(--raspberry) }
.ka-ig-viewer__post:disabled { opacity: .35; cursor: default }

@media (max-width: 1080px) {
    .ka-ig-grid { gap: 10px }
    .ka-ig-viewer__box { grid-template-columns: minmax(0, 1fr) 300px }
}
@media (max-width: 780px) {
    .ka-ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
    .ka-ig-actions { margin-top: 28px }
    .ka-ig-viewer { padding: 0 }
    .ka-ig-viewer__box { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100%; max-height: none; border-radius: 0 }
    .ka-ig-viewer__media { min-height: 0 }
    .ka-ig-viewer__media img { max-height: 58vh }
    .ka-ig-viewer__side { max-height: none; padding: 20px 18px 24px }
}
@media (prefers-reduced-motion: reduce) {
    .ka-ig-tile__link img, .ka-ig-tile__link:after { transition: none }
    .ka-ig-tile__link:hover img { transform: none }
}
