/*
Theme Name:   	Storefront Child Theme
Theme URI:    	https://github.com/stuartduff/storefront-child-theme
Author:       	Stuart Duff
Author URI:		http://stuartduff.com
Template:     	storefront
Description:  	This is a blank child theme for WooThemes StoreFront theme
Version:      	1.0.14
License:      	GNU General Public License v2 or later
License URI:  	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  	storefront
Tags:         	black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Storefront is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.
Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
FontAwesome License: SIL Open Font License - http://scripts.sil.org/SIL
Images License: GNU General Public License v2 or later
*/
/*
 * Add your own custom css below this text.
 */

/****************** SITE BACKGROUND (moved from theme-setup.php; it used to print in <head> before this stylesheet, so it stays first) ******************/
/* Natvrdo prepíšeme pozadie html aj body elementu */
html,
body.custom-background,
/* Prebije triedu Customizera, ak by bola aktívna */
body {
  background-image: url("assets/images/background.png") !important;

  /* --- ŠTÝLOVANIE SPRÁVANIA POZADIA --- */
  background-repeat: repeat !important;
  /* Ak ide o opakujúcu sa textúru papiera/dreva */
  background-position: top center !important;
  background-attachment: scroll !important;
  /* 'fixed', ak chcete, aby pozadie pri rolovaní stálo */
  background-size: auto !important;
  /* Zmeňte na 'cover', ak ide o jednu veľkú fotku na celú obrazovku */

  background-color: #f4f3f1 !important;
  /* Bezpečný záložný jednoliaty odtieň pred načítaním obrázka */
}

/* ===== Fonts: EB Garamond, self-hosted (no @import = no render-blocking chain) =====
   Files live in ./fonts/ next to this stylesheet. The main latin file is
   preloaded from functions.php (see the snippet at the end of the notes).
   Latin-Extended covers Slovak diacritics. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Georgia resized to EB Garamond's exact proportions (metrics from Capsize:
   average glyph width, ascent, descent), one face per weight/style the site
   uses, so if the swap ever happens the text and menu don't move.
   500 = menu links, 600 = menu group leaders, italic = emphasis/quotes. */
@font-face {
  font-family: "EB Garamond Fallback";
  font-style: normal;
  font-weight: 500;
  src: local("Georgia");
  size-adjust: 89.5%;
  ascent-override: 112.5%;
  descent-override: 33.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "EB Garamond Fallback";
  font-style: normal;
  font-weight: 600;
  src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 79.3%;
  ascent-override: 127%;
  descent-override: 37.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "EB Garamond Fallback";
  font-style: italic;
  font-weight: 400;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 82.7%;
  ascent-override: 121.8%;
  descent-override: 36%;
  line-gap-override: 0%;
}

/* ===== Design palette — tweak these to retheme product page,
   spec table, header bars, recommended sections and links ===== */
:root {
  --sv-heading: #1a1a1a; /* titles + thick left bar of header boxes */
  --sv-text: #333; /* body values in the spec table */
  --sv-author: #6b5d4a; /* author name under the title */
  --sv-label: #8a7f70; /* small uppercase labels in the spec table */

  --sv-surface-accent: #f1e9dd; /* header boxes + genre pills */
  --sv-surface-accent-hover: #e8dcc8; /* genre pill on hover */
  --sv-pill-text: #7a5a34; /* text inside genre pills */

  --sv-card-bg: #fff; /* spec table background */
  --sv-card-border: #e6dfd3; /* spec table outline */
  --sv-divider: #eee7da; /* hairlines between spec groups */
  --sv-card-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);

  --sv-link: #9c5b28; /* links */
  --sv-link-hover: #63371a; /* links on hover (darker than --sv-link, clearly visible) */

  --sv-muted: #9a9a9a; /* language / publisher line on shop cards */

  --sv-product-card-bg: #fffdfb; /* shop grid card background */
  --sv-product-card-border: rgba(0, 0, 0, 0.08);
  --sv-product-card-border-hover: rgba(0, 0, 0, 0.16);

  --sv-accent: #dc9836; /* gold: add-to-cart button + other highlights */
  --sv-accent-hover: #c4842a;
  --sv-ribbon: #0b85d1; /* "NOVÉ" ribbon */

  /* shop card type scale */
  --sv-fs-card-title: 18px;
  --sv-fs-card-author: 15px;
  --sv-fs-card-meta: 12.5px; /* language / publisher */
  --sv-fs-card-pill: 11.5px; /* genre pills */
  --sv-fs-card-price: 19px;
  --sv-fs-card-button: 14px;
  --sv-card-btn-pad: 8px 16px; /* shop card cart button */
  --sv-fs-card-title-serif: 22px; /* shop card title (serif) */
  --sv-card-title: var(
    --sv-link-hover
  ); /* shop card title: a step darker than the author */
  --sv-card-title-hover: var(--sv-link);
  --sv-cover-frame-bg: #efe8da; /* shows beside / under narrow or short covers */
  --sv-cover-max-h: 190px;

  /* cart buttons: shop cards + single product page */
  --sv-on-accent: #1a1a1a; /* text on the gold "add to cart" button */
  --sv-btn-radius: 6px;
  --sv-btn-pad: 9px 18px;
  --sv-btn-weight: 600;
  /* secondary buttons (mini-cart "Zobraziť košík"): outlined, fills dark on hover */
  --sv-secondary-bg: transparent;
  --sv-secondary-text: var(--sv-heading);
  --sv-secondary-border: var(--sv-heading);
  --sv-secondary-hover-bg: var(--sv-heading);
  --sv-secondary-hover-text: #fff;
  --sv-remove-border: #c9a58a; /* "remove from cart" state */
  --sv-remove-text: #8a5a3a;
  --sv-remove-hover-bg: #fbeee5;
  --sv-remove-hover-border: #b3261e;
  --sv-remove-hover-text: #b3261e;

  /* mini-cart (header dropdown) */
  --sv-minicart-bg: var(
    --sv-surface-accent
  ); /* panel background: items + footer */
  --sv-minicart-footer-bg: var(
    --sv-minicart-bg
  ); /* subtotal + buttons area; set a different colour to make it stand out */
  --sv-minicart-divider: rgba(
    60,
    40,
    20,
    0.12
  ); /* lines between items + above subtotal */
  --sv-minicart-remove: #8a847d; /* the small remove (x) icon */
  --sv-icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); /* "Zobraziť košík" button icon */
  --sv-icon-cart-remove: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Ccircle cx='17.6' cy='6.4' r='6.4' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)'%3E%3Cpath transform='translate(0 4.4) scale(.8)' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/g%3E%3Cpath d='M14.6 3.4l6 6M20.6 3.4l-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); /* "Odobrať" button icon: a small cart with a bold x badge at the top right */
  --sv-icon-checkout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z'/%3E%3C/svg%3E"); /* "Pokladňa" button icon */
  --sv-minicart-row-h: 72px; /* minimum height of a product row */
  --sv-minicart-cover-w: 40px; /* cover thumbnail size */
  --sv-minicart-cover-h: 56px;
  --sv-minicart-shadow: 0 20px 16px -4px rgba(0, 0, 0, 0.28);
  --sv-shipping-remaining: #438bb7; /* free-shipping banner, not yet reached */

  /* form fields (account pages) */
  --sv-fieldset-shadow: 0 1px 4px rgba(60, 40, 20, 0.1); /* groups like "Zmena hesla" */
  --sv-field-bg: #faf7f2;
  --sv-field-border: #cfc5b4;

  /* notices */
  --sv-info: var(--sv-link); /* info bar + icon + links (was blue) */
  --sv-info-hover: var(--sv-link-hover);
  --sv-error: #d32f2f;

  --sv-success: #007e33; /* ✓ icons */
  --sv-icon-muted: #c9bfae; /* ✗ icons */

  /* header / account / cover variables (merged from later :root blocks) */
  --sv-header-bg: #f6efe2;
  --sv-header-rule: #e3d8c4;
  --sv-nav-bg: #2b2119;
  --sv-nav-text: #eadfca;
  --sv-nav-text-strong: #fff;
  --sv-nav-line: rgba(234, 223, 202, 0.16);
  --sv-nav-h: 56px;
  --sv-font-display:
    "EB Garamond", "EB Garamond Fallback", "Iowan Old Style", Georgia,
    "Times New Roman", serif;
  --sv-account-nav-w: 260px;
  --sv-account-nav-pad-x: 28px;
  --sv-cover-width: 130px;

  /* Listings: card without outer padding, so the footer strip can run edge to edge */
  --sv-article-pad-x: clamp(16px, 2.6vw, 26px);
  --sv-card-radius: 14px;
  /*
article cards, sidebar widgets
*/
  --sv-cat-clanok: #4f6b2f;
  --sv-cat-clanok-bg: #e9f0dc;
  --sv-cat-clanok-border: #cfdcb8;
  --sv-cat-recenzia: #8e3a3a;
  --sv-cat-recenzia-bg: #f5e1e0;
  --sv-cat-recenzia-border: #e6c3c1;
  --sv-cat-knihy: #9c5b28;
  --sv-cat-knihy-bg: #f7e6d0;
  --sv-cat-knihy-border: #ecd0aa;
  --sv-cat-platne: #1f5f7e;
  --sv-cat-platne-bg: #dcecf4;
  --sv-cat-platne-border: #bcd8e6;
}

/* Full width content on pages and shop (not blog) */
body.page #primary,
body.woocommerce #primary,
body.single-product #primary,
body.woocommerce-checkout #primary,
body.woocommerce-cart #primary {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Hide sidebar on non-blog pages */
body.page #secondary,
body.woocommerce #secondary,
body.single-product #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-cart #secondary {
  display: none !important;
}

/* Links reset */
.hentry .entry-content a {
  text-decoration: none;
}

/* main */
#content {
  min-height: 80vh;
  margin-top: 10px;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759,
    body.page-id-22963
  )
  .entry-content {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 24px clamp(20px, 4vw, 36px);
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #ffffff;
  color: #30302e;
  font-size: 17px;
  line-height: 1.55;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  > :first-child {
  margin-top: 0;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  > :last-child {
  margin-bottom: 0;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  h1,
:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  h2,
:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  h3 {
  color: #292622;
  font-weight: 700;
  line-height: 1.25;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  h1 {
  margin-bottom: 18px;
  font-size: 28px;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  h2 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 21px;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  p {
  margin: 0 0 16px;
  line-height: inherit;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
}

:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  ul,
:is(body.page-template-default, body.page-id-3, body.page-id-11):not(
    .woocommerce-page,
    body.page-id-21759
  )
  .entry-content
  ol {
  padding-left: 1.5em;
}

@media (max-width: 560px) {
  :is(body.page-template-default, body.page-id-3, body.page-id-11):not(
      .woocommerce-page,
      body.page-id-21759
    )
    .entry-content {
    margin-bottom: 28px;
    padding: 20px 18px;
    border-radius: 10px;
    font-size: 16px;
  }

  :is(body.page-template-default, body.page-id-3, body.page-id-11):not(
      .woocommerce-page,
      body.page-id-21759
    )
    .entry-content
    h1 {
    font-size: 25px;
  }

  :is(body.page-template-default, body.page-id-3, body.page-id-11):not(
      .woocommerce-page,
      body.page-id-21759
    )
    .entry-content
    h2 {
    margin-top: 24px;
    font-size: 20px;
  }
}

/* make it wider */
@media (min-width: 1200px) {
  .col-full {
    max-width: 1400px;
  }
}

/* ==========================================================================
   HEADER · SEARCH · MAIN MENU
   One consolidated block (replaces the former scattered header, search,
   main-menu and mobile-strip rules). Retheme from the variables below.
   ========================================================================== */

/* ---------- Focus: hidden for mouse clicks, clear for keyboard ---------- */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
#masthead a:focus-visible,
#masthead button:focus-visible,
#masthead input:focus-visible {
  outline: 2px solid var(--sv-accent);
  outline-offset: 2px;
}
.storefront-primary-navigation a:focus-visible {
  outline-offset: -3px;
}

/* ---------- Header shell ---------- */
#masthead.site-header {
  padding: 0;
  margin-bottom: 24px;
  border-bottom: 0;
  background: var(--sv-header-bg);
}
.site-header,
.site-header .col-full,
.site-header .storefront-primary-navigation {
  overflow: visible;
}
#masthead > .col-full::before,
#masthead > .col-full::after,
.storefront-primary-navigation > .col-full::before,
.storefront-primary-navigation > .col-full::after {
  display: none; /* Storefront clearfix would become a stray grid/flex item */
}

/* ---------- Branding ---------- */
#masthead .site-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  float: none;
  width: auto;
  margin: 0;
  padding: 6px 0 18px;
}
#masthead .site-branding .custom-logo-link {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}
#masthead .site-branding .custom-logo {
  display: block;
  width: 84px;
  height: 84px;
  max-width: 84px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
#masthead .site-branding .custom-logo-link:hover,
#masthead .site-branding .custom-logo-link:focus-visible {
  opacity: 1;
  background: transparent;
}
#masthead .site-branding-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
#masthead .site-branding .site-title,
#masthead .site-branding .site-description {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#masthead .site-branding .site-title {
  font-family: var(--sv-font-display);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
}
#masthead .site-branding .site-title a {
  color: var(--sv-heading);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
#masthead .site-branding .site-title a::before {
  display: none;
  content: none; /* drop Storefront's inherited icon */
}
#masthead .site-branding .site-title a:hover {
  color: var(--sv-link);
  opacity: 1;
}
#masthead .site-branding .site-description {
  font-family: var(--sv-font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--sv-author);
  opacity: 1;
}

/* ---------- Secondary menu (Doručenie / account) ---------- */
#masthead .secondary-navigation {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
#masthead .secondary-navigation ul.menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
#masthead .secondary-navigation ul.menu > li {
  margin: 0;
  padding: 0;
}
#masthead .secondary-navigation ul.menu > li > a {
  display: block;
  padding: 2px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sv-author);
  text-decoration: none;
  transition: color 0.2s ease;
}
#masthead .secondary-navigation ul.menu > li:last-child > a {
  padding-right: 0;
}
#masthead .secondary-navigation ul.menu > li > a:hover {
  color: var(--sv-link-hover);
  text-decoration: none;
}

/* ---------- Search ---------- */
/* Shared rules: every search form on the site (header, sidebar, 404 …) */
form[role="search"],
.woocommerce-product-search,
.search-form {
  position: relative !important;
  display: block !important;
}
body input[type="search"],
body .search-field {
  padding-left: 46px !important; /* room for the magnifier */
  padding-right: 44px !important; /* room for the clear button */
}
form[role="search"]::before,
form[role="search"]::after,
.woocommerce-product-search::before,
.woocommerce-product-search::after,
.search-form::before,
.search-form::after,
form[role="search"] label::before,
form[role="search"] label::after {
  position: absolute !important;
  top: 50% !important;
  left: 16px !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  pointer-events: none !important;
}
/* We draw our own clear button, so hide the native one */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}
.starysvet-native-clear-btn {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
  display: none; /* shown below while the field has text */
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--sv-surface-accent) !important;
  color: var(--sv-author) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  text-align: center;
  cursor: pointer !important;
  user-select: none !important;
  z-index: 6 !important;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.starysvet-native-clear-btn:hover {
  background: #c32121 !important;
  color: #fff !important;
}
/* It is a <button> rendered by PHP: neutralise the theme's button styles */
.starysvet-native-clear-btn {
  padding: 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Visible only while the field has text (the placeholder is always set) */
input[type="search"]:not(:placeholder-shown) ~ .starysvet-native-clear-btn,
input[name="s"]:not(:placeholder-shown) ~ .starysvet-native-clear-btn,
.search-field:not(:placeholder-shown) ~ .starysvet-native-clear-btn {
  display: inline-flex;
}
/* Search dropdown (script: assets/starysvet-search-autocomplete.js)
   Every row has a FIXED height, so the panel height is predictable: it fits exactly
   5 rows, and only scrolls when there are more (or the screen is short). */
#starysvet-global-search-results {
  --sr-row-h: 81px;
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 99999999;
  max-height: min(calc(var(--sr-row-h) * 5 + 2px), 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
#starysvet-global-search-results .sr-msg {
  padding: 14px;
  text-align: center;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}
#starysvet-global-search-results .sr-row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--sr-row-h);
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none !important;
  color: #333 !important;
}
#starysvet-global-search-results .sr-row:last-child {
  border-bottom: 0;
}
#starysvet-global-search-results .sr-row:hover,
#starysvet-global-search-results .sr-row.is-active {
  background: #f8f8f8;
}
#starysvet-global-search-results .sr-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  margin-right: 12px;
  flex-shrink: 0;
}
#starysvet-global-search-results .sr-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}
#starysvet-global-search-results .sr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
/* Explicit line-height / margin: the theme's body typography must not make rows taller */
#starysvet-global-search-results .sr-title,
#starysvet-global-search-results .sr-meta,
#starysvet-global-search-results .sr-price {
  display: block;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#starysvet-global-search-results .sr-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #222;
}
#starysvet-global-search-results .sr-meta {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}
#starysvet-global-search-results .sr-price {
  font-size: 12px;
  color: #e14d43;
  font-weight: 700;
}

/* Header search */
#masthead .site-search {
  float: none;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
}
#masthead .site-search .widget {
  margin: 0;
}
#masthead .site-search form {
  margin: 0;
}
#masthead .site-search form::before {
  font-size: 15px;
  line-height: 1;
  color: var(--sv-label);
}
#masthead .site-search .search-field {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--sv-field-border);
  border-radius: var(--sv-btn-radius);
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  color: var(--sv-text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
#masthead .site-search .search-field::placeholder {
  color: var(--sv-label);
  opacity: 1;
}
#masthead .site-search .search-field:hover {
  border-color: var(--sv-label);
}
#masthead .site-search .search-field:focus {
  border-color: var(--sv-accent);
  box-shadow: 0 0 0 3px rgba(220, 152, 54, 0.25);
  outline: none;
}

/* ---------- Menu bar ---------- */
#masthead .storefront-primary-navigation,
#site-navigation {
  background: var(--sv-nav-bg);
}
#site-navigation {
  margin: 0;
  float: none;
}
#site-navigation ul {
  list-style: none;
}
#site-navigation ul.nav-menu > li > a {
  font-family: var(--sv-font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sv-nav-text);
  text-decoration: none;
  opacity: 1;
  transition: color 0.2s ease;
}
/* Group leaders (Knihy / Platne / Umelecké diela) are heavier than the
   links next to them. Add the CSS class "menu-group-start" to an item in
   Appearance > Menus (Screen Options > CSS Classes) to make it start a group.
   The menu-item-ID selectors are a fallback for the current three groups;
   IDs don't change when items are added or reordered (unlike nth-child). */
#site-navigation ul.nav-menu > li.menu-group-start > a,
#site-navigation ul.nav-menu > li.menu-item-180 > a,
#site-navigation ul.nav-menu > li.menu-item-21762 > a,
#site-navigation ul.nav-menu > li.menu-item-77246 > a {
  font-weight: 600 !important;
}
#site-navigation ul.nav-menu > li > a:hover,
#site-navigation ul.nav-menu > li.current-menu-item > a,
#site-navigation ul.nav-menu > li.current_page_item > a,
#site-navigation ul.nav-menu > li.current-menu-ancestor > a,
#site-navigation ul.nav-menu > li.current_page_ancestor > a {
  color: var(--sv-nav-text-strong);
  opacity: 1;
}

/* ---------- Sticky state (class toggled by sticky-menu.js) ---------- */
.storefront-primary-navigation.is-sticky {
  position: fixed;
  top: var(--wp-admin-bar-height, 0px);
  right: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 10px 22px -10px rgba(30, 20, 10, 0.55);
}
.storefront-primary-navigation-placeholder {
  display: none;
}

/* ==========================================================================
   DESKTOP
   ========================================================================== */
@media (min-width: 769px) {
  #masthead > .col-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    grid-template-rows: auto 1fr; /* top row = just the height of the links */
    grid-template-areas:
      "brand util"
      "brand search";
    align-items: center;
    column-gap: 40px;
    padding-top: 4px;
  }
  #masthead .secondary-navigation {
    grid-area: util;
    justify-self: end;
    align-self: start;
  }
  #masthead .secondary-navigation ul.menu > li > a {
    padding-top: 0;
    padding-bottom: 0;
  }
  #masthead .site-branding {
    grid-area: brand;
    gap: 6px; /* logo PNG has its own side padding, so keep this small */
    padding: 6px 0 18px;
  }
  #masthead .site-search {
    grid-area: search;
    justify-self: end;
    padding-bottom: 12px;
  }

  /* bigger logo + name */
  #masthead .site-branding .custom-logo {
    width: 108px;
    height: 108px;
    max-width: 108px;
  }
  #masthead .site-branding .site-title {
    font-size: clamp(30px, 3.1vw, 44px);
  }
  #masthead .site-branding .site-description {
    font-size: clamp(18px, 1.5vw, 21px);
  }

  #masthead .secondary-navigation ul.menu > li + li {
    border-left: 1px solid var(--sv-header-rule);
  }

  /* bar: menu on the left, cart on the right.
     Fixed height = the bar can never load taller and then shrink. */
  .storefront-primary-navigation > .col-full {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: var(--sv-nav-h);
  }
  #site-navigation {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }
  #site-navigation .menu-toggle,
  #site-navigation .handheld-navigation {
    display: none;
  }
  #site-navigation ul.nav-menu {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
  }
  #site-navigation ul.nav-menu > li {
    position: relative;
    display: flex;
    margin: 0;
  }
  #site-navigation ul.nav-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--sv-nav-h);
    padding: 0 18px;
  }
  /* gold underline: grows on hover, stays on the current page */
  #site-navigation ul.nav-menu > li > a::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 12px;
    left: 18px;
    height: 2px;
    background: var(--sv-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }
  #site-navigation ul.nav-menu > li > a:hover::after,
  #site-navigation ul.nav-menu > li.current-menu-item > a::after,
  #site-navigation ul.nav-menu > li.current_page_item > a::after,
  #site-navigation ul.nav-menu > li.current-menu-ancestor > a::after,
  #site-navigation ul.nav-menu > li.current_page_ancestor > a::after {
    transform: scaleX(1);
  }
  /* thin dividers between the groups: Knihy … Články | Platne … | Umelecké diela
     The divider is drawn BEFORE every group-start item (except the first one),
     so items can be added/removed/reordered inside a group without breaking it. */
  #site-navigation ul.nav-menu > li.menu-group-start:not(:first-child),
  #site-navigation ul.nav-menu > li.menu-item-21762:not(:first-child),
  #site-navigation ul.nav-menu > li.menu-item-77246:not(:first-child) {
    margin-left: 14px;
  }
  #site-navigation ul.nav-menu > li.menu-group-start:not(:first-child)::before,
  #site-navigation ul.nav-menu > li.menu-item-21762:not(:first-child)::before,
  #site-navigation ul.nav-menu > li.menu-item-77246:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: -8px;
    width: 1px;
    background: var(--sv-nav-line);
  }
}

/* Narrow desktop / tablet landscape: keep one row */
@media (min-width: 769px) and (max-width: 1023px) {
  #site-navigation ul.nav-menu > li > a {
    padding: 0 11px;
    font-size: 17px;
  }
  #site-navigation ul.nav-menu > li > a::after {
    right: 11px;
    left: 11px;
  }
}

/* ==========================================================================
   MOBILE: slim account strip → logo + name → 3-column menu grid
   (cart, account and search live in the bottom bar)
   ========================================================================== */
@media (max-width: 768px) {
  #masthead.site-header {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 0;
  }
  #masthead > .col-full {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 1. account strip (moved above the logo) */
  #masthead .secondary-navigation {
    display: block !important;
    visibility: visible !important;
    order: -1;
    width: 100%;
    background: var(--sv-surface-accent);
    border-bottom: 1px solid var(--sv-header-rule);
    opacity: 1;
  }
  #masthead .secondary-navigation ul.menu {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  #masthead .secondary-navigation ul.menu > li {
    text-align: center;
  }
  #masthead .secondary-navigation ul.menu > li + li {
    border-left: 1px solid var(--sv-header-rule);
  }
  #masthead .secondary-navigation ul.menu > li > a,
  #masthead .secondary-navigation ul.menu > li:last-child > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }

  /* 2. logo + name */
  #masthead .site-branding {
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  #masthead .site-branding .custom-logo {
    width: 52px;
    height: 52px;
    max-width: 52px;
  }
  #masthead .site-branding .site-title {
    font-size: clamp(20px, 6.2vw, 26px);
    white-space: nowrap;
  }
  #masthead .site-branding .site-description {
    font-size: 15px;
  }

  /* header search is hidden on phones – the bottom bar has it */
  #masthead .site-search {
    display: none;
  }

  /* 3. menu: 3-column grid with hairline dividers */
  #masthead .storefront-primary-navigation {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .storefront-primary-navigation > .col-full {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  #site-navigation {
    display: block !important;
    width: 100%;
  }
  #site-navigation .menu-toggle,
  #site-navigation .handheld-navigation {
    display: none !important;
  }
  #site-navigation .primary-navigation {
    display: block !important;
  }
  #site-navigation ul.nav-menu {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    max-height: none !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background: var(--sv-nav-line);
    opacity: 1 !important;
  }
  #site-navigation ul.nav-menu > li {
    display: block;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--sv-nav-bg);
  }
  #site-navigation ul.nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 6px 8px;
    font-size: 16px;
    text-align: center;
    white-space: normal;
  }
  #site-navigation ul.nav-menu > li.current-menu-item > a,
  #site-navigation ul.nav-menu > li.current_page_item > a,
  #site-navigation ul.nav-menu > li.current-menu-ancestor > a,
  #site-navigation ul.nav-menu > li.current_page_ancestor > a {
    box-shadow: inset 0 -3px 0 var(--sv-accent);
  }

  /* bottom bar (Účet / Hľadanie / Košík) – unchanged from before */
  .storefront-handheld-footer-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #e49f3e !important;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999 !important;
  }
  .storefront-handheld-footer-bar ul {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .storefront-handheld-footer-bar ul li {
    width: 33.333% !important;
    float: left !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
  }
  .storefront-handheld-footer-bar ul li a {
    padding: 15px 0 !important;
    color: #222222 !important;
    display: block !important;
  }

  /* Storefront only parks the closed search box 2em below the bar and relies on the buttons'
     background to cover it; with transparent buttons it showed through on hover.
     Hide it properly until the search button opens it (Storefront adds .active). */
  .storefront-handheld-footer-bar ul li.search:not(.active) .site-search {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .storefront-handheld-footer-bar ul li.search .site-search {
    transition:
      bottom 0.2s ease,
      opacity 0.2s ease,
      visibility 0.2s;
  }
}

/* Phones: when the main menu has an "Články" (/clanky) item, "Náš facebook" (/nas-facebook)
   is hidden to save room. Matched by link, not menu-item ID, so it survives re-creating the
   items. Desktop and tablets keep both. */
@media (max-width: 768px) {
  #site-navigation
    ul.nav-menu:has(> li > a[href*="/clanky"])
    > li:has(> a[href*="/nas-facebook"]) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-navigation ul.nav-menu > li > a::after,
  #masthead a,
  #masthead .search-field {
    transition: none;
  }
}

/* FOOTER */
@media (max-width: 768px) {
  #colophon .footer-socials,
  #colophon,
  #colophon p.wp-block-paragraph {
    align-content: center;
    text-align: center;
    margin: auto;
  }
}

/* ---------- FOOTER ---------- */
#colophon.site-footer {
  background: var(--sv-nav-bg);
  color: var(--sv-nav-text);
  border-top: 3px solid var(--sv-accent);
  padding: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

#colophon a {
  color: var(--sv-nav-text);
  text-decoration: none;
  transition: color 0.15s;
}
#colophon a:hover,
#colophon a:focus-visible {
  color: var(--sv-accent);
}

/* grid instead of Storefront floats */
#colophon .footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 44px 0 16px;
}
#colophon .footer-widgets::before,
#colophon .footer-widgets::after {
  display: none; /* clearfix pseudo-elements would become grid cells */
}
#colophon .footer-widgets .block {
  float: none;
  width: auto;
  margin: 0;
}
#colophon .footer-widgets .widget.widget_block {
  margin-bottom: 14px;
}
#colophon .footer-widgets .block > .widget:last-child {
  margin-bottom: 0; /* last widget in each column no longer adds 14px above the bottom bar */
}

/* headings */
#colophon h3.wp-block-heading {
  font-family: var(--sv-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sv-nav-line);
}

/* link lists */
#colophon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#colophon li {
  padding: 0;
}
#colophon li::before {
  display: none;
}
#colophon .footer-widgets .menu-item {
  margin-bottom: 8px;
}

/* shop + e-shop address */
#colophon .shop-address,
#colophon .eshop-address {
  line-height: 1.6;
}
#colophon .shop-address-line,
#colophon .eshop-address-line {
  display: block;
}
#colophon .shop-name,
#colophon .eshop-name {
  font-weight: 600;
  color: #fff;
}
#colophon .eshop-label {
  font-weight: 600;
  color: rgba(234, 223, 202, 0.6);
}
/* label column sizes itself to the longest label (IČO: / DIČ:), small gap after the colon */
#colophon .eshop-address {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.4em;
}
#colophon .eshop-address .eshop-address-line {
  display: contents; /* label -> column 1, value -> column 2 */
}
#colophon .eshop-address .eshop-name {
  display: block;
  grid-column: 1 / -1;
}
#colophon .eshop-address .eshop-operator,
#colophon .eshop-address .eshop-address-line:nth-child(2),
#colophon .eshop-address .eshop-vat-note,
#colophon .eshop-address .eshop-street {
  display: block;
  grid-column: 1 / -1; /* full-width lines */
}
/* "Prevádzkovateľ" label on its own line above the name */
#colophon .eshop-address .eshop-operator .eshop-label,
#colophon .eshop-address .eshop-address-line:nth-child(2) .eshop-label {
  display: block;
}
/* "Nie som platiteľ DPH" under DIČ */
#colophon .eshop-address .eshop-vat-note {
  margin-top: 4px;
  font-size: 0.85em;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(234, 223, 202, 0.55);
}
/* tiny gap between the address and IČO / DIČ */
#colophon .eshop-address .eshop-street {
  margin-bottom: 6px;
}

/* opening hours: day left, time right */
#colophon .opening-hours {
  margin-top: 14px;
  max-width: 260px;
}
#colophon .opening-hours-title {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
#colophon .opening-hours-line:not(.opening-hours-title) {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
#colophon .opening-hours-day {
  width: auto;
}
#colophon .opening-hours-time {
  font-variant-numeric: tabular-nums;
}
#colophon .opening-hours hr {
  margin: 6px 0;
  border: 0;
  border-top: 1px dashed var(--sv-nav-line);
}
/* Sobota + Nedeľa (last two lines) */
#colophon .opening-hours-line:nth-last-child(-n + 2) {
  opacity: 0.55;
}

/* contact / socials */
#colophon .footer-socials {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px 6px;
  align-items: center;
}
#colophon .footer-socials br {
  display: none;
}
#colophon .phone-icon,
#colophon .email-icon,
#colophon .facebook-icon {
  width: auto;
  color: var(--sv-accent);
  text-align: center;
}

/* bottom bar */
#colophon .site-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  padding: 2px 0;
  margin-top: 0;
  border-top: 1px solid var(--sv-nav-line);
  font-size: 13px;
  color: rgba(234, 223, 202, 0.65);
}

/* Decorative dot separator */
#colophon .site-info__credit::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  vertical-align: 0.15em;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.35;
}

@media (max-width: 480px) {
  #colophon .site-info__credit::before {
    display: none; /* no dangling divider if the two parts wrap */
  }
}

/* tablet: 2 columns */
@media (max-width: 960px) {
  #colophon .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* phone: 1 column, and clear the fixed bottom bar */
@media (max-width: 768px) {
  #colophon .footer-widgets {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #colophon .opening-hours {
    margin-inline: auto;
  }
  #colophon .footer-socials {
    justify-content: center;
  }
  #colophon .site-info {
    padding-bottom: 80px; /* otherwise © hides behind Účet/Hľadať/Košík */
  }
}

/*  */
.product-quantity {
  display: none;
}

#terms.woocommerce-form__input-checkbox,
.woocommerce-form__input-checkbox {
  width: 20px;
  height: 20px;
}

/******************  MINI-CART  *****************
   Header cart button and its dropdown. Markup: Storefront + cart-mini-cart.php; the free-shipping line comes from shipping-free-shipping.php.
   Order: header button, dropdown panel, item rows, sold-out row, remove button, subtotal, buttons, free-shipping line, scrollbar, empty cart.
*/

/**************** HEADER BUTTON: PRICE AND ITEM COUNT ****************/

@media (min-width: 769px) {
  /* cart chip */
  #masthead .site-header-cart {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    float: none;
    position: relative;
    width: auto;
    margin: 0;
    padding: 0;
  }
  #masthead .site-header-cart .cart-contents {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid var(--sv-nav-line);
    border-radius: var(--sv-btn-radius);
    font-size: 15px;
    line-height: 1.2;
    color: var(--sv-nav-text);
    text-decoration: none;
    transition:
      border-color 0.2s ease,
      color 0.2s ease;
  }
  #masthead .site-header-cart .cart-contents:hover,
  #masthead .site-header-cart:hover .cart-contents {
    border-color: var(--sv-accent);
    color: var(--sv-nav-text-strong);
  }
  #masthead .site-header-cart .cart-contents::after {
    order: -1; /* basket icon first */
    position: static;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--sv-accent);
  }
  #masthead .site-header-cart .cart-contents .amount {
    font-weight: 600;
    color: inherit;
  }
  #masthead .site-header-cart .cart-contents .count {
    padding-left: 10px;
    border-left: 1px solid var(--sv-nav-line);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.75;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  #masthead .site-header-cart .cart-contents .count {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header-cart {
    display: none;
  }
}

/**************** DROPDOWN PANEL ****************/

.site-header-cart .widget_shopping_cart {
  width: 440px !important;
  min-width: 440px;
  box-shadow: var(--sv-minicart-shadow);
  border-radius: 0 0 8px 8px;
  overflow: hidden !important;
}

/* Ukotvenie na pravú stranu len pri hoveri, aby Storefront korektne skrýval dropdown */

.site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart {
  left: auto;
  right: 0;
  display: block !important;
}

/**************** ITEM ROWS: COVER, TITLE, AUTHOR, PRICE ****************/

/* panel background — parametrized (was the theme's orange) */

.site-header-cart .widget_shopping_cart,
.site-header-cart .widget_shopping_cart .widget_shopping_cart_content,
.site-header-cart .widget_shopping_cart ul.cart_list {
  background: var(--sv-minicart-bg) !important;
}

