/* Návrh Aktualit – přehled + detail. Vše pod třídou .an, aby nic nezasáhlo zbytek webu.
   Barvy a písma z DESIGN.md (svět webu apnoe-spanek.cz). */
.an, body.apnoe-aktuality {
  --blue: #2d9cda; --deep: #1a6eb0; --green: #29c093; --green-deep: #1f9e78; --green-text: #167a5c;
  --ink: #1d2a36; --text: #4a5763; --muted: #66727d; --ground: #f9f9f9; --tint: #eef6fb; --line: rgba(29, 42, 54, .12);
  --head: "Yantramanav", Arial, Helvetica, sans-serif; --body: "Inter", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  grid-column: 1 / -1;
  font-family: var(--body); color: var(--text);
}
.an *, .an *::before, .an *::after { box-sizing: border-box; }
.an ::selection { background: rgba(41, 192, 147, .25); color: var(--ink); }
.an a { color: inherit; text-decoration: none; }
.an a:focus-visible, .an button:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.an img { display: block; max-width: 100%; }
.an-wrap { width: min(var(--sk-inner, 1192px), 100% - 2 * var(--sk-gut, 20px)); margin-inline: auto; }
.an h1, .an h2, .an h3 { font-family: var(--head); color: var(--ink); font-weight: 700; margin: 0; text-wrap: balance; }
.an-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform .35s var(--ease); }

/* ---------- meta řádek (téma · datum · doba čtení) ---------- */
.an-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.an-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 14px; vertical-align: middle; background: currentColor; border-radius: 50%; opacity: .55; }
.an-pill { font-weight: 600; color: var(--green-text); }

/* ================= PŘEHLED ================= */
.an-list { padding: 56px 0 0; }
.an-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.an-intro-lead { margin: 0; max-width: 34ch; font-family: var(--head); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: var(--ink); }
.an-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chip {
  font: 500 14px/1 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line);
  padding: 11px 16px; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.an-chip span { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.an-chip:hover { border-color: var(--ink); }
.an-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.an-chip.is-active span { color: rgba(255, 255, 255, .65); }

/* nejnovější článek */
.an-featured { position: relative; display: grid; grid-template-columns: 7fr 5fr; background: #fff; margin-bottom: 64px; box-shadow: 0 30px 60px -40px rgba(14, 58, 95, .45); }
.an-featured[hidden] { display: none; }
.an-featured-media { overflow: hidden; aspect-ratio: 16 / 10; }
.an-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.an-featured:hover .an-featured-media img { transform: scale(1.035); }
.an-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.an-featured-title { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.14; letter-spacing: -.005em; }
.an-featured-title a::after { content: ""; position: absolute; inset: 0; }
.an-featured-title a:hover { color: var(--deep); }
.an-featured-excerpt { margin: 0; font-size: 17px; line-height: 1.6; }
.an-readmore { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--green-text); }
.an-featured:hover .an-arrow { transform: translateX(4px); }

/* mřížka karet */
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.an-card { position: relative; display: flex; flex-direction: column; }
.an-card[hidden], .an-card.is-dup { display: none; }
.an-card.is-dup:not([hidden]) { display: flex; }
.an-card-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); margin-bottom: 20px; }
.an-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.an-card-media.is-contain img { object-fit: contain; padding: 8%; background: #fff; }
.an-card:hover .an-card-media img { transform: scale(1.045); }
.an-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.an-card-title { font-size: 22px; line-height: 1.22; }
.an-card-title a::after { content: ""; position: absolute; inset: 0; }
.an-card-title a { background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), color .25s; }
.an-card:hover .an-card-title a { background-size: 100% 2px; }
.an-card-excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.an-card .an-meta { margin-top: auto; padding-top: 4px; }
.an-empty { padding: 40px 0; font-size: 17px; }

