/*
 * Obrazy Číhalová: the shop's own look, layered over the niara theme.
 * Loaded last from header.tpl, so plain selectors override the theme and modules.
 * Remove the <link> to obrazy.css in header.tpl to go back to the stock theme.
 */

:root {
  --oc-paper: #f7f3ec;
  --oc-card: #ffffff;
  --oc-ink: #2b2420;
  --oc-muted: #6f655d;
  --oc-line: #e4dccf;
  --oc-gold: #a8792f;
  --oc-gold-dark: #8a6224;
  --oc-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --oc-sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--oc-paper);
  color: var(--oc-ink);
  font-family: var(--oc-sans);
}

a { color: var(--oc-ink); }
a:hover, a:focus { color: var(--oc-gold-dark); }

h1, h2, h3, .page-heading, .title_block {
  font-family: var(--oc-serif);
  color: var(--oc-ink);
}

/* ---------- Header ---------- */

#header { background: var(--oc-paper); }

#header > .navbar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--oc-line);
  min-height: 0;
  margin-bottom: 0;
}
#header > .navbar .navbar-nav > li > a {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--oc-muted);
}
#header > .navbar .navbar-nav > li > a:hover { color: var(--oc-ink); }

#header-blocks { padding-top: 18px; padding-bottom: 6px; }
#header-blocks > .row { display: flex; flex-wrap: wrap; align-items: center; }

#shop-logo img {
  max-width: 190px;
  height: auto;
  /* the logo is a JPG on white: let the paper show through it */
  mix-blend-mode: multiply;
}

#search_block_top { margin-top: 0; }
#search_block_top .input-group {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  overflow: hidden;
}
#search_block_top .form-control,
#search_block_top .btn {
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 42px;
  font-size: 14px;
}
#search_block_top .form-control { padding-left: 18px; color: var(--oc-ink); }
#search_block_top .btn { color: var(--oc-muted); padding: 0 16px; }

#blockcart-header { color: var(--oc-ink); }
#blockcart-header .ajax_cart_quantity { background: var(--oc-gold); color: #fff; }

/* main menu: its own full-width line under the logo, search and cart */
#header-blocks > .row > nav { flex: 0 0 100%; width: 100%; padding: 0 15px; }
#block_top_menu { float: none; width: 100%; }

/* main menu */
#block_top_menu { padding: 0; margin-top: 10px; border-top: 1px solid var(--oc-line); }
#block_top_menu .sf-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  float: none;
  border: 0;
  background: transparent;
}
#block_top_menu .sf-menu > li { float: none; border: 0; }
#block_top_menu .sf-menu > li > a {
  background: transparent !important;
  color: var(--oc-ink) !important;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 2px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
}
#block_top_menu .sf-menu > li > a:hover,
#block_top_menu .sf-menu > li.sfHover > a,
#block_top_menu .sf-menu > li.sfHoverForce > a {
  border-bottom-color: var(--oc-gold);
  color: var(--oc-gold-dark) !important;
}
#block_top_menu .cat-title {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  color: var(--oc-ink);
  font-family: var(--oc-sans);
}

/* ---------- Homepage intro ---------- */