.site-header-cart .widget_shopping_cart ul.cart_list li {
  display: block !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  position: relative !important;
  float: none;
  width: 100% !important;

  /* Tesnejší padding pre zúženie riadkov */
  padding: 8px 138px 8px calc(32px + var(--sv-minicart-cover-w)); /* right = 130px + the 8px that used to be on the list */
  margin: 0;
  border-bottom: 1px solid var(--sv-minicart-divider);
  min-height: var(--sv-minicart-row-h) !important;
  box-sizing: border-box;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li
  .quantity
  .starysvet-cart-meta {
  display: block !important;
  position: absolute !important;

  /* VRÁTENIE VĽAVO: Pevne prilepené pod začiatok názvu knižky */
  left: 80px;
  right: 148px;

  /* Presná pozícia priamo pod zúženým názvom knižky */
  top: 34px;
  bottom: auto;

  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;

  font-size: 11px !important;
  color: var(--sv-author) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.site-header-cart .widget_shopping_cart ul.cart_list li > .starysvet-cart-meta {
  display: block !important;
  position: static !important;
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: var(--sv-author);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.1;
}

.site-header-cart .widget_shopping_cart ul.cart_list li .quantity {
  position: absolute !important;
  right: 24px; /* 16px + the 8px that used to be list padding, lines up with the total */
  top: 50%;
  transform: translateY(-50%) !important;
  display: block !important;

  color: transparent;
  font-size: 0;
  margin: 0;
  padding: 0;
  height: auto !important;
  line-height: 1;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li
  .quantity
  .starysvet-cart-price-value,
.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li
  .quantity
  .woocommerce-Price-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--sv-heading);
  display: block !important;
}

.site-header-cart .widget_shopping_cart ul.cart_list {
  /* 
       KĽÚČOVÁ ZMENA: Zoznam produktov môže zabrať až 55% z celkovej výšky 
       akejkoľvek obrazovky (či už monitora alebo notebooku). 
       Tým pádom sa prepne na scroll oveľa skôr a ukáže viac kníh naraz.
    */
  max-height: 55vh !important;

  /* Vynútenie aktivácie posuvníka pri dosiahnutí limitu */
  overflow-y: auto !important;
  overflow-x: hidden !important;

  /* No right padding: the sold-out highlight must reach the edge. The 8px gap is now inside the rows (prices, remove button, text). */
  padding-right: 0;
}

/**************** SOLD-OUT ROW ****************/

/* Sold-out row in the mini-cart */

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li.starysvet-minicart-soldout {
  background: rgba(179, 57, 47, 0.07) !important;
  box-shadow: inset 3px 0 0 #b3392f;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li.starysvet-minicart-soldout
  > a:not(.remove) {
  color: #b3392f;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li.starysvet-minicart-soldout
  > a:not(.remove)
  img {
  opacity: 0.6;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li.starysvet-minicart-soldout
  .quantity
  .starysvet-cart-price-value,
.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li.starysvet-minicart-soldout
  .quantity
  .woocommerce-Price-amount {
  color: #b3392f;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li
  .starysvet-cart-soldout-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #b3392f;
}

/**************** REMOVE (×) BUTTON ****************/

.site-header-cart .widget_shopping_cart ul.cart_list li > a:not(.remove) {
  display: block !important;
  margin: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-text);
  padding-right: 20px;

  /* ZMAZANIE NATÍVNYCH DIER STOREFRONTU: Vynuluje skrytú výšku a okraje */
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  line-height: 1.2; /* Stiahne text k sebe */
}

/* Obrázok knižky */

.site-header-cart .widget_shopping_cart ul.cart_list li > a:not(.remove) img {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(
    -50%
  ) !important; /* centred in the row whatever its height */
  width: var(--sv-minicart-cover-w) !important;
  height: var(--sv-minicart-cover-h) !important;
  border-radius: 4px;
  margin: 0;
  object-fit: contain;
  /* Resetuje akékoľvek natívne max-width obmedzenia zo Storefrontu */
  max-width: none !important;
}

.site-header-cart
  .widget_shopping_cart
  ul.cart_list
  li
  > a:not(.remove)
  img.woocommerce-placeholder-asset {
  height: auto !important;
  max-height: var(--sv-minicart-cover-h) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  object-fit: contain;
}

.site-header-cart .widget_shopping_cart ul.cart_list li a.remove {
  position: absolute !important;
  right: 88px; /* Locks vertically to the left of the pricing column */
  left: auto;
  top: 50%;
  transform: translateY(-50%) !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  font-size: 18px;
  color: var(--sv-minicart-remove) !important;
  text-decoration: none;

  /* ZJEMNENIE: Plynulý nábeh a návrat trvajúci 0.25 sekundy */
  transition: color 0.25s ease-in-out;
}

/* Vnútorná ikona (pseudoelement) zdedí rovnaké jemné časovanie prechodu */

.site-header-cart .widget_shopping_cart ul.cart_list li a.remove::before {
  position: static !important;
  transform: none !important;
  color: inherit;
  transition: color 0.25s ease-in-out;
}

/**************** SUBTOTAL ****************/

/* footer: subtotal + button area (the theme painted this orange too) */

.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__total,
.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons,
.site-header-cart .widget_shopping_cart p.buttons {
  background: var(--sv-minicart-footer-bg);
  background-color: var(--sv-minicart-footer-bg);
}

.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between;
  align-items: center;

  /* 16px bočný padding zaručí, že text aj celková suma sedia v jednej rovine s riadkami */
  padding: 20px 24px 20px 16px !important; /* right = 16px + the list's 8px padding, so the subtotal lines up with the item prices */

  /* VÁŠ OPRAVNÝ KROK: Vynulovaný horný margin odstraňuje škaredú prázdnu dieru */
  margin: 0;

  border-top: 1px solid var(--sv-minicart-divider);
  font-size: 16px;
  font-weight: 700;
  color: var(--sv-heading);
}

.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__total strong {
  margin: 0;
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__total
  .woocommerce-Price-amount {
  margin: 0;
}

/**************** BUTTONS (ZOBRAZIŤ KOŠÍK / POKLADŇA) ****************/

.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 16px !important;
  margin: 0;
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  white-space: nowrap;
  margin: 0;
  padding: 12px 10px;
  border-radius: var(--sv-btn-radius);
  font-size: var(--sv-fs-card-button);
  font-weight: var(--sv-btn-weight);
  text-align: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

/* button icons: drawn with a mask so they follow the button's text colour;
   the theme's own arrow is replaced by them */

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: var(--sv-minicart-btn-icon) center / contain no-repeat;
  mask: var(--sv-minicart-btn-icon) center / contain no-repeat;
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.wc-forward:not(.checkout) {
  --sv-minicart-btn-icon: var(--sv-icon-cart);

  /* "Zobraziť košík" — secondary action, light */
  background-color: var(--sv-secondary-bg) !important;
  color: var(--sv-secondary-text);
  border: 1px solid var(--sv-secondary-border);
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button::after {
  content: none !important;
  display: none !important;
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.wc-forward:not(.checkout):hover {
  background-color: var(--sv-secondary-hover-bg) !important;
  border-color: var(--sv-secondary-hover-bg);
  color: var(--sv-secondary-hover-text);
  box-shadow: none;
}

/* "Pokladňa" — primary action, dark */

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.checkout {
  background-color: var(--sv-accent) !important;
  color: var(--sv-on-accent);
  border: 1px solid var(--sv-accent);
  --sv-minicart-btn-icon: var(--sv-icon-checkout);
}

.site-header-cart
  .widget_shopping_cart
  .woocommerce-mini-cart__buttons
  .button.checkout:hover {
  background-color: var(--sv-accent-hover) !important;
  border-color: var(--sv-accent-hover);
  box-shadow: none;
}

/**************** SCROLLBAR OF THE ITEM LIST ****************/

/* Nastavenie šírky dráhy na minimum */

.site-header-cart .widget_shopping_cart ul.cart_list::-webkit-scrollbar {
  width: 6px;
}

/* Priehľadné pozadie dráhy splývajúce s Vašou oranžovou */

.site-header-cart .widget_shopping_cart ul.cart_list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

/* Decentný, tenký jazdec posuvníka */

.site-header-cart .widget_shopping_cart ul.cart_list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  transition: background 0.2s ease-in-out;
}

/* Stmavenie jazdca pri prechode myšou */

.site-header-cart
  .widget_shopping_cart
  ul.cart_list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/**************** EMPTY CART ****************/

.site-header-cart .widget_shopping_cart p.woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: 32px 24px 30px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(60, 40, 20, 0.34);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 -1px 1px rgba(60, 40, 20, 0.3);
}

.site-header-cart
  .widget_shopping_cart
  p.woocommerce-mini-cart__empty-message::before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  -webkit-mask: var(--sv-icon-cart) center / contain no-repeat;
  mask: var(--sv-icon-cart) center / contain no-repeat;
  /* dark at the top edge fading out = carved into the surface */
  background: linear-gradient(
    to bottom,
    rgba(60, 40, 20, 0.5) 0,
    rgba(60, 40, 20, 0.28) 25%,
    rgba(60, 40, 20, 0.18) 100%
  );
  /* light lip along the lower edge */
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

/* =========================================
   STOREFRONT MINI-CART
   ========================================= */

/* ==========================================================================
   1. ROZŠÍRENIE MINI-KOŠÍKA SMEROM DOĽAVA (ZATVÁRA SA KOREKTNE PRI ODCHODE)
   ========================================================================== */

/* ==========================================================================
   2. STABILNÝ RIADOK KOŠÍKA (VÝŠKA FIXNE NASTAVENÁ)
   ========================================================================== */

/* ==========================================================================
   NÁZOV PRODUKTU - ODSTRÁNENIE GIGANTICKÝCH DIER (KĽÚČOVÁ OPRAVA)
   ========================================================================== */

/* ==========================================================================
   3. UKOTVENIE AUTOROV (VRÁTENIE VĽAVO + STRHNUTIE POD NÁZOV)
   ========================================================================== */

/* ==========================================================================
   4. CENA VÝROBKU (VRÁTENIE VIDITEĽNOSTI NA PRAVÝ OKRAJ)
   ========================================================================== */

/* ==========================================================================
   5. MAZACÍ KRÍŽIK (PRÉMIOVÝ JEMNÝ PRECHOD A DUSTY RED HOVER)
   ========================================================================== */

/* 
   TLMENÝ EFEKT HOVERU:
   Použitá koralovo-šarlátová farba (#e11d48), ktorá s teplým podkladom 
   košíka nesúperí, ale vytvára kultivovaný a mäkký akcent.
*/
.site-header-cart .widget_shopping_cart ul.cart_list li a.remove:hover,
.site-header-cart .widget_shopping_cart ul.cart_list li a.remove:hover::before,
.site-header-cart .widget_shopping_cart ul.cart_list li a.remove:hover::after,
ul.cart_list li a.remove:hover,
ul.cart_list li a.remove:hover::before {
  color: var(--sv-remove-hover-text) !important;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none !important;
  transition: color 0.25s ease-in-out !important;
}

/* ==========================================================================
   6. SPODNÁ LIŠTA MEDZISÚČTU (OPRAVENÝ PADDING & DOLAĎENÝ VYNULOVANÝ MARGIN)
   ========================================================================== */

/* ==========================================================================
   MINI-CART BUTTONS ("Zobraziť košík" / "Pokladňa")
   ========================================================================== */

/* ==========================================================================
   DYNAMICKÉ MAXIMÁLNE NATIAHNUTIE KOŠÍKA PODĽA VÝŠKY OBRAZOVKY
   ========================================================================== */

/* ==========================================================================
   PRÉMIOVÝ ŠTÍHLY POSUVNÍK (SCROLLBAR), ABY NERUŠIL VZHĽAD
   ========================================================================== */

/* ==========================================================================
   EMPTY MINI-CART: one debossed cart icon + "Prázdny košík" underneath.
   Pressed into the panel: dark edge on top, light edge below
   (same trick as .woocommerce-products-header__title).
   ========================================================================== */

/****************** ADD TO CART ******************/

.product .added_to_cart.wc-forward {
  display: none;
}

/* ---- Add / remove button feedback --------------------------------------
   Deliberately small: the button looks and behaves like every other button.
   Click   -> the icon turns into a small spinner while WooCommerce works.
   Added   -> the button flips to the in-cart state ("Odobrať" + cart-with-x
              icon) at once; that is the confirmation, nothing is shown extra.
   Removed -> the gold button fades back in.
   JS (cart-button.php) adds .is-swapped. */

body a.starysvet-cart-btn {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* Fixed-size icon slot so the label never shifts between icon / check / spinner */
body a.starysvet-cart-btn > i {
  flex: none;
  box-sizing: border-box;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.1em;
  text-align: center;
}

/* In cart: soft filled "done" look instead of an empty outline */
body a.starysvet-cart-btn.remove-from-cart {
  background-color: var(--sv-surface-accent);
}

/* Working: own spinner in the icon slot (replaces WooCommerce's faded
   button + font-icon spinner, which also pushed the label around) */
body a.starysvet-cart-btn:is(.loading, .is-loading) {
  opacity: 1 !important;
  padding: var(--sv-btn-pad) !important;
  pointer-events: none;
  cursor: progress;
}

body a.starysvet-cart-btn:is(.loading, .is-loading)::after,
body a.starysvet-cart-btn.added::after {
  content: none !important;
  display: none !important;
}

body a.starysvet-cart-btn:is(.loading, .is-loading) > i::before {
  content: none !important;
}

body a.starysvet-cart-btn:is(.loading, .is-loading) > i::after {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: starysvet-cart-spin 0.8s linear infinite;
}

/* "Odobrať": a cart with an x badge instead of the plain FontAwesome x. Drawn as a mask so it
   takes the button's text colour, including the hover colour. It is painted a bit larger than
   its slot (negative margins), so it reads at button size without changing the button's layout.
   Browsers without mask support keep the old x. */
@supports (mask-image: linear-gradient(#000, #000)) or
  (-webkit-mask-image: linear-gradient(#000, #000)) {
  body
    a.starysvet-cart-btn.remove-from-cart:not(.loading):not(.is-loading)
    > i::before {
    content: "";
    display: block;
    width: 1.4em;
    height: 1.4em;
    margin: -0.15em;
    background-color: currentColor;
    -webkit-mask: var(--sv-icon-cart-remove) center / contain no-repeat;
    mask: var(--sv-icon-cart-remove) center / contain no-repeat;
  }
}

/* State change (added, removed, cart changed elsewhere) */
body a.starysvet-cart-btn.is-swapped {
  animation: starysvet-cart-swap 0.18s ease-out;
}

@keyframes starysvet-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starysvet-cart-swap {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body a.starysvet-cart-btn.is-swapped {
    animation: none;
  }
}

/******************  CART PAGE  *****************
   Classic cart page (cart.php, cart-empty.php). The free-shipping notice that appears here is in its own section further down.
   Order: page layout, item rows, sold-out row, empty cart, undo banner, footer.
*/

/**************** PAGE LAYOUT ****************/

.simple-cart {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(60, 45, 25, 0.1);
  border-radius: 10px;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.75rem) 1.5rem;
  box-shadow:
    0 1px 2px rgba(40, 30, 15, 0.04),
    0 12px 28px rgba(40, 30, 15, 0.06);
}

.simple-cart-title {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  text-align: center;
}

@media (max-width: 560px) {
  .simple-cart {
    padding: 0.85rem 1.25rem 1.5rem;
    border-radius: 0;
  }
}

/**************** ITEM ROWS ****************/

.simple-cart-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.simple-cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(60, 45, 25, 0.1);
  transition: background-color 0.15s ease;
}

.simple-cart-item:last-child {
  border-bottom: none;
}

.simple-cart-item:hover {
  background-color: rgba(60, 45, 25, 0.02);
}

.simple-cart-item__thumb {
  flex-shrink: 0;
  align-self: center;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-cart-item__thumb a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-cart-item__thumb img {
  width: 64px;
  height: auto;
  margin: 0 !important;
  border-radius: 4px;
  display: block;
  box-shadow: 0 1px 4px rgba(40, 30, 15, 0.18);
}

.simple-cart-item__thumb img.woocommerce-placeholder-asset {
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.simple-cart-item__body {
  flex: 1;
  min-width: 0;
}

.simple-cart-item__name {
  display: block;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  color: #a5622f;
  line-height: 1.3;
}

.simple-cart-item__author {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(60, 45, 25, 0.6);
  margin-top: 0.2rem;
}

.simple-cart-item__author a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.simple-cart-item__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.simple-cart-item__price {
  font-weight: 600;
  color: inherit;
  text-align: right;
  min-width: 4.5rem;
}

.simple-cart-item__remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-bottom: none;
  color: #b3392f;
  background: rgba(179, 57, 47, 0.08);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.simple-cart-item__remove:hover {
  background: rgba(179, 57, 47, 0.18);
  color: #96271e;
  transform: scale(1.08);
}

/* AJAX removal states */

.simple-cart-item.is-removing {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 560px) {
  .simple-cart-item__thumb img {
    width: 52px;
  }
  .simple-cart-item__thumb {
    width: 52px;
  }
  .simple-cart-item__thumb img.woocommerce-placeholder-asset {
    height: 52px;
  }
  .simple-cart-item__right {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
}

/**************** SOLD-OUT ROW ****************/

/* Sold-out items (cart page only, the mini-cart is untouched) */

.simple-cart-item--soldout {
  background-color: rgba(179, 57, 47, 0.07);
  box-shadow: inset 3px 0 0 #b3392f;
  /* Extend the highlight outward so the content stays aligned with the other rows */
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.simple-cart-item--soldout:hover {
  background-color: rgba(179, 57, 47, 0.1);
}

.simple-cart-item--soldout .simple-cart-item__name,
.simple-cart-item--soldout .simple-cart-item__price {
  color: #b3392f;
}

.simple-cart-item--soldout .simple-cart-item__thumb img {
  opacity: 0.6;
}

.simple-cart-item__soldout-label {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b3392f;
}

/**************** EMPTY CART ****************/

.simple-cart-empty-state {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 3.25rem clamp(1.25rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(60, 45, 25, 0.16);
  border-bottom: 1px solid rgba(60, 45, 25, 0.16);
}

.simple-cart-empty-state__mark {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(165, 98, 47, 0.4);
  border-radius: 50%;
  color: #a5622f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
}

.simple-cart-empty-state__content {
  max-width: 620px;
}

.simple-cart-empty-state__eyebrow {
  margin: 0 0 0.5rem;
  color: #a5622f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.simple-cart-empty-state__content h2 {
  margin: 0 0 0.75rem;
  color: #292622;
  font-size: 30px;
  line-height: 1.15;
}

.simple-cart-empty-state__content > p:not(.simple-cart-empty-state__eyebrow) {
  max-width: 50ch;
  margin: 0 0 1.5rem;
  color: rgba(60, 45, 25, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.simple-cart-empty-state__action {
  box-sizing: border-box;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid #a5622f !important;
  border-radius: 5px !important;
  background: #a5622f !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.simple-cart-empty-state__action:hover {
  border-color: #854c25 !important;
  background: #854c25 !important;
}

.simple-cart-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.simple-cart-empty-state__action--secondary {
  border-color: rgba(60, 45, 25, 0.3) !important;
  background: transparent !important;
  color: #38332d !important;
}

.simple-cart-empty-state__action--secondary:hover {
  border-color: #38332d !important;
  background: #f4f1eb !important;
  color: #211f1c !important;
}

@media (max-width: 560px) {
  .simple-cart-empty-state {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
  }
  .simple-cart-empty-state__mark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    font-size: 52px;
  }
  .simple-cart-empty-state__content h2 {
    font-size: 25px;
  }
  .simple-cart-empty-state__action {
    width: 100%;
    max-width: 320px;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem !important;
    font-size: 13px;
  }
  .simple-cart-empty-state__actions {
    flex-direction: column;
    align-items: center;
  }
}

/**************** UNDO BANNER AFTER REMOVING AN ITEM ****************/

/* Undo banner (cart page, shown after an AJAX removal) */

.simple-cart-undo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-left: 4px solid var(--sv-accent);
  border-radius: 6px;
  color: var(--sv-heading);
  animation: simple-cart-undo-in 0.2s ease-out;
}

.simple-cart-undo[hidden] {
  display: none;
}

.simple-cart-undo__text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.simple-cart-undo__btn {
  flex: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--sv-link);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.simple-cart-undo__btn:hover:not(:disabled) {
  background: none;
  color: var(--sv-link-hover);
}

.simple-cart-undo__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.simple-cart-undo__close {
  flex: none;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--sv-heading);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.55;
  cursor: pointer;
}

.simple-cart-undo__close:hover {
  background: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .simple-cart-undo {
    animation: none;
  }
}

@media (max-width: 560px) {
  .simple-cart-undo {
    border-radius: 0;
  }
}

/**************** FOOTER: TOTAL AND BUTTONS ****************/

.simple-cart-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(60, 45, 25, 0.2);
}

.simple-cart-total-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.simple-cart-total-row span {
  color: rgba(60, 45, 25, 0.65);
}

.simple-cart-total-row strong {
  font-size: 1.4rem;
}

.simple-cart-checkout-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.simple-cart-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5622f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  padding: 0.85rem 0;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.simple-cart-back:hover {
  color: #8c5027;
  transform: translateX(-2px);
}

.simple-cart-checkout {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: #a5622f !important;
  color: #fff !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: 6px !important;
  font-weight: 600;
  text-decoration: none;
  border: none !important;
  box-shadow: 0 4px 12px rgba(165, 98, 47, 0.28);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.simple-cart-checkout:hover {
  background: #8c5027 !important;
  transform: translateY(-1px);
}

#simple-cart-ajax.is-refreshing .simple-cart-footer {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/****************** SHOP / CATEGORY ARCHIVE HEADER ******************/
/* Category + attribute archives: a calm header card (same family as the
   spec / header boxes) instead of the grey double-border box. No bottom
   margin: the sorting bar under it brings its own spacing. */
.woocommerce-products-header {
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

/* Collapse the whole box when there's no real title:
   covers both a present-but-empty title element, and WooCommerce
   not rendering the <h1> at all (woocommerce_show_page_title = false) */
.woocommerce-products-header:not(
  :has(.woocommerce-products-header__title:not(:empty))
) {
  display: none;
}

.woocommerce-products-header__title.page-title {
  margin: 0;
  color: var(--sv-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none;
}

.woocommerce-products-header .term-description {
  margin: 8px 0 0;
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.5;
}

.woocommerce-products-header .term-description > :last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .woocommerce-products-header {
    padding: 12px 14px;
  }

  .woocommerce-products-header__title.page-title {
    font-size: 20px;
  }
}

/****************** PRODUCT LIST ******************/
.remove-from-cart,
.add_to_cart_button {
  max-width: 180px;
  border-radius: 5px;
}

.product-description {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.product-action-row {
  margin-top: auto;
  padding-top: 10px;
}

/* 3. Title — the one thing on the card that should dominate at a glance */
.product-title {
  margin: 0 0 6px 0;
  font-size: var(--sv-fs-card-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  font-weight: bold;
  text-decoration: none;
}

/* 4. Real hierarchy below the title: author is the next most important
      thing, then language/publisher fade further, and each tier is
      visibly different from the ones next to it — not just a slightly
      different shade of the same gray. */
.product-description h2.product-title:has(+ .product_desc) {
  margin-bottom: 2px; /* subtitle sits right under the title */
}

.product-description .product_desc {
  margin: 0 0 6px 0;
  line-height: 1.3;
  font-size: 13px;
  font-style: italic;
  color: #7a7a7a;
}

.author {
  margin: 0 0 8px 0;
  font-size: var(--sv-fs-card-author);
  font-weight: 700;
  color: #3d3d3d;
}

.product_language,
.product_publisher {
  margin: 0;
  font-size: var(--sv-fs-card-meta);
  font-weight: 400;
  color: var(--sv-muted);
}

/* 5. Links — a distinct warm color plus an underline so they read as
      clickable at rest, not only once you're hovering them */
.product-description a {
  color: var(--sv-link);
  text-decoration: none;
}

/* Product loop: the author line's plain-text parts (suffix, separators,
   unlinked names) use the same color as the linked authors. */
.product-description .author {
  color: var(--sv-link);
}

.product-description a:hover {
  color: var(--sv-link-hover);
}

/* Category tags get their own small pill treatment so they read as
   metadata tags rather than more inline text links */
.product_cat {
  margin: 10px 0 0 0;
  line-height: 1.8;
}

.product_cat a {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
  border-radius: 10px;
  background-color: var(--sv-surface-accent);
  color: var(--sv-pill-text);
  font-size: var(--sv-fs-card-pill);
  font-weight: 600;
  text-decoration: none;
}

.product_cat a:hover {
  background-color: var(--sv-surface-accent-hover);
}

/* 6. Price directly above the button, no default h4 spacing */
.product-mini-price .price {
  margin: 0 0 8px 0;
  font-size: var(--sv-fs-card-price);
  font-weight: 700;
  color: #1a1a1a;
}

/* 7. Cart action buttons — shared shape, then split by state */
.product-action-buttons a,
.product-action-buttons button,
.right-col .images a.add_to_cart_button,
.right-col .images a.remove-from-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: var(--sv-btn-pad);
  border: 1px solid transparent;
  border-radius: var(--sv-btn-radius);
  font-weight: var(--sv-btn-weight);
  font-size: var(--sv-fs-card-button);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

/* Add to cart — the primary action, solid accent gold */
.product-action-buttons a.add_to_cart_button,
.right-col .images a.add_to_cart_button {
  background-color: var(--sv-accent);
  color: var(--sv-on-accent);
}

.product-action-buttons a.add_to_cart_button:hover,
.right-col .images a.add_to_cart_button:hover {
  background-color: var(--sv-accent-hover);
}

/* Already in cart / remove — a quieter "undo" style since this
   represents a completed action, not a fresh call to action */
.product-action-buttons a.remove-from-cart,
.right-col .images a.remove-from-cart {
  background-color: transparent;
  border-color: var(--sv-remove-border);
  color: var(--sv-remove-text);
}

.product-action-buttons a.remove-from-cart:hover,
.right-col .images a.remove-from-cart:hover {
  background-color: var(--sv-remove-hover-bg);
  border-color: var(--sv-remove-hover-border);
  color: var(--sv-remove-hover-text);
}

/******************  PRODUCT PAGE  *****************
   Single product page. Markup: product-single-product-display.php, product-gallery.php (+ .js), product-recommended-products.php.
   Order: two-column layout, title box, attribute table, right column, gallery, lightbox, recommended products.
*/

/**************** LAYOUT: TWO COLUMNS ****************/

.single-product div.product .summary {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 20px;
  gap: 40px;
}

.left-col {
  flex: 1 1 60%;
}

/* Single product: no bottom margin under the summary column */

.summary.entry-summary,
.single-product div.product .summary.entry-summary {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .left-col {
    width: 100%;
  }
  .single-product div.product .summary {
    flex-direction: column;
  }
}

/**************** TITLE AND AUTHOR BOX ****************/

.product-header-box {
  margin-bottom: 20px;
  padding: 14px 24px;
  border-left: 8px solid var(--sv-heading);
  border-radius: 0 8px 8px 0;
  background-color: var(--sv-surface-accent);
}

.product-header-box h1.product-title {
  margin: 0 0 2px 0;
  font-size: clamp(20px, 2.7vw, 27px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sv-heading);
}

.product-header-box .product-desc {
  margin: 0; /* wrapper div around the subtitle: no extra spacing of its own */
  padding: 0;
}

.product-header-box .podtitul {
  margin: 0 0 7px 0;
  line-height: 1.25;
  font-size: 15px;
  font-weight: 600;
  color: var(--sv-text);
}

.product-header-box .author {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--sv-author);
  font-style: normal;
}

/* Linked names and the plain-text suffix (e.g. "(ilustrácie)", " / ") share
   one color. Set explicitly so parent-theme link rules can't override it. */

.product-header-box .author,
.product-header-box .author a,
.product-header-box .author a:link,
.product-header-box .author a:visited {
  color: var(--sv-author);
}

.product-header-box .author a {
  text-decoration: none;
}

.product-header-box .author a:hover {
  color: var(--sv-heading);
}

@media (max-width: 600px) {
  .product-header-box {
    padding: 12px 16px;
  }
}

/**************** ATTRIBUTE TABLE (SPEC CARD) ****************/

.product-summary table.shop_attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  margin: 0;
  /* vertical rhythm: tighter than before, and tighter again on short screens (small laptops),
     where this long table would otherwise push the price and the cart button far down */
  --sv-row-pad: 2px; /* above and below each row's text */
  --sv-row-lh: 21px; /* line height of a value; labels use the same, so baselines match */
  --sv-group-pad: 10px; /* above / below a group separator */
  --sv-condition-line: #e8e1d4; /* dotted line between disc and sleeve condition: barely darker than the group hairlines */
}

@media (max-height: 820px) {
  .product-summary table.shop_attributes {
    --sv-row-pad: 1px;
    --sv-row-lh: 20px;
    --sv-group-pad: 8px;
  }
}

.product-summary table.shop_attributes tr,
.product-summary table.shop_attributes tr:nth-child(even) th,
.product-summary table.shop_attributes tr:nth-child(even) td,
.product-summary table.shop_attributes tr.alt th,
.product-summary table.shop_attributes tr.alt td {
  background: transparent;
}

.product-summary table.shop_attributes th,
.product-summary table.shop_attributes td {
  padding: var(--sv-row-pad) 22px var(--sv-row-pad) 6px;
  border: 0;
  vertical-align: top;
  font-size: 15px;
  line-height: var(--sv-row-lh);
  color: var(--sv-text);
  text-align: left;
}

.product-summary table.shop_attributes td.multiline-value {
  white-space: pre-line;
}

/* Placeholder for missing values ("neuvedené"): slightly fainter than real values. */
.product-summary table.shop_attributes td .unknown-value {
  opacity: 1;
}

/* Tracklist of a record (starysvet_render_tracklist): side headings, then one
   row per track: position | title | duration. */
.product-summary table.shop_attributes td .tracklist {
  white-space: normal;
}

.tracklist__side {
  margin: 16px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sv-divider);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sv-label);
}

.tracklist__side:first-child {
  margin-top: 0;
}

.tracklist .tracklist__list,
.tracklist .tracklist__track {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracklist .tracklist__track::before {
  content: none;
}

.tracklist__track {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: baseline;
  padding: 4px 0;
}

.tracklist__track + .tracklist__track {
  border-top: 1px dotted var(--sv-divider);
}

.tracklist__pos,
.tracklist__dur {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tracklist__pos {
  color: var(--sv-label);
}

.tracklist__title {
  color: var(--sv-text);
}

.tracklist__dur {
  color: var(--sv-muted);
  text-align: right;
}

.product-summary table.shop_attributes th {
  width: 190px;
  padding-left: 22px;
  padding-right: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(
    --sv-row-lh
  ); /* same as the value's line height, so baselines match */
  color: var(--sv-label);
  white-space: normal;
}

.product-summary table.shop_attributes--records th {
  width: 240px;
}

/* group separators: hairline + equal space on both sides */

.product-summary table.shop_attributes tr.delimiter th,
.product-summary table.shop_attributes tr.delimiter td {
  padding-top: var(--sv-group-pad);
  border-top: 1px solid var(--sv-divider);
}

.product-summary table.shop_attributes tr:has(+ .delimiter) th,
.product-summary table.shop_attributes tr:has(+ .delimiter) td {
  padding-bottom: var(--sv-group-pad);
}

/* Vinyl condition: the disc block (Stav platne + rating) and the sleeve block
   (Stav obálky + rating) are told apart by a faint dotted line over the value
   column only (not under the label) with a small extra space; the rating row
   stays tight under its own text row. */

.product-summary table.shop_attributes tr.condition-start th,
.product-summary table.shop_attributes tr.condition-start td {
  padding-top: 5px;
}

.product-summary table.shop_attributes tr.condition-start td {
  border-top: 1px dotted var(--sv-condition-line);
}

.product-summary table.shop_attributes tr:has(+ .condition-start) th,
.product-summary table.shop_attributes tr:has(+ .condition-start) td {
  padding-bottom: 5px;
}

/* The grade (VG+, NM ...) stands out, its wording is regular weight. */
.product-summary table.shop_attributes td .condition-grade {
  font-weight: 700;
  color: var(--sv-heading, var(--sv-text));
}

.product-summary table.shop_attributes td .condition-desc {
  font-weight: 400;
}

.product-summary table.shop_attributes tr:first-child th,
.product-summary table.shop_attributes tr:first-child td {
  padding-top: 14px;
  border-top: 0;
}

.product-summary table.shop_attributes tr:last-child th,
.product-summary table.shop_attributes tr:last-child td {
  padding-bottom: 14px;
}

/* links match the warm accent used on the category pills */

.product-summary table.shop_attributes td a {
  color: var(--sv-link);
  text-decoration: none;
  transition: color 120ms ease;
}

.product-summary table.shop_attributes td a:hover {
  color: var(--sv-link-hover);
}

/* WooCommerce adds margin/padding to <p> inside cells - that was inflating the genre row */

.product-summary table.shop_attributes td p {
  margin: 0;
  padding: 0;
}

/* genre pills: same look as on the shop cards (.product_cat a), sized for the 15px table text.
   Books and records both use this markup. Change font-size to var(--sv-fs-card-pill) for the
   exact card size. */

.product-summary table.shop_attributes .product_cat {
  margin: 0 0 -6px; /* cancels the last line's bottom gap so a one-line row isn't taller than needed */
  line-height: 1.5;
}

.product-summary table.shop_attributes .product_cat a,
.product-summary table.shop_attributes .product_cat a:hover {
  display: inline-block;
  margin: 0 6px 6px 0; /* gap between pills, also between wrapped lines */
  padding: 2px 10px;
  border-radius: 10px; /* same as the shop cards */
  color: var(--sv-pill-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 120ms ease;
}

.product-summary table.shop_attributes .product_cat a {
  background-color: var(--sv-surface-accent);
}

.product-summary table.shop_attributes .product_cat a:hover {
  background-color: var(--sv-surface-accent-hover);
}

/* Žánre label: centered against the genre list (it can wrap onto several lines).
   Every other label stays top-aligned with the first line of its value. */

.product-summary table.shop_attributes tr:has(.product_cat) > th {
  vertical-align: middle;
}

/* yes / no icons: fa-lg ships line-height .75em + vertical-align -15%, which sits the glyph
   high inside the 22.5px value line. Give the icon the full line box so it is vertically centered
   in it, and left-align the glyph so it starts on the same edge as the text values (the narrower
   "x" used to be centered in the 22px box, i.e. pushed ~4px to the right of the other values). */

.product-summary table.shop_attributes td .fa-check,
.product-summary table.shop_attributes td .fa-times {
  position: relative;
  top: 1px; /* optical nudge: FontAwesome glyphs sit ~1px above the label caps in this font */
  display: inline-block;
  width: 22px;
  height: 22.5px; /* = td line-height (15px x 1.5); px because fa-lg scales em */
  line-height: 22.5px;
  vertical-align: top;
  text-align: left;
}

/* yes / no icons */

.product-summary table.shop_attributes .fa-times {
  color: var(--sv-icon-muted);
}

.product-summary table.shop_attributes .fa-check {
  color: var(--sv-success);
}

@media (max-width: 600px) {
  .product-summary table.shop_attributes,
  .product-summary table.shop_attributes tbody,
  .product-summary table.shop_attributes tr,
  .product-summary table.shop_attributes th,
  .product-summary table.shop_attributes td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .product-summary table.shop_attributes th,
  .product-summary table.shop_attributes tr.delimiter th {
    padding: 10px 18px 0;
    border-top: 0;
    line-height: 1.4;
  }
  .product-summary table.shop_attributes td,
  .product-summary table.shop_attributes tr.delimiter td {
    padding: 2px 18px 10px;
    border-top: 0;
  }
  .product-summary table.shop_attributes tr.delimiter {
    border-top: 1px solid var(--sv-divider);
    margin-top: 6px;
  }
  /* The desktop rule that adds 12px below the row just before a group separator
     (tr:has(+ .delimiter)) is stronger than the stacked rules above, so those rows
     (Žánre, Storočie, ISBN, Obálka, Počet strán, Podpis) got a wider label-to-value gap
     and extra space below. The separator's own margin already provides the group gap. */
  .product-summary table.shop_attributes tr:has(+ .delimiter) th {
    padding-bottom: 0;
  }
  .product-summary table.shop_attributes tr:has(+ .delimiter) td {
    padding-bottom: 10px;
  }
  /* stacked layout: the dotted line sits on the row, a bit tighter than the group lines */
  .product-summary table.shop_attributes tr.condition-start {
    border-top: 1px dotted var(--sv-condition-line);
    margin-top: 2px;
  }
  .product-summary table.shop_attributes tr.condition-start th {
    padding: 6px 18px 0;
    border-top: 0;
  }
  .product-summary table.shop_attributes tr.condition-start td {
    padding: 2px 18px 6px;
    border-top: 0;
  }
  .product-summary table.shop_attributes tr:has(+ .condition-start) th {
    padding-bottom: 0;
  }
  .product-summary table.shop_attributes tr:has(+ .condition-start) td {
    padding-bottom: 6px;
  }
}

/**************** RIGHT COLUMN: PRICE, CART BUTTON, EDIT LINK ****************/

.right-col {
  flex: 1 1 40%;
}

.right-col .images {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  gap: 16px;
}

.summary .price {
  display: block;
  margin: 0;
  float: none;
  font-weight: 700;
  font-size: 30px;
}

/* single product page: button sized like the shop-card one */

.right-col .images a.add_to_cart_button,
.right-col .images a.remove-from-cart {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.right-col .images > p {
  margin: 0;
}

@media (max-width: 768px) {
  .right-col {
    width: 100%;
    flex: 1 1 100%;
  }
}

/**************** GALLERY: MAIN PHOTO AND THUMBNAILS ****************/

.cpe-product-gallery {
  width: 100%;
}

.cpe-gallery-main {
  position: relative;
  /* Box shape follows the first photo (inline aspect-ratio set in product-gallery.php),
     so square LP covers get a square box and portrait books a portrait one.
     1 / 1 is only the fallback if no inline ratio is present. */
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 6px;
  background: #fafafa;
  cursor: zoom-in;
}

.cpe-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.cpe-gallery-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cpe-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.cpe-gallery-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition:
    opacity 120ms ease,
    border-color 120ms ease;
}

.cpe-gallery-thumb img {
  display: block;
  width: 60px;
  height: 78px;
  object-fit: cover;
  border-radius: 3px;
}

.cpe-gallery-thumb:hover {
  opacity: 1;
}

.cpe-gallery-thumb.is-active {
  opacity: 1;
  border-color: #2563eb;
}

@media (max-width: 768px) {
  .cpe-gallery-main {
    cursor: default;
  }
}

/**************** LIGHTBOX (BIG PHOTO VIEWER) ****************/

/* Lightbox */

.cpe-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px; /* thin stripe isolating the viewer from the top edge — set to 0 for edge-to-edge */
  box-sizing: border-box;
  cursor: grab; /* empty space: click closes, drag swipes */
}

.cpe-lightbox[hidden] {
  display: none;
}

.cpe-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.cpe-lightbox-close:hover,
.cpe-lightbox-close:focus-visible {
  background: #dc2626;
  color: #fff;
}

/* Prev / next: big clickable side zones instead of small round buttons.
   position: fixed so they span the screen height regardless of where the
   buttons sit in the markup. top: 72px starts them just below the close
   button (20px + 40px + gap), so reaching it never crosses the next zone;
   bottom: 100px keeps them clear of the thumbnail strip. */

.cpe-lightbox-nav {
  position: fixed;
  top: 72px;
  bottom: 100px;
  z-index: 2;
  width: 12%;
  min-width: 56px;
  max-width: 160px;
  padding: 0 clamp(12px, 2vw, 28px);
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-size: 40px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
  transition:
    opacity 150ms ease,
    background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.cpe-lightbox-nav:hover {
  opacity: 1;
}

.cpe-lightbox-prev {
  left: 0;
  justify-content: flex-start;
}

.cpe-lightbox-next {
  right: 0;
  justify-content: flex-end;
}

/* radial glow: fades to transparent on all sides, so there is no hard
   edge at the top or bottom of the zone */

.cpe-lightbox-prev:hover {
  background: radial-gradient(
    ellipse farthest-side at left center,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

.cpe-lightbox-next:hover {
  background: radial-gradient(
    ellipse farthest-side at right center,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

.cpe-lightbox-viewport {
  position: relative;
  width: 96vw;
  height: calc(
    100vh - 32px - 100px
  ); /* 100px reserved at bottom for .cpe-lightbox-thumbs */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.cpe-lightbox-image {
  max-width: 96vw;
  max-height: calc(
    100vh - 32px - 100px
  ); /* 100px reserved at bottom for .cpe-lightbox-thumbs */
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 280ms ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; /* blocks the iOS long-press "Save Image" menu */
}

.cpe-lightbox-image.is-zoomed {
  cursor: grab;
}

/* While a drag is in progress (class set by JS on the whole lightbox),
   show the grabbing cursor everywhere — image, backdrop and side zones. */

.cpe-lightbox.is-grabbing,
.cpe-lightbox.is-grabbing * {
  cursor: grabbing;
}

.cpe-lightbox-thumbs {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.cpe-lightbox-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 120ms ease,
    border-color 120ms ease;
}

.cpe-lightbox-thumb img {
  display: block;
  width: 50px;
  height: 65px;
  object-fit: cover;
  border-radius: 3px;
}

.cpe-lightbox-thumb:hover {
  opacity: 1;
}

.cpe-lightbox-thumb.is-active {
  opacity: 1;
  border-color: #fff;
}

.cpe-thumb-warning svg {
  display: block;
}

.cpe-thumb-warning {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: block;
  width: 18px;
  height: 18px;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* Warning sign the editor can put on a thumbnail (never on the big photo). Printed by product-gallery.php. */

@media (max-width: 768px) {
  /* narrower zones so they don't cover the image edges */
  .cpe-lightbox-nav {
    width: 14%;
    min-width: 44px;
    font-size: 32px;
  }
}

/**************** RECOMMENDED PRODUCTS (BY AUTHOR, EDITION, CATEGORY) ****************/

.recommended-products {
  padding: 0 20px;
  background: white;
  line-height: normal;
}

/* Section headers share the look of .product-header-box so the
   page reads as one visual system. */

.recommended-products-title {
  display: flex;
  align-items: center; /* vertically centers the heading in the bar */
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 14px 28px;
  box-sizing: border-box;
  border-left: 8px solid var(--sv-heading);
  border-radius: 0 8px 8px 0;
  background-color: var(--sv-surface-accent);
  color: var(--sv-heading);
  font-weight: bold;
  font-size: 1rem;
}

.recommended-products-title-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0; /* theme's default h2 margin was pushing the text off-centre */
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--sv-heading);
}

.recommended-products-match-link {
  margin-left: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sv-link);
  text-decoration: none;
}

.recommended-products-match-link:hover {
  color: var(--sv-link-hover);
}

.recommended-products-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.recommended-product {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  max-width: 10%;
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;
  text-align: center;
  align-items: center;
}

.recommended-product a.recommended-product-link {
  display: block;
  width: fit-content;
  height: 100%;
  padding: 10px;
  color: black;
  text-decoration: none;
}

/* Hover: the cover lifts a little, like a book being pulled from a shelf,
   and the title picks up the link colour. No card, no box shadow. */

.recommended-product img {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: block;
  width: auto;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 8px auto;
  border: 1px solid #ddd;
  background: #f9f9f9;
}

.product .recommended-product img {
  box-shadow: none;
}

/* The covers now sit inside div.product, whose ".product img" rule adds a shadow; the hover lift below sets its own. */

.recommended-product a:hover img,
.recommended-product a:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.recommended-product-title {
  transition: color 0.2s ease;
  margin: 0 0 4px 0;
  font-weight: bold;
  font-size: 14px;
}

.recommended-product a:hover .recommended-product-title,
.recommended-product a:focus-visible .recommended-product-title {
  color: var(--sv-link-hover);
}

.recommended-product-author {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #666;
}

.recommended-product-price {
  margin-top: auto;
  font-size: 14px;
  color: #111;
}

@media (prefers-reduced-motion: reduce) {
  .recommended-product img,
  .recommended-product-title {
    transition: none;
  }
  .recommended-product a:hover img,
  .recommended-product a:focus-visible img {
    transform: none;
  }
}

@media (max-width: 768px) {
  /* FIX 5: Better responsive layout on mobile instead of stacking in a single long vertical line */
  .recommended-products-list {
    flex-direction: row;
  }
  .recommended-product {
    flex: 0 0 33.33%; /* Displays 3 books per row on mobile */
    max-width: 33.33%;
  }
}
/* ===== Two-column layout ===== */

/* Thumbnail strip — small, row, below the big cover */

/* ===== Right column contents — everything stacked, consistent spacing ===== */

.add_to_cart_button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ===== Attribute table — a clean "spec card" =====
   Labels on the left in small muted caps, values on the right in
   regular text. Groups (tr.delimiter) are separated by a hairline and
   equal breathing room above/below instead of zebra stripes. */

/* ===== Title + author — boxed header ===== */

/* stack label above value on narrow screens */

/* ===== Responsive ===== */

/****************** ℂATEGORIES ******************/
/* Neutral cards on the beige page, dark text, links turn brown on hover. */
.forms-container {
  margin-bottom: 72px;
}
.forms-container > .sub-categories {
  display: block;
  --sv-cat-card-bg: #ece9e4; /* neutral warm grey, not yellow, not white */
  --sv-cat-panel-bg: #e3dfd8;
  --sv-cat-border: #d0cbc2;
  --sv-cat-text: #2b2119; /* same dark as the menu bar */
  --sv-cat-count: #77716a;
}

/* ---------- Link rows (top list + card lists) ---------- */
.forms-container .sub-categories-list li a,
.forms-container .content-column li a {
  display: inline-block;
  padding: 5px 0;
  color: var(--sv-cat-text);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.forms-container .category-name {
  text-decoration: none;
}
.forms-container .sub-categories-list li a:hover,
.forms-container .content-column li a:hover {
  color: var(--sv-link);
  text-decoration: none;
}
.forms-container .category-count {
  margin: 0 0 0 4px;
  color: var(--sv-cat-count);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

/* ---------- Top block: categories without subcategories ---------- */
.sub-categories.forms {
  width: 100%;
  margin-bottom: 20px;
}
.sub-categories-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  width: 100%;
  margin: 0;
  padding: 14px 24px;
  list-style: none;
  background: var(--sv-cat-panel-bg);
  border: 1px solid var(--sv-cat-border);
  border-radius: 8px;
}
.sub-categories-list li {
  margin: 0;
}

/* ---------- Parent categories as equal cards ---------- */
.sub-categories.content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.content-column {
  margin: 0;
  padding: 0;
  background: var(--sv-cat-card-bg);
  border: 1px solid var(--sv-cat-border);
  border-radius: 8px;
}
.content-column > a {
  display: block;
  margin: 0 24px;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--sv-cat-border);
  color: var(--sv-cat-text);
  font-family: var(--sv-font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.content-column > a:hover {
  color: var(--sv-link);
  text-decoration: none;
}
.content-column ul {
  margin: 0;
  padding: 10px 24px 18px;
  list-style: none;
}
.content-column li {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sub-categories-list,
  .sub-categories.content {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .sub-categories-list,
  .sub-categories.content {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-categories-list {
    gap: 0 24px;
  }
}
@media (max-width: 480px) {
  .sub-categories-list,
  .sub-categories.content {
    grid-template-columns: 1fr;
  }
}

/****************** MY ACCOUNT ******************/

/******************  MY ACCOUNT  *****************
   My Account (logged in): dashboard, orders list, order details, addresses, account details; and the logged-out login / register form.
   Order: layout, navigation tabs, orders list, order details, addresses, account form, login.
*/

/**************** PAGE LAYOUT AND CONTENT CARD ****************/

/* Navigation card on the left, content card on the right. Only applies
   when the account navigation exists, so the logged-out login/register
   form is left alone. */

body.woocommerce-account .entry-header {
  margin-bottom: 24px;
}

/* --- content --- */

body.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 0;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 28px 32px;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  color: var(--sv-text);
  line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
  margin: 0 0 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content strong {
  color: var(--sv-heading);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin: 0 0 14px;
  color: var(--sv-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
  color: var(--sv-link);
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover {
  color: var(--sv-link-hover);
}

/* form fields: tinted fill + stronger border so they read as fillable */

body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce select,
body.woocommerce-account .woocommerce textarea {
  padding: 10px 12px;
  border: 1px solid var(--sv-field-border);
  border-radius: 6px;
  background: var(--sv-field-bg);
  color: var(--sv-text);
}

body.woocommerce-account .woocommerce input.input-text:focus,
body.woocommerce-account .woocommerce select:focus,
body.woocommerce-account .woocommerce textarea:focus {
  outline: none;
  border-color: var(--sv-accent);
  background: var(--sv-card-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-accent) 25%, transparent);
}

body.woocommerce-account .woocommerce form .form-row label {
  color: var(--sv-heading);
  font-weight: 600;
}

/* orders table: same spec-card feel as the product page */

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border: 1px solid var(--sv-card-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
  padding: 12px 16px;
  background: var(--sv-surface-accent);
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
  padding: 12px 16px;
  border-top: 1px solid var(--sv-divider);
  background: transparent;
}

/* desktop: every cell vertically centred, shorter buttons */

/* mobile: "Akcia:" label centred against the buttons instead of sitting at the top */

/* admin-only "Upraviť" link: small and out of the way */

body.woocommerce-account .edit-link {
  margin-top: 16px;
}

@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px 18px;
  }
}

/**************** NAVIGATION TABS ****************/

body.woocommerce-account
  .entry-content
  > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* --- navigation --- */

body.woocommerce-account .woocommerce-MyAccount-navigation {
  order: -1;
  flex: 0 0 var(--sv-account-nav-w);
  float: none;
  width: auto;
  margin: 0;
  overflow: hidden;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--sv-divider);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li:first-child {
  border-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center;
  padding: 14px 18px 14px var(--sv-account-nav-pad-x) !important;
  border: 0;
  box-shadow: inset 4px 0 0 transparent; /* active stripe: drawn inside, so it never shifts the content */
  color: var(--sv-text);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* the theme's icon: fixed-width slot + gap, quiet until active/hover */

body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  float: none;
  margin: 0 14px 0 0;
  text-align: center;
  color: var(--sv-label);
  font-size: 16px;
  transition: color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--sv-surface-accent);
  color: var(--sv-heading);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--sv-surface-accent);
  box-shadow: inset 4px 0 0 var(--sv-accent);
  color: var(--sv-heading);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover::before,
body.woocommerce-account
  .woocommerce-MyAccount-navigation
  li.is-active
  a::before {
  color: var(--sv-link);
}

@media (max-width: 768px) {
  body.woocommerce-account
    .entry-content
    > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    flex-direction: column;
    align-items: stretch;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: none;
  }
}

/**************** ORDERS LIST: TABLE, BUTTONS, PAGINATION ****************/

/* Prev / Next on the orders list: the shop's pagination "pill" (white
   box + padding) also wraps these buttons, so the gold never filled it */

body.woocommerce-account .woocommerce-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  margin: 20px 0 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce-account .woocommerce-pagination .woocommerce-button--next {
  margin-left: auto;
}

/* orders list: Akcia column */

body.woocommerce-account
  .woocommerce-MyAccount-content
  .woocommerce-orders-table
  .button {
  height: auto;
  min-height: 0;
  line-height: 1.2;
}

body.woocommerce-account
  .woocommerce-MyAccount-content
  .woocommerce-orders-table
  .button::before,
body.woocommerce-account
  .woocommerce-MyAccount-content
  .woocommerce-orders-table
  .button::after {
  line-height: 1;
}

@media (min-width: 769px) {
  body.woocommerce-account
    .woocommerce-MyAccount-content
    table.woocommerce-orders-table
    th,
  body.woocommerce-account
    .woocommerce-MyAccount-content
    table.woocommerce-orders-table
    td {
    vertical-align: middle;
  }
  body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-orders-table
    .button {
    padding: 6px 14px;
  }
}

@media (max-width: 768px) {
  body.woocommerce-account
    .woocommerce-MyAccount-content
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
  }
  body.woocommerce-account
    .woocommerce-MyAccount-content
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions::before {
    float: none;
    margin-right: auto;
  }
  body.woocommerce-account
    .woocommerce-MyAccount-content
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions::after {
    display: none;
  }
}

/**************** EDIT ACCOUNT FORM AND PASSWORD FIELDS ****************/

/* buttons: same look as the shop's add-to-cart button */

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account
  .woocommerce-MyAccount-content
  button.woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sv-btn-pad);
  border: 1px solid var(--sv-accent);
  border-radius: var(--sv-btn-radius);
  background: var(--sv-accent);
  background-clip: border-box;
  box-shadow: none;
  color: var(--sv-on-accent);
  font-size: var(--sv-fs-card-button);
  font-weight: var(--sv-btn-weight);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account
  .woocommerce-MyAccount-content
  button.woocommerce-Button:hover {
  background: var(--sv-accent-hover);
  border-color: var(--sv-accent-hover);
  color: var(--sv-on-accent);
}

/* fieldsets ("Zmena hesla"): the legend used to be a grey rectangle stuck
   on top of a square grey box. Now: rounded outline, legend notched into it. */

body.woocommerce-account .woocommerce-MyAccount-content fieldset {
  margin: 28px 0 28px;
  padding: 22px 24px 8px;
  background: transparent;
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-fieldset-shadow);
}

body.woocommerce-account .woocommerce-MyAccount-content fieldset legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 10px;
  background: var(--sv-card-bg);
  border: 0;
  border-radius: 0;
  color: var(--sv-heading);
  font-size: 16px;
  font-weight: 700;
}

/* password eye: inside the field, vertically centered */

body.woocommerce-account .woocommerce .password-input {
  position: relative;
  display: block;
}

/* kill the inline-baseline gap so the wrapper height == input height */

body.woocommerce-account .woocommerce .password-input input.input-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 48px;
}

body.woocommerce-account .woocommerce .password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  background-color: transparent;
  border: 0;
  box-shadow: none;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
}

/* WooCommerce draws the eye with ::before - center it inside the button */

body.woocommerce-account
  .woocommerce
  .password-input
  .show-password-input::before,
body.woocommerce-account
  .woocommerce
  .password-input
  .show-password-input::after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  text-indent: 0;
  transform: translate(-50%, -50%);
}

body.woocommerce-account
  .woocommerce
  .password-input
  .show-password-input:hover {
  opacity: 1;
  transform: translateY(-50%);
}

/****************** General ******************/
a:hover {
  opacity: 0.75;
}

/****************** WooCommerce notices ******************/
/* NOTE: base notice colors/spacing/icon-position are fully re-declared with
   !important further down in the "NOTICES" section (~line 3800), which always
   wins over these plain declarations. Only the button rule below still applies
   and is kept here; the rest was dead code and has been removed. */

/* WooCommerce button inside notices */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: 15px;
  float: right;
  border-radius: 5px;
}

/****************** Default <mark> is ugly. Fix it. ******************/
mark {
  padding: 0 2px;
  border-radius: 2px;
  background: #ffe58a;
  color: #000;
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-account .entry-title,
body.page:not(.woocommerce-page) .entry-header .entry-title {
  margin: 0 0 16px !important;
  color: #292622 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

@media (max-width: 560px) {
  body.woocommerce-cart .entry-title,
  body.woocommerce-checkout .entry-title,
  body.woocommerce-account .entry-title,
  body.page:not(.woocommerce-page) .entry-header .entry-title {
    margin-bottom: 12px !important;
    font-size: 24px !important;
  }
}

/****************** 404 ******************/
.custom-404.starysvet-404 {
  max-width: 980px;
  margin: 0 auto 48px;
  padding: 48px 32px;
  box-sizing: border-box;
}

.starysvet-404__hero {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 40px;
  padding: 36px 0 44px;
  border-bottom: 1px solid rgba(60, 45, 25, 0.18);
}

.starysvet-404__number {
  color: var(--sv-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 0.85;
}

.starysvet-404__message {
  max-width: 560px;
}

.starysvet-404__eyebrow {
  margin: 0 0 10px;
  color: #8a5a2e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.starysvet-404__message .page-title {
  margin: 0 0 14px;
  color: #292622;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.starysvet-404__message > p:not(.starysvet-404__eyebrow) {
  max-width: 44ch;
  margin: 0 0 24px;
  color: #5e5a55;
  font-size: 16px;
  line-height: 1.55;
}

.starysvet-404 .starysvet-404__back,
.starysvet-404 .starysvet-404__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid #38332d;
  border-radius: 4px;
  background: #38332d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.starysvet-404 .starysvet-404__back:hover,
.starysvet-404 .starysvet-404__checkout:hover {
  background: #211f1c;
  border-color: #211f1c;
  color: #ffffff;
}

.starysvet-404__cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--sv-accent);
  background: #f4f1eb;
}

.starysvet-404__cart .starysvet-404__eyebrow {
  margin-bottom: 4px;
}

.starysvet-404__cart p:not(.starysvet-404__eyebrow) {
  margin: 0;
  color: #5e5a55;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .custom-404.starysvet-404 {
    padding: 28px 20px 40px;
  }

  .starysvet-404__hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 30px;
  }

  .starysvet-404__number {
    font-size: 80px;
  }

  .starysvet-404__message .page-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .custom-404.starysvet-404 {
    padding: 24px 16px 32px;
  }

  .starysvet-404__cart {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }
}

.product-category-columns {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
  gap: 40px;
}

.product-category-columns .category-column {
  flex: 1 1 0;
  min-width: 250px;
}

.product-category-columns .category-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-category-columns .category-column li {
  margin-bottom: 8px;
}

/****************** EDIT LINKS ******************/
.custom-edit-link {
  margin: 10px 0;
  font-size: 14px;
}

@media (max-width: 520px) {
  :root {
    --sv-cover-width: 100px;
  }
}
/****************** PRODUCT CARD (shop / archive list) ******************/
/* Rules scoped to `ul.products li.product`: cover | title, author, annotation, meta | price + cart button; container queries stack it on narrow cards. Generic rules shared with the product page (.product-title, .author, .product_cat, add-to-cart button) stay where they were. */

/* ===== Shop grid product cards ===== */

/* ===== Shop grid — horizontal list cards =====
   Cover on the left (the NOVÉ ribbon sits on the cover itself), text on
   the right. The number of cards per row comes from the WooCommerce
   setting, not from this CSS. */
/* Equal-height cards: lay the list out as wrapping flex rows. Widths and
   gaps still come from the WooCommerce columns setting. */
:is(.woocommerce, .woocommerce-page, body) ul.products,
:is(.woocommerce, .woocommerce-page, body) ul.products[class*="columns-"] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}

/* clearfix pseudo-elements would otherwise become empty flex items */
:is(.woocommerce, .woocommerce-page, body) ul.products::before,
:is(.woocommerce, .woocommerce-page, body) ul.products::after,
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  > .row::before,
:is(.woocommerce, .woocommerce-page, body) ul.products li.product > .row::after,
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-row::before,
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-row::after {
  content: none !important;
  display: none !important;
}

@container (max-width: 600px) {
  :is(.woocommerce, .woocommerce-page, body)
    ul.products
    li.product
    .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  :is(.woocommerce, .woocommerce-page, body)
    ul.products
    li.product
    .product-action-row {
    /* still price above button */
  }
}

/* end: PRODUCT CARD (shop / archive list) */

/****************** NEW RIBBON ******************/
.thumbnail-container {
  position: relative;
  overflow: hidden;
}

.cpe-new-ribbon {
  z-index: 2;
  position: absolute;
  bottom: 16px;
  left: -34px;
  width: 130px;
  padding: 4px 0;
  transform: rotate(45deg);
  text-align: center;
  border-radius: 0;
  background: var(--sv-ribbon);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/****************** custom email widget ******************/
#simple-contact-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  gap: 10px;
}

#simple-contact-form input,
#simple-contact-form textarea {
  width: 100%;
  padding: 8px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#scf-response {
  margin-top: 10px;
}

.scf-error {
  color: #d32f2f;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.scf-invalid {
  border-color: #d32f2f;
}

.scf-valid {
  border-color: #2e7d32;
  box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.2);
}

.scf-field {
  position: relative;
}

.scf-check {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #2e7d32;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* show check when valid */
.scf-valid + .scf-check {
  opacity: 1;
}

.scf-check::before {
  content: "✔";
}

.scf-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* success message */
.scf-success {
  text-align: center;
  padding: 2rem 1rem;
  animation: scf-rise 0.5s ease-out both;
}

.scf-success h3 {
  margin: 1rem 0 0.25rem;
  animation: scf-rise 0.5s 0.5s ease-out both;
}

.scf-success p {
  margin: 0;
  animation: scf-rise 0.5s 0.65s ease-out both;
}

.scf-success__icon {
  width: 72px;
  height: 72px;
  stroke: #2e9e5b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scf-success__circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: scf-draw 0.6s ease-out forwards;
}

.scf-success__tick {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: scf-draw 0.4s 0.5s ease-out forwards;
}

@keyframes scf-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scf-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scf-success,
  .scf-success h3,
  .scf-success p,
  .scf-success__circle,
  .scf-success__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/****************** DREVOREZBY ******************/
/* 1. ZÁKLADNÝ KONTAJNER */
.starysvet-work-grid-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  background: transparent !important;
}

/* 2. ŠTÝLOVANIE KARIET */
.starysvet-work-column-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 14px);
  min-width: 250px;
  text-decoration: none !important;
  color: #4a4540 !important;
  text-align: center;
  box-sizing: border-box;
  background: #bbb0a6 !important;
  border: 1px solid #5a5550 !important;
  padding: 0 !important;
  border-radius: 0 0 5px 5px !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: filter 0.2s ease-in-out;
}

.starysvet-work-column-card:hover {
  transform: none !important;
  filter: brightness(0.95);
}

/* 3. FIX: JEDNOTNÁ VÝŠKA PRE OBRÁZKY */
.starysvet-work-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 7 !important;
  overflow: hidden;

  /* 🔒 KĽÚČOVÁ OPRAVA: Pozadie dostane rovnakú farbu ako telo karty.
     Miesto bieleho prebliknutia uvidí používateľ pri načítavaní okamžite čistú štruktúru. */
  background-color: #bbb0a6 !important;
  border-bottom: 1px solid #5a5550 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.starysvet-work-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;

  /* 🎬 ANTI-FLASH ANIMÁCIA: Obrázok nevyskočí tvrdo, ale v priebehu 300ms 
     plynule a mäkko vpláva (fade-in) na pripravené pozadie karty */
  opacity: 0;
  animation: starysvetCardFadeIn 0.9s ease-in-out forwards !important;
}

