/* CMS adaptations for OBRAZNA UI shell (homepage + listing + detail).
   Do not put ThemeForest rules here. */

.brand-logo {
  display: block;
  max-height: 42px;
  width: auto;
  height: auto;
}

.site-header .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.site-header .brand small,
.footer-brand .brand small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute, #8A847B);
}

.wishlist-btn.is-disabled,
.wishlist-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-btn strong {
  min-width: 1.1em;
  text-align: center;
}

/* Cookie notice sits above OBRAZNA chrome */
body.obrazna-home,
body.obrazna-listing,
body.obrazna-detail {
  background: var(--warm, #FAF7F2);
}

/* Listing: hero without Unsplash — plain brand gradient */
.cat-hero.cat-hero--plain {
  background: linear-gradient(120deg, #2f353c 0%, #5c6b5e 55%, #8f9c8b 100%);
  color: #fff;
  min-height: 180px;
}

.cat-hero.cat-hero--plain::after {
  background: linear-gradient(90deg, rgba(35, 37, 43, 0.35), rgba(35, 37, 43, 0.05));
}

.cat-hero.cat-hero--plain h1 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 6px;
}

.cat-hero.cat-hero--plain p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  margin: 0;
}

.catalog-side .chip-row a.chip {
  text-decoration: none;
}

.catalog-side .chip-row a.chip.active {
  background: var(--charcoal, #23252B);
  color: #fff;
  border-color: var(--charcoal, #23252B);
}

.obrazna-catalog .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obrazna-catalog .empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-mute, #8A847B);
}

.obrazna-catalog .empty-state .btn {
  margin-top: 12px;
}

.obrazna-catalog .product-price .from:only-child {
  font-weight: 600;
  color: var(--ink-soft, #5c574f);
}

.view-toggle button[aria-pressed="true"],
.view-toggle button.active {
  background: var(--charcoal, #23252B);
  color: #fff;
}

/* Detail hotového obrazu */
.obrazna-detail-page .detail-info h1 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 10px 0 8px;
}

.obrazna-detail-page .detail-thumbs button[hidden] {
  display: none !important;
}

.obrazna-detail-page .detail-thumbs button:focus-visible,
.obrazna-detail-page .size-option:focus-visible,
.obrazna-detail-page .variant-tab:focus-visible {
  outline: 2px solid var(--charcoal, #23252B);
  outline-offset: 2px;
}

.obrazna-detail-page .detail-cart-msg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft, #5c574f);
}

.obrazna-detail-page .detail-cart-msg.is-error {
  color: #8b2e2e;
}

.obrazna-detail-page .btn-buy[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.obrazna-detail-page .empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-mute, #8A847B);
}

.obrazna-detail-page .prose h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 12px;
}

.obrazna-detail-page .prose p {
  margin: 0 0 12px;
}

/* Obsah košíku */
.obrazna-cart-page .cart-count-label {
  font-family: var(--sans, system-ui, sans-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-mute, #8A847B);
}

.obrazna-cart-page .cart-empty-state {
  max-width: 520px;
  margin: 12px auto 0;
  text-align: center;
}

.obrazna-cart-page .cart-empty-state h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
}

.obrazna-cart-page .cart-empty-state p {
  margin: 0 0 20px;
  color: var(--ink-soft, #5c574f);
}

.obrazna-cart-page .cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e8e4dc);
}

.obrazna-cart-page .cart-item:first-of-type {
  padding-top: 4px;
}