.oc-hero {
  text-align: center;
  max-width: 760px;
  margin: 28px auto 8px;
  padding: 0 16px;
}
.oc-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--oc-gold-dark);
}
.oc-hero-title {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
}
.oc-hero-lead {
  margin: 16px auto 26px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--oc-muted);
}
.oc-hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.oc-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--oc-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--oc-ink);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.oc-btn:hover, .oc-btn:focus { background: var(--oc-ink); color: #fff; text-decoration: none; }
.oc-btn-primary { background: var(--oc-ink); color: #fff; }
.oc-btn-primary:hover, .oc-btn-primary:focus { background: var(--oc-gold-dark); border-color: var(--oc-gold-dark); color: #fff; }

/* "Naše produkty" heading from the homefeatured module */
.tm-hp { margin: 48px 0 8px; }
.tm-hp h2, .tm-hp h2 .tm-over {
  font-family: var(--oc-serif);
  font-size: 34px;
  font-weight: 500;
  text-transform: none;
}
.tm-hp h2:before { border-color: var(--oc-line); }
/* the text covers the middle of the line, so it needs the page colour behind it */
.tm-hp h2 .tm-over { background: var(--oc-paper); padding: 0 28px; }

/* ---------- Product grid (homepage and categories) ---------- */

ul.product_list.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin: 24px 0 40px;
  padding: 0;
}
ul.product_list.grid:before, ul.product_list.grid:after { display: none; }
ul.product_list.grid > li {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}
ul.product_list.grid .product-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  padding: 14px 14px 18px;
  margin: 0;
  transition: box-shadow .2s, transform .2s;
}
ul.product_list.grid .product-container:hover {
  box-shadow: 0 10px 28px rgba(43, 36, 32, .12);
  transform: translateY(-2px);
}
ul.product_list.grid .product-image-container { margin: 0 0 12px; padding: 0; border: 0; }
ul.product_list.grid .product-image-container img { width: 100%; height: auto; }
ul.product_list.grid .quick-view { display: none !important; }
ul.product_list.grid .product-description-container { flex: 1; }
ul.product_list.grid .product-name,
ul.product_list.grid h3.product-name a {
  font-family: var(--oc-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  color: var(--oc-ink);
  margin: 0;
}
ul.product_list.grid .product-actions-container,
ul.product_list.grid .product-price-button-wrapper { position: static; opacity: 1; visibility: visible; }
ul.product_list.grid .content_price { margin: 6px 0 12px; }
ul.product_list.grid .product-price {
  font-family: var(--oc-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--oc-gold-dark);
}
/* always show the basket button (the theme only showed it on hover) */
ul.product_list.grid .button-container {
  display: block !important;
  position: static;
  opacity: 1;
  visibility: visible;
}
ul.product_list.grid .ajax_add_to_cart_button {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--oc-ink);
  border-radius: 999px;
  color: var(--oc-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
}
ul.product_list.grid .ajax_add_to_cart_button:hover,
ul.product_list.grid .ajax_add_to_cart_button:focus {
  background: var(--oc-ink);
  color: #fff;
}
ul.product_list.grid .ajax_add_to_cart_button .icon { margin-right: 6px; }

/* ---------- Category pages ---------- */

/* the left column only holds the "Informace" links, whose pages are still demo text */
body.category #left_column { display: none; }
body.category #center_column { width: 100%; }

#category-info .page-heading,
#category-info .cat-name {
  font-size: 44px;
  font-weight: 500;
  text-transform: none;
  border: 0;
  text-align: center;
  margin: 10px 0 0;
}
#category-products > .page-heading { display: none; }
#product-list-switcher { display: none; }
.content_sortPagiBar { border: 0; }
.content_sortPagiBar .form-control {
  background: var(--oc-card);
  border-color: var(--oc-line);
  border-radius: 999px;
}

.breadcrumb { background: transparent; padding-left: 0; font-size: 13px; }
.breadcrumb a { color: var(--oc-muted); }

/* ---------- Product page ---------- */

body.product .primary_block { margin-top: 10px; }
body.product #image-block {
  background: var(--oc-card);
  border: 1px solid var(--oc-line);
  border-radius: 0;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(43, 36, 32, .08);
}
body.product .pb-center-column { padding-left: 40px; }
body.product .pb-center-column h1 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: none;
  margin: 8px 0 18px;
}
/* stock code and "new product" mean nothing to someone buying a painting */
body.product #product_reference,
body.product #product_condition { display: none; }
body.product .our_price_display { font-size: 15px; color: var(--oc-muted); }
body.product #our_price_display {
  font-family: var(--oc-sans);
  font-size: 30px;
  font-weight: 600;
  color: var(--oc-gold-dark);
  margin-right: 4px;
}
/* each painting is one piece; quantity can still be changed in the cart */
body.product #quantity_wanted_p { display: none; }
body.product .box-info-product { background: transparent; border: 0; padding: 0; }
body.product .btn-add-to-cart {
  background: var(--oc-ink);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 14px 28px;
  max-width: 320px;
}
body.product .btn-add-to-cart:hover, body.product .btn-add-to-cart:focus { background: var(--oc-gold-dark); }
body.product #usefull_link_block { margin-top: 22px; color: var(--oc-muted); }
body.product .product-question a { color: var(--oc-gold-dark); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */

#footer {
  background: var(--oc-ink);
  color: #d9cfc3;
  margin-top: 60px;
}
#footer a { color: #f1e9de; }
#footer a:hover { color: #e3c48d; }
#footer .footer-title, #footer h2 {
  font-family: var(--oc-serif);
  font-size: 22px;
  text-transform: none;
  color: #fff;
}
/* the social links still point to another business (set in the blocksocial module) */
#footer #blocksocial { display: none; }

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  #header-blocks > .row { justify-content: center; }
  #header-blocks > .row > div { flex: 0 0 100%; width: 100%; }
  #blockcart { text-align: center; float: none; margin: 4px 0 10px; }
  #block_top_menu .cat-title {
    position: relative;
    padding: 12px 48px 12px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
  }
  #block_top_menu .cat-title:after { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
  #shop-logo img { max-width: 150px; }
  #search_block_top { margin: 12px 0 6px; }
  #block_top_menu .sf-menu { display: none; gap: 0; }
  #block_top_menu .sf-menu > li { width: 100%; text-align: center; }

  .oc-hero { margin-top: 16px; }
  .oc-hero-title { font-size: 36px; }
  .oc-hero-lead { font-size: 16px; }

  ul.product_list.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  ul.product_list.grid .product-container { padding: 8px 8px 12px; }
  ul.product_list.grid .product-name,
  ul.product_list.grid h3.product-name a { font-size: 17px; }
  ul.product_list.grid .product-price { font-size: 14px; }
  ul.product_list.grid .ajax_add_to_cart_button { font-size: 12px; padding: 6px 10px; }

  #category-info .page-heading, #category-info .cat-name { font-size: 34px; }
  body.product .pb-center-column { padding-left: 15px; }
  body.product .pb-center-column h1 { font-size: 34px; margin-top: 20px; }
  body.product .btn-add-to-cart { max-width: none; }
}