/* Definovanie hardvérovo akcelerovaného prechodu opacity */
@keyframes starysvetCardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 4. ÚPRAVA TEXTU */
.starysvet-work-column-title {
  margin: 0 !important;
  padding: 12px 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #33302d !important;
}

.starysvet-work-column-card:hover .starysvet-work-column-title {
  color: #000000 !important;
}

/* 5. MOBILNÁ RESPONSIVITA */
@media (max-width: 768px) {
  .starysvet-work-column-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .starysvet-work-image-wrapper {
    aspect-ratio: 16 / 9 !important;
  }
}

/* Intro card: same family as the contact card */
.entry-content .starysvet-intro {
  margin: 0 0 32px;
  padding: 36px 40px 32px;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  text-align: center;
}

.entry-content .starysvet-intro > .wp-block-group__inner-container {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content .starysvet-lead {
  color: var(--sv-heading);
}

.entry-content .starysvet-lead strong {
  color: var(--sv-link);
  font-weight: 700;
}

.entry-content .starysvet-lead-note {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--sv-card-border);
  color: #5a534b;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .entry-content .starysvet-intro {
    padding: 24px 18px 22px;
  }
  .entry-content .starysvet-lead-note {
    font-size: 15px;
  }
}
/*************************** Back button /***************************/
/* Back button: sits at the left of the page title on Obrazy / Drevorezby / Grafiky */
.hentry:has(.starysvet-back) {
  position: relative;
}

.entry-content .starysvet-back {
  position: absolute;
  top: 24px; /* centre of the 28px / 1.2 title */
  left: 0;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

.entry-content .starysvet-back .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--sv-surface-accent);
  color: var(--sv-pill-text);
  /* border: 1px solid var(--sv-card-border); */
  /* border-radius: var(--sv-btn-radius); */
  border: 0 !important;
  box-shadow: var(--sv-card-shadow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  /* text-transform: uppercase; */
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  display: none !important;
}

.entry-content .starysvet-back .wp-block-button__link::before {
  content: "←";
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.entry-content .starysvet-back .wp-block-button__link:hover,
.entry-content .starysvet-back .wp-block-button__link:focus-visible {
  background: var(--sv-surface-accent-hover);
  color: var(--sv-link-hover);
}

.entry-content .starysvet-back .wp-block-button__link:hover::before {
  transform: translateX(-3px);
}

/* Phones: arrow only, so it never collides with the centred title */
@media (max-width: 768px) {
  .entry-content .starysvet-back {
    top: 14px; /* centre of the 24px title */
  }
  .entry-content .starysvet-back .wp-block-button__link {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    font-size: 0; /* hides the label visually, keeps it for screen readers */
    gap: 0;
  }
  .entry-content .starysvet-back .wp-block-button__link::before {
    font-size: 18px;
  }
}

/****************** PRODUCTS ******************/
#secondary {
  border-radius: 0;
}
.product,
.woocommerce #main .product {
  border-radius: 0;
  background-color: white;
}
.product img {
  /* margin: 5px; */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/****************** LPs ******************/
.platne-loop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/****************** STOREFRONT CUSTOM MOBILE MENU OPTIMIZATION ******************/
/* Hide the custom swipe bar on all desktop screens and tablets by default */
#starysvet-hardened-swipe-bar {
  display: none !important;
}

/* Force the swipe bar to display exclusively on mobile viewports */
@media (max-width: 767px) {
  #starysvet-hardened-swipe-bar {
    display: block !important;
    scroll-behavior: smooth;
  }

  #starysvet-hardened-swipe-bar::-webkit-scrollbar {
    display: none;
  }
}

/* =========================================
   WooCommerce Login Modal
   ========================================= */

/* =========================================
   Background overlay
   ========================================= */

.wc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(40, 28, 16, 0.6);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  animation: wcOverlayFade 0.2s ease-out;
}

/* =========================================
   Modal
   ========================================= */

.wc-modal-content {
  position: relative;

  width: 90%;
  max-width: 500px;
  max-height: 90vh;

  overflow-y: auto;

  box-sizing: border-box;

  padding: 42px 40px 38px;

  background: var(--sv-card-bg);

  border: 1px solid var(--sv-card-border);
  border-top: 4px solid var(--sv-accent);
  border-radius: 12px;

  box-shadow:
    0 25px 60px rgba(40, 28, 16, 0.28),
    0 8px 25px rgba(40, 28, 16, 0.12);

  animation: wcModalFade 0.25s ease-out;
}

/* =========================================
   Close button
   ========================================= */