/* pruh do e-shopu */
.an-shop { margin-top: 96px; background: var(--tint); }
.an-shop-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 44px 0; }
.an-shop-title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin-bottom: 6px !important; }
.an-shop p { margin: 0; font-size: 16px; }
.an-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px;
  background: var(--green); color: #fff !important; font: 600 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); transition: background-color .25s;
}
.an-btn:hover { background: var(--green-deep); }
.an-btn:hover .an-arrow { transform: translateX(4px); }

/* ================= DETAIL ČLÁNKU ================= */
.an-article { padding: 0; }
/* modrý pruh pod průhlednou hlavičkou webu (stejně jako modré záhlaví ostatních stránek) */
.an-art-band { background: linear-gradient(135deg, #1f78ba 0%, #14568e 100%); padding: calc(var(--wd-header-h, 90px) + 40px) 0 150px; color: #fff; }
.an-art-band .an-art-title, .an-art-band .an-art-lead { color: #fff; }
.an-art-band .an-crumbs, .an-art-band .an-meta { color: #fff; }
.an-art-band .an-crumbs a:hover { color: #fff; }
.an-art-band .an-pill { color: var(--deep); background: #fff; padding: 5px 10px; }   /* 5,6 : 1 */
.an-art-band ::selection { background: rgba(255, 255, 255, .3); color: #fff; }
.an-art-head { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.an-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.an-crumbs a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.an-art-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.01em; }
.an-art-lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.an-art-hero { margin-block: -110px 56px; position: relative; }
.an-art-hero img { box-shadow: 0 40px 70px -45px rgba(14, 58, 95, .6); }
.an-art-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.an-art-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 72px; }
.an-toc { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.an-toc-title { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.an-toc ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 1px solid var(--line); }
.an-toc li { margin: 0; }
.an-toc ol a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; transition: color .2s, border-color .2s; }
.an-toc ol a:hover { color: var(--ink); }
.an-toc ol a.is-current { color: var(--ink); border-left-color: var(--green); font-weight: 600; }
.an-toc-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-text); }
.an-toc-back .an-arrow { transform: rotate(180deg); }

/* text článku */
.an-prose { font-size: 18px; line-height: 1.75; color: #34414c; }
.an-prose :is(p, ul, ol) { margin: 0 0 1.15em; }
.an-prose h2 { font-size: 27px; line-height: 1.22; margin: 1.9em 0 .55em; scroll-margin-top: 110px; }
.an-prose :is(h2:first-child, .elementor-widget-container > h2:first-child) { margin-top: 0; }
.an-prose strong { color: var(--ink); font-weight: 600; }
.an-prose ul, .an-prose ol { padding: 0; list-style: none; }
.an-prose ul li, .an-prose ol li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.an-prose ul:not([class]) li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.an-prose ol { counter-reset: an; }
.an-prose ol li { counter-increment: an; }
.an-prose ol li::before { content: counter(an) "."; position: absolute; left: 0; font-weight: 600; color: var(--green-text); }
.an-prose .an-no li::before, .an-prose .an-yes li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px;
  background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.an-prose .an-no li::before { color: #c2463d; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E"); }
.an-prose .an-yes li::before { color: var(--green-deep); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E"); }
.an-prose .an-swap { display: grid; gap: 10px; }
.an-prose .an-swap li { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; margin: 0; background: var(--line); }
.an-prose .an-swap li::before { display: none; }
.an-swap-from, .an-swap-to { padding: 14px 18px; font-size: 16px; line-height: 1.5; }
.an-swap-from { background: #fff; color: var(--muted); }
.an-swap-from::before { content: "Místo"; display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a0444b; margin-bottom: 4px; }
.an-swap-to { background: #fff; color: var(--ink); }
.an-swap-to::before { content: "Řekněte"; display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); margin-bottom: 4px; }
.an-swap-to strong { font-weight: 500; }
.an-prose .an-note { font-size: 15px; line-height: 1.6; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); margin-top: 2em; }

/* produkty a další články */
.an-products { margin-top: 88px; padding: 64px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.an-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.an-sec-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.an-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.an-link:hover { color: var(--green-text); }
.an-link:hover .an-arrow { transform: translateX(4px); }
.an-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.an-prod { display: flex; flex-direction: column; gap: 8px; }
.an-prod-img { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; transition: border-color .25s; }
.an-prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform .6s var(--ease); }
.an-prod:hover .an-prod-img { border-color: var(--blue); }
.an-prod:hover .an-prod-img img { transform: scale(1.05); }
.an-prod-name { font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.an-prod-price { font-size: 15px; font-weight: 600; color: var(--green-text); font-variant-numeric: tabular-nums; }
.an-more { padding: 72px 0 24px; }

/* ================= responzivita ================= */
@media (max-width: 1024px) {
  .an-grid { grid-template-columns: repeat(2, 1fr); }
  .an-featured { grid-template-columns: 1fr; }
  .an-art-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .an-toc { position: static; margin-bottom: 40px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); }
  .an-toc ol { margin-bottom: 0; }
  .an-toc-back { display: none; }
  .an-prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .an-list { padding-top: 32px; }
  .an-intro { margin-bottom: 28px; }
  .an-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .an-chip { white-space: nowrap; }
  .an-featured { margin-bottom: 44px; }
  .an-grid { grid-template-columns: 1fr; gap: 44px; }
  .an-art-band { padding: calc(var(--wd-header-sm-h, 60px) + 28px) 0 96px; }
  .an-art-hero { margin-top: -70px; }
  .an-art-hero { margin-bottom: 36px; }
  .an-art-hero img { aspect-ratio: 4 / 3; }
  .an-prose { font-size: 17px; }
  .an-prose h2 { font-size: 23px; }
  .an-prose .an-swap li { grid-template-columns: 1fr; }
  .an-sec-head { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .an * { transition: none !important; } }


/* ================= web: úpravy pro šablony WoodMart / Elementor =================
   (spojí se s navrh.css do apnoe-aktuality/aktuality.css – viz aktuality-navrh/nasadit.mjs) */
body.apnoe-aktuality {
  --blue: #2d9cda; --deep: #1a6eb0; --green: #29c093; --green-deep: #1f9e78; --green-text: #167a5c;
  --ink: #1d2a36; --text: #4a5763; --muted: #66727d; --tint: #eef6fb; --line: rgba(29, 42, 54, .12);
  --head: "Yantramanav", Arial, Helvetica, sans-serif; --body: "Inter", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
.an { margin: 0; }
a.an-chip { display: inline-flex; align-items: center; }
a.an-chip:hover { color: var(--ink); }
a.an-chip.is-active:hover { color: #fff; }
.an-card { display: flex; }

/* stránkování */
.an-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 64px; }
.an-pagination .page-numbers {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.an-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.an-pagination a.page-numbers:hover { border-color: var(--ink); }
.an-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* detail: modré záhlaví šablony nahrazuje vlastní hlavička článku */
body.apnoe-aktuality.single-post .wd-page-title { display: none !important; }
body.apnoe-aktuality.single-post .wd-page-content { padding-top: 0; }
body.apnoe-aktuality.single-post .wd-content-layout { padding-top: 0; padding-bottom: 0; }

/* vnitřní obaly kontejnerů Elementoru vždy na plnou šířku (jinak se smrsknou na obsah) */
:is(.an-art-band, .an-art-hero-wrap, .an-art-layout, .an-products, .an-more, .an-shop) > .e-con-inner { width: 100%; }

/* hlavička článku (kontejner .an-art-band) */
.an-art-band { font-family: var(--body); }
.an-art-band > .e-con-inner { max-width: 860px !important; gap: 20px !important; }
.an-art-band .elementor-widget { margin-bottom: 0 !important; width: 100%; }
.an-art-title :is(h1, h2, h3, .wd-entities-title, .title) {
  font-family: var(--head); font-weight: 700; color: #fff !important; margin: 0;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.01em; text-transform: none; text-wrap: balance;
}
.an-art-lead, .an-art-lead :is(p, div) { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #fff !important; margin: 0; max-width: 62ch; }
.an-art-band .an-crumbs a, .an-art-band .an-meta { color: #fff; }

/* velký obrázek přes spodní okraj pruhu */
.an-art-hero-wrap > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; }
.an-art-hero-wrap.e-con { padding-bottom: 56px !important; }
.an-art-hero-wrap .elementor-widget { margin-bottom: 0 !important; }
.an-art-hero { margin: -110px 0 0; position: relative; z-index: 1; }
.an-art-hero img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; box-shadow: 0 40px 70px -45px rgba(14, 58, 95, .6); }

/* obsah + text článku */
.an-art-layout.e-con { display: flex !important; }            /* mřížku z náhledu má jen vnitřní obal */
.an-art-layout > .e-con-inner { display: grid !important; grid-template-columns: 240px minmax(0, 720px); justify-content: center !important; gap: 72px !important; max-width: var(--sk-inner, 1192px) !important; }
.an-art-layout .elementor-widget { margin-bottom: 0 !important; }
.an-art-layout .elementor-widget-shortcode { align-self: start; position: sticky; top: 100px; }
.an-toc[hidden] { display: none !important; }
.an-toc { position: static; }
.an-prose { font-family: var(--body); font-size: 18px; line-height: 1.75; color: #34414c; }
.an-prose :is(p, ul, ol) { margin: 0 0 1.15em; }
.an-prose h2 { font-family: var(--head); font-weight: 700; color: var(--ink); text-transform: none; }
.an-prose a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.an-prose .an-lead-p { font-size: 20px; line-height: 1.55; }
.an-prose .an-lead-p strong { font-weight: 500; color: var(--ink); }
.an-prose img { max-width: 100%; height: auto; }

/* sekce pod článkem */
.an-products > .e-con-inner, .an-more > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; }
.an-sec-row > .e-con-inner, .an-sec-row { align-items: flex-end; }
.an-sec-title .elementor-heading-title { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.an-link .elementor-button { background: none !important; padding: 6px 0 !important; color: var(--ink) !important; font: 600 15px/1.2 var(--body); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.an-link .elementor-button:hover { color: var(--green-text) !important; }
.an-more { padding: 72px 0 24px; }
.an-more .an-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* pruh do e-shopu v přehledu (kontejner .an-shop) */
.an-shop > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; }
.an-shop .an-shop-title .elementor-heading-title { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; text-transform: none; }
.an-shop .elementor-widget-text-editor { font-size: 16px; color: var(--text); }
.an-shop .an-btn-el .elementor-button {
  background: var(--green); color: #fff; border-radius: 0; padding: 17px 28px; font: 600 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.an-shop .an-btn-el .elementor-button:hover { background: var(--green-deep); }

@media (max-width: 1024px) {
  .an-art-layout > .e-con-inner { grid-template-columns: minmax(0, 720px); gap: 0 !important; }
  .an-art-layout .elementor-widget-shortcode { position: static; }
  .an-more .an-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .an-art-hero { margin-top: -70px; }
  .an-art-hero-wrap.e-con { padding-bottom: 36px !important; }
  .an-art-hero img { aspect-ratio: 4 / 3; }
  .an-prose { font-size: 17px; }
  .an-more .an-grid-3 { grid-template-columns: 1fr; }
}

/* boční okraje kontejnerů na menších obrazovkách */
/* šířky: vše na šířku obsahu šablony (1192 px = 1222 − 2 × 15 px okraj šablony) */
:is(.an-products, .an-shop) > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; }
.an-art-band > .e-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; }   /* Elementor jinak dává odsazení i vnitřnímu obalu */
@media (max-width: 1222px) {
  /* kontejnery přes celou šířku okna potřebují okraj jako šablona (15 px); ostatní už jsou v odsazeném obsahu */
  :is(.an-art-band, .an-products, .an-shop) > .e-con-inner { padding-left: 15px !important; padding-right: 15px !important; }
}

/* šipky jako všude jinde (SVG), u tlačítek Elementoru přes masku */
.an-arrow-back .an-arrow { transform: rotate(180deg); }
.an-pagination .page-numbers .an-arrow { width: 18px; height: 18px; }
:is(.an-link, .an-btn-el) .elementor-button-text { display: inline-flex; align-items: center; gap: 8px; }
:is(.an-link, .an-btn-el) .elementor-button-text::after {
  content: ""; width: 1.1em; height: 1.1em; background: currentColor; transition: transform .35s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.an-link, .an-btn-el) .elementor-button:hover .elementor-button-text::after { transform: translateX(4px); }
.an-link .elementor-button { box-shadow: none; }

/* přehled: mřížka a pruh do e-shopu na stejné šířce jako obsah šablony */
.an-list-wrap .an-wrap { width: 100%; }
.an-shop.e-con { padding-left: 0 !important; padding-right: 0 !important; }
.an-shop > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; align-items: center; justify-content: space-between; }


/* produkty pod článkem */
.an-products .an-prod-grid { margin-top: 0; }
.an-products .elementor-widget-shortcode { width: 100%; }

/* obrázek přesahuje do modrého pruhu – posouvá se celý kontejner (záporný okraj obrázku uvnitř widgetu se neuplatní) */
.an-art-hero-wrap.e-con { margin-top: -110px !important; position: relative; z-index: 2; }
.an-art-hero-wrap .an-art-hero { margin: 0 !important; }
@media (max-width: 640px) { .an-art-hero-wrap.e-con { margin-top: -70px !important; } }

/* přehled: modrý pruh s nadpisem (šablona WoodMart při zapnuté šabloně nevypisuje své modré záhlaví) */
.an-list-band > .e-con-inner { max-width: var(--sk-inner, 1192px) !important; gap: 14px !important; }
.an-list-band .an-list-title { font-family: var(--head); font-weight: 700; color: #fff; margin: 4px 0 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.an-list-band .an-list-lead { margin: 6px 0 0; color: #fff; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 52ch; }
.an-list-band .an-crumbs { color: #fff; }
.an-list-band .an-crumbs a { color: #fff; }
.an-list { padding-top: 40px; }
.an-list .an-intro { justify-content: flex-start; }

/* mezera mezi výpisem a pruhem do e-shopu */
.an-shop.e-con { margin-top: 80px !important; }
@media (max-width: 640px) { .an-shop.e-con { margin-top: 56px !important; } }

/* 2026-11-10: náhledy jsou teď původní fotky 16:9 → vždy vyplnit rámeček (líné načítání Smush jinak nechá výšku podle souboru) */
.an-card-media > a, .an-featured-media > a { display: block; height: 100%; }
.an-card-media img, .an-featured-media img { display: block; height: 100% !important; width: 100% !important; object-fit: cover !important; aspect-ratio: auto !important; }
.an-card-media.is-contain img { object-fit: contain !important; }

/* měřítko pro širší rám (2026-11-10) */
@media (min-width: 1200px) {
  .an-meta, .an-crumbs { font-size: 14.5px; }
  .an-featured-title { font-size: clamp(32px, 2.9vw, 48px); }
  .an-featured-excerpt { font-size: 19px; }
  .an-readmore, .an-link { font-size: 16.5px; }
  .an-card-title { font-size: 25px; }
  .an-card-excerpt { font-size: 17px; }
  .an-prose { font-size: 19.5px; }
  .an-prose h2 { font-size: 30px; }
  .an-sec-title, .an-sec-title .elementor-heading-title { font-size: clamp(28px, 2.4vw, 38px); }
  .an-prod-name, .an-prod-price { font-size: 16.5px; }
  .an-shop p, .an-shop .elementor-widget-text-editor { font-size: 17.5px; }
  .an-list-band .an-list-lead { font-size: clamp(19px, 1.5vw, 23px); }
}