/* ---------- Compact layout (overrides the sizes above) ---------- */

/* desktop: logo, menu, search and cart on one header row */
@media (min-width: 768px) {
  #header-blocks { padding-top: 10px; padding-bottom: 10px; }
  #header-blocks > .row { flex-wrap: nowrap; gap: 0 20px; }
  #header-blocks > .row > div,
  #header-blocks > .row > nav { width: auto; float: none; }
  #shop-logo { order: 1; flex: 0 0 auto; }
  #header-blocks > .row > nav { order: 2; flex: 1 1 auto; padding: 0; }
  #search_block_top { order: 3; flex: 0 1 240px; }
  #header-blocks .row > div:has(> #blockcart) { order: 4; flex: 0 0 auto; }
  #shop-logo img { max-width: 110px; }
  #block_top_menu { margin: 0; border: 0; }
  #block_top_menu .sf-menu { gap: 0 22px; }
  #block_top_menu .sf-menu > li > a { padding: 8px 2px 6px; font-size: 13px; }
  #search_block_top .form-control, #search_block_top .btn { height: 36px; }
  #header { border-bottom: 1px solid var(--oc-line); }
}

.oc-hero { margin: 22px auto 0; }
.oc-eyebrow { margin-bottom: 4px; font-size: 12px; }
.oc-hero-title { font-size: 40px; }
.oc-hero-lead { margin: 10px auto 16px; font-size: 15px; }
.oc-btn { padding: 8px 18px; font-size: 13px; }

.tm-hp { margin: 28px 0 0; }
.tm-hp h2, .tm-hp h2 .tm-over { font-size: 28px; }

ul.product_list.grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0 28px;
}
ul.product_list.grid .product-container { padding: 10px 10px 14px; }
ul.product_list.grid .product-image-container { margin-bottom: 8px; }
ul.product_list.grid .product-name,
ul.product_list.grid h3.product-name a { font-size: 18px; }
ul.product_list.grid .content_price { margin: 2px 0 8px; }
ul.product_list.grid .product-price { font-size: 15px; }
ul.product_list.grid .ajax_add_to_cart_button { padding: 5px 12px; font-size: 12px; }

#category-info .page-heading,
#category-info .cat-name { font-size: 34px; margin-top: 0; }
.breadcrumb { margin-bottom: 8px; }
body.product .pb-center-column h1 { font-size: 36px; margin-bottom: 12px; }
#footer { margin-top: 32px; }

/* phones: logo and basket on one line, search under them, then the menu */
@media (max-width: 767px) {
  /* the top bar only held the login link, which is also in the footer under "Můj účet" */
  #header > .navbar { display: none; }
  #header-blocks { padding-top: 10px; padding-bottom: 8px; }
  #header-blocks > .row { gap: 8px 0; }
  #header-blocks > .row > #shop-logo { order: 1; flex: 1 1 auto; width: auto; }
  #shop-logo img { max-width: 92px; margin: 0 !important; }
  #header-blocks > .row > div:has(> #blockcart) { order: 2; flex: 0 0 auto; width: auto; }
  #blockcart { margin: 0; text-align: right; }
  #header-blocks > .row > #search_block_top { order: 3; flex: 0 0 100%; margin: 0; }
  #search_block_top .form-control, #search_block_top .btn { height: 38px; }
  #header-blocks > .row > nav { order: 4; }
  #block_top_menu { margin-top: 0; border: 0; }
  #block_top_menu .cat-title { padding: 8px 44px 8px 14px; font-size: 13px; }

  .oc-hero { margin-top: 12px; }
  .oc-eyebrow { display: none; }
  .oc-hero-title { font-size: 28px; }
  .oc-hero-lead { margin: 6px auto 12px; font-size: 14px; line-height: 1.5; }
  .oc-hero-cats { gap: 6px; }
  .oc-btn { padding: 6px 13px; font-size: 12px; }

  .tm-hp { margin-top: 20px; }
  .tm-hp h2, .tm-hp h2 .tm-over { font-size: 24px; }
  .tm-hp h2 .tm-over { padding: 0 14px; }

  ul.product_list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  ul.product_list.grid .product-container { padding: 6px 6px 10px; }
  ul.product_list.grid .product-name,
  ul.product_list.grid h3.product-name a { font-size: 15px; }
  ul.product_list.grid .product-price { font-size: 13px; }
  ul.product_list.grid .ajax_add_to_cart_button { padding: 4px 9px; font-size: 11px; }
  ul.product_list.grid .ajax_add_to_cart_button .icon { margin-right: 3px; font-size: 1em; }
  #block_top_menu .cat-title:after { font-size: 18px; }

  #category-info .page-heading, #category-info .cat-name { font-size: 26px; }
  .content_sortPagiBar .form-group { margin-bottom: 6px; }
  #productsSortForm label, .product-count { display: none; }
  body.product #image-block { padding: 8px; }
  body.product .pb-center-column h1 { font-size: 26px; margin: 12px 0 8px; }
  body.product #our_price_display { font-size: 24px; }
  body.product .btn-add-to-cart { width: 100%; padding: 12px; }
  #footer { margin-top: 24px; }
}