.close-wc-modal {
  position: absolute;

  top: 16px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: var(--sv-label);
  background: transparent;

  border: none;
  border-radius: 50%;

  font-size: 28px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.close-wc-modal:hover {
  color: var(--sv-heading);
  background: var(--sv-surface-accent);
  transform: rotate(90deg);
}

/* =========================================
   WooCommerce columns
   ========================================= */

.wc-modal-content .u-columns {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Login */

.wc-modal-content .u-column1 {
  display: block !important;

  width: 100% !important;

  float: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Registration - shown when the register tab is selected */

.wc-modal-content .u-column2 {
  display: none !important;
}

#wc-auth-modal.show-register .wc-modal-content .u-column1 {
  display: none !important;
}

#wc-auth-modal.show-register .wc-modal-content .u-column2 {
  display: block !important;
  width: 100% !important;
  float: none !important;
}

/* =========================================
   Heading
   ========================================= */

.wc-modal-content h2,
.wc-modal-content .wc-modal-title {
  margin: 0 0 24px;
  padding: 0 44px 14px 0;

  color: var(--sv-heading);

  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;

  border-bottom: 1px solid var(--sv-divider);
}

/* =========================================
   Form rows
   ========================================= */

.wc-modal-content .form-row {
  width: 100%;

  margin: 0 0 20px;
  padding: 0;
}

/* =========================================
   Labels
   ========================================= */

.wc-modal-content label {
  display: block;

  margin: 0 0 8px;

  color: var(--sv-heading);

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.wc-modal-content label .required {
  color: var(--sv-error);
}

/* =========================================
   Text / email / password inputs
   ========================================= */

.wc-modal-content input[type="text"],
.wc-modal-content input[type="email"],
.wc-modal-content input[type="password"] {
  width: 100%;
  height: 48px;

  box-sizing: border-box;

  margin: 0;
  padding: 0 14px;

  color: var(--sv-text);

  background: var(--sv-field-bg);

  border: 1px solid var(--sv-field-border);
  border-radius: 6px;

  font-family: inherit;
  font-size: 16px;
  line-height: normal;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.wc-modal-content input[type="text"]:hover,
.wc-modal-content input[type="email"]:hover,
.wc-modal-content input[type="password"]:hover {
  background: var(--sv-card-bg);
  border-color: var(--sv-label);
}

.wc-modal-content input[type="text"]:focus,
.wc-modal-content input[type="email"]:focus,
.wc-modal-content input[type="password"]:focus {
  background: var(--sv-card-bg);

  border-color: var(--sv-accent);

  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-accent) 25%, transparent);
}

/* =========================================
   Password wrapper
   ========================================= */

.wc-modal-content .password-input {
  position: relative;

  display: block;

  width: 100%;
}

/* =========================================
   Password input spacing
   ========================================= */

.wc-modal-content .password-input input {
  padding-right: 52px;
}

/* =========================================
   PASSWORD EYE BUTTON
   ========================================= */

/*
 * IMPORTANT:
 *
 * The HTML shows that WooCommerce provides
 * an EMPTY button and draws the actual eye
 * through CSS.
 *
 * Therefore we style the BUTTON only.
 * We do NOT touch ::before or ::after.
 */

.wc-modal-content .password-input .show-password-input {
  position: absolute !important;

  top: 50% !important;
  right: 10px !important;

  width: 32px !important;
  height: 32px !important;

  min-width: 32px !important;
  min-height: 32px !important;

  max-width: 32px !important;
  max-height: 32px !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translateY(-50%) !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;

  cursor: pointer;

  opacity: 1 !important;
}

/* Subtle hover area */

.wc-modal-content .password-input .show-password-input:hover {
  background: var(--sv-surface-accent) !important;

  border-radius: 6px;

  transform: translateY(-50%) !important;
}

/*
 * DO NOT TOUCH:
 *
 * .show-password-input::before
 * .show-password-input::after
 *
 * WooCommerce uses those to render the eye.
 */

/* =========================================
   Remember me
   ========================================= */

.wc-modal-content .woocommerce-form__label-for-checkbox {
  display: flex;

  align-items: center;

  gap: 9px;

  margin: 2px 0 24px;

  color: var(--sv-text);

  font-size: 14px;
  font-weight: 400;

  line-height: 20px;

  cursor: pointer;
}

.wc-modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  margin: 0;

  accent-color: var(--sv-accent);

  cursor: pointer;
}

/* =========================================
   Login and registration buttons
   ========================================= */

.wc-modal-content .woocommerce-form-login__submit,
.wc-modal-content .woocommerce-form-register__submit {
  width: 100% !important;
  height: 50px !important;

  display: flex !important;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  margin: 4px 0 0 !important;
  padding: 0 24px !important;

  color: var(--sv-on-accent) !important;

  background: var(--sv-accent) !important;

  border: none !important;
  border-radius: var(--sv-btn-radius) !important;

  font-family: inherit;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  text-align: center;

  cursor: pointer;

  box-shadow: none;

  transition: background 0.2s ease;
}

.wc-modal-content .woocommerce-form-login__submit:hover,
.wc-modal-content .woocommerce-form-register__submit:hover {
  color: var(--sv-on-accent) !important;

  background: var(--sv-accent-hover) !important;
}

.wc-modal-content .woocommerce-form-login__submit:active,
.wc-modal-content .woocommerce-form-register__submit:active {
  background: var(--sv-accent-hover) !important;
}

/* =========================================
   Forgot password
   ========================================= */

.wc-modal-content .woocommerce-LostPassword {
  margin: 24px 0 0;
  padding: 0;
}

.wc-modal-content .woocommerce-LostPassword a {
  color: var(--sv-link);

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition: color 0.2s ease;
}

.wc-modal-content .woocommerce-LostPassword a:hover {
  color: var(--sv-link-hover);

  text-decoration: underline;
}

/* =========================================
   WooCommerce notices
   ========================================= */

.wc-modal-content .woocommerce-error,
.wc-modal-content .woocommerce-message,
.wc-modal-content .woocommerce-info {
  border-left: 4px solid var(--sv-info);

  background: var(--sv-surface-accent);
  color: var(--sv-text);
}

.wc-modal-content .woocommerce-error {
  border-left-color: var(--sv-error);
  background: color-mix(in srgb, var(--sv-error) 8%, white);
}

.wc-modal-content .woocommerce-message {
  border-left-color: var(--sv-success);
}

/* =========================================
   Focus
   ========================================= */

.wc-modal-content button:focus-visible,
.wc-modal-content a:focus-visible,
.wc-modal-content input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sv-accent) 40%, transparent);
  outline-offset: 2px;
}

/* =========================================
   Animations
   ========================================= */

@keyframes wcOverlayFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes wcModalFade {
  from {
    opacity: 0;

    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {
  .wc-modal-overlay {
    padding: 15px;
  }

  .wc-modal-content {
    width: 100%;
    max-height: 92vh;

    padding: 38px 24px 30px;

    border-radius: 15px;
  }

  .wc-modal-content h2,
  .wc-modal-content .wc-modal-title {
    margin-bottom: 20px;

    font-size: 23px;
  }

  .close-wc-modal {
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;
  }

  .wc-modal-content input[type="text"],
  .wc-modal-content input[type="email"],
  .wc-modal-content input[type="password"] {
    height: 48px;
  }

  .wc-modal-content .password-input .show-password-input {
    right: 8px !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    max-width: 32px !important;
    max-height: 32px !important;
  }

  .wc-modal-content .woocommerce-form-login__submit,
  .wc-modal-content .woocommerce-form-register__submit {
    height: 50px !important;
  }
}

/************************ DREVOREZBY - MASONRY WIDGET ***********************/

/* Hlavný kontajner, ktorý zarovná riadky od okraja po okraj */
/* 1. KONTROLA ŠÍRKY: Mozaika teraz rešpektuje steny svojho materského bloku,
   vyplní ho na 100% bez toho, aby pretiekla von do strán celého webu. */
.starysvet-masonry-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important; /* Elegantné jednotné medzery medzi dielami */
  width: 100% !important; /* Vynúti presnú šírku vnútri prideleného kontajnera */
  max-width: 100% !important;
  margin: 0 auto !important; /* Bezpečné vycentrovanie bloku */
  box-sizing: border-box !important;
}

/* 2. DOKONALÁ ČIERNA KARTA REZBY:
   Využitie vonkajšieho box-shadow namiesto klasického borderu zaručuje, 
   že prehliadač nevytvorí žiadne milimetrové odchýlky pri zaokrúhľovaní pixelov. */
.starysvet-masonry-item {
  display: block !important;
  flex-grow: calc(var(--ratio) * 100) !important;
  flex-basis: calc(var(--ratio) * 180px) !important;
  background: #000000 !important;

  /* Čistý 2px čierny obrys, ktorý perfektne lemuje každú fotografiu */
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 4px 15px rgba(0, 0, 0, 0.2) !important;
  border: none !important; /* Úplne zmaže staré nesymetrické okraje */
  border-radius: 4px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 3. ABSOLÚTNE UKOTVENIE OBRÁZKA:
   Fotografia kompletne vyplní celú pridelenú plochu bez milimetrových medzier. */
.starysvet-masonry-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: var(--ratio) !important;
  object-fit: fill !important; /* Prekryje čierne pozadie karty bez presvitania */
  display: block !important;
}

/* Poistka pre plynulé zarovnanie posledného riadku vľavo */
.starysvet-masonry-grid::after {
  content: "" !important;
  flex-grow: 999999999 !important;
}

/* Technické info a popis drží líniu karty */
.starysvet-masonry-info {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #f5f5f5;
}

/* ==========================================================================
   CSS HOVER OVERLAY PRE MOZAIKU (LUPA A NÁZOV NA OBRÁZKU)
   ========================================================================== */

/* Nastavíme pozíciu odkazu ako relatívnu, aby na nej držala prekrývacia vrstva */
.starysvet-gallery-lightbox {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* 1. SKRYTIE A PREMENA NA OVERLAY:
   Info panel štandardne schováme (opacity: 0) a vycentrujeme jeho obsah pomocou flexboxu */
.starysvet-gallery-lightbox .starysvet-masonry-info {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background: rgba(
    0,
    0,
    0,
    0.65
  ) !important; /* Elegantná tmavá polopriehľadná fólia */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 20px !important;
  box-sizing: border-box;
  border-top: none;

  /* Plynulý prechod namiesto tvrdého blikania */
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    opacity 0.25s ease-in-out,
    visibility 0.25s ease-in-out;
  z-index: 5 !important;
}

/* 2. AKTIVÁCIA HOVER STAVU: Pri prejdení myšou sa celá vrstva rozsvieti */
.starysvet-gallery-lightbox:hover .starysvet-masonry-info {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 3. ŠTÝLOVANIE PRVKOV VO VNÚTRI OVERLAY */
/* Ikona lupy s plusom */
.starysvet-zoom-icon {
  font-size: 28px !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
  line-height: 1 !important;
}

/* Biely, čistý názov rezby z predlohy */
.starysvet-gallery-lightbox .starysvet-masonry-info h4 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Technické parametre skryté vo vnútri vrstvy (zobrazia sa pod názvom) */
.starysvet-masonry-specs {
  list-style: none !important;
  margin: 12px 0 0 0 !important;
  padding: 8px 0 0 0 !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.3) !important;
  width: 100% !important;
}

.starysvet-masonry-specs li {
  color: #e0e0e0 !important;
  font-size: 11px !important;
}

.starysvet-masonry-specs li strong {
  color: #ffffff !important;
}

@keyframes starysvetFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   DOKONALÁ PRECHODOVÁ ANIMÁCIA LIGHTBOXU (RESIZING & FADE-OUT SLIDER)
   ========================================================================== */

.starysvet-lightbox-modal {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: auto !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  overflow: visible !important;
  outline: none !important;
}

.starysvet-lightbox-modal::backdrop {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(4px);
}

/* ⚪ DYNAMICKÝ BIELY RÁM: Dostáva pevný plynulý prechod rozmerov */
.starysvet-lightbox-content {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  padding: 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  box-sizing: border-box !important;
  overflow: hidden !important; /* Bezpečné orezanie textu, aby nikdy neprešiel cez okraj bielej */

  /* 🎯 KĽÚČOVÁ ZMENA: Rám sa plynule rozťahuje/sťahuje po dobu 300ms */
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Orezový wrapper drží presné proporcie vnútri hýbajúceho sa rámu */
.starysvet-lightbox-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  display: block !important;
}

.starysvet-lightbox-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  cursor: pointer !important;
  opacity: 1;
  /* Obrázok sa rozsvecuje 250ms po doklapnutí rozmerov rámu */
  transition: opacity 0.25s ease-in-out !important;
}

/* 🔒 ANIMATING OUT STAV (Keď kliknete na šípku, starý obraz bleskovo zhasne) */
.is-animating-out img {
  opacity: 0 !important;
  transition: opacity 0.15s ease-in-out !important;
}

/* Symetrické šípky navigácie */
.starysvet-lightbox-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 30 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
}
.nav-prev {
  left: 24px !important;
}
.nav-next {
  right: 24px;
}

.starysvet-lightbox-nav:hover {
  background: #000000 !important;
  border-color: #000000 !important;
}
.starysvet-lightbox-nav:hover .css-arrow {
  border-color: #ffffff !important;
}

.css-arrow {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-top: 3px solid #333333 !important;
  border-right: 3px solid #333333 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}
.arrow-left {
  transform: rotate(-135deg) !important;
  margin-left: 4px !important;
}
.arrow-right {
  transform: rotate(45deg) !important;
  margin-right: 4px !important;
}

.starysvet-lightbox-close {
  position: absolute !important;
  top: 22px !important;
  right: 22px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  color: #333333 !important;
  font-size: 20px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  line-height: 28px !important;
  text-align: center !important;
  padding: 0 !important;
  z-index: 35 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 🏷️ POPIS S VERTIKÁLNYM SCROLLOM (Pripútaný striktne k vnútornej orezovej hrane) */

/* Otvorenie okna */
.starysvet-lightbox-modal[open] {
  animation: starysvetFadeIn 0.2s ease-out forwards;
}
@keyframes starysvetFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   FINÁLNA DOVRŠENÁ ÚPRAVA: VERTIKÁLNY TEXT A FILMOVÁ SÝTOSŤ LIŠTY
   ========================================================================== */

.starysvet-caption-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;

  /* ZVÝŠENÁ SÝTOSŤ (OPAQUE): Pás je tmavší a tlmí detaily pod sebou pre 100% čitateľnosť */
  background: rgba(0, 0, 0, 0.7) !important;
  padding: 18px 25px !important; /* Mierne komfortnejšie, širšie odsadenie */
  box-sizing: border-box !important;
  text-align: center !important;

  transform: translateY(0) !important;
  opacity: 1 !important;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease !important;
  z-index: 15 !important;

  /* 🏷️ TEXTOVÁ LIŠTA (Umiestnená presne na spodnú hranu fotky, rešpektuje hrúbku rámu) */
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.starysvet-caption-overlay.caption-hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
}

/* Názov veľkého diela navrchu */
.starysvet-caption-overlay h5 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  margin: 0 0 10px 0 !important; /* Odstup pod hlavným názvom */
}

/* ↕️ ZMENA NA ZVISLÉ RIADKOVANIE POD SEBOU: Presne kopíruje vzhľad vašej predlohy */
.lightbox-specs-inline {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important; /* Zarovná parametre jeden pod druhý */
  align-items: center !important;
  gap: 4px !important; /* Drobný rozostup medzi riadkami */

  /* Vďaka orezu na riadku 38 sa text plynulo stiahne nadol do vnútra konštrukcie, bez pretečenia cez biely okraj */
  justify-content: center !important;
}

.lightbox-specs-inline li {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #dddddd !important; /* Jemne zmäkčená biela pre prídavné texty */
  margin: 0 !important;
}

.lightbox-specs-inline li strong {
  color: #ffffff !important; /* Názvy vlastností (Materiál, Rozmery...) svietia ostro na bielo */
  font-weight: 400 !important; /* Prirodzená, čistá hrúbka */
}

/********************** DREVOREZBY - BACK BUTTON **********************/
.starysvet-page-navigation-right {
  display: flex !important;
  justify-content: flex-end !important; /* CRITICAL: Forces children elements completely to the right edge */
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 40px 0 20px 0 !important; /* Clear separation spacing below the content */
  padding: 0 !important;
  border: none !important; /* Strips out the divider line completely */
  clear: both !important;
  box-sizing: border-box !important;
}

.starysvet-btn-back {
  display: inline-block !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #1a1a1a !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease-in-out !important;
}

.starysvet-btn-back span {
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-block !important;
  margin-right: 6px !important;
  transform: translateY(1px) !important;
}

.starysvet-btn-back:hover {
  background: #000000 !important;
  border-color: #000000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   CHECKOUT TWO-COLUMN LAYOUT RATIO OVERHAUL (1:2 PROPORTIONAL RATIO)
   ========================================================================== */

/* Two-column grid only on wide screens (the right column needs ~600px+ for the
   totals table with 10 shipping options). Below 1101px the columns stack. */

/* 768-1100px: single column, order review below the billing form */

/********************** NOTICES **********************/
/* ==========================================================================
   MODERNÝ DIZAJN PRE WOOCOMMERCE HLÁSENIA (INFO, NOTICE, ERROR)
   ========================================================================== */

/* 1. GLOBÁLNY RESET PRE VŠETKY HLÁSENIA */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background-color: #ffffff !important; /* Čisté biele pozadie pre maximálny kontrast */
  color: var(--sv-text) !important; /* Tmavosivý, výborne čitateľný text */
  border-radius: 6px !important; /* Jemné zaoblenie rohov */
  padding: 18px 24px 18px 60px !important; /* Dostatok vnútorného priestoru */
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Jemný tieň, aby box netrčal */
  margin: 0 0 25px 0 !important;
  position: relative !important;
  word-wrap: break-word;
}

/* Kľúčová oprava: Zvýraznenie všetkých odkazov (napr. "kliknite sem") */
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
  color: var(--sv-info) !important; /* Moderná, jasná modrá farba pre odkazy */
  text-decoration: none !important; /* Podčiarknutie pre okamžitú identifikáciu */
  font-weight: 600 !important;
  transition: color 0.15s ease-in-out !important;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover {
  color: var(--sv-info-hover) !important; /* Tmavšia modrá pri prejdení myšou */
}

/* 2. ŠPECIFICKÉ ÚPRAVY PRE INFORMAČNÝ BOX (Už ste u nás nakupovali? / Kupón) */
.woocommerce-info {
  border: none !important;
  border-left: 4px solid var(--sv-info) !important; /* Elegantný modrý pásik naľavo */
}

/* Úprava ikony pre Info box */
.woocommerce-info::before {
  color: var(--sv-info) !important; /* Modrá ikona "i" */
  left: 22px;
  top: 50%;
  transform: translateY(-50%) !important;
}

/* 3. ŠPECIFICKÉ ÚPRAVY PRE ÚSPEŠNÝ BOX (Produkt bol pridaný do košíka...) */
.woocommerce-message {
  border: none !important;
  border-left: 4px solid var(--sv-success) !important; /* Zelený pásik naľavo pre úspech */
}

/* Úprava ikony pre Úspešný box */
.woocommerce-message::before {
  color: var(--sv-success) !important; /* Zelená ikona fajky */
  left: 22px;
  top: 50%;
  transform: translateY(-50%) !important;
}

/* 4. ŠPECIFICKÉ ÚPRAVY PRE CHYBOVÝ BOX (Vyplňte povinné údaje...) */
.woocommerce-error {
  border: none !important;
  border-left: 4px solid var(--sv-error) !important; /* Červený pásik naľavo pre chyby */
  list-style: none !important;
  padding-left: 60px !important;
}

/* Úprava ikony pre Chybový box */
.woocommerce-error::before {
  color: var(--sv-error) !important; /* Červená ikona vykričníka */
  left: 22px;
  top: 22px; /* Fixné umiestnenie navrchu pre viacriadkové chyby */
}

body.woocommerce-checkout .woocommerce-error::before,
body.woocommerce-cart .woocommerce-error::before {
  top: 50%;
  transform: translateY(-50%) !important;
}

/* The "Pokladňa" title keeps its own bottom margin (16px, 12px on phones,
   set in CHECKOUT WIDTH) so it doesn't touch the login banner. */

/* Single-column layout (<=1100px): the grid gap is gone, so the banners
   at the top need their own space before the billing form starts. */

/* Vyčistenie vnútorných zoznamov chýb */
.woocommerce-error li {
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
  text-align: left !important;
}
.woocommerce-error li:last-child {
  margin-bottom: 0 !important;
}
/* FORCE HIGH CONTRAST ON ALL PAYMENT GATEWAY TIMEOUT NOTICE LINKS */
.woocommerce-error a,
div[class*="notice"] a,
div[class*="error"] a {
  color: var(--sv-info) !important; /* Vibrant high-contrast blue */
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-block !important;
}

/* Hover feedback action */
.woocommerce-error a:hover,
div[class*="notice"] a:hover,
div[class*="error"] a:hover {
  color: var(--sv-info-hover) !important;
}

/* buttons inside notices keep the normal button look (not link styling) */
.woocommerce-info a.button,
.woocommerce-message a.button,
.woocommerce-error a.button,
div[class*="notice"] a.button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--sv-on-accent) !important;
  font-weight: var(--sv-btn-weight) !important;
  text-decoration: none !important;
}

.woocommerce-info a.button:hover,
.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
div[class*="notice"] a.button:hover {
  color: var(--sv-on-accent) !important;
}

/* block-based notices: bar + icon follow the palette too */

/* vertical centring of notice text next to its button / icon */