.obrazna-cart-page .cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.obrazna-cart-page .cart-item.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.obrazna-cart-page .ci-thumb {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  background: var(--beige, #f3efe6);
  border: 1px solid var(--line, #e8e4dc);
}

.obrazna-cart-page .ci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obrazna-cart-page .ci-title {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--charcoal, #23252B);
}

.obrazna-cart-page .ci-params {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-soft, #5c574f);
}

.obrazna-cart-page .ci-unit {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-mute, #8A847B);
}

.obrazna-cart-page .ci-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.obrazna-cart-page .ci-remove {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  color: var(--ink-mute, #8A847B);
  text-decoration: underline;
  cursor: pointer;
}

.obrazna-cart-page .ci-remove:hover {
  color: var(--charcoal, #23252B);
}

.obrazna-cart-page .ci-line-price {
  text-align: right;
  min-width: 88px;
  padding-top: 4px;
  font-size: 16px;
  color: var(--charcoal, #23252B);
}

.obrazna-cart-page .cart-sum-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-mute, #8A847B);
}

.obrazna-cart-page .cart-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
  font-size: 14px;
}

.obrazna-cart-page .summary .btn-block {
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  .obrazna-cart-page .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .obrazna-cart-page .ci-thumb {
    width: 72px;
    height: 72px;
  }

  .obrazna-cart-page .ci-line-price {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
}

/* Pokladna */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.obrazna-checkout .checkout-step-link {
  color: inherit;
  text-decoration: none;
}

.obrazna-checkout .checkout-step-link:hover {
  color: var(--clay, #c45c3e);
  text-decoration: underline;
}

.obrazna-checkout [data-sum-sleva-row][hidden] {
  display: none !important;
}

.obrazna-checkout .summary-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.obrazna-checkout .summary-head-row h2 {
  margin: 0;
}

.obrazna-checkout .summary-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e8e4dc);
}

.obrazna-checkout .summary-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--beige, #f3efe6);
}

.obrazna-checkout .sl-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.obrazna-checkout .sl-info small {
  display: block;
  color: var(--ink-mute, #8A847B);
  font-size: 12px;
  line-height: 1.4;
}

.obrazna-checkout .sl-price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.obrazna-checkout .opt-box {
  position: relative;
}

.obrazna-checkout .opt-box input.visually-hidden {
  position: absolute;
}

.obrazna-checkout .brand-logo {
  height: 36px;
  width: auto;
}

.obrazna-checkout .checkout-contact a {
  color: inherit;
  text-decoration: none;
}

.obrazna-checkout .checkout-contact a:hover {
  color: var(--clay, #c45c3e);
}

.obrazna-checkout .form-card .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.obrazna-checkout body,
body.obrazna-checkout {
  padding-bottom: 0;
}

@media (max-width: 900px) {
  body.obrazna-checkout {
    padding-bottom: 88px;
  }
}

/* Děkovací stránka */
.obrazna-thanks-page .thanks-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}
.obrazna-thanks-page .thanks-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 41, 37, 0.08);
  color: var(--ink-soft, #5c574f);
}
.obrazna-thanks-page .thanks-summary .thanks-total {
  border-bottom: 0;
  font-weight: 700;
  color: var(--ink, #2c2925);
  font-size: 1.05em;
}
.obrazna-thanks-page .thanks-contact {
  margin-top: 16px;
  font-size: 0.95em;
  color: var(--ink-mute, #8A847B);
}
.obrazna-mail-preview {
  border: 1px solid rgba(44, 41, 37, 0.12);
  background: #f7f5f0;
  padding: 12px;
  overflow: auto;
  max-height: 480px;
}
.obrazna-mail-preview table {
  max-width: 100%;
}

/* Homepage: hero image inside link + category thumbs */
.hero-stage > a.hero-stage-link {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-stage > a.hero-stage-link img,
.hero-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.hero-float {
  text-decoration: none;
  color: inherit;
  max-width: calc(100% - 40px);
}
.cat-pill .cat-ico {
  overflow: hidden;
  padding: 0;
}
.cat-pill .cat-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.product-media img {
  object-fit: cover;
}

/* Search suggest + mobile header search */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.header-search .search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mute, #8A847B);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.header-search .search-submit:hover,
.header-search .search-submit:focus-visible {
  color: var(--clay, #c45c26);
  outline: none;
}
.header-search input[type="search"] {
  padding-right: 44px;
}
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  background: #fff;
  border: 1px solid rgba(44, 41, 37, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(35, 37, 43, 0.14);
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 8px;
}
.search-suggest-item,
.search-suggest-all {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 48px;
}
.search-suggest-item:hover,
.search-suggest-item.is-active,
.search-suggest-all:hover,
.search-suggest-all.is-active {
  background: rgba(196, 92, 38, 0.08);
}
.search-suggest-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3efe8;
  flex: 0 0 auto;
}
.search-suggest-item .ssi-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.search-suggest-item .ssi-txt strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal, #2c2925);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-item .ssi-txt small {
  font-size: 12px;
  color: var(--ink-mute, #8A847B);
}
.search-suggest-all {
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--clay, #c45c26);
  border-top: 1px solid rgba(44, 41, 37, 0.08);
  margin-top: 4px;
}
.search-suggest-msg {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--ink-mute, #8A847B);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .site-header .header-search {
    display: flex !important;
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
  .search-suggest {
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(60vh, 360px);
  }
}

/* ========== Etapa 8: blog / CMS obsah ========== */
body.obrazna-cms {
  background: var(--warm, #FAF7F2);
}

.obrazna-cms-page .cms-top {
  padding-top: 22px;
}

.obrazna-cms-page .breadcrumb {
  margin-bottom: 14px;
}

.obrazna-cms-page .cms-hero {
  margin-bottom: 8px;
  min-height: 160px;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cms-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cms-card-media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #e8e4dc;
}

.cms-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-card-body {
  padding: 14px 2px 0;
}

.cms-card-body h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 4px 0 8px;
}

.cms-card-body h2 a {
  color: inherit;
  text-decoration: none;
}

.cms-card-body h2 a:hover {
  text-decoration: underline;
}

.cms-card-body p {
  margin: 0 0 12px;
  color: var(--ink-soft, #5c574f);
  font-size: 0.95rem;
}

.cms-card-meta {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute, #8A847B);
  margin-bottom: 4px;
}

.cms-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-mute, #8A847B);
}

.cms-empty .btn {
  margin: 8px 6px 0;
}

.cms-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
  flex-wrap: wrap;
}

.cms-paging-status {
  font-size: 0.9rem;
  color: var(--ink-mute, #8A847B);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.cms-cta-band {
  margin-top: 36px;
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(35, 37, 43, 0.08);
}

.cms-cta-band p {
  margin: 0 0 12px;
  color: var(--ink-soft, #5c574f);
}

.cms-article {
  max-width: 760px;
  margin: 0 auto 40px;
}

.cms-article--content {
  max-width: 820px;
}

.cms-article-head {
  margin-bottom: 20px;
}

.cms-article-head h1 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 6px 0 10px;
}

.cms-lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft, #5c574f);
  line-height: 1.5;
}

.cms-article-hero {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
}

.cms-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.cms-back {
  margin-top: 28px;
}

.cms-related {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 37, 43, 0.08);
}

.cms-related h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 18px;
}

.cms-kontakt-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin: 8px 0 48px;
  max-width: 960px;
}

.cms-kontakt-form h2,
.cms-kontakt-info h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.cms-form .cms-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cms-form input,
.cms-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(35, 37, 43, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  margin-bottom: 12px;
}

.cms-form textarea {
  resize: vertical;
  min-height: 120px;
}

.cms-kontakt-info p {
  margin: 0 0 16px;
  line-height: 1.55;
  color: var(--ink-soft, #5c574f);
}

.cms-kontakt-info a {
  color: inherit;
}

/* Scoped editorial typography */
.obrazna-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink, #2c2a26);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.obrazna-prose > *:first-child {
  margin-top: 0;
}

.obrazna-prose h2,
.obrazna-prose h3,
.obrazna-prose h4 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  line-height: 1.25;
  margin: 1.6em 0 0.55em;
  color: var(--charcoal, #23252B);
}

.obrazna-prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.obrazna-prose h3 { font-size: 1.2rem; }
.obrazna-prose h4 { font-size: 1.05rem; }

.obrazna-prose p {
  margin: 0 0 1em;
}

.obrazna-prose a {
  color: var(--charcoal, #23252B);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.obrazna-prose a:hover {
  color: #3d4a3f;
}

.obrazna-prose ul,
.obrazna-prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.obrazna-prose li {
  margin-bottom: 0.35em;
}

.obrazna-prose blockquote {
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 3px solid #8f9c8b;
  color: var(--ink-soft, #5c574f);
  font-style: italic;
}

.obrazna-prose hr {
  border: 0;
  border-top: 1px solid rgba(35, 37, 43, 0.12);
  margin: 1.6em 0;
}

.obrazna-prose img,
.obrazna-prose figure {
  max-width: 100%;
  height: auto;
}

.obrazna-prose img {
  display: block;
  border-radius: 8px;
  margin: 1em 0;
}

.obrazna-prose figure {
  margin: 1.2em 0;
}

.obrazna-prose figcaption {
  font-size: 0.88rem;
  color: var(--ink-mute, #8A847B);
  margin-top: 0.45em;
}

.obrazna-prose .cms-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
}

.obrazna-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.obrazna-prose th,
.obrazna-prose td {
  border: 1px solid rgba(35, 37, 43, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.obrazna-prose th {
  background: rgba(35, 37, 43, 0.04);
  font-weight: 600;
}

.obrazna-prose .cms-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.2em 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.obrazna-prose .cms-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.obrazna-prose iframe {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .cms-grid,
  .cms-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cms-kontakt-grid {
    grid-template-columns: 1fr;
  }
  .cms-form .cms-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cms-grid,
  .cms-grid--related {
    grid-template-columns: 1fr;
  }
}