/* ---------- Breathing room around the paintings ---------- */

ul.product_list.grid .product-image-container { padding: 18px 18px 6px; }
body.product #image-block { padding: 36px; }

@media (max-width: 767px) {
  ul.product_list.grid .product-image-container { padding: 10px 10px 4px; }
  body.product #image-block { padding: 20px; }
}

/* ---------- Mosaic (homepage and categories, product-mosaic.tpl) ---------- */

.oc-mosaic {
  column-count: 4;
  column-gap: 16px;
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
}
.oc-tile { break-inside: avoid; margin: 0 0 16px; }
.oc-tile-link { position: relative; display: block; overflow: hidden; }
.oc-tile img { display: block; width: 100%; height: auto; background: var(--oc-line); }
.oc-tile-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(28, 22, 18, .82), rgba(28, 22, 18, 0));
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.oc-tile-link:hover .oc-tile-info,
.oc-tile-link:focus-visible .oc-tile-info,
.oc-tile.oc-show .oc-tile-info { opacity: 1; transform: none; }
.oc-tile-name { font-family: var(--oc-serif); font-size: 19px; line-height: 1.2; }
.oc-tile-price { font-size: 14px; font-weight: 600; color: #f0d9a8; }

@media (max-width: 991px) { .oc-mosaic { column-count: 3; } }
@media (max-width: 767px) {
  .oc-mosaic { column-count: 2; column-gap: 8px; margin-top: 12px; }
  .oc-tile { margin-bottom: 8px; }
  .oc-tile-info { padding: 28px 9px 8px; }
  .oc-tile-name { font-size: 15px; }
  .oc-tile-price { font-size: 12px; }
}

/* ---------- Product page: the painting as large as fits, no frame ---------- */

body.product #image-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 12px 0 24px;
}
body.product #bigpic img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
}
body.product #image-block .span_link { display: none; }
body.product .pb-center-column { padding-top: 12px; }
@media (max-width: 767px) {
  body.product #image-block { padding: 0; margin: 6px 0 12px; }
  body.product #bigpic img { max-height: 70vh; }
}

/* ---------- Basket button ---------- */

#blockcart { float: right; }
#blockcart-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  line-height: 1;
  padding: 0 16px 0 14px;
  overflow: visible;
  border: 1px solid var(--oc-ink);
  border-radius: 999px;
  color: var(--oc-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
/* outline bag icon, drawn in the text colour */
#blockcart-header:before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
#blockcart-header:hover, #blockcart-header:focus { background: var(--oc-ink); color: #fff; }
#blockcart-header:hover:before { color: inherit; }
#blockcart-header b { font-weight: 600; }
#blockcart-header .ajax_cart_quantity {
  position: static;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0 6px;
  line-height: 1;
  border-radius: 999px;
  background: var(--oc-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  #blockcart-header { height: 38px; padding: 0 12px; gap: 8px; font-size: 13px; }
}

/* ---------- Mosaic: never taller than the screen ---------- */

.oc-tile { text-align: center; }
.oc-tile-link { display: inline-block; max-width: 100%; vertical-align: top; }
.oc-tile img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
}
body.product #bigpic img { max-height: calc(100vh - 140px); }
@media (max-width: 767px) {
  .oc-tile img { max-height: 75vh; }
  body.product #bigpic img { max-height: 75vh; }
}
#blockcart-header:before, #blockcart-header:hover:before { color: inherit; }
#blockcart { margin: 0; padding: 0; }
#header-blocks > .row > div:has(> #blockcart) { display: flex; justify-content: flex-end; align-items: center; }
.tm-hp { margin-top: 18px; }

/* ---------- Fixed size and blurred preview while photos load ----------
 * --r (width/height) and --ph (16 px preview) come from obrazy-tiles.css, one class per photo.
 * The box gets its final size from --r before the photo arrives, so nothing jumps.
 */

.oc-tile-link,
body.product #bigpic {
  --oc-max-h: calc(100vh - 120px);
  position: relative;
  display: block;
  width: min(100%, calc(var(--oc-max-h) * var(--r, 1)));
  max-width: none;
  aspect-ratio: var(--r, 1);
  margin: 0 auto;
  overflow: hidden;
  background: var(--oc-line);
}
body.product #bigpic { --oc-max-h: calc(100vh - 140px); }

/* the blurred preview */
.oc-tile-link:before,
body.product #bigpic:before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--ph, none) center / cover no-repeat;
  filter: blur(16px);
}

/* painting name, shown until the photo is in */
.oc-tile-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-family: var(--oc-serif);
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  transition: opacity .3s;
  animation: oc-pulse 1.6s ease-in-out infinite;
}
@keyframes oc-pulse { 50% { opacity: .55; } }