.woocommerce-info,
.woocommerce-message {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.woocommerce-info a.button,
.woocommerce-message a.button,
.woocommerce-message a.restore-item {
  order: 2; /* comes first in the markup: keep it after the text */
  flex: none;
  float: none !important;
  margin: 0 0 0 auto !important;
}

/******************  SHOP AND PRODUCT LISTS  *****************
   Shop front page (Knihy), category / attribute / search archives and the Vinyl LP page. Markup: WooCommerce loop + product-loop.php, vinyl-shop-page.php.
   Order: grid, archive header, sorting bar, product card, new ribbon, "no products" notice.
*/

/**************** LIST GRID AND PAGE LAYOUT ****************/

/* Product-list PAGES (e.g. Platne, a regular page, not a shop archive):
   Storefront gives the page's <article class="hentry"> a big bottom margin.
   The .col-full wrapper has no vertical padding, so that margin collapses
   out of it and shows up as a tan gap between the sorting bar and the
   footer. The sorting bar already brings its own 20px padding, so drop it. */

body.page:has(ul.products) .hentry,
body.page:has(ul.products) .entry-content {
  margin-bottom: 0;
}

/* Title -> sorting bar gap, ONLY on the two main list pages (Knihy shop page and the Platne landing
   page; category / attribute / search archives have their own header). Both use the same 10px:
   - Knihy: title margin 0 + the top sorting bar's padding-top 10px (rules below).
   - Platne (a regular page, body.starysvet-platne-landing, class added in theme-setup.php): the
     bar has no padding there, so the gap is the title's own bottom margin. */

body.page.page.starysvet-platne-landing .entry-header .entry-title {
  margin-bottom: 10px !important;
}

/**************** ARCHIVE HEADER (TITLE, KICKER, DESCRIPTION) ****************/

/* Title: same look as the text-page titles (no box, centered, 28px/700) */

body.home .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header {
  margin: 0;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home .woocommerce-products-header__title.page-title,
body.woocommerce-shop .woocommerce-products-header__title.page-title {
  margin: 0;
  color: #292622;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: none;
}

.woocommerce-products-header__title .attr-title-value {
  display: block;
}

/* Same card as the category / attribute archive headers (kicker label +
   bold value). Declared last and doubled (body.search.search) so it also
   wins over the home / shop rules that strip the box on those pages. */

body.search.search .woocommerce-products-header {
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

body.search.search .woocommerce-products-header__title.page-title {
  margin: 0;
  color: var(--sv-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
}

:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header
  .page-title
  .attr-title-kicker {
  display: block;
  margin: 0 0 2px;
  color: rgba(60, 40, 20, 0.42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 -1px 0 rgba(60, 40, 20, 0.14);
}

:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header
  .page-title
  .attr-title-value {
  display: block;
}

@media (max-width: 560px) {
  body.home .woocommerce-products-header__title.page-title,
  body.woocommerce-shop .woocommerce-products-header__title.page-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  body.search.search .woocommerce-products-header {
    padding: 12px 14px;
  }
  body.search.search .woocommerce-products-header__title.page-title {
    font-size: 20px;
  }
}

/**************** SORTING BAR: DROPDOWN, RESULT COUNT, PAGINATION ****************/

/* Styled to sit on the kraft-paper background like the product cards:
   white surface, same hairline border + soft shadow as the cards, small
   radius matching the buttons, and both controls share one 40px height so
   they line up on a single row. Current page uses the walnut of the menu
   bar; hover uses the beige "pill" tone from the rest of the site. */

.storefront-sorting {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  border: none;
  background: none;
}

.storefront-sorting::before,
.storefront-sorting::after {
  display: none;
  content: none;
}

.woocommerce-ordering {
  grid-column: 1;
  justify-self: start;
  margin: 0;
  float: none;
}

.woocommerce-result-count {
  /* Hidden on every page. Delete this line to show the count in the middle column. */
  display: none;
  grid-column: 2;
  justify-self: center;
  margin: 0;
  padding: 0;
  float: none;
  font-size: 0.85rem;
  color: var(--sv-author);
}

.woocommerce-pagination {
  grid-column: 3;
  justify-self: end;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 3px;
  float: none;
  display: flex;
  align-items: center;
  background-color: var(--sv-card-bg);
  border: 1px solid var(--sv-product-card-border);
  border-radius: var(--sv-btn-radius);
  box-shadow: var(--sv-card-shadow);
}

.woocommerce-ordering select.orderby {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 40px;
  min-width: 220px;
  margin: 0;
  padding: 0 38px 0 14px;
  border: 1px solid var(--sv-product-card-border);
  border-radius: var(--sv-btn-radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 38px;
  color: var(--sv-heading);
  background-color: var(--sv-card-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239c5b28' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: var(--sv-card-shadow);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.woocommerce-ordering select.orderby:hover {
  border-color: var(--sv-product-card-border-hover);
}

.woocommerce-ordering select.orderby:focus {
  outline: none;
  border-color: var(--sv-accent);
  box-shadow: 0 0 0 3px rgba(220, 152, 54, 0.22);
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  border: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination ul.page-numbers li {
  border: none;
  margin: 0;
  padding: 0;
  float: none;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--sv-text);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible {
  background-color: var(--sv-surface-accent);
  color: var(--sv-link-hover);
}

/* Current page: walnut chip, same as the menu bar */

.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
  background: var(--sv-nav-bg);
  border-color: var(--sv-nav-bg);
  color: var(--sv-nav-text-strong);
  font-weight: 700;
}

/* Dots */

.woocommerce-pagination ul.page-numbers li span.page-numbers.dots {
  min-width: 22px;
  padding: 0;
  background: transparent;
  color: var(--sv-label);
}

/* Next / previous arrows in the link brown */

.woocommerce-pagination ul.page-numbers li a.next.page-numbers,
.woocommerce-pagination ul.page-numbers li a.prev.page-numbers {
  color: var(--sv-link);
  font-size: 1rem;
}

/* Knihy (shop page): the bar ABOVE the grid (the one followed by ul.products) sits closer to the title.
   The bar under the grid keeps its 20px. This is the only place the gap is set for Knihy. */
body.home .storefront-sorting:has(~ ul.products),
body.woocommerce-shop .storefront-sorting:has(~ ul.products) {
  /* The title is hidden (see HIDDEN PAGE TITLES at the end), so the space above the bar is the
     header's 24px bottom margin; give the bar the same 24px below, so both gaps are equal. */
  padding-top: 0;
  padding-bottom: 24px;
}

/* Platne page: the bar under the grid sits flush against the cards (its
   own padding isn't applied there), while 20px is left below it. Push it
   down by the same amount so it is centred between cards and footer. */

body.page:has(ul.products) ul.products + *,
body.page:has(ul.products) ul.products ~ .storefront-sorting {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .storefront-sorting {
    /* minmax(0, ...): a plain 1fr column cannot get narrower than its widest content,
       so a long page list stretched the whole bar past the screen edge */
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    justify-items: center;
  }
  .woocommerce-ordering,
  .woocommerce-result-count,
  .woocommerce-pagination {
    grid-column: 1;
    justify-self: center;
  }
  .woocommerce-ordering {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
  }
  .woocommerce-ordering select.orderby {
    width: 100%;
    min-width: 0;
  }
  /* never wider than the screen: the page numbers wrap onto a second line if needed */
  .woocommerce-pagination {
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 40px;
  }
  .woocommerce-pagination ul.page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
  .woocommerce-pagination ul.page-numbers li a.page-numbers,
  .woocommerce-pagination ul.page-numbers li span.page-numbers {
    min-width: 30px;
  }
  /* Platne: the same stacked layout as .storefront-sorting (sort dropdown on one row,
     pagination on the next) */
  .platne-loop-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .woocommerce-pagination ul.page-numbers {
    gap: 0;
  }
  .woocommerce-pagination ul.page-numbers li a.page-numbers,
  .woocommerce-pagination ul.page-numbers li span.page-numbers {
    min-width: 28px;
    padding: 0 4px;
    font-size: 0.85rem;
  }
}

/**************** PRODUCT CARD ****************/

/* 1. Card shell: equal height, boxed. The card does not react on hover at all. */

/* 2. Push the price/button row to the bottom of the card regardless of
      how much text sits above it */

:is(.woocommerce, .woocommerce-page, body) ul.products li.product .col-md-10 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* the base card rule sets height: 100%, which stops a flex item from
   stretching to the tallest card in its row */

:is(.woocommerce, .woocommerce-page, body) ul.products li.product,
:is(.woocommerce, .woocommerce-page, body)
  ul.products[class*="columns-"]
  li.product {
  height: auto !important;
  align-self: stretch;
}

:is(.woocommerce, .woocommerce-page, body) ul.products li.product > .row {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 13px 15px;
}

:is(.woocommerce, .woocommerce-page, body) ul.products li.product a {
  text-decoration: none;
}

/* cover */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  > .row
  > .col-md-2 {
  flex: 0 0 var(--sv-cover-width);
  width: var(--sv-cover-width);
  align-self: flex-start;
  float: none;
  margin: 0;
  padding: 0;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .thumbnail-container {
  overflow: hidden; /* clips the ribbon to the cover */
  border-radius: 4px;
  border: 1px solid rgba(60, 40, 20, 0.09);
  background: var(--sv-cover-frame-bg);
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.14);
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .thumbnail-container
  a {
  display: block;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .thumbnail-container
  img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--sv-cover-max-h); /* tall scans don't stretch the card */
  object-fit: contain; /* whole cover visible; the frame colour fills the rest */
  margin: 0;
  box-shadow: none;
}

/* text */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  > .row
  > .col-md-10 {
  flex: 1 1 0;
  width: auto;
  float: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: stretch;
  position: relative; /* anchors the price + button column */
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description {
  padding: 0;
  text-align: left;
}

/* title + subtitle: subtitle hugs the title */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  h2.product-title {
  margin: 0 0 4px;
  font-family: var(--sv-font-display); /* book-style serif for titles only */
  font-size: var(--sv-fs-card-title-serif);
  font-weight: 600; /* the only bold weight of the font that is loaded */
  line-height: 1.2;
  color: var(--sv-card-title);
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  h2.product-title
  a {
  color: var(--sv-card-title);
  font-weight: inherit;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  h2.product-title
  a:hover,
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  h2.product-title
  a:focus-visible {
  color: var(--sv-card-title-hover);
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  h2.product-title:has(+ .product_desc) {
  margin-bottom: 0;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  .product_desc {
  margin: -3px 0 4px; /* pulled up under the title */
  padding: 0;
  line-height: 1.2;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  .author {
  margin: 0 0 4px;
}

/* the theme's loose line-height was spreading the data lines apart */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-description
  p {
  line-height: 1.4;
}

/* Annotation: full width of the text area, under the author */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_annotation {
  width: 100%;
  margin: 3px 0 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom band: two columns.
   left  -> language / publisher / genres, left-aligned
   right -> price centred over the add-to-cart button */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  /* fills the rest of the card instead of being pushed down with margin-top:auto:
     the language / publisher line then sits a constant gap under the annotation
     (the annotation's bottom margin), while genres + price stay at the bottom. */
  flex: 1 1 auto;
  margin-top: 0;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* merged meta line: "slovenský jazyk · Ars Stigmy, 1992".
   Language stays grey, publisher and year keep the normal link colour; hover only
   changes the colour (no underline). One row. When it is too narrow, the END OF THE
   PUBLISHER NAME is cut with an ellipsis; language, separator and year always stay visible. */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-meta
  .product_meta_line {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: var(--sv-fs-card-meta);
  font-weight: 400;
  color: var(--sv-muted);
  white-space: nowrap;
  overflow: hidden;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_meta_line
  :is(.product_language, .product_publisher) {
  margin: 0;
  font-size: inherit;
}

/* never shrink: language, the dot, the year */
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_meta_line
  :is(.product_language, .product_meta_sep, .product_publisher_year) {
  flex: none;
}

/* a flex item trims leading / trailing spaces, so keep the spaces around the dot */
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_meta_line
  .product_meta_sep {
  white-space: pre;
}

/* "publisher, year" shrinks as a whole... */
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_meta_line
  .product_publisher {
  display: flex;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
}

/* ...but only the publisher name gives way: it gets the ellipsis, the year keeps its place */
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_meta_line
  .product_publisher_name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* genres sit at the bottom of the card; the padding is the minimum gap
   kept above them when the card is short and everything is close together */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-meta
  .product_cat {
  margin-top: auto;
  padding-top: 9px;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_cat:not(:has(a)) {
  display: none; /* empty genre paragraph */
}

/* genre pills fill from the bottom: the first (rarest) genre sits on the bottom row,
   further rows build up above it, so the last row lines up with the price / button.
   (display: flex lives here, not in the rule above, so the empty-paragraph rule can still hide it) */

:is(.woocommerce, .woocommerce-page, body) ul.products li.product .product_cat {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 5px;
}

/* softer, smaller genre pills. The markup shows only the last part of the path
   (the full path is the tooltip); the pills wrap onto more rows when needed. */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_cat
  a {
  margin: 0;
  padding: 1px 9px;
  border-radius: 999px;
  background-color: rgba(241, 233, 221, 0.6);
  font-size: 11px;
  font-weight: 500;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product_cat
  a:hover {
  background-color: var(--sv-surface-accent-hover);
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-row {
  flex: 0 0 auto;
  width: auto; /* as wide as the button / price, so the price centres over the button */
  align-self: flex-end; /* bottom right of the card, not vertically centred */
  display: flex;
  flex-direction: column; /* price above the button, always */
  align-items: center; /* price centred over the button */
  gap: 9px;
  margin: 0;
  padding: 0;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-mini-price,
:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-buttons {
  float: none;
  width: auto;
  padding: 0;
  text-align: center;
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-mini-price
  .price {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--sv-heading);
}

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-buttons
  a {
  box-sizing: border-box; /* cart-button.php sets min-width from the measured border-box width */
  justify-content: center; /* label + icon stay centred when the button is wider than its content */
  width: auto;
  padding: var(--sv-card-btn-pad);
  white-space: nowrap;
}

/* WooCommerce's loading state used to force a different padding: the button changed
   size the moment it was clicked. It keeps the resting padding now. */

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .product-action-buttons
  a:is(.loading, .is-loading) {
  padding: var(--sv-card-btn-pad) !important;
}

:is(.woocommerce, .woocommerce-page, body) ul.products li.product {
  display: flex;
  flex-direction: column;
  background-color: var(--sv-product-card-bg);
  border: 1px solid var(--sv-product-card-border);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  container-type: inline-size;
}

@media (max-width: 520px) {
  :is(.woocommerce, .woocommerce-page, body) ul.products li.product > .row {
    gap: 12px;
    padding: 11px;
  }
}

/**************** NEW RIBBON ****************/

:is(.woocommerce, .woocommerce-page, body)
  ul.products
  li.product
  .thumbnail-container
  .cpe-new-ribbon {
  bottom: 12px;
  left: -32px;
  width: 112px;
  padding: 3px 0;
  font-size: 10px;
  line-height: normal;
}

/**************** NO PRODUCTS FOUND NOTICE ****************/

.woocommerce-no-products-found .woocommerce-info::before,
.woocommerce-products-header ~ .woocommerce-info::before {
  display: none !important;
}

/*********************** ORDERBY & PAGINATION **********************/

/* ----- Sort dropdown ----- */

/* ----- Pagination row ----- */

/* ----- Mobile ----- */

/********** FEED **********/
/* Force Easy Social Feed grid container to render as a fluid masonry layout */
.efbl-facebook-stream {
  column-count: 3; /* Matches your desktop columns setup */
  column-gap: 20px;
  display: block !important;
}

.efbl-facebook-stream .efbl-feed-item {
  display: inline-block !important;
  width: 100% !important;
  margin-bottom: 20px;
  break-inside: avoid;
}

/******************  FREE-SHIPPING NOTICE  *****************
   The "Ešte X € a máte dopravu zadarmo" / "Doprava zadarmo!" notice. Printed by shipping-free-shipping.php in the cart, the checkout and the mini-cart.
   .cpe-free-shipping = cart + checkout, .mini-free-shipping = mini-cart dropdown.
*/

/**************** BASE LOOK (CART, CHECKOUT, MINI-CART) ****************/

/* Shared: cart banner, checkout notice, mini-cart */

.cpe-free-shipping,
.free-shipping-notice,
.mini-free-shipping {
  display: block;
  padding: 12px;
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: var(--sv-shipping-remaining) !important; /* "remaining" state */
}

.free-shipping-price {
  display: inline-block;
  margin: 0 5px;
  font-weight: 700;
  color: inherit;
}

/* "Free shipping reached" state */

.cpe-free-shipping.free-shipping-yes,
.mini-free-shipping.free-shipping-yes {
  background: var(--sv-success) !important;
}

/* Mini-cart: the box is always printed (so the cart fragment can refill it), but it is empty when the
   notice is not offered (e.g. customer outside Slovakia). An empty box must not show its padding + colour. */

.mini-free-shipping:empty {
  display: none;
}

/* 1. ŠTANDARDNÝ FUNKČNÝ STAV: Keď je košík dočítaný, lišta normálne svieti */

.cpe-free-shipping {
  display: flex !important;
}

/**************** CART PAGE ****************/

/* Cart banner: force centered inline text */

.simple-cart .cpe-free-shipping,
.simple-cart .cpe-free-shipping.free-shipping-no,
.simple-cart .cpe-free-shipping.free-shipping-yes {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  border-radius: 6px;
}

.simple-cart .cpe-free-shipping > * {
  text-align: center;
}

/**************** CHECKOUT PAGE ****************/

/* Free shipping */

.checkout.woocommerce-checkout .cpe-free-shipping {
  padding: 16px;
  justify-content: center;
  align-items: center;
}

/* Cart page only: spacing + rounded corners */

/* Checkout: spacing so it doesn't touch the payment block */

.woocommerce-checkout .cpe-free-shipping {
  margin: 0 0 1rem;
}

body.woocommerce-checkout #order_review .cpe-free-shipping {
  margin-top: 0;
}

/* The script in sts-checkout.php puts sts-region-sk / -cz / -eu / -world on <body>,
   following the radio button of the country that decides shipping. */

body.woocommerce-checkout:is(.sts-region-cz, .sts-region-eu, .sts-region-world)
  .cpe-free-shipping,
body.woocommerce-checkout:is(.sts-region-cz, .sts-region-eu, .sts-region-world)
  .free-shipping-notice {
  display: none !important;
}

@media (max-width: 768px) {
  .efbl-facebook-stream {
    column-count: 1; /* Drop to standard single column vertical stack on mobile devices */
  }
}

/****************** FREE SHIPPING ******************/

/* =========================================
   Main page (shop = front page)
   ========================================= */

/* Product lists: our own responsive grid.
   Storefront / WooCommerce size the cards with percentage widths + floats that
   differ per breakpoint; the cards are flex items with container-type:
   inline-size, so on any width where no such rule applies they collapse to
   ~1px. A CSS grid sizes them itself:
   - never more columns than the WooCommerce setting (columns-N class),
   - never narrower than --sv-min-card, so the price + button row always fits,
   - 1 column on phones, automatically.
   Rows are separated by the grid gap only, so there is no space under the
   last row (full, partial or a single card). Applies to every product list
   except related / upsell / cross-sell lists on product, cart, checkout and
   account pages. */
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  #main {
  margin-bottom: 0 !important;
}

body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products,
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products[class*="columns-"] {
  --sv-cols: 3;
  --sv-gap: 28px;
  --sv-min-card: 400px;

  display: grid !important;
  grid-template-columns: repeat(
    auto-fill,
    minmax(
      min(
        100%,
        max(
          var(--sv-min-card),
          calc((100% - (var(--sv-cols) - 1) * var(--sv-gap)) / var(--sv-cols))
        )
      ),
      1fr
    )
  );
  gap: var(--sv-gap);
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-1 {
  --sv-cols: 1;
}
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-2 {
  --sv-cols: 2;
}
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-3 {
  --sv-cols: 3;
}
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-4 {
  --sv-cols: 4;
}
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-5 {
  --sv-cols: 5;
}
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products.columns-6 {
  --sv-cols: 6;
}

body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products
  li.product,
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products[class*="columns-"]
  li.product {
  width: auto !important;
  max-width: none;
  min-width: 0;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* price above the button (a column, bottom right), so nothing to wrap any more */
body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products
  li.product
  .product-action-row {
  flex-wrap: nowrap;
  row-gap: 12px;
}

body:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(
    .woocommerce-account
  )
  ul.products
  li.product
  .product-action-buttons
  a {
  max-width: 100%;
}

/* =========================================
   "Categories" / "Kategórie platne" pages
   (body class added in theme-setup.php) - title like the text pages
   ========================================= */
body.starysvet-category-index .woocommerce-products-header {
  margin: 0;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.starysvet-category-index .entry-title,
body.starysvet-category-index .page-title,
body.starysvet-category-index .entry-header h1,
body.starysvet-category-index .woocommerce-products-header__title {
  margin: 0 0 16px !important;
  color: #292622 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: none !important;
}

@media (max-width: 560px) {
  body.starysvet-category-index .entry-title,
  body.starysvet-category-index .page-title,
  body.starysvet-category-index .entry-header h1,
  body.starysvet-category-index .woocommerce-products-header__title {
    margin-bottom: 12px !important;
    font-size: 24px !important;
  }
}

/* Attribute archive titles: small inset label ("Rok", "Autor", ...) above the value */
.woocommerce-products-header__title .attr-title-kicker {
  display: block;
  margin: 0 0 2px;
  color: rgba(60, 40, 20, 0.42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  /* light edge below + faint dark edge above = pressed into the surface */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 -1px 0 rgba(60, 40, 20, 0.14);
}

/* ===== "No products found" notice =====
   No box: just centred, muted text pressed into the page (same inset look as
   the small label above attribute / category titles). */
.woocommerce-no-products-found .woocommerce-info,
.woocommerce-products-header ~ .woocommerce-info {
  /* fill the space under the title card and centre the text in it */
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  padding: 48px 16px !important;
  margin: 0 !important;
  text-align: center;
  color: rgba(60, 40, 20, 0.72) !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.4 !important;
  /* soft light edge below = gently pressed into the surface */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/****************** DREVOREZBY PAGE: REDESIGN ******************/
/* Pairs with the block markup in drevorezby-page.html (classes:
   starysvet-lead, starysvet-contact-card, starysvet-author-card).
   Colours come from the existing --sv-* tokens. */

/* Intro: comfortable reading width, a bit larger than body text */
.entry-content .starysvet-lead {
  max-width: 1000px;
  margin: 0 auto 32px;
  color: #4a4540;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance; /* evens out line lengths, avoids a lone last word */
}

/* --- Gallery cards: same warm card family as the rest of the shop --- */
.starysvet-work-grid-container {
  gap: 24px;
  margin: 0 0 40px;
}

/* 3 per row: (100% - 2 gaps of 24px) / 3. Desktop only, so the mobile
   rule (one card per row at 100%) keeps working. */
@media (min-width: 769px) {
  .starysvet-work-grid-container .starysvet-work-column-card {
    flex: 1 1 calc((100% - 48px) / 3);
  }
}

.starysvet-work-grid-container .starysvet-work-column-card {
  background: var(--sv-surface-accent) !important;
  border: 1px solid var(--sv-card-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--sv-card-shadow) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.starysvet-work-grid-container .starysvet-work-column-card:hover {
  transform: translateY(-3px) !important;
  filter: none;
  box-shadow: 0 10px 22px rgba(60, 40, 20, 0.16) !important;
}

.starysvet-work-grid-container .starysvet-work-image-wrapper {
  background-color: var(--sv-surface-accent-hover) !important;
  border-bottom: 1px solid var(--sv-card-border) !important;
}

.starysvet-work-grid-container .starysvet-work-image-wrapper img {
  transition: transform 0.6s ease;
}

.starysvet-work-grid-container .starysvet-work-column-card:hover img {
  transform: scale(1.05);
}

.starysvet-work-grid-container .starysvet-work-column-title {
  padding: 14px 8px !important;
  color: var(--sv-pill-text) !important;
  letter-spacing: 0.08em !important;
}

.starysvet-work-grid-container .starysvet-work-column-title::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.starysvet-work-grid-container
  .starysvet-work-column-card:hover
  .starysvet-work-column-title {
  color: var(--sv-link-hover) !important;
}

.starysvet-work-grid-container
  .starysvet-work-column-card:hover
  .starysvet-work-column-title::after {
  transform: translateX(4px);
}

/* --- Contact: text + contacts on the left, form on the right --- */
.entry-content .starysvet-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  margin: 0 0 40px;
  padding: 32px 36px;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

.entry-content .starysvet-contact-card > .wp-block-group__inner-container {
  display: contents;
}

.entry-content .starysvet-contact-card h2,
.entry-content .starysvet-author-card h2 {
  margin: 0 0 12px;
  color: var(--sv-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.entry-content .starysvet-contact-card p {
  margin: 0;
  color: var(--sv-text);
  line-height: 1.7;
}

.entry-content .starysvet-contact-card a,
.entry-content .starysvet-author-card a {
  color: var(--sv-link);
  font-weight: 600;
}

.entry-content .starysvet-contact-card a:hover,
.entry-content .starysvet-author-card a:hover {
  color: var(--sv-link-hover);
}

.starysvet-contact-card #simple-contact-form {
  max-width: none;
  gap: 12px;
}

.starysvet-contact-card #simple-contact-form input,
.starysvet-contact-card #simple-contact-form textarea {
  padding: 11px 14px;
  background: var(--sv-field-bg);
  border: 1px solid var(--sv-field-border);
  border-radius: var(--sv-btn-radius);
  color: var(--sv-text);
  font-size: 15px;
  box-shadow: none;
}

.starysvet-contact-card #simple-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.starysvet-contact-card #simple-contact-form input:focus,
.starysvet-contact-card #simple-contact-form textarea:focus {
  background: #fff;
  border-color: var(--sv-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(220, 152, 54, 0.25);
}

/* keep the validation colours winning over the neutral border above */
.starysvet-contact-card #simple-contact-form .scf-invalid {
  border-color: var(--sv-error);
}

.starysvet-contact-card #simple-contact-form .scf-valid {
  border-color: var(--sv-success);
}

.starysvet-contact-card #simple-contact-form button,
.starysvet-contact-card #simple-contact-form input[type="submit"] {
  padding: var(--sv-btn-pad);
  background: var(--sv-accent);
  border: 0;
  border-radius: var(--sv-btn-radius);
  color: var(--sv-on-accent);
  font-weight: var(--sv-btn-weight);
  cursor: pointer;
  transition: background 0.2s ease;
}

.starysvet-contact-card #simple-contact-form button:hover,
.starysvet-contact-card #simple-contact-form input[type="submit"]:hover {
  background: var(--sv-accent-hover);
}

/* --- Author: calm card with the thick left bar used by the header boxes --- */
.entry-content .starysvet-author-card {
  margin: 0 0 24px;
  padding: 28px 36px;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-left: 6px solid var(--sv-accent);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

.entry-content .starysvet-author-card p {
  margin: 0;
  color: var(--sv-text);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .entry-content .starysvet-lead {
    font-size: 16px;
  }

  .entry-content .starysvet-contact-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 18px;
  }

  .entry-content .starysvet-author-card {
    padding: 22px 18px;
  }

  .entry-content .starysvet-contact-card h2,
  .entry-content .starysvet-author-card h2 {
    font-size: 20px;
  }
}

/****************** FOCUS BOXES: RADIOS + CHECKBOXES (site-wide) ******************/
/* No box when clicking or tapping. Keyboard users still get a small ring
   (:focus-visible) so tabbing through forms stays visible. Text fields,
   buttons and links keep their own focus styles. */
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sv-accent) 70%, transparent) !important;
  outline-offset: 2px;
}

input[type="radio"]:focus-visible {
  border-radius: 50%;
}

input[type="checkbox"]:focus-visible {
  border-radius: 3px;
}

/* ==========================================================================
   ORDER RECEIVED (thank-you page) + pickup point block
   Uses the same --sv- tokens as the product spec card and My Account tables.
   ========================================================================== */

/* readable column instead of full-bleed */
body.woocommerce-order-received .woocommerce-order {
  max-width: 880px;
  margin: 0 auto 40px;
}

body.woocommerce-order-received .entry-title {
  margin-bottom: 16px !important;
}

@media (max-width: 560px) {
  body.woocommerce-order-received .entry-title {
    margin-bottom: 12px !important;
  }
}

/* "Ďakujeme…" line as a calm confirmation bar */
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--sv-success);
  border-radius: 6px;
  background: var(--sv-surface-accent);
  color: var(--sv-text);
  font-size: 17px;
  font-weight: 600;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: "\2713";
  color: var(--sv-success);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* section headings */
body.woocommerce-order-received .woocommerce-order h2 {
  margin: 36px 0 14px;
  padding: 0;
  border: 0;
  color: #292622;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

/* order overview + bank details: one card, label left / value right
   (both are <ul class="order_details">, so one rule styles both) */
body.woocommerce-order-received .woocommerce-order ul.order_details {
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
  list-style: none;
  overflow: hidden;
}

/* remove the theme's zig-zag "receipt" edges */
body.woocommerce-order-received .woocommerce-order ul.order_details::before,
body.woocommerce-order-received .woocommerce-order ul.order_details::after {
  content: none;
  display: none;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  float: none;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--sv-divider);
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.woocommerce-order-received
  .woocommerce-order
  ul.order_details
  li:first-child {
  border-top: 0;
}

body.woocommerce-order-received .woocommerce-order ul.order_details li strong {
  display: inline;
  color: var(--sv-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
  word-break: break-word;
}

/* bank details: account holder as the header strip of the card below it
   (same cream header look as the order table's column headings) */
body.woocommerce-order-received
  .woocommerce-order
  h3.wc-bacs-bank-details-account-name {
  display: block;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--sv-card-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--sv-surface-accent);
  color: var(--sv-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

body.woocommerce-order-received
  .woocommerce-order
  h3.wc-bacs-bank-details-account-name::before {
  content: "Majiteľ účtu";
  display: block;
  margin-bottom: 4px;
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* the card directly under it: square off the top so the two read as one */
body.woocommerce-order-received
  .woocommerce-order
  h3.wc-bacs-bank-details-account-name
  + ul.order_details {
  border-top: 1px solid var(--sv-divider);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* …and the first row's own divider is no longer needed */
body.woocommerce-order-received
  .woocommerce-order
  h3.wc-bacs-bank-details-account-name
  + ul.order_details
  li:first-child {
  border-top: 0;
}

/* payment note under the overview card (gateway text, e.g. COD: "Za balík
   zaplatíte až pri prevzatí. Upozornenie: …"): a bare <p> right after the
   overview <ul>. Same bar + surface language as the confirmation and pickup
   boxes, in the gold accent so it reads as a heads-up, not as an error. */
body.woocommerce-order-received .woocommerce-order ul.order_details + p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 18px;
  border: 1px solid #ecd9b4; /* fallback */
  border: 1px solid color-mix(in srgb, var(--sv-accent) 30%, #fff);
  border-left: 4px solid var(--sv-accent);
  border-radius: 6px;
  background: #fbf4e4; /* fallback */
  background: color-mix(in srgb, var(--sv-accent) 11%, #fff);
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.55;
}

body.woocommerce-order-received
  .woocommerce-order
  ul.order_details
  + p::before {
  content: "!";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sv-accent);
  color: var(--sv-on-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* order details table: same spec-card look as My Account orders */
body.woocommerce-order-received .woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  border: 1px solid var(--sv-card-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
  overflow: hidden;
}

body.woocommerce-order-received .woocommerce-table--order-details thead th {
  padding: 12px 18px;
  border: 0;
  background: var(--sv-surface-accent);
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-table--order-details tbody td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--sv-divider);
  background: transparent;
  color: var(--sv-text);
  vertical-align: top;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  tbody
  tr:first-child
  td {
  border-top: 0;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot th {
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  font-weight: 600;
}

/* prices flush right, never wrapped */
body.woocommerce-order-received
  .woocommerce-table--order-details
  th.product-total,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-total,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-order-received .woocommerce-table--order-details .shipped_via {
  color: var(--sv-label);
  font-size: 13px;
  font-weight: 400;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  a {
  color: var(--sv-link);
  font-weight: 600;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  a:hover {
  color: var(--sv-link-hover);
}

/* addresses: two cards instead of floated columns */
body.woocommerce-order-received
  .woocommerce-customer-details
  .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
}

body.woocommerce-order-received
  .woocommerce-customer-details
  .woocommerce-columns--addresses::before,
body.woocommerce-order-received
  .woocommerce-customer-details
  .woocommerce-columns--addresses::after {
  content: none;
  display: none; /* clearfix pseudo-elements would become grid cells */
}

/* space between the pickup box / order table and the address cards */
body.woocommerce-order-received section.woocommerce-customer-details {
  margin-top: 24px;
}

body.woocommerce-order-received
  .woocommerce-customer-details
  .woocommerce-columns--addresses
  .woocommerce-column {
  box-sizing: border-box;
  float: none;
  width: auto; /* WooCommerce sets 48% on .col-1/.col-2: the cards were shrinking to 48% of their grid cell */
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
}

body.woocommerce-order-received
  .woocommerce-customer-details
  .woocommerce-column__title {
  margin: 0 0 10px;
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--sv-text);
  font-style: normal;
  line-height: 1.6;
}

/* admin-only "Upraviť" link: line it up with the column, same small dashed
   style as on My Account */
body.woocommerce-order-received .edit-link {
  display: block;
  box-sizing: border-box;
  max-width: 880px;
  margin: 16px auto 0;
}

/* empty bordered box (thank-you page + My Account → view order) injected under the order table by another plugin/snippet
   (inline style="border:1px solid #ddd;padding:20px;margin-bottom:24px") */
body.woocommerce-order-received
  .woocommerce-order-details
  > div[style*="border: 1px solid #ddd"]:empty,
body.woocommerce-account
  .woocommerce-order-details
  > div[style*="border: 1px solid #ddd"]:empty {
  display: none;
}

/******************  CHECKOUT  *****************
   Everything for the classic checkout page, one place. Markup: sts-checkout.php, shipping-slposta.php, shipping-free-shipping.php.
   Order: form, order review card, cart rows, shipping list, free-shipping + intl banners, payment, price + order button, country picker, sold-out.
*/

/**************** FORM: COLUMNS, FIELDS, CHECKBOXES ****************/

.woocommerce-checkout
  .create-account
  label.woocommerce-form__label-for-checkbox,
.woocommerce-checkout
  .ship-to-different-address
  label.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  line-height: 1.5;
}

.woocommerce-checkout .create-account input.woocommerce-form__input-checkbox,
.woocommerce-checkout
  .ship-to-different-address
  input.woocommerce-form__input-checkbox {
  flex: 0 0 20px;
  margin: 0 10px 0 0 !important;
  cursor: pointer;
}

.woocommerce-checkout .ship-to-different-address label,
.woocommerce-checkout .ship-to-different-address label span,
.woocommerce-checkout #ship-to-different-address-checkbox {
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce-NoticeGroup,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
  margin-bottom: 0 !important;
}

/* =========================================
   Checkout: returning-customer login form
   ("Už ste u nás nakupovali?" -> form.woocommerce-form-login)
   Same look as the account page: white card, tinted fields, gold button.
   ========================================= */

body.woocommerce-checkout .woocommerce form.woocommerce-form-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0 0 32px;
  padding: 24px 28px 20px;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  color: var(--sv-text);

  /* gap between the "Už ste u nás nakupovali?" banner and the opened login card
   (the banner has margin-bottom: 0 !important, so the card brings its own) */
  margin-top: 16px;
}

/* everything spans both columns except the username/password pair */

body.woocommerce-checkout .woocommerce form.woocommerce-form-login > * {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .woocommerce form.woocommerce-form-login > .clear {
  display: none;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  > p:first-child {
  margin: 0 0 20px;
  color: var(--sv-text);
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .form-row-first,
body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .form-row-last {
  grid-column: auto;
  float: none;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
}

body.woocommerce-checkout .woocommerce form.woocommerce-form-login label {
  display: block;
  margin-bottom: 6px;
  color: var(--sv-heading);
  font-weight: 600;
}

body.woocommerce-checkout .woocommerce form.woocommerce-form-login .required {
  color: var(--sv-error);
  text-decoration: none;
}

/* fields */

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  input.input-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: var(--sv-field-bg);
  border: 1px solid var(--sv-field-border);
  border-radius: 6px;
  color: var(--sv-text);
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  input.input-text:focus {
  outline: none;
  border-color: var(--sv-accent);
  background: var(--sv-card-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-accent) 25%, transparent);
}

/* password eye: inside the field, vertically centered */

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input {
  position: relative;
  display: block;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input
  input.input-text {
  padding-right: 48px;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input
  .show-password-input {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input
  .show-password-input::before,
body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input
  .show-password-input::after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  text-indent: 0;
  transform: translate(-50%, -50%);
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .password-input
  .show-password-input:hover {
  opacity: 1;
  transform: translateY(-50%);
}

/* button + "remember me" on one line */

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  p.form-row:not(.form-row-first):not(.form-row-last) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 4px 0 0;
  padding: 0;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .woocommerce-form-login__submit {
  order: -1;
  margin: 0;
  padding: var(--sv-btn-pad);
  padding-inline: 24px;
  background: var(--sv-accent);
  border: 0;
  border-radius: var(--sv-btn-radius);
  color: var(--sv-on-accent);
  font-weight: var(--sv-btn-weight);
  cursor: pointer;
  transition: background 0.2s ease;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .woocommerce-form-login__submit:hover {
  background: var(--sv-accent-hover);
  color: var(--sv-on-accent);
}

/* remember me: checkbox and text on one baseline */

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  label.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sv-text);
  font-weight: 400;
  cursor: pointer;
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  input.woocommerce-form__input-checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--sv-accent);
  cursor: pointer;
}

/* forgot password link */

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .lost_password {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sv-divider);
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .lost_password
  a {
  color: var(--sv-link);
}

body.woocommerce-checkout
  .woocommerce
  form.woocommerce-form-login
  .lost_password
  a:hover {
  color: var(--sv-link-hover);
}

/* CSS only, appended last so it wins over earlier checkout rules.
   Uses the existing --sv-* tokens. Nothing here hides fields or touches the
   markup that WooCommerce refreshes over AJAX (#order_review, shipping list),
   and the Packeta / SPS / IČO widgets are left alone. */

/* 1. Radios and checkboxes are intentionally left at the browser default (blue). */

/* 2. Section headings ("Fakturačné údaje", "Odoslať na inú adresu?"):
   same weight and colour as the page title instead of the thin default */

body.woocommerce-checkout #customer_details h3 {
  margin: 0 0 16px;
  color: var(--sv-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

/* 2b. Left column (billing / shipping / notes) as a white card, like the
   order review on the right. Fields keep their cream tint on top of it. */

body.woocommerce-checkout form.checkout #customer_details {
  box-sizing: border-box;
  padding: 24px 24px 8px;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
}

body.woocommerce-checkout form.checkout #customer_details > :last-child {
  margin-bottom: 0;
}

/* 3. Field labels: darker and heavier so they read on the beige background */

body.woocommerce-checkout .woocommerce-billing-fields .form-row label,
body.woocommerce-checkout .woocommerce-shipping-fields .form-row label,
body.woocommerce-checkout .woocommerce-additional-fields .form-row label {
  color: var(--sv-text);
  font-weight: 600;
}

/* 4. One look for every field: text inputs, textarea, select, country picker
   (same tokens as the contact form and account pages) */

body.woocommerce-checkout .woocommerce-billing-fields .input-text,
body.woocommerce-checkout .woocommerce-shipping-fields .input-text,
body.woocommerce-checkout .woocommerce-additional-fields .input-text,
body.woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-shipping-fields select,
body.woocommerce-checkout
  .woocommerce-billing-fields
  .select2-container--default
  .select2-selection--single,
body.woocommerce-checkout
  .woocommerce-shipping-fields
  .select2-container--default
  .select2-selection--single {
  background: var(--sv-field-bg);
  border: 1px solid var(--sv-field-border);
  border-radius: var(--sv-btn-radius);
  box-shadow: none;
  color: var(--sv-text);
}

/* the select2 box has a fixed height, so size its inner parts to match */

body.woocommerce-checkout
  .woocommerce-billing-fields
  .select2-container--default
  .select2-selection--single,
body.woocommerce-checkout
  .woocommerce-shipping-fields
  .select2-container--default
  .select2-selection--single {
  height: auto;
  min-height: 2.9em;
}

body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 2em 0 0.9em;
  color: var(--sv-text);
  line-height: 2.9em;
}

body.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
}

/* focus ring: same gold as the contact form */

body.woocommerce-checkout .woocommerce-billing-fields .input-text:focus,
body.woocommerce-checkout .woocommerce-shipping-fields .input-text:focus,
body.woocommerce-checkout .woocommerce-additional-fields .input-text:focus,
body.woocommerce-checkout .woocommerce-billing-fields select:focus,
body.woocommerce-checkout .woocommerce-shipping-fields select:focus,
body.woocommerce-checkout
  .select2-container--default.select2-container--focus
  .select2-selection--single,
body.woocommerce-checkout
  .select2-container--default.select2-container--open
  .select2-selection--single {
  background: #fff;
  border-color: var(--sv-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(220, 152, 54, 0.25);
}

/* WooCommerce validation colours keep winning over the neutral border */

body.woocommerce-checkout .woocommerce-invalid .input-text,
body.woocommerce-checkout
  .woocommerce-invalid
  .select2-container--default
  .select2-selection--single {
  border-color: var(--sv-error);
}

body.woocommerce-checkout .woocommerce-validated .input-text {
  border-color: var(--sv-success);
}

/* Moved here from sts-checkout.php (no inline \3c style> or JS styling any more).
   Appended last so it wins over earlier checkout rules. The payment list copies
   the shipping list above: native 16px radios pinned left, 12px row padding,
   same hover / selected tints. */

body.woocommerce-checkout {
  --sv-co-pad-x: 22.652px; /* left inset of "Doprava", "Medzisúčet", "Platba" ... */
  --sv-co-placeholder: #b9b4ae;
  --sv-co-price-size: 1rem; /* one size for the product-total, shipping and payment prices */
  --sv-co-pay-top: 10px; /* "Platba" and the first payment row both start this far below the section line */

  /* 10. SOLD-OUT ITEMS AT CHECKOUT (markup: sts-checkout.php) ------------------ */
  --sv-co-danger: #c0392b;
  --sv-co-danger-bg: #fdeeee;
  --sv-co-danger-line: #f1c4c0;
}

/* 8. Fainter placeholder text, so it can't be mistaken for filled-in values */

body.woocommerce-checkout form.checkout input::placeholder,
body.woocommerce-checkout form.checkout textarea::placeholder {
  color: var(--sv-co-placeholder);
  opacity: 1 !important;
}

body.woocommerce-checkout form.checkout .select2-selection__placeholder {
  color: var(--sv-co-placeholder) !important;
}

/* 9. "Nakupujem na firmu": pointer cursor, slightly bigger box */

body.woocommerce-checkout #billing_is_company_field label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

body.woocommerce-checkout #billing_is_company {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

@media (min-width: 768px) {
  .woocommerce-checkout #main > .woocommerce {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  .woocommerce-checkout form.checkout {
    box-sizing: border-box;
  }
  /* 1. RESET INNER CUSTOMER DETAILS */
  /* This forces billing fields and order notes to stack vertically on the left side */
  .woocommerce-checkout #customer_details {
    display: block !important;
    width: 100% !important;
    float: none;
    margin: 0;
    padding: 0;
  }
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none;
    margin-bottom: 20px;
  }
}

@media (min-width: 1101px) {
  /* 2. Keep checkout notices above the two content columns. */
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: flex-start;
    gap: 40px;
    width: 100% !important;
  }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
    grid-column: 1 / -1;
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
    /* The grid gap (40px) also sits under the notice row; pull the columns up so the gap
       under the warning banner is 20px. */
    margin-bottom: -20px !important; /* beats margin-bottom: 0 !important further up */
  }
  /* An EMPTY notice group (or the clearfix ::before/::after) is still a grid item: it takes the
     first row at height 0, and the 40px grid gap under it shows as a big empty strip on top. */
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup:not(:has(*)),
  .woocommerce-checkout
    form.checkout
    > .woocommerce-notices-wrapper:not(:has(*)) {
    display: none !important;
  }
  .woocommerce-checkout form.checkout::before,
  .woocommerce-checkout form.checkout::after {
    display: none !important;
    content: none !important;
  }
  /* 3. PART 1: CUSTOMER FIELDS */
  .woocommerce-checkout form.checkout #customer_details {
    grid-column: 1;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .woocommerce-checkout form.checkout {
    display: block !important;
  }
}

/* Desktop: the "Už ste u nás nakupovali?" / coupon banners sit above the form with margin 0, so
   they touched the columns. Same 20px gap as the <=1100px rule below. */
@media (min-width: 1101px) {
  body.woocommerce-checkout .woocommerce-form-login-toggle,
  body.woocommerce-checkout .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout .woocommerce > .woocommerce-info {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 1100px) {
  body.woocommerce-checkout .woocommerce-form-login-toggle,
  body.woocommerce-checkout .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout .woocommerce > .woocommerce-info,
  body.woocommerce-checkout .woocommerce-NoticeGroup {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 700px) {
  body.woocommerce-checkout .woocommerce form.woocommerce-form-login {
    grid-template-columns: 1fr;
    padding: 20px 18px 16px;
  }
  body.woocommerce-checkout
    .woocommerce
    form.woocommerce-form-login
    .form-row-first,
  body.woocommerce-checkout
    .woocommerce
    form.woocommerce-form-login
    .form-row-last {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.woocommerce-checkout form.checkout #customer_details {
    padding: 18px 16px 4px;
  }
}

@media (max-width: 768px) {
  body.woocommerce-checkout #customer_details h3 {
    font-size: 1.2rem;
  }
}

/**************** ORDER REVIEW CARD ****************/

/* Review card, item rows (thumb + title + author), subtotal, shipping row container, total. The shipping method list, payment widget, sold-out UI and free-shipping banner have their own sections. */

/* WooCommerce's own "Vaša objednávka" heading is hidden at every width (the review card
   has its own look). It used to be hidden only from 768px up, so it showed on phones. */

body.woocommerce-checkout form.checkout #order_review_heading {
  display: none !important;
}

/* 4. Bottom corners of the order review card.
   Storefront paints #payment (and the table) with its own background, which
   covered the card's rounded corners. Clip everything to the card shape;
   `clip` (unlike `hidden`) makes no scroll container, and fixed-position
   pickup-point modals are not affected. */

body.woocommerce-checkout form.checkout #order_review {
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  overflow: clip;
}

/* 6. PAYMENT WIDGET ------------------------------------------------------ */

/* LAYOUT: the order review is a two-column grid. Everything spans both columns
   except the "Platba" title (left column) and the list of payment methods (right
   column, in line with the shipping list). #payment itself is display:contents, so
   its list and its order area take part in that grid; its 24px bottom padding now
   sits on the order area. The left column width is measured from the shipping list
   by sts-checkout.php (--sv-co-list-left). */

body.woocommerce-checkout #order_review {
  position: relative; /* WooCommerce's "updating" overlay is sized against this card, see section 11 */
  scroll-margin-top: 24px; /* when the page scrolls to the cart list after a refused order */
  display: grid;
  grid-template-columns: var(--sv-co-list-left, 45%) minmax(0, 1fr);
}

/* 11. NO FLASH WHILE THE CHECKOUT UPDATES ------------------------------------ */

/* Choosing a shipping or payment method makes WooCommerce re-calculate the order
   review over AJAX and cover it with a 60% white veil and a spinner. Two things made
   that ugly here: with #payment as display:contents the veil for it had no box to fit
   and stretched over the whole column (even over the sticky menu) - fixed by
   position:relative on #order_review above - and the veil itself fading the whole card
   in and out. The veil is now invisible (it still blocks clicks and keeps the "wait"
   cursor), so only the changed numbers change. The overlay that WooCommerce puts on the
   whole form while an order is being submitted is left as it is. */

body.woocommerce-checkout #order_review .blockUI.blockOverlay {
  background: transparent !important;
  opacity: 0 !important;
}

body.woocommerce-checkout #order_review .blockUI.blockOverlay::before {
  content: none !important;
  display: none !important;
}

@media (min-width: 1101px) {
  /* 4. PART 2: ORDER REVIEW */
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 2;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    box-sizing: border-box;
    float: none;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    float: none;
    box-sizing: border-box;
  }
  .woocommerce-checkout form.checkout #order_review {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout form.checkout #order_review {
    margin-top: 24px;
  }
}

@media (max-width: 1100px) {
  body.woocommerce-checkout #order_review {
    grid-template-columns: minmax(0, 1fr);
  }
}

/**************** ORDER REVIEW TABLE AND CART ITEM ROWS ****************/

/* Phones: the same 24px gap between the billing card and the order review card as on
   tablets (the hidden "Vaša objednávka" heading used to create it). */

/* 9. NA UŽŠÍCH OBRAZOVKÁCH: "Doprava" NAD ZOZNAMOM, ZOZNAM NA CELÚ ŠÍRKU
   (inak tabuľka pretečie a ceny sa prekrývajú s názvami) */

.woocommerce-checkout-review-order-table tr.cart-subtotal,
.woocommerce-checkout-review-order-table tr.order-total,
.woocommerce-checkout-review-order-table tr.fee {
  display: table-row !important; /* Ruší flexbox/grid pre tieto riadky */
  width: 100% !important;
}

/* 2. OPRAVA PRE ĽAVÚ STRANU (NÁZVY: Medzisúčet / Doprava / Cena spolu) */

.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.fee th {
  display: table-cell !important;
  text-align: left;
  padding: 12px 0 12px 22.652px;
  width: auto !important;
  white-space: nowrap; /* Zakáže zalamovanie slov názvu */
}

/* 3. OPRAVA PRE PRAVÚ STRANU (Odstraňuje skrytý padding bunky pre zarovnanie s absolútnym okrajom) */

.woocommerce-checkout-review-order-table tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tr.order-total td,
.woocommerce-checkout-review-order-table tr.fee td {
  display: table-cell !important;
  text-align: right;
  padding: 12px 0; /* Ponecháva čisté vertikálne riadky */
  padding-right: 0; /* TLAČÍ TEXT ABSOLÚTNE NA PRAVÝ OKRAJ */
  width: auto !important;
}

#order_review
  table
  tfoot
  tr.order-total
  td
  strong
  span.woocommerce-Price-amount.amount,
.woocommerce-checkout-review-order-table
  tr.cart-subtotal
  td
  .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table
  tr.order-total
  td
  .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table tr.fee td .woocommerce-Price-amount {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap; /* Suma (napr. 42,70 €) bude vždy v jednom riadku */
  float: none;
  margin: 0;
  padding: 0;
  margin-right: var(
    --sv-co-pad-x,
    22.652px
  ); /* same right edge as the product prices */
}

/* These are custom classes injected by the site's own template code (not
   used by WooCommerce or Storefront), so nothing else on the page competes
   for them — !important isn't needed here and has been removed. */

/* CONVERT ITEM BOX TO HORIZONTAL FLEXFLOW */

/* LOCK PRODUCT COVER IMAGE GRID SCALE */

.custom-checkout-thumb {
  width: 42px;
  height: auto;
  min-width: 42px;
  max-width: 42px;
  flex-shrink: 0; /* Prevents long text from flattening the box */
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: block;
}

.custom-checkout-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* background: white !important; */
}

/* WRAP THE DETAIL CONTAINER FIELDS */

.custom-checkout-details {
  display: inline-block;
  vertical-align: middle;
}

.custom-book-title {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}

.custom-book-author {
  display: block;
  color: #666;
  font-size: 12px;
  line-height: 1.3;
}

/* ZAROVNANIE CIEN PRODUKTOV V HORNOM ZOZNAME DOPRAVA */

.woocommerce-checkout-review-order-table .cart_item .product-total {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
  font-weight: 500;
}

/* ZÁROVEŇ ZAROVNÁME AJ HLAVIČKU STĹPCA "MEDZISÚČET" VRAVO */

.woocommerce-checkout-review-order-table th.product-total {
  text-align: right;
}

/* ZMENŠENIE VÝŠKY RIADKOV V ZOZNAME PRODUKTOV */

.woocommerce-checkout-review-order-table .cart_item td {
  padding-top: 6px; /* Radikálne zníženie horného okraja */
  padding-bottom: 6px; /* Radikálne zníženie spodného okraja */
  vertical-align: middle; /* Drží obrázok aj cenu v dokonalej stredovej osi */
}

.woocommerce-checkout-review-order-table .cart_item td.product-name {
  font-size: 0;
  line-height: 0;
}

.woocommerce-checkout-review-order-table .cart_item .custom-book-title,
.woocommerce-checkout-review-order-table .cart_item .custom-book-author {
  line-height: 1.3;
}

/* TRUNCATE TEXT TO ONE LINE NATIVELY */

.woocommerce-checkout-review-order-table .cart_item .custom-book-title {
  font-size: 14px;
  display: block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.woocommerce-checkout-review-order-table .cart_item .custom-book-author {
  font-size: 12px;
}

.woocommerce-checkout-review-order-table {
  width: 100% !important;
  max-width: 100% !important;
  border-spacing: 0;
  border-collapse: collapse !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item {
  margin: 0;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
  padding-bottom: 4px;
}

/* MICRO-ÚPRAVA PRE VNÚTORNÝ WRAPPER OBRÁZKA */

.custom-checkout-item-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  vertical-align: middle;
  width: auto;
  padding: 2px 0;
}

.woocommerce-checkout-review-order-table .custom-checkout-item-wrap {
  padding-left: 32px;
}

/* 1. Let rows grow when a title or author wraps onto another line. */

.woocommerce-checkout-review-order-table tr.cart_item {
  height: auto !important;
  max-height: none !important;
}

/* 2. Keep cells vertically centered without clipping their content. */

.woocommerce-checkout-review-order-table tr.cart_item td.product-name,
.woocommerce-checkout-review-order-table tr.cart_item td.product-total {
  height: auto !important;
  max-height: none !important;
  padding-top: 4px; /* Minimal margins to maximize compact layout spacing */
  padding-bottom: 4px;
  vertical-align: middle;
  overflow: visible !important;
}

.woocommerce-checkout-review-order-table tr.cart_item .custom-checkout-thumb {
  height: 44px;
  max-height: 44px;
  width: 44px;
  min-width: 44px;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.woocommerce-checkout-review-order-table
  tr.cart_item
  .custom-checkout-thumb
  img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.woocommerce-checkout-review-order-table
  tr.cart_item
  .custom-checkout-thumb:has(> img.woocommerce-placeholder-asset) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: none;
}

.woocommerce-checkout-review-order-table
  tr.cart_item
  .custom-checkout-thumb
  > img.woocommerce-placeholder-asset {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 5. Totals table: drop the different grey behind the label column so the
   panel reads as one surface (the th/td split was the visible seam) */

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  background: transparent !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
  color: var(--sv-heading);
}

/* 1. Right column = same card as the left one (#customer_details).
   Corners are rounded on the header cells instead of overflow:hidden, so
   the Packeta / GLS pickup-point widgets can never be clipped. */

body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  thead
  th:first-child {
  border-top-left-radius: 7px;
}

body.woocommerce-checkout
  .woocommerce-checkout-review-order-table
  thead
  th:last-child {
  border-top-right-radius: 7px;
}

/* 1. Order summary: the fee row and the original total are hidden.
   The fee shows once in the payment label, the final price once below the
   payment widget (.sts-final-total). */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.fee,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.order-total {
  display: none !important;
}

/* 2. Header row: right-hand cell stays empty */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  thead
  th:last-child {
  font-size: 0;
}

/* 4. Tight spacing under the shipping methods, banner without top margin */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table {
  margin-bottom: 0;
}

/* 4c. Product prices smaller than the final sum ("Cena spolu" is 1.4rem) */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  .cart_item
  td.product-total,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  .cart_item
  td.product-total
  .woocommerce-Price-amount {
  color: var(--sv-muted);
  font-size: 14px;
  font-weight: 400;
}

/* 4d. Product covers: their own aspect ratio, no square frame behind them.
   The slot stays 44px wide so every title starts at the same x; the cover is
   centred in it. The only shadow is a light one hugging the cover itself. */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart_item
  .custom-checkout-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: auto;
  max-height: none;
  overflow: visible;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart_item
  .custom-checkout-thumb
  img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* 4e. Same price size in the totals, the shipping list and the payment list.
   Each price gets a line box as tall as the 14px label line (19.6px), so the
   number is centred on the title next to it. */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart-subtotal
  td
  .woocommerce-Price-amount {
  font-size: var(--sv-co-price-size);
  font-weight: 600; /* same weight as the shipping and payment prices */
}

@media (max-width: 768px) {
  .woocommerce-checkout-review-order-table.shop_table_responsive
    tbody
    tr.cart_item,
  .woocommerce-checkout-review-order-table.shop_table_responsive
    tbody
    tr.cart_item:last-child {
    display: table-row !important;
    margin: 0 !important;
  }
}

@media (max-width: 1100px) {
  /* 2. Mobile / tablet shipping list.
     Cause of the narrow list + overlapping "Zadarmo": the shipping <tr> is
     display:block inside a real table, so the browser wraps it in an anonymous
     table cell that is only as wide as the FIRST column (~40% of the card).
     Fix: below 1101px stop using table layout for the footer, so the shipping
     row can really span the full width. */
  body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    display: block !important;
    width: 100% !important;
  }
  /* header + product rows keep normal table layout, full width */
  body.woocommerce-checkout .woocommerce-checkout-review-order-table thead,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody {
    display: table !important;
    width: 100% !important;
  }
  /* totals: plain block rows */
  body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot {
    display: block !important;
    width: 100% !important;
  }
  /* Medzisúčet / Cena spolu: label left, amount right */
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr.cart-subtotal,
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr.order-total,
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr.fee {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
  }
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr
    td::before {
    display: none !important;
  }
}

/**************** SHIPPING LIST ****************/

/* 5. ROW DIVIDERS (shipping + payment lists) ---------------------------- */

/* The old divider was a border-bottom on every row, which left a white strip
   between the line and a highlighted row. Now rows touch each other
   (margin 0, no border) and the divider is a 1px line drawn inside the row,
   hidden under / above a hovered or selected row. */

body.woocommerce-checkout .woocommerce ul#shipping_method > li,
body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method {
  margin: 0;
  border: 0 !important;
}

:is(
    body.woocommerce-checkout .woocommerce ul#shipping_method,
    body.woocommerce-checkout #payment ul.wc_payment_methods
  )
  > li:not(:last-child)::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: #eee;
  pointer-events: none;
}

:is(
    body.woocommerce-checkout .woocommerce ul#shipping_method,
    body.woocommerce-checkout #payment ul.wc_payment_methods
  )
  > li:is(
    :hover,
    :has(input:checked),
    :has(+ li:hover),
    :has(+ li input:checked)
  )::after {
  background: transparent;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.shipping
  th,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.shipping
  td,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.woocommerce-shipping-totals
  th,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.woocommerce-shipping-totals
  td {
  padding-bottom: 4px;
}

/* 4f. Section line between the cart and "Doprava": same colour and side inset
   as the line above "Cena spolu". Drawn on the cells (not as a row border) so it
   can be inset; th starts at the label inset, td ends at the right inset. */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.shipping
  > th,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.shipping
  > td,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.woocommerce-shipping-totals
  > th,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.woocommerce-shipping-totals
  > td {
  position: relative;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.shipping
  > :is(th, td)::after,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.woocommerce-shipping-totals
  > :is(th, td)::after {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
  background: var(--sv-divider);
  pointer-events: none;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.shipping
  > th::after,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.woocommerce-shipping-totals
  > th::after {
  left: var(--sv-co-pad-x);
  right: 0;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.shipping
  > td::after,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  tr.woocommerce-shipping-totals
  > td::after {
  left: 0;
  right: var(--sv-co-pad-x);
}

/* Radio + method icon + label/price in one grid row; pickup-point buttons (Slovenská pošta, Packeta, GLS) sit under the text. Selectors are unchanged from the original; only the position moved. */

.woocommerce ul#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block !important;
  width: 100% !important;
}

.woocommerce ul#shipping_method li {
  display: block !important;
  position: relative !important;
  padding: 12px 0 12px 30px; /* 30px naľavo vytvorí bezpečný voľný stĺpec */
  border-bottom: 1px solid #eee;
  text-align: left;
  width: 100% !important;
  box-sizing: border-box;
}

.woocommerce ul#shipping_method li input[type="radio"] {
  position: absolute !important;
  margin: 0;
  padding: 0;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
}

/* 4. TEXTU DOVOLÍME VYUŽIŤ 100% ŠÍRKY A ZABRÁNIME JEHO STLAČENIU */

.woocommerce ul#shipping_method li label {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.woocommerce ul#shipping_method li label span.woocommerce-Price-amount {
  position: absolute !important;
  right: 0;
  top: 0;
  font-weight: 600;
  white-space: nowrap;
  background: transparent !important;
  display: inline-block !important;
}

.woocommerce ul#shipping_method li label > span:not(.woocommerce-Price-amount) {
  display: block !important;
  padding-right: 70px !important; /* Vytvorí bezpečný odstup na pravej strane pre cenu */
  width: auto !important;
}

.woocommerce ul#shipping_method li:hover {
  background: rgba(0, 0, 0, 0.01) !important;
}

/* 6. Shipping list (10 options): clear hover + selected state.
   Earlier rules give each row padding-left 30px with the radio pinned at
   left 0, so widen both together to keep the radio inside the highlight. */

body.woocommerce-checkout .woocommerce ul#shipping_method li:hover {
  background: rgba(220, 152, 54, 0.08) !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(input:checked) {
  background: rgba(220, 152, 54, 0.14) !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(input:checked)
  label {
  font-weight: 600;
}

/* 3. Long method names must wrap, never run under the price */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  label
  > span:not(.woocommerce-Price-amount) {
  padding-right: 84px !important;
  overflow-wrap: anywhere;
}

body.woocommerce-checkout #order_review #shipping_method {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  label
  span.woocommerce-Price-amount {
  top: 50%; /* centred on the label, also when the name wraps to two lines */
  transform: translateY(-50%);
  font-size: var(--sv-co-price-size);
  line-height: 19.6px;
}

/* Faint prices, except on the chosen method (same colour as the product prices) */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:not(:has(input:checked))
  label
  span.woocommerce-Price-amount,
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:not(:has(input:checked))
  label
  span.woocommerce-Price-amount
  * {
  color: var(--sv-muted);
}

/* One grid per row:   [radio] [icon] [label ............ price]
                              [pickup button (only when chosen)]
   The icon is always the same box (see the two variables), whatever the logo's
   shape. The whole row is clickable through a small script (sts-checkout.php),
   not through an overlay, so nothing sits on top of the pickup buttons. */

body.woocommerce-checkout .woocommerce ul#shipping_method {
  --sts-ship-icon-w: 44px; /* column width: wide logos use all of it */
  --sts-ship-icon-h: 32px; /* square-ish logos are this tall, so they fill their box */
  --sts-ship-line: 19.6px; /* first text line: 14px * 1.4 */
  --sts-pickup-gap: 16px; /* method name -> pickup button, the same for BalíkoBOX, Packeta and GLS */
  --sts-gls-gap: 8px; /* same, GLS only (its button sits inside the label) */
}

body.woocommerce-checkout .woocommerce ul#shipping_method li {
  border-radius: var(--sv-btn-radius);
  transition: background 0.15s ease;
  display: grid !important;
  grid-template-columns: 16px var(--sts-ship-icon-w) minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  padding: 12px;
  cursor: pointer;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > input.shipping_method[type="radio"] {
  grid-column: 1;
  grid-row: 1;
  position: static !important;
  align-self: center; /* centred on the label, also when the text wraps to two lines */
  margin: 0;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > img.custom-shipping-icon {
  grid-column: 2;
  grid-row: 1;
  width: var(--sts-ship-icon-w) !important;
  height: var(--sts-ship-icon-h) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  align-self: center; /* centred on the label, also when the text wraps to two lines */
  /* the icon is taller than one text line: the negative margins make its margin box exactly
     one line high, so the row doesn't grow, and align-self centres that box on the label */
  margin: calc((var(--sts-ship-line) - var(--sts-ship-icon-h)) / 2) 0;
  display: block !important;
}

/* GLS: square icon, centred in the icon column */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > img.custom-shipping-icon--square {
  --sts-ship-icon-square: 28px;
  width: var(--sts-ship-icon-square) !important;
  height: var(--sts-ship-icon-square) !important;
  margin: calc((var(--sts-ship-line) - var(--sts-ship-icon-square)) / 2) 0;
  justify-self: center;
}

/* Personal pickup: the Starý svet logo with rounded corners. The box shrinks to the picture (width auto),
   so the corners are rounded on the visible logo and not on an empty letterbox around it. */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > img.custom-shipping-icon--rounded {
  width: auto !important;
  max-width: var(--sts-ship-icon-w) !important;
  justify-self: center;
  border-radius: 6px;
}

body.woocommerce-checkout .woocommerce ul#shipping_method li > label {
  grid-column: 3;
  grid-row: 1;
  display: block !important;
  padding-right: 64px; /* room for the absolutely placed price */
}

/* the buttons (BalíkoBOX + Packeta) */

body.woocommerce-checkout
  :is(#shipping_method li, .woocommerce-shipping-totals td)
  :is(button, a.button, .button, input[type="button"]) {
  display: inline-flex;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 14px;
  min-height: 32px;
  background: var(--sv-accent) !important;
  color: var(--sv-on-accent);
  border: 1px solid var(--sv-accent);
  border-radius: var(--sv-btn-radius);
  font-size: 13px;
  font-weight: var(--sv-btn-weight);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

body.woocommerce-checkout
  :is(#shipping_method li, .woocommerce-shipping-totals td)
  :is(button, a.button, .button, input[type="button"]):hover {
  background: var(--sv-accent-hover) !important;
  border-color: var(--sv-accent-hover);
}

body.woocommerce-checkout
  :is(#shipping_method li, .woocommerce-shipping-totals td)
  :is(button, a.button, .button, input[type="button"]):focus-visible {
  outline: 0;
  box-shadow:
    inset 0 0 0 2px #fff,
    inset 0 0 0 4px var(--sv-heading);
}

@media (max-width: 1100px) {
  .woocommerce-checkout-review-order-table tr.shipping,
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
    display: block !important;
    width: 100% !important;
  }
  .woocommerce-checkout-review-order-table tr.shipping th,
  .woocommerce-checkout-review-order-table tr.shipping td,
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
  .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    text-align: left;
  }
  .woocommerce-checkout-review-order-table tr.shipping td::before,
  .woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals
    td::before {
    display: none !important; /* data-title label by theme by duplikoval "Doprava" */
  }
  /* shipping row: full width, list fills the card */
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr.shipping,
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tfoot
    tr.woocommerce-shipping-totals {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  /* below 1101px "Doprava" and the list are stacked: one line across the top */
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tfoot
    tr.shipping
    > th::after,
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tfoot
    tr.woocommerce-shipping-totals
    > th::after {
    right: var(--sv-co-pad-x);
  }
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tfoot
    tr.shipping
    > td::after,
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tfoot
    tr.woocommerce-shipping-totals
    > td::after {
    display: none;
  }
  body.woocommerce-checkout .woocommerce ul#shipping_method {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  /* breathing room so the list doesn't touch the card edge */
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tr.shipping
    td,
  body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals
    td {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.woocommerce-checkout .woocommerce ul#shipping_method li label {
    font-size: 13px;
  }
  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    label
    span.woocommerce-Price-amount {
    line-height: 18.2px; /* shipping labels are 13px on phones */
  }
  body.woocommerce-checkout .woocommerce ul#shipping_method {
    --sts-ship-icon-w: 38px;
    --sts-ship-icon-h: 28px;
    --sts-ship-line: 18.2px; /* 13px * 1.4 on phones */
  }
  body.woocommerce-checkout .woocommerce ul#shipping_method li {
    padding: 12px 8px;
    column-gap: 6px;
  }
}

@media (min-width: 1101px) {
  /* 4b. Prices in one column: product prices (td padding 22.652px), the
     "Celková cena produktov" price (margin above) and the shipping prices all end
     --sv-co-pad-x from the card edge, mirroring where the labels start. The
     shipping rows already have 12px inner padding, so their cell gives that back
     and the highlighted row bleeds 12px towards the edge. */
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tr.shipping
    td,
  body.woocommerce-checkout
    #order_review
    .woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals
    td {
    padding-right: calc(var(--sv-co-pad-x) - 12px);
  }
}

/**************** SHIPPING LIST: PACKETA, GLS, SLOVENSKÁ POŠTA PICKUP WIDGETS ****************/

/* 7. VŠETKY INJEKTOVANÉ TLAČIDLÁ (PACKETA, GLS, SPS) HODÍME POD TEXT */

.woocommerce ul#shipping_method li div[id*="parcelshop"],
.woocommerce ul#shipping_method li #sps-parcelshop-wrapper,
.woocommerce ul#shipping_method li .packeta-selector-branch,
.woocommerce ul#shipping_method li .packeta-widget-button,
.woocommerce ul#shipping_method li .packetawp-current-branch {
  display: block !important;
  clear: both !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 12px 0 4px 0 !important; /* Pekne sa zarovná pod text dopravy */
}

/* anything else a plugin puts inside the row (e.g. the GLS pickup selector) goes under the text */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > :not(
    input,
    label,
    img.custom-shipping-icon,
    .starysvet-slposta-wrapper,
    .packetery-widget-button-wrapper
  ) {
  grid-column: 2 / -1;
  grid-row: auto;
  min-width: 0;
}

/* the plugin's own GLS logo inside the label: replaced by our icon in column 2 */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  label
  img.gls-shipping-logo {
  display: none !important;
}

/* ---- pickup point buttons ----
   Slovenská pošta: plain show / hide, no animation. The wrapper is in the page for every
   row and is shown only in the row whose radio is checked.
   Packeta + GLS: left to their own plugins (Packeta's script shows / hides its widget, GLS
   prints its button only for the chosen method). We only place them in the grid. */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .starysvet-slposta-wrapper,
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .packetery-widget-button-wrapper {
  grid-column: 2 / -1;
  grid-row: 2;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .starysvet-slposta-wrapper {
  display: none !important; /* beats any inline display, CSS decides */
}

/* the template has an inline margin-top:6px on this button; the gap now comes from the wrapper */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .starysvet-slposta-button {
  margin-top: var(
    --sts-pickup-gap
  ) !important; /* inside the wrapper, so the gap rolls out with it */
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(input.shipping_method:checked)
  > .starysvet-slposta-wrapper {
  display: block !important;
}

/* GLS: the plugin prints its button inside the label (after a <br>), so the label is the
   button's parent. Same look as the others (shared rule above). The plugin prints it only
   for the chosen method, so there is nothing to hide here. */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  label
  :is(button#gls-map-button, button, a.button) {
  /* a block of its own (not inline): an inline button always keeps a full text line of height,
     which made the space appear at once and only the button roll in */
  display: flex !important;
  width: fit-content !important;
  /* pull the button back under the icon column (col 2), like the Packeta / BalíkoBOX buttons.
     No !important on the margin: the roll-out animates it. */
  margin: var(--sts-gls-gap) 0 0 calc(-1 * (var(--sts-ship-icon-w) + 6px));
  max-width: calc(100% + var(--sts-ship-icon-w) + 6px);
  white-space: normal;
  text-align: left;
}

/* GLS row with the button: the button lives inside the label, which made row 1 tall and
   centred the radio + icon on label AND button. Pin them to the first text line instead,
   exactly as in the Packeta / BalíkoBOX rows. */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(> label :is(button, a.button, .button))
  > input.shipping_method[type="radio"] {
  align-self: start;
  margin-top: calc((var(--sts-ship-line) - 16px) / 2);
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(> label :is(button, a.button, .button))
  > img.custom-shipping-icon {
  align-self: start;
}

/* ...and the price / "Zadarmo" too: on the first line, not centred on label + button */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li:has(> label :is(button, a.button, .button))
  > label
  span.woocommerce-Price-amount {
  top: 0;
  transform: none;
}

/* Packeta: logo + button on one line, texts below */

body.woocommerce-checkout .woocommerce ul#shipping_method li .packeta-widget {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .packetery-widget-button-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  /* the gap above the button lives inside the widget: a hidden widget leaves no empty strip,
     and the gap rolls out together with the widget */
  margin: var(--sts-pickup-gap) 0 0 !important;
  width: auto !important;
}

/* ---- slow roll-out of the pickup-point buttons ----
   The checkout list is redrawn by WooCommerce (AJAX) every time the method changes, so a plain
   CSS animation would play twice (once on the click, once on the redraw) and again on every
   later refresh. A small script (sts-checkout.php, starysvet_pickup_rollout_script) therefore
   puts two classes on the list:
     .sts-pending  from the click until the redraw arrives: the BalíkoBOX block stays shut
     .sts-roll     on the redraw that follows a CHANGE of method (not on page load, coupon, ...)
   and only then do BalíkoBOX and GLS roll out, once, each growing from zero height with its
   gap. Packeta is left to its plugin (it rolls out whenever its widget appears).
   Change --sts-rollout to make it faster / slower. */

body.woocommerce-checkout .woocommerce ul#shipping_method {
  --sts-rollout: 0.8s; /* roll out (new method) */
  --sts-rollout-out: 0.3s; /* roll shut (method just left): quicker than the roll out, it starts on the click */
}

@keyframes sts-rollout {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: var(
      --sts-rollout-h,
      140px
    ); /* a bit above the real height, so the speed looks even */
    opacity: 1;
  }
}

/* GLS: the button is a direct child of the label, so it grows itself (height, padding, gap) */
@keyframes sts-rollout-btn {
  from {
    max-height: 0;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    opacity: 0;
  }
  to {
    max-height: 36px;
    opacity: 1;
  }
}

/* BalíkoBOX stays shut until the redraw, so it is not shown once on the click and again after it */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method.sts-pending
  li:has(input.shipping_method:checked)
  > .starysvet-slposta-wrapper {
  display: none !important;
}

/* BalíkoBOX: only after a change of method (.sts-roll) */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method.sts-roll
  li:has(input.shipping_method:checked)
  > .starysvet-slposta-wrapper {
  overflow: hidden;
  --sts-rollout-h: 110px; /* button + chosen branch */
  animation: sts-rollout var(--sts-rollout) ease-in-out;
}

/* Packeta: the plugin shows its widget on the click, and WooCommerce then redraws the list (a new
   widget element), so an ungated animation played twice (~400 ms apart). Same recipe as BalíkoBOX:
   the widget of the chosen row stays shut from the click until the redraw (.sts-pending), and rolls
   out once, only on the redraw after a CHANGE of method (.sts-roll). */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method.sts-pending
  li:has(input.shipping_method:checked)
  .packeta-widget {
  display: none !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method.sts-roll
  li
  .packeta-widget:not(.packetery-hidden) {
  overflow: hidden;
  --sts-rollout-h: 150px; /* button + up to three text lines */
  animation: sts-rollout var(--sts-rollout) ease-in-out;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method.sts-roll
  li
  > label
  :is(button#gls-map-button, button, a.button) {
  overflow: hidden;
  animation: sts-rollout-btn var(--sts-rollout) ease-in-out;
}

/* The method just left: its block rolls shut right on the click (class set by the script), so the
   old block does not vanish with a jump before the new one rolls out. Needs motion; with
   "reduce motion" the old block simply disappears. */
@keyframes sts-rollin-out {
  from {
    max-height: var(--sts-rollout-h, 140px);
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

@keyframes sts-rollin-out-btn {
  from {
    max-height: 36px;
    opacity: 1;
  }
  to {
    max-height: 0;
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes sts-packeta-address-in {
    from {
      max-height: 0;
      opacity: 0;
    }
    to {
      max-height: var(--sts-packeta-address-height, 24px);
      opacity: 1;
    }
  }

  @keyframes sts-gls-picked-in {
    from {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
    }
    to {
      max-height: var(--sts-gls-picked-height, 120px);
      margin-top: 8px;
      opacity: 1;
    }
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .sts-packeta-address-entering {
    overflow: hidden;
    animation: sts-packeta-address-in var(--sts-rollout) ease-in-out forwards;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    > .sts-gls-picked.sts-gls-picked-entering {
    overflow: hidden;
    animation: sts-gls-picked-in var(--sts-rollout) ease-in-out forwards;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    > .starysvet-slposta-wrapper.sts-leaving,
  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .packeta-widget.sts-leaving {
    display: block !important; /* the plugin / our CSS already hid it: keep it while it rolls shut */
    overflow: hidden;
    --sts-rollout-h: 110px;
    animation: sts-rollin-out var(--sts-rollout-out) ease-out forwards;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .packeta-widget.sts-leaving {
    --sts-rollout-h: 150px;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .packeta-widget.sts-leaving
    .sts-packeta-original-leaving {
    display: none !important;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .sts-packeta-picked-ghost {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--sv-text);
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    .sts-packeta-picked-ghost
    > div
    + div {
    margin-top: 6px;
  }

  body.woocommerce-checkout
    .woocommerce
    ul#shipping_method
    li
    > label
    button.sts-leaving {
    overflow: hidden;
    animation: sts-rollin-out-btn var(--sts-rollout-out) ease-out forwards;
  }
}

/* GLS: the plugin removes its button on the click, so a copy of it (made by the script, see
   sts-checkout.php) sits under the label and rolls shut; the real button is hidden meanwhile. */
@keyframes sts-ghost-out {
  from {
    max-height: 180px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

/* the :is(button#gls-map-button, ...) in the GLS button rule counts as an id selector, so this one
   must repeat it, or that rule's display:flex !important wins and the real button stays visible */
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > label
  :is(button#gls-map-button, button, a.button).sts-gls-gone {
  display: none !important;
}

body.woocommerce-checkout .woocommerce ul#shipping_method li > .sts-gls-ghost {
  grid-column: 2 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  pointer-events: none;
  animation: sts-ghost-out var(--sts-rollout-out) ease-out forwards;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .sts-gls-ghost
  button {
  display: flex !important;
  width: fit-content !important;
  margin: var(--sts-gls-gap) 0 0 !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .sts-gls-picked.sts-gls-picked-gone {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-checkout .woocommerce ul#shipping_method li * {
    animation: none !important;
  }
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  > .sts-gls-ghost
  > .sts-gls-picked-ghost {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-text);
}

/* the Packeta symbol in front of the button is redundant (the row already has the Packeta icon) */

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .packetery-widget-button-logo {
  display: none !important;
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .starysvet-slposta-summary,
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .packeta-widget-selected-address,
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .packeta-widget-place,
body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .packeta-widget-info {
  margin: 6px 0 0 !important;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-text);
}

/* Printed by starysvet_gls_pickup_summary_script() under the GLS button */

body.woocommerce-checkout .woocommerce ul#shipping_method li .sts-gls-picked {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-text);
}

body.woocommerce-checkout
  .woocommerce
  ul#shipping_method
  li
  .sts-gls-picked
  strong {
  font-weight: 600;
  color: var(--sv-heading);
}

/* Packeta: Z-Point text by default, Z-Box text once a Z-Box is chosen */

/* The GLS plugin prints its own "Miesto vyzdvihnutia" box above the cart. The chosen point
   is shown under the GLS button instead (.sts-gls-picked, see sts-checkout.php), so the
   plugin's box is hidden. Its inline display:block loses against !important. */

body.woocommerce-checkout #gls-pickup-info {
  display: none !important;
}

/* Three states: nothing picked -> generic, Z-Point picked -> zpoint, Z-Box picked -> zbox */

.sts-cod-warning--packeta-generic,
.sts-cod-warning--zpoint,
.sts-cod-warning--zbox {
  display: none !important;
}

body:not(.sts-packeta-point) .sts-cod-warning--packeta-generic {
  display: block !important;
}

body.sts-packeta-point:not(.sts-packeta-box) .sts-cod-warning--zpoint {
  display: block !important;
}

body.sts-packeta-point.sts-packeta-box .sts-cod-warning--zbox {
  display: block !important;
}

/**************** INTERNATIONAL SHIPPING WARNING ****************/

body.woocommerce-checkout .sts-intl-warning {
  display: none;
  margin: 0 0 1rem;
  padding: 12px 14px;
  background: rgba(
    67,
    139,
    183,
    0.1
  ); /* calm blue note: not gold (chosen radio), not red (error) */
  border: 1px solid rgba(67, 139, 183, 0.35);
  border-left: 4px solid var(--sv-shipping-remaining);
  border-radius: var(--sv-btn-radius);
  color: var(--sv-text);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

body.woocommerce-checkout.sts-region-eu .sts-intl-warning--eu,
body.woocommerce-checkout.sts-region-world .sts-intl-warning--world {
  display: block;
}

body.woocommerce-checkout .sts-intl-warning strong {
  display: block;
  margin-bottom: 4px;
  color: #2f6a8e;
}

body.woocommerce-checkout .sts-intl-warning p {
  margin: 0 0 6px;
}

body.woocommerce-checkout .sts-intl-warning p:last-child {
  margin-bottom: 0;
}

/* end: SHIPPING LIST */

/* caveat box: same side inset as the divider line below it and the list dividers above it */

body.woocommerce-checkout #order_review .sts-intl-warning {
  margin: 10px var(--sv-co-pad-x) 1rem;
}

/**************** PAYMENT METHODS, CASH ON DELIVERY WARNINGS ****************/

.woocommerce-checkout
  #payment
  .woocommerce-terms-and-conditions-wrapper
  label.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0;
  cursor: pointer;
  line-height: 1.5;
}

.woocommerce-checkout
  #payment
  .woocommerce-terms-and-conditions-wrapper
  input.woocommerce-form__input-checkbox {
  flex: 0 0 20px;
  margin: 3px 10px 0 0;
  cursor: pointer;
}

.woocommerce-checkout
  #payment
  .woocommerce-terms-and-conditions-wrapper
  .woocommerce-terms-and-conditions-checkbox-text {
  flex: 0 1 auto;
  min-width: 0;
}

.woocommerce-checkout
  #payment
  .woocommerce-terms-and-conditions-wrapper
  .required {
  flex: 0 0 auto;
  margin-left: 0;
}

body.woocommerce-checkout #order_review #payment {
  border-radius: 0 0 7px 7px;
  display: contents;
}

/* 3. "Váš košík", "Doprava", "Celková cena produktov" and "Platba" share one
   look (colour + weight) and the same left inset */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  thead
  th:first-child,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tfoot
  th,
body.woocommerce-checkout #order_review .sts-payment-heading {
  color: var(--sv-heading);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

body.woocommerce-checkout #order_review .sts-payment-heading {
  align-self: start;
  margin: 0;
  padding: var(--sv-co-pay-top) var(--sv-co-pad-x) 0; /* same offset from the row top as "Doprava" has from the first shipping option */
  font-size: inherit;
  line-height: 1.4;
}

/* section line between the shipping list (+ banner) and the payment methods,
   same colour and side inset as the line above "Cena spolu" */

body.woocommerce-checkout #order_review .sts-payment-line {
  height: 1px;
  margin: 8px var(--sv-co-pad-x) 0;
  background: var(--sv-divider);
}

body.woocommerce-checkout #order_review > *,
body.woocommerce-checkout #order_review > #payment > * {
  grid-column: 1 / -1;
}

body.woocommerce-checkout #order_review > .sts-payment-heading {
  grid-column: 1;
}

body.woocommerce-checkout #order_review > #payment > ul.wc_payment_methods {
  grid-column: 2;
}

/* The theme's clearfix pseudo-elements (#payment::before / ::after ...) are not needed
   in a grid, and with #payment as display:contents they become grid items of their own:
   one of them took the list's cell and pushed the payment methods onto a row below the
   "Platba" title. */

body.woocommerce-checkout #order_review::before,
body.woocommerce-checkout #order_review::after,
body.woocommerce-checkout #order_review #payment::before,
body.woocommerce-checkout #order_review #payment::after {
  content: none !important;
  display: none !important;
}

/* end: CHECKOUT: ORDER REVIEW */

body.woocommerce-checkout #payment ul.wc_payment_methods {
  margin: var(--sv-co-pay-top) calc(var(--sv-co-pad-x) - 12px) 0 0 !important; /* top: space under the title; right: the rows bleed 12px so the fee lines up with the other prices */
  padding: 0;
  list-style: none;
  background: transparent !important;
  border: 0;
}

/* each method = one row, like the shipping rows */

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method {
  position: relative !important;
  padding: 12px 12px 12px 42px;
  list-style: none;
  background: transparent !important;
  border-radius: var(--sv-btn-radius);
  transition: background 0.15s ease;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:hover {
  background: rgba(220, 152, 54, 0.08) !important;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:has(input:checked) {
  background: rgba(220, 152, 54, 0.14) !important;
}

/* The real radio stays in place (invisible, still clickable and focusable);
   the circle people see is drawn on the label, so the parent theme can't hide
   or restyle it. Looks like the native radios in the shipping list. */

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > input[type="radio"] {
  position: absolute !important;
  left: 12px !important;
  top: 15px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0;
  padding: 0;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 1;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > label::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 12px;
  top: 15px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid #767676;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:hover:not(:has(input:checked))
  > label::before {
  border-color: #444;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:has(input:checked)
  > label::before {
  border-color: #0075ff;
  background: #0075ff;
  box-shadow: inset 0 0 0 2px #fff;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > input[type="radio"]:focus-visible
  + label::before {
  outline: 2px solid color-mix(in srgb, var(--sv-accent) 70%, transparent);
  outline-offset: 2px;
}

/* switch off the parent theme's other decorations on these rows */

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method::before,
body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > input[type="radio"]::before,
body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > input[type="radio"]::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > label {
  display: block !important;
  position: static !important; /* the circle and the fee are positioned against the row */
  margin: 0;
  padding: 0 80px 0 0; /* room for the fee on the right */
  color: var(--sv-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:has(input:checked)
  > label {
  color: var(--sv-heading);
  font-weight: 600;
}

/* the fee, printed by sts-checkout.php, in the price column on the right */

body.woocommerce-checkout #payment .sts-gateway-fee {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--sv-text);
  font-size: var(--sv-co-price-size);
  font-weight: 600;
  line-height: 19.6px; /* = the 14px title line, so the price is centred on it */
  white-space: nowrap;
}

/* The whole row is clickable, padding included: the label stretches an
   invisible layer over the row. The description sits above it so its text can
   still be selected. */

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > label::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

body.woocommerce-checkout #payment div.payment_box {
  position: relative;
  z-index: 1;

  /* description under the selected method (no grey box, no speech-bubble arrow) */
  /*
No !important on margin / padding: WooCommerce opens and closes the box with jQuery
     slideDown / slideUp, which animates height + margin + padding through inline styles.
     With !important the 8px margin could not animate, so it popped in at the start and
     disappeared at the end (a small jump back when the new text was taller).
*/
  margin: 8px 0 0;
  padding: 0;
  background: transparent !important;
  border-radius: 0;
  color: var(--sv-author);
  font-size: 13px;
  line-height: 1.5;
}

/* the fee is faint, except on the chosen method */

body.woocommerce-checkout #payment .sts-gateway-fee .woocommerce-Price-amount,
body.woocommerce-checkout #payment .sts-gateway-fee bdi,
body.woocommerce-checkout
  #payment
  .sts-gateway-fee
  .woocommerce-Price-currencySymbol {
  color: inherit;
}

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method:not(:has(input:checked))
  .sts-gateway-fee {
  color: var(--sv-muted);
}

/* gateway logos (GoPay, card icons ...) next to the title */

body.woocommerce-checkout
  #payment
  ul.wc_payment_methods
  > li.wc_payment_method
  > label
  img {
  display: inline-block;
  width: auto;
  max-height: 22px;
  margin: 0 0 0 8px;
  vertical-align: middle;
}

body.woocommerce-checkout #payment div.payment_box::before,
body.woocommerce-checkout #payment div.payment_box::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-checkout #payment div.payment_box p {
  margin: 0 0 0.5em;
}

body.woocommerce-checkout #payment div.payment_box p:last-child {
  margin-bottom: 0;
}

/* 7. Final price, privacy text, terms, order button */

body.woocommerce-checkout #payment .form-row.place-order {
  margin: 0;
  padding: 0 var(--sv-co-pad-x) 24px;
  background: transparent !important;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: var(--sv-author);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
  margin: 0 0 12px;
}

body.woocommerce-checkout
  #payment
  .woocommerce-terms-and-conditions-wrapper
  .form-row {
  margin: 0 0 16px;
  padding: 0;
}

body.woocommerce-checkout #payment #place_order {
  float: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 18px;
  background: var(--sv-accent) !important;
  color: var(--sv-on-accent);
  border: 0;
  border-radius: var(--sv-btn-radius);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.woocommerce-checkout #payment #place_order:hover {
  background: var(--sv-accent-hover) !important;
}

body.woocommerce-checkout #payment .sts-cod-warning {
  display: block;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: rgba(67, 139, 183, 0.08);
  border-left: 3px solid var(--sv-shipping-remaining);
  border-radius: 0 var(--sv-btn-radius) var(--sv-btn-radius) 0;
  color: var(--sv-text);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout #payment .sts-cod-warning strong {
  color: #2f6a8e;
}

@media (max-width: 1100px) {
  body.woocommerce-checkout #order_review > .sts-payment-heading,
  body.woocommerce-checkout #order_review > #payment > ul.wc_payment_methods {
    grid-column: 1;
  }
  body.woocommerce-checkout #order_review .sts-payment-heading {
    padding-top: 16px;
  }
  body.woocommerce-checkout #order_review > #payment > ul.wc_payment_methods {
    margin-left: calc(var(--sv-co-pad-x) - 12px) !important;
  }
}

@media (max-width: 560px) {
  body.woocommerce-checkout
    #payment
    ul.wc_payment_methods
    > li.wc_payment_method {
    padding: 12px 8px 12px 38px;
  }
  body.woocommerce-checkout
    #payment
    ul.wc_payment_methods
    > li.wc_payment_method
    > input[type="radio"],
  body.woocommerce-checkout
    #payment
    ul.wc_payment_methods
    > li.wc_payment_method
    > label::before {
    left: 8px !important;
  }
  body.woocommerce-checkout #payment .sts-gateway-fee {
    right: 8px;
  }
}

/**************** FINAL PRICE, TERMS AND THE ORDER BUTTON ****************/

body.woocommerce-checkout .sts-final-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--sv-divider);
  color: var(--sv-heading);
  font-size: 1.4rem; /* clearly bigger than the product prices above */
  font-weight: 700;
}

/**************** COUNTRY PICKER (RADIOS + COUNTRY SELECT) ****************/

/* Built by the script in sts-checkout.php. The real country <select> stays in the
   form (hidden) so WooCommerce, shipping zones and GoPay work exactly as before. */

body.woocommerce-checkout .sts-country-picker {
  margin: 0 0 16px;
  container-type: inline-size; /* lets the radios switch to 2 x 2 when the column is narrow */
}

body.woocommerce-checkout .sts-country-picker > .sts-country-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--sv-text);
}

/* every option gets an equal share of the row */

body.woocommerce-checkout .sts-country-picker .sts-country-options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

body.woocommerce-checkout .sts-country-picker label.sts-country-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 10px 8px;
  background: var(--sv-field-bg);
  border: 1px solid var(--sv-field-border);
  border-radius: var(--sv-btn-radius);
  color: var(--sv-text);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.woocommerce-checkout .sts-country-picker label.sts-country-opt:hover {
  border-color: var(--sv-accent);
}

body.woocommerce-checkout .sts-country-picker label.sts-country-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

body.woocommerce-checkout
  .sts-country-picker
  label.sts-country-opt:has(input:checked) {
  background: rgba(220, 152, 54, 0.16);
  border-color: var(--sv-accent);
  box-shadow: 0 0 0 1px var(--sv-accent) inset;
}

body.woocommerce-checkout
  .sts-country-picker
  label.sts-country-opt:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(220, 152, 54, 0.35);
}

/* the select under the radios, shown for "Európska únia" / "Zvyšok sveta".
   No slide: it simply appears (a height animation looked jumpy next to the page refresh
   WooCommerce does on a country change). A soft glow draws the eye to it instead; it
   replays every time the group is opened, because display: none -> block restarts it. */

body.woocommerce-checkout .sts-country-picker .sts-country-more {
  display: none;
}