.oc-tile-link img,
body.product #bigpic img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s ease;
}
.oc-loaded img, body.product #bigpic.oc-loaded img { opacity: 1; }
.oc-loaded .oc-tile-loading { opacity: 0; animation: none; }
.oc-tile-info { z-index: 3; }

@media (max-width: 767px) {
  .oc-tile-link, body.product #bigpic { --oc-max-h: 75vh; }
  .oc-tile-link img, body.product #bigpic img { max-height: none; }
  .oc-tile-loading { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-tile-loading { animation: none; }
  .oc-tile-link img, body.product #bigpic img { transition: none; }
}

/* the homepage starts straight with the mosaic */
body.index .oc-mosaic { margin-top: 24px; }

/* category pages: the highlighted menu item already says where you are */
body.category .breadcrumb,
body.category #category-info,
body.category .content_sortPagiBar .sortPagiBar,
body.category .content_sortPagiBar .product-count { display: none; }
body.category .oc-mosaic { margin-top: 24px; }

/* ---------- Background: the paintings themselves, blurred ----------
 * .oc-backdrop is filled by product-mosaic.tpl (first 12 paintings) and product.tpl (that painting).
 * Pages without it keep the plain paper colour.
 */

.oc-backdrop {
  position: fixed;
  inset: -120px;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  /* the 16 px previews are already soft when stretched; a light blur hides their pixels */
  filter: blur(28px);
  transform: translateZ(0);
  pointer-events: none;
}
.oc-backdrop span { background: var(--ph, none) center / cover no-repeat; }
.oc-backdrop-single { grid-template-columns: 1fr; }
/* a light veil so text stays readable over the colours */
.oc-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, .3);
}
body:has(.oc-backdrop) { background: #2b2420; }
body:has(.oc-backdrop) #columns,
body:has(.oc-backdrop) #center_column { background: transparent; }

/* header: a darker frosted band over the colours */
#header {
  position: relative;
  z-index: 10;
  background: rgba(24, 19, 16, .62);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}
#header > .navbar { border-bottom-color: rgba(255, 255, 255, .08); }
#header > .navbar .navbar-nav > li > a { color: rgba(255, 255, 255, .7); }
#header > .navbar .navbar-nav > li > a:hover { color: #fff; }
/* the logo is black on white: invert it and let the (now black) paper vanish */
#shop-logo img { filter: invert(1); mix-blend-mode: screen; }
#block_top_menu .sf-menu > li > a { color: rgba(255, 255, 255, .88) !important; }
#block_top_menu .sf-menu > li > a:hover,
#block_top_menu .sf-menu > li.sfHover > a,
#block_top_menu .sf-menu > li.sfHoverForce > a { color: #f0d9a8 !important; border-bottom-color: #e3c48d; }
#search_block_top .input-group { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
#search_block_top .form-control { color: #fff; }
#search_block_top .form-control::placeholder { color: rgba(255, 255, 255, .6); }
#search_block_top .btn { color: rgba(255, 255, 255, .75); }
#blockcart-header { color: #fff; border-color: rgba(255, 255, 255, .55); }
#blockcart-header:hover, #blockcart-header:focus { background: #fff; color: var(--oc-ink); }
#block_top_menu .cat-title {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
@media (max-width: 767px) {
  #block_top_menu .sf-menu { background: rgba(24, 19, 16, .9); }
}