body.woocommerce-checkout .sts-country-picker .sts-country-more.is-open {
  display: block;
  margin-top: 10px;
}

body.woocommerce-checkout
  .sts-country-picker
  .sts-country-more.is-open
  .select2-selection--single {
  animation: sts-country-pulse 1.2s ease-out 1;
}

body.woocommerce-checkout .sts-country-picker .sts-country-more select {
  width: 100%;
}

body.woocommerce-checkout
  .sts-country-picker.woocommerce-invalid
  .sts-country-opt,
body.woocommerce-checkout
  .sts-country-picker.woocommerce-invalid
  .select2-selection--single {
  border-color: var(--sv-error);
}

body.woocommerce-checkout .sts-country-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-checkout
    .sts-country-picker
    .sts-country-more.is-open
    .select2-selection--single {
    animation: none;
  }
}

/**************** SOLD-OUT ITEMS (ROWS, BANNER, POP-UP) ****************/

/* red banner at the top of the cart list. A normal full-width table row (no
   display:block, which made it shrink to the left); the box inside is inset by
   the same amount as the labels. It is part of the order review, so it
   disappears by itself after the last sold-out item is removed. */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.sts-soldout-banner {
  display: table-row !important;
  background: transparent !important;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.sts-soldout-banner
  td {
  display: table-cell !important;
  padding: 10px var(--sv-co-pad-x) 6px;
  border: 0;
  background: transparent !important;
}

body.woocommerce-checkout #order_review .sts-soldout-banner-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--sv-co-danger-bg);
  border: 1px solid var(--sv-co-danger-line);
  border-radius: var(--sv-btn-radius);
  color: var(--sv-co-danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body.woocommerce-checkout #order_review .sts-soldout-banner-box::before {
  content: "";
  flex: 0 0 22px;
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /* the "!" is drawn, not typed: a font glyph sits off-centre because of its metrics */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='10' y='4.5' width='2' height='8' rx='1' fill='white'/%3E%3Ccircle cx='11' cy='16' r='1.3' fill='white'/%3E%3C/svg%3E")
      center / 100% 100% no-repeat,
    var(--sv-co-danger);
}

/* the sold-out rows */

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart_item.sts-soldout,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart_item.sts-soldout
  td {
  background: var(--sv-co-danger-bg) !important;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.cart_item.sts-soldout
  td:first-child {
  box-shadow: inset 3px 0 0 var(--sv-co-danger);
}

body.woocommerce-checkout #order_review tr.sts-soldout .custom-book-title {
  color: var(--sv-co-danger);
}

body.woocommerce-checkout #order_review tr.sts-soldout .custom-book-author {
  color: #a35a54;
}

body.woocommerce-checkout
  #order_review
  tr.sts-soldout
  .custom-checkout-thumb
  img {
  filter: grayscale(1);
  opacity: 0.55;
}

body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.sts-soldout
  td.product-total,
body.woocommerce-checkout
  #order_review
  .woocommerce-checkout-review-order-table
  tr.sts-soldout
  td.product-total
  .woocommerce-Price-amount {
  color: var(--sv-co-danger);
  text-decoration: line-through;
}

/* note + remove button inside the row (td.product-name has font-size 0, so
   sizes are set explicitly) */

body.woocommerce-checkout #order_review tr.sts-soldout .sts-soldout-note {
  display: inline-block;
  margin: 4px 8px 0 0;
  color: var(--sv-co-danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}

body.woocommerce-checkout #order_review tr.sts-soldout .sts-soldout-remove {
  display: inline-block;
  margin: 4px 0 0;
  padding: 2px 10px;
  background: #fff;
  color: var(--sv-co-danger);
  border: 1px solid var(--sv-co-danger);
  border-radius: var(--sv-btn-radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  vertical-align: middle;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

body.woocommerce-checkout
  #order_review
  tr.sts-soldout
  .sts-soldout-remove:hover {
  background: var(--sv-co-danger);
  color: #fff;
}

body.woocommerce-checkout
  #order_review
  tr.sts-soldout
  .sts-soldout-remove:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* the order can't be placed while a sold-out row is shown (WooCommerce also
   re-checks the stock when the order is submitted) */

body.woocommerce-checkout form.checkout:has(tr.sts-soldout) #place_order {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* the pop-up */

body.woocommerce-checkout dialog.sts-soldout-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--sv-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

body.woocommerce-checkout dialog.sts-soldout-dialog::backdrop {
  background: rgba(26, 26, 26, 0.45);
}

body.woocommerce-checkout dialog.sts-soldout-dialog h2 {
  margin: 0 0 8px;
  color: var(--sv-co-danger);
  font-size: 1.2rem;
  line-height: 1.3;
}

body.woocommerce-checkout dialog.sts-soldout-dialog p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

body.woocommerce-checkout dialog.sts-soldout-dialog ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

body.woocommerce-checkout dialog.sts-soldout-dialog li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding: 8px 10px;
  background: var(--sv-co-danger-bg);
  border-radius: 6px;
  font-size: 14px;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-name {
  min-width: 0;
  color: var(--sv-heading);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-reason {
  color: var(--sv-co-danger);
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-primary,
body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-secondary {
  padding: 11px 16px;
  border-radius: var(--sv-btn-radius);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-primary {
  flex: 1 1 auto;
  background: var(--sv-accent);
  color: var(--sv-on-accent);
  border: 0;
  font-weight: 700;
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-primary:hover {
  background: var(--sv-accent-hover);
}

body.woocommerce-checkout dialog.sts-soldout-dialog .sts-soldout-secondary {
  background: transparent;
  color: var(--sv-text);
  border: 1px solid var(--sv-divider);
  font-weight: 600;
}

body.woocommerce-checkout dialog.sts-soldout-dialog button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* pickup point (Slovenská pošta BalíkoBOX) — same "header box" style as the
   product page: accent surface + thick dark left bar. Not scoped to the
   thank-you page so it also shows in My Account → view order. */
.starysvet-slposta-order-pickup {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--sv-heading);
  border-radius: 6px;
  background: var(--sv-surface-accent);
  color: var(--sv-text);
}

.starysvet-slposta-order-pickup__title {
  margin: 0 0 6px;
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.starysvet-slposta-order-pickup__name {
  margin: 0;
  color: var(--sv-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.starysvet-slposta-order-pickup__address {
  margin: 4px 0 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  body.woocommerce-order-received
    .woocommerce-customer-details
    .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received .woocommerce-order ul.order_details li,
  body.woocommerce-order-received .woocommerce-table--order-details tbody td,
  body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
  body.woocommerce-order-received .woocommerce-table--order-details tfoot td,
  body.woocommerce-order-received .woocommerce-table--order-details thead th {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/****************** PLATNE PAGE: MATCH KNIHY ARCHIVE ******************/
/* Page title = same look as the Knihy archive title */
body.page:has(ul.products) .entry-header .entry-title,
body.page:has(.woocommerce-no-products-found) .entry-header .entry-title {
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
}

/* Empty state inside a regular page: same centred, pressed-in notice */
body.page .entry-content .woocommerce-no-products-found .woocommerce-info {
  min-height: 40vh;
}

/************* Google reCAPTCHA *************/
.grecaptcha-badge {
  visibility: hidden;
}

/* FLOW FLOW */
.ff-stream {
  background: none !important;
}
#ff-stream-1,
#ff-stream-1 .ff-popup,
#ff-stream-1 .ff-search input {
  background-color: transparent;
}

/* Remove social share links in the popup's top-right menu */
.ff-dropdown .ff-share-wrapper,
.ff-dropdown .ff-share-popup,
.ff-dropdown .flaticon-share2 {
  display: none !important;
}

/* Keep Facebook paragraph breaks, with a compact gap */
#ff-stream-1 .ff-item .ff-content br,
#ff-stream-1 .ff-popup .ff-content br,
.ff-item .ff-content br,
.ff-dropdown ~ .ff-content br,
.ff-content br {
  display: inline !important;
}
#ff-stream-1 .ff-item .ff-content br,
#ff-stream-1 .ff-popup .ff-content br,
.ff-item .ff-content br,
.ff-dropdown ~ .ff-content br,
.ff-content br,
.ff-slide-wrapper .ff-content br,
li[class*="ff-slide"] .ff-content br,
.ff-slideshow .ff-content br,
#ff-stream-1-slideshow .ff-content br {
  display: inline !important;
  content: normal !important;
  margin: 0 !important;
  font-size: inherit !important;
}
.ff-slide-wrapper .ff-content,
.ff-item .ff-content {
  line-height: 1.2 !important;
}

/* below 1101px (where "Doprava" and its list are stacked too) everything is one column */

@container (max-width: 480px) {
  body.woocommerce-checkout .sts-country-picker .sts-country-options {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: auto;
  }
}

@keyframes sts-country-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 152, 54, 0.35);
    border-color: var(--sv-accent);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(220, 152, 54, 0);
  }
}

/* ==========================================================================
   Umelecké diela — landing / disambiguation page (page-id-77242)
   Paste at the END of style.css. Everything is scoped to this one page and
   uses #content in the selector so it beats the generic ".entry-content card"
   rules further up in the file. Reuses your existing --sv-* palette + font.
   ========================================================================== */

body.page-id-77242 #content {
  --ud-ink: #17130e; /* card base (espresso) */
  --ud-ink-2: #2a2118; /* card gradient end */
  --ud-gold: var(--sv-accent, #dc9836);
  --ud-gold-soft: rgba(220, 152, 54, 0.38);
  --ud-cream: #eadfca; /* same warm cream as the nav text */
  --ud-gap: clamp(16px, 2.4vw, 28px);
}

/* ---------- Header: centred, spaced capitals, gold ornament ---------- */
body.page-id-77242 #content .entry-header {
  margin: 0;
  padding: clamp(36px, 7vw, 72px) 20px 0;
  border: 0;
  text-align: center;
}

body.page-id-77242 #content .entry-header::before {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 0 auto 26px;
  background: linear-gradient(to bottom, transparent, var(--ud-gold));
}

body.page-id-77242 #content .entry-title {
  margin: 0;
  font-family: var(--sv-font-display, "EB Garamond", Georgia, serif);
  font-size: clamp(28px, 5.2vw, 54px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-indent: 0.2em; /* re-centres text offset by trailing letter-spacing */
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--sv-heading, #1a1a1a);
}

/* line – diamond – line */
body.page-id-77242 #content .entry-header::after {
  content: "";
  display: block;
  width: 140px;
  height: 11px;
  margin: 26px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 11' fill='none' stroke='%23dc9836'%3E%3Cpath d='M0 5.5h58M82 5.5h58'/%3E%3Cpath d='M70 1l4.5 4.5L70 10l-4.5-4.5z' fill='%23dc9836'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- Content wrapper: drop the white card, stack intro + grid ---------- */
body.page-id-77242 #content .entry-content {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 36px) clamp(40px, 7vw, 80px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  container-type: inline-size; /* lets the card grid below react to the width of this box */
}

/* Intro text: type into the existing empty paragraph in the editor.
   It is shown ABOVE the cards; while empty it is hidden. */
body.page-id-77242 #content .entry-content > p.wp-block-paragraph {
  order: -1;
  max-width: 620px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
  font-family: var(--sv-font-display, "EB Garamond", Georgia, serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  line-height: 1.6;
  color: var(--sv-author, #6b5d4a);
}
body.page-id-77242 #content .entry-content > p.wp-block-paragraph:empty {
  display: none;
}

/* ---------- Card grid (3 now; extra groups wrap automatically) ---------- */
body.page-id-77242 #content .wp-block-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--ud-gap);
  counter-reset: ud-card;
  justify-content: stretch;
  margin: 0;
}

body.page-id-77242 #content .wp-block-button {
  position: relative;
  display: flex;
  counter-increment: ud-card;
  min-height: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(220, 152, 54, 0.16),
      transparent 60%
    ),
    linear-gradient(160deg, var(--ud-ink-2), var(--ud-ink) 70%);
  box-shadow:
    0 1px 2px rgba(23, 19, 14, 0.2),
    0 18px 36px -18px rgba(23, 19, 14, 0.55);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
}

/* optional: give a card a photo later ->
   .wp-block-button:nth-child(1) { --ud-image: url(/wp-content/uploads/…jpg); } */
body.page-id-77242 #content .wp-block-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ud-image, none) center / cover no-repeat;
  opacity: 0.55;
  transition:
    transform 0.9s ease,
    opacity 0.5s ease;
}

/* the "passe-partout" frame */
body.page-id-77242 #content .wp-block-button::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid var(--ud-gold-soft);
  pointer-events: none;
  transition:
    inset 0.45s ease,
    border-color 0.45s ease;
}

/* ---------- The link fills the whole card ---------- */
body.page-id-77242 #content .wp-block-button__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 34px 28px 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ud-cream);
  font-family: var(--sv-font-display, "EB Garamond", Georgia, serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Roman numeral at the top */
body.page-id-77242 #content .wp-block-button__link::before {
  content: counter(ud-card, upper-roman);
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  font-size: 15px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ud-gold);
  opacity: 0.9;
}

/* Gold rule under the name; grows on hover */
body.page-id-77242 #content .wp-block-button__link::after {
  content: "";
  width: 28px;
  height: 1px;
  margin-top: 20px;
  background: var(--ud-gold);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Hover / focus ---------- */
body.page-id-77242 #content .wp-block-button:hover,
body.page-id-77242 #content .wp-block-button:focus-within {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(23, 19, 14, 0.2),
    0 30px 50px -20px rgba(23, 19, 14, 0.65);
}
body.page-id-77242 #content .wp-block-button:hover::before,
body.page-id-77242 #content .wp-block-button:focus-within::before {
  inset: 9px;
  border-color: var(--ud-gold);
}
body.page-id-77242 #content .wp-block-button:hover::after {
  transform: scale(1.05);
  opacity: 0.75;
}
body.page-id-77242 #content .wp-block-button__link:hover,
body.page-id-77242 #content .wp-block-button__link:focus-visible {
  color: #fff;
  background: transparent;
}
body.page-id-77242 #content .wp-block-button__link:hover::after,
body.page-id-77242 #content .wp-block-button__link:focus-visible::after {
  width: 84px;
}
body.page-id-77242 #content .wp-block-button__link:focus-visible {
  outline: 2px solid var(--ud-gold);
  outline-offset: -6px;
}

/* ---------- Admin "Upraviť" link: keep it quiet ---------- */
body.page-id-77242 #content .edit-link {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Medium widths: one column instead of 2 + 1 orphan ----------
   The grid above is auto-fit with 250px minimum cards. With 3 cards, 806px is the width
   where all three still fit in a row (3 x 250px + 2 x the largest gap, 28px). Narrower than
   that it used to drop to two cards plus a single one on the left; now the cards form one
   centred column instead. Under 560px the horizontal-card rule below takes over. */
@container (max-width: 806px) {
  body.page-id-77242 #content .wp-block-buttons {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }
}

/* ---------- Small screens: horizontal cards, easier to tap ---------- */
@media (max-width: 560px) {
  body.page-id-77242 #content .wp-block-buttons {
    grid-template-columns: 1fr;
  }
  body.page-id-77242 #content .wp-block-button {
    min-height: 150px;
    aspect-ratio: auto;
  }
  body.page-id-77242 #content .wp-block-button__link {
    justify-content: center;
    padding: 28px 24px;
  }
  body.page-id-77242 #content .wp-block-button__link::before {
    top: 22px;
  }
  body.page-id-77242 #content .wp-block-button__link::after {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-77242 #content .wp-block-button,
  body.page-id-77242 #content .wp-block-button::before,
  body.page-id-77242 #content .wp-block-button::after,
  body.page-id-77242 #content .wp-block-button__link::after {
    transition: none;
  }
  body.page-id-77242 #content .wp-block-button:hover {
    transform: none;
  }
}

/****************** CART PAGE (moved from cart.php) ******************/

@keyframes simple-cart-undo-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/****************** AUTH POPUPS ******************/

body > #wc-auth-modal,
body > #wc-lost-password-modal {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 20px;
  box-sizing: border-box;
  z-index: 99999 !important;
  display: none !important;
}

body > #wc-auth-modal.wc-modal-open,
body > #wc-lost-password-modal.wc-modal-open {
  display: flex !important;
}

/* Modal titles: were <h2>, now <p>, so they need their own title look.
                                                                                                                                   Adjust size/colour here if they differ from the old headings. */
.wc-modal-title {
  color: var(--sv-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--sv-divider);
}

body > #wc-auth-modal > .wc-modal-content,
body > #wc-lost-password-modal > .wc-modal-content {
  position: relative !important;
  width: 90% !important;
  max-width: 500px !important;
  max-height: 90vh !important;
  margin: auto !important;
  box-sizing: border-box;
}

/****************** FORGOTTEN PASSWORD CLOSE BUTTON ******************/

#wc-lost-password-modal .close-wc-lost-password-modal {
  position: absolute !important;
  top: 16px;
  right: 18px;

  width: 38px !important;
  height: 38px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0;

  color: var(--sv-label) !important;
  background: transparent;

  border: none;
  border-radius: 50%;

  font-size: 28px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer !important;

  z-index: 10 !important;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

#wc-lost-password-modal .close-wc-lost-password-modal:hover {
  color: var(--sv-heading) !important;
  background: var(--sv-surface-accent);
  transform: rotate(90deg) !important;
}

/****************** FORGOTTEN PASSWORD ******************/

.wc-lost-password-description {
  margin: -10px 0 24px;
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.6;
}

.wc-lost-password-submit-row {
  margin: 4px 0 0 !important;
}

.wc-reset-password-button {
  width: 100% !important;
  height: 56px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 24px !important;

  box-sizing: border-box !important;

  color: var(--sv-on-accent) !important;

  background: var(--sv-accent) !important;

  border: 0 !important;
  border-radius: var(--sv-btn-radius) !important;

  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  cursor: pointer !important;

  box-shadow: none !important;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

.wc-reset-password-button:hover {
  background: var(--sv-accent-hover) !important;
}

.wc-reset-password-button:active {
  transform: translateY(0);
}

/****************** BACK TO LOGIN ******************/

.wc-back-to-login-wrapper {
  margin: 22px 0 0 !important;
  text-align: center !important;
}

.wc-back-to-login {
  color: var(--sv-link) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.wc-back-to-login:hover {
  color: var(--sv-link-hover) !important;
  text-decoration: underline !important;
}

/****************** MOBILE ******************/

@media (max-width: 600px) {
  body > #wc-auth-modal,
  body > #wc-lost-password-modal {
    padding: 15px;
  }

  body > #wc-auth-modal > .wc-modal-content,
  body > #wc-lost-password-modal > .wc-modal-content {
    width: 100% !important;
  }

  #wc-lost-password-modal .close-wc-lost-password-modal {
    top: 12px;
    right: 12px;
  }
}

/****************** ARTICLES: LISTING, ARCHIVES, SINGLE POST + SIDEBAR (/clanky) ******************/
/* Scope: blog home, category / tag / date / author archives and single posts.
   Shop archives are excluded via :not(.woocommerce). */

/* ----- Article card ----- */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce),
    body.single-post
  )
  #main
  > article.post {
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 20px clamp(16px, 2.6vw, 26px) 16px;
  border: 1px solid var(--sv-card-border);
  border-left: 4px solid var(--sv-accent);
  border-radius: var(--sv-card-radius);
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
}