/* product page: the text sits on a soft frosted card */
body.product .pb-center-column > h1,
body.product .pb-center-column { position: relative; }
body.product .pb-center-column {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 22px 28px 26px;
  margin-top: 12px;
}
/* no breadcrumb on product pages: the menu already shows the category */
body.product .breadcrumb { display: none; }
/* white logo for the dark header (img/logo-light.png, made from the shop logo) */
#shop-logo a {
  display: block;
  width: 110px;
  aspect-ratio: 437 / 271;
  background: url(../img/logo-light.png) left center / contain no-repeat;
}
#shop-logo img { opacity: 0; filter: none; mix-blend-mode: normal; }
@media (max-width: 767px) { #shop-logo a { width: 88px; } }

/* the blurred preview is only needed until the photo is in */
.oc-loaded:before, body.product #bigpic.oc-loaded:before { display: none; }

/* ---------- Product page: title above the painting, buy panel like the header ---------- */

body.product .oc-product-title {
  margin: 18px 0 14px;
  text-align: center;
  font-family: var(--oc-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: none;
  color: var(--oc-ink);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .5);
}
body.product .pb-center-column {
  margin-top: 84px;
  padding: 26px 28px;
  border-radius: 14px;
  background: rgba(24, 19, 16, .62);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, .8);
}
body.product .our_price_display { margin: 0 0 18px; color: rgba(255, 255, 255, .65); font-size: 14px; }
body.product #our_price_display {
  display: block;
  margin: 0 0 2px;
  font-family: var(--oc-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  color: #f0d9a8;
}
body.product #add_to_cart { margin: 0; }
body.product .btn-add-to-cart,
body.product .btn-add-to-cart:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-family: var(--oc-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .15s, color .15s;
}
body.product .btn-add-to-cart .icon { display: none; }
body.product .btn-add-to-cart:before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.product .btn-add-to-cart:hover,
body.product .btn-add-to-cart:focus { background: #fff; border-color: #fff; color: var(--oc-ink); }
body.product #usefull_link_block { margin: 18px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
body.product .product-question a { color: #f0d9a8; }

@media (max-width: 767px) {
  body.product .oc-product-title { font-size: 30px; margin: 12px 0 10px; }
  body.product .pb-center-column { margin: 16px 15px 0; padding: 20px; }
  body.product #our_price_display { font-size: 32px; }
}
body.product .oc-product-title { text-shadow: none; }
body.product #add_to_cart, body.product .box-cart-bottom, body.product .box-cart-bottom > div { display: block; width: 100%; float: none; }
body.product #add_to_cart .btn-add-to-cart { display: flex; }
@media (max-width: 767px) { body.product .pb-center-column { margin: 16px 0 0; } }

/* ---------- Product page, calmer version: no panel, text straight on the background ---------- */
body.product .primary_block { display: flex; flex-wrap: wrap; align-items: center; }
body.product .primary_block > .pb-left-column,
body.product .primary_block > .pb-center-column { float: none; }
body.product .pb-center-column {
  margin: 0;
  padding: 0 0 0 48px;
  background: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-radius: 0;
  color: var(--oc-ink);
}
body.product .oc-product-title { margin: 22px 0 18px; font-size: 40px; }
body.product .our_price_display { margin: 0 0 22px; color: var(--oc-muted); font-size: 13px; letter-spacing: .04em; }
body.product #our_price_display { font-size: 38px; color: var(--oc-ink); margin-bottom: 4px; }
body.product #add_to_cart .btn-add-to-cart,
body.product .btn-add-to-cart:active {
  max-width: 300px;
  height: 50px;
  border: 0;
  background: var(--oc-ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 36, 32, .22);
}
body.product .btn-add-to-cart:hover,
body.product .btn-add-to-cart:focus { background: var(--oc-gold-dark); color: #fff; }
body.product #usefull_link_block { margin-top: 16px; color: var(--oc-ink); }
body.product .product-question a { color: var(--oc-ink); }

@media (max-width: 767px) {
  body.product .pb-center-column { padding: 4px 15px 0; text-align: center; }
  body.product #add_to_cart .btn-add-to-cart { max-width: none; }
  body.product .oc-product-title { font-size: 30px; margin: 14px 0 12px; }
  body.product #our_price_display { font-size: 32px; }
}

/* phones: only four menu items, so show them all in one row instead of the "Nabídka" toggle */
@media (max-width: 767px) {
  #block_top_menu .cat-title { display: none !important; }
  #block_top_menu .sf-menu {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    background: transparent;
    border: 0;
  }
  #block_top_menu .sf-menu > li { width: auto; flex: 0 1 auto; border: 0; }
  #block_top_menu .sf-menu > li > a {
    padding: 8px 2px 6px;
    font-size: 12px;
    letter-spacing: .1em;
    border-bottom-width: 2px;
  }
  #block_top_menu .sf-menu > li > ul { display: none !important; }
}

/* ---------- Background scrolls with the paintings ---------- */
body:has(.oc-backdrop) { position: relative; }
.oc-backdrop { position: absolute; inset: 0; overflow: hidden; }
.oc-backdrop span { transform: scale(1.25); }

/* ---------- Basket dropdown (hover on a computer) ---------- */
#blockcart-dropdown {
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(24, 19, 16, .92);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  color: rgba(255, 255, 255, .85);
  text-align: left;
}
#blockcart-dropdown dl.products { margin: 0 0 12px; }
#blockcart-dropdown dt {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-weight: 400;
}
#blockcart-dropdown .cart-images { flex: 0 0 56px; float: none; margin: 0; }
#blockcart-dropdown .cart-images img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
#blockcart-dropdown .cart-info { flex: 1; float: none; padding: 0; min-width: 0; }
#blockcart-dropdown .product-name, #blockcart-dropdown .product-name a {
  font-family: var(--oc-serif);
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
}
#blockcart-dropdown .quantity-formatted { display: none; }
#blockcart-dropdown .price { float: none; margin-top: 2px; font-weight: 600; color: #f0d9a8; }
#blockcart-dropdown .remove_link { position: static; }
#blockcart-dropdown .cart-prices-line {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border: 0;
  color: rgba(255, 255, 255, .7);
}
#blockcart-dropdown .cart-prices-line .price { color: #fff; font-weight: 600; }
#blockcart-dropdown .cart_block_no_products { color: rgba(255, 255, 255, .7); }
#blockcart-dropdown .cart-buttons { margin-top: 14px; }
#button_order_cart, #button_order_cart:active {
  display: block;
  height: 44px;
  line-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f0d9a8;
  color: var(--oc-ink);
  font-weight: 600;
  text-align: center;
}
#button_order_cart:hover { background: #fff; color: var(--oc-ink); }