/* ----- Header: title first, then date + author ----- */
/* Storefront prints "Uverejnené <date>" and "od <author>" as bare text next to
   the links. The labels are hidden (font-size 0 on the wrapper, restored on the
   links) and replaced by small icons, so only the date and the name show. */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-header {
  order: 1;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 0;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-title {
  flex: 0 0 100%;
  order: 1;
  margin: 0;
  color: var(--sv-heading);
  font-family: var(--sv-font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.18;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-title
  a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0; /* hides the "Uverejnené" / "od" labels */
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on::before,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--sv-label);
  opacity: 0.75;
  -webkit-mask: var(--sv-meta-icon) center / contain no-repeat;
  mask: var(--sv-meta-icon) center / contain no-repeat;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on {
  --sv-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8v10H5V10h14z'/%3E%3C/svg%3E");
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author {
  --sv-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on
  a,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author
  a {
  position: relative;
  z-index: 2; /* stays clickable above the card-wide link */
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.15s ease;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on
  a {
  color: var(--sv-label);
  font-weight: 500;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author
  a {
  color: var(--sv-author);
  font-weight: 600;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on
  time.updated:not(.published) {
  display: none;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .posted-on
  a:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .post-author
  a:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-title
  a:hover {
  color: var(--sv-link-hover);
}

/* ----- Body text ----- */
:is(body.blog, body.archive, body.single-post) article.post .entry-content {
  color: var(--sv-text);
  font-size: 17px;
  line-height: 1.7;
}

:is(body.blog, body.archive, body.single-post) article.post .entry-content p {
  margin: 0 0 1.1em;
}

:is(body.blog, body.archive, body.single-post) article.post .entry-content a {
  color: var(--sv-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(body.blog, body.archive, body.single-post)
  article.post
  .entry-content
  a:hover {
  color: var(--sv-link-hover);
}

:is(body.blog, body.archive, body.single-post)
  article.post
  .entry-content
  blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--sv-accent);
  color: var(--sv-author);
  font-style: italic;
}

/* ----- Categories + tags ----- */
/* Single posts: a row under the title/meta.
   Listings (blog, archives, search): a footer strip at the bottom of the card,
   categories on the left, tags on the right. It sits outside the "snippet"
   (title + text + button), so hover and click on the card never reach it. */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post {
  display: flex;
  flex-direction: column;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-content {
  order: 3;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy {
  order: 2;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-top: 0;
  border-bottom: 1px solid var(--sv-divider);
}

/* Each group is its own row of chips; the "Kategórie:" / "Značky:" words are
   hidden (font-size 0) because the chip styles already tell them apart. */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0;
  line-height: 1;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links {
  margin-left: auto; /* tags always hug the right edge */
  justify-content: flex-end;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-header {
  padding: 18px var(--sv-article-pad-x) 0;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content {
  padding: 0 var(--sv-article-pad-x) 24px;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy {
  order: 4;
  position: relative;
  z-index: 3; /* above the card-wide link, so clicks/hover here do nothing to the card */
  margin: 0;
  padding: 14px var(--sv-article-pad-x);
  border-top: 1px solid var(--sv-divider);
  border-bottom: 0;
  background: #fbf8f2;
  cursor: default;
}

/* Categories: filled, bold, uppercase chips */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--sv-surface-accent-hover);
  border-radius: 999px;
  background: var(--sv-surface-accent);
  color: var(--sv-pill-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a:focus-visible {
  border-color: var(--sv-heading);
  background: var(--sv-heading);
  color: #fff;
}

/* Tags: light outline chips with a "#" */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links
  a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--sv-card-border);
  border-radius: 999px;
  color: var(--sv-label);
  font-size: var(--sv-fs-card-pill);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links
  a::before {
  content: "#";
  margin-right: 1px;
  opacity: 0.55;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links
  a:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links
  a:focus-visible {
  border-color: var(--sv-surface-accent-hover);
  background: var(--sv-surface-accent);
  color: var(--sv-pill-text);
}

/* ----- Archive heading (category / tag / author / date / search) ----- */
/* Same look as the product category + attribute headers
   (.woocommerce-products-header): a calm centred card with a small
   pressed-in label above a bold value. */
:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header {
  margin: 0 0 24px;
  padding: 14px 20px;
  text-align: center;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: var(--sv-card-radius);
  box-shadow: var(--sv-card-shadow);
}

:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header
  .page-title {
  margin: 0;
  color: var(--sv-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none;
}

:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header
  .taxonomy-description {
  margin: 8px 0 0;
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.5;
}

:is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
  .page-header
  .taxonomy-description
  > :last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  :is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
    .page-header {
    padding: 12px 14px;
  }

  :is(body.archive:not(.woocommerce), body.search-results:not(.woocommerce))
    .page-header
    .page-title {
    font-size: 20px;
  }
}

/* ----- Sidebar widgets ----- */
:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget {
  box-sizing: border-box;
  margin: 0 0 20px;
  border: 1px solid var(--sv-card-border);
  border-radius: var(--sv-card-radius);
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
  padding: 20px 12px 12px;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li {
  margin: 0;
  border-bottom: 1px solid var(--sv-divider);
  line-height: 1.35;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li:first-child {
  padding-top: 0;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  a {
  color: var(--sv-heading);
  font-weight: 600;
  text-decoration: none;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  a:hover {
  color: var(--sv-link);
}

/* Storefront puts a FontAwesome icon in front of every widget list item and
   indents the row to make room for it, which spills out of the card. Drop the
   icons and the indent; each widget gets a small label instead. */
:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  ul,
:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li {
  margin-left: 0;
  padding-left: 0;
  text-indent: 0;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li::before,
:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li::after {
  content: none;
  display: none;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget::before {
  display: block;
  border-bottom: 2px solid var(--sv-accent);
  color: var(--sv-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#secondary .widget_recent_entries::before {
  content: "Najnovšie články";
  border-bottom-color: var(--sv-accent);
}

#secondary .widget_categories::before {
  content: "Kategórie";
  border-bottom-color: var(--sv-cat-platne);
}

#secondary .widget_archive::before {
  content: "Archív";
  border-bottom-color: var(--sv-cat-recenzia);
}

#secondary .widget li a {
  display: block;
}

/* ----- Excerpt + "read more" (markup printed by sts-articles.php) ----- */
/* Card hover: lifts only while the pointer is over the snippet (title, text,
   button). Over the categories/tags strip it stays calm. */
:is(body.blog, body.archive, body.search-results) article.post {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

:is(body.blog, body.archive, body.search-results)
  #main
  > article.post:hover:not(:has(.entry-taxonomy:hover)) {
  border-top-color: var(--sv-product-card-border-hover);
  border-right-color: var(--sv-product-card-border-hover);
  border-bottom-color: var(--sv-product-card-border-hover);
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.1);
}

:is(body.blog, body.archive, body.search-results) article.post .entry-header,
:is(body.blog, body.archive, body.search-results) article.post .entry-content {
  cursor: pointer;
}

/* Stretch the TITLE link over the card so a click on the snippet opens the
   article. (It used to be the button's ::after, which made the button look
   hovered whenever the pointer was anywhere on the card.) */
:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-title
  a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.starysvet-excerpt {
  margin: 0 0 20px !important;
}

/* Button, right-aligned */
.starysvet-readmore-wrap {
  margin: 0 !important;
  text-align: right;
}

:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-content
  a.starysvet-readmore {
  position: relative;
  z-index: 2; /* above the card-wide link */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--sv-btn-pad);
  border: 1px solid var(--sv-accent);
  border-radius: var(--sv-btn-radius);
  background: var(--sv-accent);
  color: var(--sv-on-accent);
  font-size: var(--sv-fs-card-button);
  font-weight: var(--sv-btn-weight);
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* Only the button itself reacts: dark fill, white text */
:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-content
  a.starysvet-readmore:hover,
:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-content
  a.starysvet-readmore:focus-visible {
  border-color: var(--sv-heading);
  background: var(--sv-heading);
  color: #fff;
}

.starysvet-readmore__arrow {
  transition: transform 0.15s ease;
}

:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-content
  a.starysvet-readmore:hover
  .starysvet-readmore__arrow,
:is(body.blog, body.archive, body.search-results)
  article.post
  .entry-content
  a.starysvet-readmore:focus-visible
  .starysvet-readmore__arrow {
  transform: translateX(4px);
}

/* ----- Colour coding by category -----
   Chips, the card's left bar and the sidebar dots are coloured per category.
   Matching is by link / post class, so no template changes are needed.
   Order below = priority when a post has several categories (last wins). */

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/clanok/"] {
  border-color: var(--sv-cat-clanok-border);
  background: var(--sv-cat-clanok-bg);
  color: var(--sv-cat-clanok);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/clanok/"]:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/clanok/"]:focus-visible {
  border-color: var(--sv-cat-clanok);
  background: var(--sv-cat-clanok);
  color: #fff;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/recenzia/"] {
  border-color: var(--sv-cat-recenzia-border);
  background: var(--sv-cat-recenzia-bg);
  color: var(--sv-cat-recenzia);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/recenzia/"]:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/recenzia/"]:focus-visible {
  border-color: var(--sv-cat-recenzia);
  background: var(--sv-cat-recenzia);
  color: #fff;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/knihy/"] {
  border-color: var(--sv-cat-knihy-border);
  background: var(--sv-cat-knihy-bg);
  color: var(--sv-cat-knihy);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/knihy/"]:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/knihy/"]:focus-visible {
  border-color: var(--sv-cat-knihy);
  background: var(--sv-cat-knihy);
  color: #fff;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/platne/"] {
  border-color: var(--sv-cat-platne-border);
  background: var(--sv-cat-platne-bg);
  color: var(--sv-cat-platne);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/platne/"]:hover,
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .cat-links
  a[href*="/category/platne/"]:focus-visible {
  border-color: var(--sv-cat-platne);
  background: var(--sv-cat-platne);
  color: #fff;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-clanok {
  border-left-color: var(--sv-cat-clanok);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-recenzia {
  border-left-color: var(--sv-cat-recenzia);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-knihy {
  border-left-color: var(--sv-cat-knihy);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-platne {
  border-left-color: var(--sv-cat-platne);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-clanok:hover {
  border-left-color: var(--sv-cat-clanok);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-recenzia:hover {
  border-left-color: var(--sv-cat-recenzia);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-knihy:hover {
  border-left-color: var(--sv-cat-knihy);
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post.category-platne:hover {
  border-left-color: var(--sv-cat-platne);
}

/* Tags pick up the warm brand colours */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  .tags-links
  a {
  border-color: var(--sv-divider);
  background: var(--sv-field-bg);
  color: var(--sv-pill-text);
}

/* Sidebar: coloured dot before each category + gold hover on list links */
#secondary .widget_categories li a::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sv-icon-muted);
}

#secondary .widget_categories li a[href*="/category/clanok/"]::before {
  background: var(--sv-cat-clanok);
}

#secondary .widget_categories li a[href*="/category/recenzia/"]::before {
  background: var(--sv-cat-recenzia);
}

#secondary .widget_categories li a[href*="/category/knihy/"]::before {
  background: var(--sv-cat-knihy);
}

#secondary .widget_categories li a[href*="/category/platne/"]::before {
  background: var(--sv-cat-platne);
}

#secondary .widget_recent_entries li a:hover,
#secondary .widget_archive li a:hover {
  color: var(--sv-accent-hover);
}

@media (max-width: 767px) {
  :root {
    --sv-article-pad-x: 14px;
  }

  body.single-post #main > article.post {
    padding: 22px 18px 18px;
  }

  :is(body.blog, body.archive, body.single-post) article.post .entry-title {
    font-size: 24px;
  }

  :is(body.blog, body.archive, body.single-post) article.post .entry-content {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  /* categories and tags stack, both left-aligned, on narrow screens */
  :is(body.blog, body.archive, body.search-results, body.single-post)
    article.post
    .entry-taxonomy {
    justify-content: flex-start;
  }

  :is(body.blog, body.archive, body.search-results, body.single-post)
    article.post
    .entry-taxonomy
    .tags-links {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   SINGLE ARTICLE: modern reading layout
   - narrow centred card, ~68-character reading column
   - categories as a label row above the title, tags below the text
   - prev / next as two cards at the bottom, "Upraviť" as a quiet footer link
   Appended last on purpose: it has to win ties with the shared article rules.
   ========================================================================== */
body.single-post {
  --sv-single-pad-x: clamp(20px, 6vw, 64px);
  --sv-single-pad-y: clamp(24px, 5vw, 56px);
}

body.single-post:not(.woocommerce) #main > article.post {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--sv-single-pad-y) var(--sv-single-pad-x);
}

/* ----- Order: categories, title + meta, text, tags, then everything else ----- */
body.single-post:not(.woocommerce) article.post .entry-taxonomy {
  display: contents; /* its two groups become direct items of the card */
}

body.single-post:not(.woocommerce) article.post .entry-taxonomy .cat-links {
  order: 1;
  margin: 0 0 18px;
}

body.single-post:not(.woocommerce) article.post .entry-header {
  order: 2;
  margin: 0 0 32px;
  row-gap: 14px;
}

body.single-post:not(.woocommerce) article.post .entry-taxonomy .tags-links {
  order: 5;
  justify-content: flex-start;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--sv-divider);
}

/* Edit link, post navigation, anything else Storefront adds inside the card */
body.single-post:not(.woocommerce)
  article.post
  > :not(.entry-header):not(.entry-content):not(.entry-taxonomy) {
  order: 6;
}

/* ----- Title + meta ----- */
body.single-post:not(.woocommerce) article.post .entry-title {
  font-size: clamp(30px, 3.2vw + 14px, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

body.single-post:not(.woocommerce) article.post .posted-on a,
body.single-post:not(.woocommerce) article.post .post-author a {
  font-size: 15px;
}

/* ----- Text ----- */
body.single-post:not(.woocommerce) article.post .entry-content {
  color: var(--sv-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto; /* needs a lang attribute on html, WordPress sets it */
  order: 4;
  margin: 0;
  padding: 0;
  display: flow-root;
  /*
contains the floated image
*/
}

body.single-post:not(.woocommerce) article.post .entry-content > p {
  margin: 0 0 1.15em;
  color: var(--sv-text);
  text-wrap: pretty; /* no lonely one-word last lines */
}

/* first paragraph reads as a lead-in: only a touch bigger and darker, so the
   jump to the rest of the text is not jarring (was 1.18em, looked like a
   different font size) */
body.single-post:not(.woocommerce)
  article.post
  .entry-content
  > p:first-of-type {
  color: var(--sv-heading);
  font-size: 1.1em;
  line-height: 1.65;
}

body.single-post:not(.woocommerce) article.post .entry-content :is(h2, h3, h4) {
  margin: 1.8em 0 0.6em;
  color: var(--sv-heading);
  font-family: var(--sv-font-display);
  font-weight: 600;
  line-height: 1.25;
}

body.single-post:not(.woocommerce) article.post .entry-content h2 {
  font-size: 1.55em;
}

body.single-post:not(.woocommerce) article.post .entry-content h3 {
  font-size: 1.25em;
}

body.single-post:not(.woocommerce)
  article.post
  .entry-content
  a:not(.wp-block-button__link) {
  color: var(--sv-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post:not(.woocommerce)
  article.post
  .entry-content
  a:not(.wp-block-button__link):hover {
  color: var(--sv-link-hover);
}

body.single-post:not(.woocommerce) article.post .entry-content :is(ul, ol) {
  margin: 0 0 1.4em 1.3em;
}

body.single-post:not(.woocommerce) article.post .entry-content li {
  margin-bottom: 0.4em;
}

body.single-post:not(.woocommerce) article.post .entry-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border: 0;
  border-left: 3px solid var(--sv-accent);
  color: var(--sv-heading);
  font-family: var(--sv-font-display);
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.5;
}

body.single-post:not(.woocommerce) article.post .entry-content blockquote p {
  margin: 0;
}

body.single-post:not(.woocommerce) article.post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Featured image. Storefront prints it as the first child of .entry-content at its
   natural size, centred, so it floated in the middle of the column with empty bands
   on both sides. Now it sits on the left, a bit larger, with a soft shadow, and the
   lead-in text wraps around it (stacked and centred on phones). */

body.single-post:not(.woocommerce)
  article.post
  .entry-content
  > :is(.wp-post-image, .post-thumbnail) {
  float: left;
  display: block;
  width: clamp(170px, 30%, 240px);
  max-width: 100%;
  height: auto;
  margin: 6px 32px 16px 0;
}

body.single-post:not(.woocommerce) article.post .entry-content .wp-post-image {
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.2);
}

/* if the theme wraps the image in a link, the wrapper floats and the image fills it */
body.single-post:not(.woocommerce)
  article.post
  .entry-content
  .post-thumbnail
  .wp-post-image {
  display: block;
  width: 100%;
  margin: 0;
}

/* tablets: smaller cover so the text column beside it does not get too narrow */
@media (max-width: 767px) {
  body.single-post:not(.woocommerce) article.post .entry-content {
    font-size: 17px;
  }

  body.single-post:not(.woocommerce)
    article.post
    .entry-content
    > :is(.wp-post-image, .post-thumbnail) {
    width: 150px;
    margin: 4px 20px 12px 0;
  }
}

@media (max-width: 600px) {
  body.single-post:not(.woocommerce)
    article.post
    .entry-content
    > :is(.wp-post-image, .post-thumbnail) {
    float: none;
    width: min(100%, 320px);
    margin: 0 auto 24px;
  }
}

body.single-post:not(.woocommerce) article.post .entry-content figure {
  margin: 2em 0;
}

body.single-post:not(.woocommerce) article.post .entry-content figcaption {
  margin-top: 0.6em;
  color: var(--sv-label);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

body.single-post:not(.woocommerce) article.post .entry-content hr {
  max-width: 120px;
  margin: 2.5em auto;
  border: 0;
  border-top: 1px solid var(--sv-divider);
}

/* ----- Previous / next article: two cards ----- */
body.single-post:not(.woocommerce) article.post .post-navigation {
  margin: 40px 0 0;
  padding: 0;
  border: 0;
}

body.single-post:not(.woocommerce) article.post .post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

body.single-post:not(.woocommerce)
  article.post
  .post-navigation
  :is(.nav-previous, .nav-next) {
  display: flex;
  flex: 1 1 240px;
  float: none;
  width: auto;
  margin: 0;
}

body.single-post:not(.woocommerce) article.post .post-navigation .nav-next {
  text-align: right;
}

body.single-post:not(.woocommerce) article.post .post-navigation a {
  display: block;
  flex: 1;
  padding: 16px 18px;
  border: 1px solid var(--sv-card-border);
  border-radius: 12px;
  background: #fbf8f2;
  color: var(--sv-heading);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.single-post:not(.woocommerce) article.post .post-navigation a:hover {
  border-color: var(--sv-accent);
  background: #fff;
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.1);
}

/* ----- "Upraviť" (only visible to editors): small and quiet ----- */
body.single-post:not(.woocommerce) article.post .edit-link {
  margin: 28px 0 0;
  font-size: 13px;
}

/* Slightly slow the add-to-cart spinner without making its motion sluggish. */
body a.button.add_to_cart_button.loading::after,
body button.button.single_add_to_cart_button.loading::after,
body input.button.single_add_to_cart_button.loading::after {
  animation-duration: 2.5s !important;
}
/* ==========================================================================
   ARTICLE LISTINGS (blog, archives, search): single-column cards
   #main is a one-column grid (gap between cards).
   Each card is itself a grid, areas top to bottom:
     cats                category chips
     head                title + date + author
     thumb | text        small portrait cover (only when the post has one) + excerpt
     tags  | more        footer: tags left, "Čítať ďalej" link right
   The excerpt uses the full card width and up to 7 lines. .entry-content and .entry-taxonomy are
   display: contents, so their children are placed by NAME, never by source order.
   Hover rule is unchanged: the card only reacts over the snippet, not over the
   category / tag links (they sit above the card-wide link).
   ========================================================================== */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main {
  --sv-thumb-w: clamp(84px, 11vw, 132px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main::before,
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main::after {
  content: none;
  display: none;
}

/* heading, pagination, "nothing found" etc. span the whole grid */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > :not(article.post) {
  grid-column: 1 / -1;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "cats  cats cats"
    "head  head head"
    "thumb text text"
    "tags  tags more";
  margin: 0;
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* the footer divider line, drawn once across the whole card */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post::after {
  content: "";
  grid-row: 4;
  grid-column: 1 / -1;
  align-self: start;
  border-top: 1px solid var(--sv-divider);
  pointer-events: none;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy,
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content {
  display: contents;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content::before,
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content::after {
  content: none;
  display: none;
}

/* cover: small portrait thumbnail beside the excerpt */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  > :is(.wp-post-image, .post-thumbnail) {
  grid-area: thumb;
  align-self: start;
  display: block;
  float: none;
  width: var(--sv-thumb-w);
  margin: 3px 20px 16px var(--sv-article-pad-x);
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  .wp-post-image {
  display: block;
  width: var(--sv-thumb-w);
  max-width: none;
  height: calc(var(--sv-thumb-w) * 4 / 3);
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.2);
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  .post-thumbnail
  .wp-post-image {
  width: 100%;
  margin: 0;
}

/* categories */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy
  .cat-links {
  grid-area: cats;
  order: 0;
  position: relative;
  z-index: 3; /* above the card-wide link */
  margin: 0;
  padding: 18px var(--sv-article-pad-x) 0;
  cursor: default;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy
  .cat-links
  a {
  padding: 4px 10px;
  font-size: 10.5px;
}

/* title + meta */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-header {
  grid-area: head;
  order: 0;
  margin: 0 0 12px;
  padding: 10px var(--sv-article-pad-x) 0;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-title {
  font-size: clamp(21px, 1.2vw + 13px, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  :is(.posted-on, .post-author)
  a {
  font-size: 13px;
}

/* excerpt */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  > .starysvet-excerpt {
  grid-area: text;
  align-self: start;
  max-width: none;
  margin: 0 !important;
  padding: 0 var(--sv-article-pad-x) 16px;
  color: var(--sv-text);
  font-size: 16px;
  line-height: 1.65;
  display: block;
}

/* formatted excerpt content (paragraphs, lists, quotes) */
.starysvet-excerpt > :first-child {
  margin-top: 0;
}
.starysvet-excerpt > :last-child {
  margin-bottom: 0;
}
.starysvet-excerpt p,
.starysvet-excerpt ul,
.starysvet-excerpt ol,
.starysvet-excerpt blockquote {
  margin: 0 0 0.7em;
}
.starysvet-excerpt ul,
.starysvet-excerpt ol {
  padding-left: 1.4em;
}
.starysvet-excerpt blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--sv-border, #d9c9b8);
  font-style: italic;
}

/* with a cover the thumbnail already provides the left padding */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post:has(.wp-post-image)
  .entry-content
  > .starysvet-excerpt {
  padding-left: 0;
}

/* footer: tags left (they wrap if there are many), link right */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy
  .tags-links {
  grid-area: tags;
  align-self: center;
  order: 0;
  position: relative;
  z-index: 3;
  margin: 11px 16px 11px var(--sv-article-pad-x);
  padding: 0;
  border: 0;
  justify-content: flex-start;
  row-gap: 6px;
  cursor: default;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-taxonomy
  .tags-links
  a {
  padding: 3px 8px;
  font-size: 11px;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  > .starysvet-readmore-wrap {
  grid-area: more;
  align-self: center;
  margin: 0 var(--sv-article-pad-x) 0 0 !important;
  padding: 0;
  text-align: right;
}

/* no tags: the link takes the footer on its own */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post:not(:has(.tags-links))
  .entry-content
  > .starysvet-readmore-wrap {
  grid-column: 1 / -1;
  margin: 12px var(--sv-article-pad-x) !important;
}

/* "Čítať ďalej" is a quiet text link here, not a button */
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  a.starysvet-readmore {
  position: relative;
  z-index: 2; /* above the card-wide link */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--sv-link);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
}

:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  a.starysvet-readmore:hover,
:is(
    body.blog,
    body.archive:not(.woocommerce),
    body.search-results:not(.woocommerce)
  )
  #main
  > article.post
  .entry-content
  a.starysvet-readmore:focus-visible {
  border: 0;
  background: none;
  color: var(--sv-link-hover);
}

/* Chips: the hidden "Kategórie:" / "Značky:" label is still an (empty) flex item,
   so a flex gap would push the first chip 6px in. Space neighbouring chips instead. */
:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  :is(.cat-links, .tags-links) {
  column-gap: 0;
}

:is(body.blog, body.archive, body.search-results, body.single-post)
  article.post
  .entry-taxonomy
  :is(.cat-links, .tags-links)
  a
  + a {
  margin-left: 6px;
}

/* ==========================================================================
   SIDEBAR: modern widgets
   Short colour bar under the label instead of a full-width line, no row
   dividers; each link is a soft rounded row that highlights on hover.
   Appended last so it wins ties with the earlier sidebar rules.
   ========================================================================== */
#secondary .widget_recent_entries {
  --sv-widget-accent: var(--sv-accent);
}

#secondary .widget_categories {
  --sv-widget-accent: var(--sv-cat-platne);
}

#secondary .widget_archive {
  --sv-widget-accent: var(--sv-cat-recenzia);
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget::before {
  margin: 0 8px 10px;
  padding: 0 0 14px;
  border-bottom: 0;
  background: linear-gradient(
      var(--sv-widget-accent, var(--sv-accent)),
      var(--sv-widget-accent, var(--sv-accent))
    )
    left bottom / 28px 3px no-repeat;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li {
  padding: 0;
  border-bottom: 0;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li
  + li {
  margin-top: 2px;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li
  a {
  display: block;
  padding: 9px 8px;
  border-radius: 8px;
  line-height: 1.35;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li
  a:hover,
:is(body.blog, body.archive:not(.woocommerce), body.single-post)
  #secondary
  .widget
  li.current-cat
  > a {
  background: var(--sv-surface-accent);
  color: var(--sv-heading);
}

/* Stays in view while the article list scrolls (desktop only) */
@media (min-width: 768px) {
  :is(body.blog, body.archive:not(.woocommerce), body.single-post) #secondary {
    position: sticky;
    top: 24px;
  }

  body.admin-bar:is(.blog, .archive, .single-post) #secondary {
    top: 56px;
  }
}
/* ==========================================================================
   Company fields (IČO / DIČ) in checkout
   Paste into style.css, section "CHECKOUT: SUMMARY, PAYMENT WIDGET".
 
   Názov firmy, IČO and DIČ / IČ DPH are hidden until "Nakupujem na firmu" is ticked and
   then slide open, the same way as WooCommerce's "Odoslať na inú adresu" (the slide itself
   is the jQuery script in sts-checkout.php). Hidden only while WooCommerce's JS is active
   (.woocommerce-js), so there is no flash on page load and without JavaScript the fields
   simply stay visible and optional.
   ========================================================================== */
.woocommerce-js #billing_company_field,
.woocommerce-js #billing_ic_field,
.woocommerce-js #billing_dic_field {
  display: none;
}

/* ---------- Unified admin "Upraviť" link ---------- */
.sv-edit-link,
.sv-edit-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sv-link);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
}

.sv-edit-link::before {
  content: "✎";
  font-size: 1.1em;
  text-decoration: none;
}

.sv-edit-link:hover,
.sv-edit-link:focus-visible {
  color: var(--sv-link-hover);
  text-decoration-style: solid;
}

.sv-edit-row {
  margin: 0 0 4px;
}

.custom-edit-link span {
  display: inline-flex;
}

/* ==========================================================================
   SHOP NOTICE ("Oznam v obchode", set in the dashboard)
   A card in the content width, between the menu and the page, in the same
   language as the shop cards: warm white, hairline border, gold bar on the left.
   Printed by starysvet_notice (inc/admin-dashboard.php), hook storefront_before_content.
   ========================================================================== */
.sv-notice-wrap {
  margin-bottom: 16px;
}
.sv-notice {
  position: relative;
  padding: 14px 52px 14px 22px;
  background: var(--sv-product-card-bg);
  border: 1px solid var(--sv-card-border);
  border-left: 4px solid var(--sv-accent);
  border-radius: var(--sv-btn-radius);
  box-shadow: var(--sv-card-shadow);
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.sv-notice__body b,
.sv-notice__body strong {
  color: var(--sv-heading);
}
.sv-notice__body a {
  color: var(--sv-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sv-notice__body a:hover {
  color: var(--sv-link-hover);
}
.sv-notice__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--sv-btn-radius);
  background: transparent;
  color: var(--sv-label);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sv-notice__close:hover {
  background: var(--sv-surface-accent);
  color: var(--sv-heading);
}
.sv-notice__close:focus-visible {
  outline: 2px solid var(--sv-link);
  outline-offset: 1px;
}
@media (max-width: 768px) {
  .sv-notice {
    padding: 12px 46px 12px 16px;
    font-size: 14.5px;
  }
}

/****************** ORDER-RECEIVED: PRODUCT LIST LOOKS LIKE A LIST, TIGHT TITLE/AUTHOR ******************/
/* Items: a clearer divider between rows, a gold bar on the left of each item, a little less height per row */
body.woocommerce-order-received
  .woocommerce-table--order-details
  tbody
  tr.woocommerce-table__line-item
  td {
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid var(--sv-card-border);
  vertical-align: middle;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  tbody
  tr.woocommerce-table__line-item:first-child
  td {
  border-top: 0;
}

/* white rows; every item gets a thin gold bar on its left edge, so the rows read as list entries */
body.woocommerce-order-received
  .woocommerce-table--order-details
  tbody
  tr.woocommerce-table__line-item
  td.product-name {
  padding-left: 22px;
  box-shadow: inset 3px 0 0 var(--sv-accent);
}

/* Title + author (or performer for LPs) close together. The author line can be printed as plain text,
   a <p>, an item-meta list or a variation list, so all of those are tightened. */
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name {
  line-height: 1.3;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  a {
  display: inline-block;
  line-height: 1.3;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  ul,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  dl,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  p,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  li,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  dt,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  dd,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  .custom-book-author {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  ul,
body.woocommerce-order-received
  .woocommerce-table--order-details
  td.product-name
  dl {
  margin-top: 2px;
  list-style: none;
}

/* ORDER-RECEIVED: the price of a fee row (e.g. "Dobierka") in normal weight. .sts-fee-value is added by the filter in sts-checkout.php. */
body.woocommerce-order-received
  .woocommerce-table--order-details
  .sts-fee-value,
body.woocommerce-order-received
  .woocommerce-table--order-details
  .sts-fee-value
  .woocommerce-Price-amount {
  font-weight: 400;
}

/* addresses, ONE card: an order without a shipping address (personal pickup / "Osobný odber") prints only the
   billing address, and WooCommerce then leaves out the .woocommerce-columns--addresses wrapper, so the card
   styling above never matched. The section itself becomes the card, the width of one of the two cards. */
body.woocommerce-order-received
  section.woocommerce-customer-details:not(
    :has(.woocommerce-columns--addresses)
  ) {
  box-sizing: border-box;
  width: calc(50% - 10px);
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  background: var(--sv-card-bg);
  box-shadow: var(--sv-card-shadow);
}

@media (max-width: 600px) {
  body.woocommerce-order-received
    section.woocommerce-customer-details:not(
      :has(.woocommerce-columns--addresses)
    ) {
    width: 100%;
  }
}

/**************** HIDDEN PAGE TITLES (KEPT FOR SEO / SCREEN READERS) ****************/
/* Knihy shop page, /platne/, /nas-facebook/, /categories/ and /kategorie-platne/: body class added in theme-setup.php. */
body.starysvet-hide-title .entry-header .entry-title,
body.starysvet-hide-title h1.entry-title,
body.starysvet-hide-title .entry-header h1,
body.starysvet-hide-title .page-title,
body.starysvet-hide-title .woocommerce-products-header__title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/****************** OBRAZY PAGE: PAINTING ROWS + ZOOM ******************/
/* Pairs with obrazy-stranka.html (classes: starysvet-lead, starysvet-painting-*,
   starysvet-contact-card--inquiry). Reuses the Drevorezby look: warm card,
   --sv-* tokens, same contact card. Nothing here touches the shop or checkout.
   Each painting is its own full-width row (photo beside the text), so opening
   one description can never stretch or move the other painting. */

/* ---- Row: photo on the left, text on the right (second painting flipped) ---- */
.entry-content .starysvet-painting-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  margin: 0 0 28px !important;
  background: var(--sv-surface-accent);
  border: 1px solid var(--sv-card-border);
  border-radius: 8px;
  box-shadow: var(--sv-card-shadow);
  overflow: clip; /* clip, not hidden: keeps the sticky photo working */
}

.entry-content .starysvet-painting-card--flip {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

/* some WordPress versions wrap group content in an extra div */
.entry-content .starysvet-painting-card > .wp-block-group__inner-container,
.entry-content .starysvet-painting-body > .wp-block-group__inner-container {
  display: contents;
}

/* ---- Photo cell ---- */
.entry-content .starysvet-painting-image {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 28px;
  background: var(--sv-cover-frame-bg);
  border-right: 1px solid var(--sv-card-border);
}

.entry-content .starysvet-painting-card--flip .starysvet-painting-image {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--sv-card-border);
}

/* ---- Zoom (no JavaScript): a hidden checkbox + the photo as its label.
   Checked = the same image fills the screen on a dark backdrop. ---- */
.entry-content .starysvet-zoom-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.entry-content .starysvet-zoom {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  align-self: flex-start;
  line-height: 0;
  cursor: zoom-in;
}

.entry-content .starysvet-zoom img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0;
  border-radius: 2px;
  box-shadow: 0 8px 22px rgba(60, 40, 20, 0.22);
}

/* "ZVÄČŠIŤ" pill so people know the photo is clickable */
.entry-content .starysvet-zoom::before {
  content: "Zväčšiť";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 11px;
  background: rgba(26, 26, 26, 0.72);
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  transition: background 0.15s ease;
}

.entry-content .starysvet-zoom:hover::before {
  background: rgba(26, 26, 26, 0.9);
}

/* keyboard: the checkbox gets focus, the photo shows the ring */
.entry-content .starysvet-zoom-toggle:focus-visible + .starysvet-zoom {
  outline: 3px solid var(--sv-accent);
  outline-offset: 4px;
}

/* open: full-screen viewer, click anywhere to close */
.entry-content .starysvet-zoom-toggle:checked + .starysvet-zoom {
  position: fixed;
  inset: 0;
  align-self: stretch; /* the closed state uses flex-start, which would shrink the fixed box to the image */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 28px;
  background: rgba(22, 16, 10, 0.92);
  cursor: zoom-out;
  outline: 0;
}

.entry-content .starysvet-zoom-toggle:checked + .starysvet-zoom img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.entry-content .starysvet-zoom-toggle:checked + .starysvet-zoom::before {
  content: "×";
  top: 14px;
  right: 22px;
  bottom: auto;
  padding: 0;
  background: none;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* no page scrolling behind the viewer */
body:has(.starysvet-zoom-toggle:checked) {
  overflow: hidden;
}

/* ---- Text cell ---- */
.entry-content .starysvet-painting-body {
  align-self: center; /* closed card: text sits in the middle next to the photo */
  min-width: 0;
  padding: 30px 34px 28px;
}

.entry-content .starysvet-painting-body h2 {
  margin: 0 0 4px !important;
  color: var(--sv-heading);
  font-family: var(--sv-font-display);
  font-size: 28px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.entry-content .starysvet-painting-author {
  margin: 0 0 16px !important;
  color: var(--sv-author);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Technique + size: small white box, label column + value column */
.entry-content .starysvet-painting-spec {
  margin: 0 0 16px;
  padding: 2px 16px;
  background: var(--sv-card-bg);
  border: 1px solid var(--sv-card-border);
  border-radius: 6px;
}

.entry-content .starysvet-painting-spec__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  margin: 0 !important;
  padding: 9px 0;
  color: var(--sv-text);
  font-size: 15px;
  line-height: 1.5 !important;
}

.entry-content .starysvet-painting-spec__row + .starysvet-painting-spec__row {
  border-top: 1px solid var(--sv-divider);
}

.entry-content .starysvet-painting-spec__row strong {
  color: var(--sv-label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Price */
.entry-content .starysvet-painting-price {
  margin: 0 0 16px !important;
  line-height: 1 !important;
}

.entry-content .starysvet-painting-price strong {
  color: var(--sv-link-hover);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Description: folded until "Popis diela" is opened */
.entry-content .starysvet-painting-details {
  margin: 0;
  border-top: 1px solid var(--sv-card-border);
}

.entry-content .starysvet-painting-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 2px;
  color: var(--sv-link);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.entry-content .starysvet-painting-details summary::-webkit-details-marker {
  display: none;
}

.entry-content .starysvet-painting-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.entry-content .starysvet-painting-details[open] summary::after {
  transform: rotate(-135deg);
}

.entry-content .starysvet-painting-details summary:hover {
  color: var(--sv-link-hover);
}

.entry-content .starysvet-painting-details > p {
  margin: 12px 0 0 !important;
  color: var(--sv-text);
  font-size: 16px;
  line-height: 1.7 !important;
  text-wrap: pretty;
}

/* Small print (screen colours, shop note) */
.entry-content .starysvet-painting-details > p.starysvet-painting-note {
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--sv-muted);
}

.entry-content .starysvet-painting-note a {
  color: var(--sv-link);
}

.entry-content .starysvet-painting-note a:hover {
  color: var(--sv-link-hover);
}

.entry-content .starysvet-painting-note--center {
  margin: 0 0 32px !important;
  color: #6b645b;
  font-size: 15px;
  font-style: normal;
  text-align: center;
}

/* ---- Contact card on this page: a little air for the list and paragraphs
   (the base card resets p margins to 0) ---- */
.entry-content .starysvet-contact-card--inquiry p {
  margin: 0 0 12px !important;
  line-height: 1.7 !important;
}

.entry-content .starysvet-contact-card--inquiry p:last-child {
  margin-bottom: 0 !important;
}

.entry-content .starysvet-contact-card--inquiry ul {
  margin: 0 0 14px;
  padding-left: 1.3em;
  color: var(--sv-text);
  line-height: 1.7;
}

.entry-content .starysvet-contact-card--inquiry li {
  margin-bottom: 4px;
}

/* ---- Tablet / phone: photo on top, text below, for both paintings ---- */
@media (max-width: 860px) {
  .entry-content .starysvet-painting-card,
  .entry-content .starysvet-painting-card--flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content .starysvet-painting-image,
  .entry-content .starysvet-painting-card--flip .starysvet-painting-image {
    order: 0;
    padding: 18px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--sv-card-border);
  }

  .entry-content .starysvet-zoom img {
    max-height: 420px;
  }

  .entry-content .starysvet-painting-body {
    padding: 20px 18px 22px;
  }

  .entry-content .starysvet-painting-body h2 {
    font-size: 24px !important;
  }

  .entry-content .starysvet-painting-price strong {
    font-size: 24px;
  }

  .entry-content .starysvet-painting-spec__row {
    grid-template-columns: 76px minmax(0, 1fr);
    font-size: 14.5px;
  }
}

/* Wide screens: the photo follows you down while a long description is open */
@media (min-width: 861px) {
  .entry-content .starysvet-zoom {
    position: sticky;
    top: 24px;
  }
}

/****************** OBRAZY / GALLERY PAGE: INTRO ******************/
/* Pairs with obrazy-stranka.html (class: starysvet-gallery-intro__text; the first sentence is a <strong>).
   Colours and font come from the existing --sv-* tokens. Append at the end of style.css. */
.entry-content .starysvet-gallery-intro {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

/* ornament divider above and below the text: hairlines with a gold diamond in the middle */
.entry-content .starysvet-gallery-intro::before,
.entry-content .starysvet-gallery-intro::after {
  content: "\25C6";
  display: block;
  height: 14px;
  color: var(--sv-accent);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  background:
    linear-gradient(var(--sv-card-border), var(--sv-card-border)) left center / calc(50% - 22px) 1px no-repeat,
    linear-gradient(var(--sv-card-border), var(--sv-card-border)) right center / calc(50% - 22px) 1px no-repeat;
}

.entry-content .starysvet-gallery-intro::before {
  margin-bottom: 30px;
}

.entry-content .starysvet-gallery-intro::after {
  margin-top: 30px;
}

.entry-content .starysvet-gallery-intro .starysvet-gallery-intro__text {
  max-width: 700px;
  margin: 0 auto !important;
  color: #4a4540;
  font-family: var(--sv-font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6 !important;
  text-wrap: pretty;
}

/* first sentence: same font and size, just darker and a bit heavier */
.entry-content .starysvet-gallery-intro .starysvet-gallery-intro__text strong {
  color: var(--sv-heading);
  font-weight: 600;
}

@media (max-width: 768px) {
  .entry-content .starysvet-gallery-intro {
    margin-bottom: 40px;
  }
  .entry-content .starysvet-gallery-intro .starysvet-gallery-intro__text {
    font-size: 19px;
  }
}

/* WPConsent must sit above the mobile bottom bar (.storefront-handheld-footer-bar, z-index 999999).
   WPConsent sets --wpconsent-z-index on its shadow host (:host), which overrides anything inherited
   from #wpconsent-root, so the host element itself has to be targeted. */
#wpconsent-root,
#wpconsent-container,
#wpconsent-root > * {
  --wpconsent-z-index: 1000001 !important;
}