/* ---------- "Added to basket" popup ---------- */
#layer_cart {
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background: var(--oc-paper);
}
#layer_cart .layer_cart_product, #layer_cart .layer_cart_cart { background: transparent; border: 0; padding: 28px; }
#layer_cart .layer_cart_cart { background: rgba(24, 19, 16, .04); }
#layer_cart .cart-title { color: var(--oc-ink); font-family: var(--oc-serif); font-size: 24px; font-weight: 500; }
#layer_cart .cart-title .icon { color: var(--oc-gold); }
#layer_cart .layer_cart_img img { border-radius: 6px; }
#layer_cart .product-name { font-family: var(--oc-serif); font-size: 20px; color: var(--oc-ink); }
#layer_cart .layer_cart_cart .title { font-family: var(--oc-serif); font-size: 22px; color: var(--oc-ink); }
#layer_cart .pager { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
#layer_cart .pager li { float: none; }
#layer_cart .pager li > a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--oc-ink);
  background: transparent;
  color: var(--oc-ink);
  font-weight: 600;
}
#layer_cart .pager .next > a { background: var(--oc-ink); color: #fff; }
#layer_cart .pager li > a:hover { background: var(--oc-gold-dark); border-color: var(--oc-gold-dark); color: #fff; }

/* ---------- Basket page ---------- */
body#order .breadcrumb, body#order-opc .breadcrumb { display: none; }
body#order .page-heading, body#order-opc .page-heading {
  font-family: var(--oc-serif);
  font-size: 40px;
  font-weight: 500;
  text-transform: none;
  border: 0;
  margin: 28px 0 18px;
}
body#order .page-heading .heading-counter { display: none; }
#order_step { display: flex; gap: 6px; margin: 0 0 24px; }
#order_step > li { float: none; flex: 1; margin: 0; }
#order_step > li > a, #order_step > li > span {
  display: block;
  padding: 10px 6px;
  border-radius: 999px;
  background: transparent;
  color: var(--oc-muted);
  font-size: 13px;
  text-align: center;
}
#order_step .completed { background: transparent; }
#order_step .completed > a, #order_step .completed > span { color: var(--oc-ink); }
#order_step > li.active > a, #order_step > li.active > span { background: var(--oc-ink); color: #fff; }

#cart_summary { border: 0; background: var(--oc-card); border-radius: 14px; overflow: hidden; }
#cart_summary > thead > tr > th {
  border: 0;
  background: transparent;
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#cart_summary > tbody > tr > td, #cart_summary > tfoot > tr > td { border: 0; border-top: 1px solid var(--oc-line); vertical-align: middle; }
#cart_summary .cart_product img { width: 90px; height: auto; border-radius: 6px; }
#cart_summary .product-name, #cart_summary .product-name a { font-family: var(--oc-serif); font-size: 21px; color: var(--oc-ink); }
#cart_summary .cart_ref { display: none; }
#cart_summary .cart_quantity_button .btn,
#cart_summary .cart_quantity_input { border-radius: 999px; border-color: var(--oc-line); }
#cart_summary .cart_quantity_delete { color: var(--oc-muted); font-size: 1.4em; }
#cart_summary .cart_quantity_delete:hover { color: #b3402e; }
#cart_summary #total_price_container, #cart_summary #total_price { font-family: var(--oc-serif); font-size: 30px; color: var(--oc-ink); }
.cart_navigation { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cart_navigation .btn {
  float: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.cart_navigation .btn-default { order: 1; background: transparent; border: 1px solid var(--oc-ink); color: var(--oc-ink); }
.cart_navigation .btn-success, .cart_navigation .standard-checkout { order: 2; background: var(--oc-ink); border: 0; color: #fff; }
.cart_navigation .btn:hover { background: var(--oc-gold-dark); border-color: var(--oc-gold-dark); color: #fff; }
.cart_navigation .icon { font-size: .8em; }

@media (max-width: 767px) {
  body#order .page-heading { font-size: 30px; margin-top: 18px; }
  #order_step { overflow-x: auto; }
  #order_step > li > a, #order_step > li > span { white-space: nowrap; padding: 8px 12px; font-size: 12px; }
  .cart_navigation .btn { width: 100%; justify-content: center; }
  .cart_navigation .standard-checkout { order: 0; }
}

/* basket fixes */
#blockcart-dropdown .cart-info .price { position: static; display: block; text-align: left; }
#blockcart-dropdown .cart-images, #layer_cart .layer_cart_img, #cart_summary .cart_product a { display: block; overflow: hidden; border-radius: 6px; }
/* thumbnails are squares padded with white: zoom in past the padding */
#blockcart-dropdown .cart-images img, #layer_cart .layer_cart_img img, #cart_summary .cart_product img { transform: scale(1.3); border-radius: 0; }
#layer_cart .layer_cart_img { width: 128px; padding: 0; border: 0; }
/* pages without the painting background: solid dark header instead of grey */
body:not(:has(.oc-backdrop)) #header { background: #2b2420; }
#cart_summary th.cart_product { font-size: 0; }
.cart_navigation .btn-default { margin-right: auto; }

@media (max-width: 767px) {
  #cart_summary, #cart_summary tbody, #cart_summary tfoot { display: block; }
  #cart_summary thead { display: none; }
  #cart_summary tbody tr {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    grid-template-areas: "img name del" "img total total";
    gap: 4px 12px;
    align-items: center;
    padding: 14px;
    border-top: 1px solid var(--oc-line);
  }
  #cart_summary tbody tr:first-child { border-top: 0; }
  #cart_summary tbody td { display: block; border: 0 !important; padding: 0 !important; width: auto !important; }
  #cart_summary tbody td:before { display: none; }
  #cart_summary td.cart_product { grid-area: img; }
  #cart_summary td.cart_description { grid-area: name; }
  #cart_summary td.cart_delete { grid-area: del; }
  #cart_summary td.cart_total { grid-area: total; text-align: left !important; font-weight: 600; color: var(--oc-gold-dark); }
  #cart_summary td.cart_unit, #cart_summary td.cart_avail, #cart_summary td.cart_quantity { display: none; }
  #cart_summary .product-name, #cart_summary .product-name a { font-size: 18px; }
  #cart_summary tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--oc-line); }
  #cart_summary tfoot td { display: block; border: 0 !important; padding: 0 !important; }
  #cart_summary tfoot td:empty, #cart_summary tfoot td[colspan]:not(.text-right):not([id]) { display: none; }
  #cart_summary tfoot tr[style*="none"], #cart_summary tfoot tr.unvisible { display: none; }
  #cart_summary #total_price_container, #cart_summary #total_price { font-size: 24px; }
}
@media (max-width: 767px) {
  /* tfoot comes before tbody in the markup: show the paintings first, totals under them */
  #cart_summary { display: flex; flex-direction: column; }
  #cart_summary tbody { order: 1; }
  #cart_summary tfoot { order: 2; border-top: 1px solid var(--oc-line); }
}

/* backdrop v2: outer box clips, inner box is larger and blurred, so edges never fade to dark */
.oc-backdrop { position: absolute; inset: 0; overflow: hidden; display: block; filter: none; transform: none; }
.oc-backdrop-in {
  position: absolute;
  inset: -80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  filter: blur(28px);
  transform: translateZ(0);
}
.oc-backdrop-single .oc-backdrop-in { grid-template-columns: 1fr; }
.oc-backdrop span { transform: none; }
.oc-backdrop:after { z-index: 1; }
@media (max-width: 767px) { .oc-backdrop-in { grid-template-columns: repeat(2, 1fr); } }
body:has(.oc-backdrop) { background: var(--oc-paper); }

/* basket count: Raleway's default old-style digits sit low, so use lining figures and centre exactly */
#blockcart-header .ajax_cart_quantity {
  font-family: var(--oc-sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 22px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- Painting size, drawn to scale (product.tpl, .oc-size) ---------- */
.oc-size { margin: 26px 0 0; }
.oc-size-text { margin: 0 0 10px; color: var(--oc-ink); font-size: 15px; }
.oc-size-text strong { font-family: var(--oc-serif); font-size: 22px; font-weight: 500; margin: 0 4px; }
.oc-size-text span { color: var(--oc-muted); font-size: 12px; }
.oc-size-scene {
  --k: 1.1px;                      /* 1 cm on the wall */
  position: relative;
  width: calc((40 + 24 + var(--w)) * var(--k) + 20px);
  max-width: 100%;
  height: calc(200 * var(--k));
  border-bottom: 2px solid rgba(43, 36, 32, .35);
}
.oc-size-person {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(40 * var(--k));
  height: calc(170 * var(--k));
  fill: rgba(43, 36, 32, .45);
}
.oc-size-art {
  position: absolute;
  left: calc(64 * var(--k));
  bottom: calc((150 - var(--h) / 2) * var(--k));
  width: calc(var(--w) * var(--k));
  height: calc(var(--h) * var(--k));
  background: var(--ph, var(--oc-line)) center / cover no-repeat;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.oc-size-label {
  position: absolute;
  left: calc(42 * var(--k));
  top: calc(30 * var(--k));
  font-size: 10px;
  color: var(--oc-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.oc-tile-size { font-size: 12px; color: rgba(255, 255, 255, .8); }
@media (max-width: 767px) {
  .oc-size-scene { margin: 0 auto; }
  .oc-tile-size { font-size: 11px; }
}

/* ---------- Full-screen painting (product.tpl, .oc-lightbox): any click or Esc closes ---------- */
a.oc-zoom { cursor: zoom-in; }
.oc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 7, .9);
  cursor: zoom-out;
  animation: oc-fade .2s ease;
}
.oc-lightbox img {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes oc-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .oc-lightbox { animation: none; } }
