/* Mincmistr.cz – our own styles on top of the Shoptak template.
 *
 * Loaded from the shop header. The template itself lives in
 * /user/documents/upload/sablona/ on Shoptet; this file only overrides it.
 * Keep it small and always note which ClickUp task a block belongs to.
 */

/* ---------------------------------------------------------------------------
 * Product detail on mobile: price and the buy button above the fold.
 * ClickUp 869eaz8ja – 74 % of visits are mobile and the buy box used to sit
 * a full screen below the photo.
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
  /* price and buy button jump above the short description */
  .type-detail .p-info-wrapper .p-final-price-wrapper,
  .type-detail .p-info-wrapper .add-to-cart {order: -1;}

  /* title: three lines down to two */
  .type-detail .p-detail-inner-header h1 {font-size: 21px; line-height: 1.15; margin: 2px 0 4px;}

  /* smaller "novinka" flag */
  .type-detail .p-detail-info {margin: 0 0 4px;}
  .type-detail .p-detail-info .flag {font-size: 10px; padding: 2px 7px;}

  /* main photo: capped and centred */
  .type-detail .p-image {margin-bottom: 8px;}
  .type-detail .p-image .p-main-image img {max-height: 190px; width: auto; margin: 0 auto; display: block;}

  /* thumbnails: smaller, centred, slider disabled (2–4 photos need no arrows).
     The inner div keeps its own width, hence the forced block layout. */
  .type-detail .p-thumbnails,
  .type-detail .p-thumbnails .p-thumbnails-inner,
  .type-detail .p-thumbnails .p-thumbnail {height: 50px !important;}
  .type-detail .p-thumbnails .p-thumbnail img {max-height: 46px; width: auto;}
  .type-detail .p-thumbnails-wrapper {margin-bottom: 0;}
  .type-detail .p-thumbnails .p-thumbnails-inner {position: static !important; width: auto !important;}
  .type-detail .p-thumbnails .p-thumbnails-inner > div {text-align: center; display: block !important; float: none !important; width: auto !important;}
  .type-detail .p-thumbnails .p-thumbnail {float: none !important; display: inline-block !important; vertical-align: top;}
  .type-detail .p-thumbnails .thumbnail-prev,
  .type-detail .p-thumbnails .thumbnail-next {display: none !important;}
}

/* ---------------------------------------------------------------------------
 * Search results: products first, then categories, then articles.
 * ClickUp 869eaz8pp – the whole first screen used to be a bare list of
 * category and article links; products started only at 872 px.
 * ------------------------------------------------------------------------ */
.type-search .content.wide {
  display: flex;
  flex-direction: column;
}
.type-search .content.wide > h2 {order: 1;}
.type-search .content.wide > .search-results {order: 2;}
.type-search .content.wide > .search-results-groups {order: 3;}

/* the category and article lists come unstyled from the platform */
.type-search .search-results-groups {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e6e1d7;
}
.type-search .search-results-groups h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
}
.type-search .search-results-groups ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: row;   /* the platform sets column here */
  flex-wrap: wrap;
  gap: 8px 10px;
}
.type-search .search-results-groups ul li {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}
.type-search .search-results-groups ul li a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #e6e1d7;
  border-radius: 999px;
  background: #faf8f4;
  text-decoration: none;
  font-size: .95em;
}
.type-search .search-results-groups ul li a:hover {
  background: #e6ddcd;
}

/* ---------------------------------------------------------------------------
 * Search results, second pass. ClickUp 869eaz8pp
 *   - bigger section headings (Produkty / Kategorie / Články)
 *   - articles as a multi-column list; as chips they were unreadable once a
 *     query matched 30+ posts
 *   - category chips carry the category thumbnail
 * ------------------------------------------------------------------------ */

/* section headings: the platform renders them as small h4 */
.type-search .search-products-heading,
.type-search .search-results-group > h4 {
  font-size: 1.6em;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1e1e1e;
}
.type-search .search-results-group + .search-results-group {
  margin-top: 32px;
}

/* --- articles: a readable list, not a wall of chips --------------------- */
.type-search .search-results-group:has(a[href^="/blog/"]) ul {
  display: block;
  columns: 2;
  column-gap: 48px;
}
.type-search .search-results-group:has(a[href^="/blog/"]) ul li {
  display: block;
  break-inside: avoid;
  margin: 0 0 8px;
  padding-left: 16px;
  position: relative;
}
.type-search .search-results-group:has(a[href^="/blog/"]) ul li::before {
  content: "\2022";          /* bullet, keeps a hanging indent on wrapped lines */
  position: absolute;
  left: 2px;
  top: 0;
  color: #c2b393;
}
.type-search .search-results-group:has(a[href^="/blog/"]) ul li a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid transparent;
}
.type-search .search-results-group:has(a[href^="/blog/"]) ul li a:hover {
  background: none;
  border-bottom-color: currentColor;
}
@media (min-width: 1200px) {
  .type-search .search-results-group:has(a[href^="/blog/"]) ul {columns: 3;}
}
@media (max-width: 767px) {
  .type-search .search-results-group:has(a[href^="/blog/"]) ul {columns: 1;}
}

/* ---------------------------------------------------------------------------
 * Thank-you page. ClickUp 869eaz87p
 * The payment details were two ragged columns with a small QR stuck under
 * them; for a bank transfer the QR is the most important thing on the page.
 * ------------------------------------------------------------------------ */
.co-payment-method .recapitulation-table th {
  width: 42%;
  font-weight: 400;
  color: #6b6459;
  padding: 7px 12px 7px 0;
  vertical-align: top;
}
.co-payment-method .recapitulation-table td {
  font-weight: 600;
  padding: 7px 0;
  vertical-align: top;
}

/* the amount to pay is the one number that matters */
.co-payment-method .col-sm-6:first-child tr:last-child th {padding-top: 18px;}
.co-payment-method .col-sm-6:first-child tr:last-child td {
  font-size: 1.6em;
  line-height: 1.2;
  color: #603623;
  padding-top: 12px;
}

/* QR big enough to scan from a phone, centred, with a hint */
.co-payment-method img.qrcode {
  width: 200px;
  height: 200px;
  display: block;
  margin: 14px auto 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e6e1d7;
  border-radius: 10px;
}
.co-payment-method td:has(img.qrcode) {text-align: center;}
.co-payment-method td:has(img.qrcode)::after {
  content: "Naskenujte v bankovní aplikaci";
  display: block;
  font-size: .85em;
  font-weight: 400;
  color: #6b6459;
}

.co-order .cart-table td {padding: 10px 8px; vertical-align: middle;}
.order-summary-item.summary-thx {font-size: 1.35em; color: #603623; margin-top: 4px;}

/* Zpět do obchodu: vedlejší akce, ať hlavní CTA zůstane OutOfDark. ClickUp 869eaz87p */
.order-complete-links {margin-top: 22px;}
.order-complete-links .btn.btn-primary {
  background: transparent;
  color: #603623;
  border: 1px solid #e6e1d7;
  font-weight: 400;
}
.order-complete-links .btn.btn-primary:hover,
.order-complete-links .btn.btn-primary:focus {
  background: #faf8f4;
  color: #603623;
  border-color: #603623;
}

/* Platební údaje a QR doleva – dotazník Google se otevírá vpravo a QR překrýval. ClickUp 869eaz87p */
@media (min-width: 768px) {
  .co-payment-method .row {display: flex; flex-wrap: wrap;}
  .co-payment-method .row > .col-sm-6:first-child {order: 2;}
  .co-payment-method .row > .col-sm-6:last-child {order: 1;}
}

/* ------------------------------------------------------------------
   Titulní strana: hlavní nadpis + "Proč nakupovat u Mincmistra"
   Obsah je v administraci → Vzhled a obsah → Titulní strana (uvítací text).
   Dlaždice doplňují blok v záhlaví, neopakují ho. Ikony jsou kreslené
   přímo tady, aby je editor obsahu nemohl zahodit.
   ------------------------------------------------------------------ */
.welcome-wrapper .welcome .mm-hero__title {
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  margin: 0 0 14px;
  text-align: center;
}
.welcome-wrapper .welcome .mm-hero__perex {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 1.05em;
  color: #6b6459;
}
.welcome .mm-why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 26px;
  max-width: 940px;
  margin: 0 auto 46px;
  text-align: left;
}
.welcome .mm-why__item {
  position: relative;
  padding: 16px 18px 16px 68px;
  border-left: 3px solid #c2b393;
  background: #faf8f4;
  border-radius: 0 6px 6px 0;
  min-height: 78px;
}
.welcome .mm-why__item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .9;
}
.welcome .mm-why__item--popis::before {background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23603623%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H7a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%203v5h5%22%2F%3E%3Cpath%20d%3D%22M9%2013h6M9%2017h4%22%2F%3E%3C%2Fsvg%3E");}
.welcome .mm-why__item--odbornik::before {background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23603623%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22M15.5%2015.5%2021%2021%22%2F%3E%3Cpath%20d%3D%22M10.5%207.5v6M8%2010.5h5%22%2F%3E%3C%2Fsvg%3E");}
.welcome .mm-why__item--prodejna::before {background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23603623%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209.5%205%204h14l2%205.5%22%2F%3E%3Cpath%20d%3D%22M4%209.5h16V20a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1z%22%2F%3E%3Cpath%20d%3D%22M9%2021v-6h6v6%22%2F%3E%3C%2Fsvg%3E");}
.welcome .mm-why__item--vykup::before {background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23603623%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208h13l-3-3%22%2F%3E%3Cpath%20d%3D%22M20%2016H7l3%203%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%220%22%2F%3E%3C%2Fsvg%3E");}
.welcome .mm-why__item--darek::before {background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23603623%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2012v8a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1v-8%22%2F%3E%3Cpath%20d%3D%22M3%208h18v4H3z%22%2F%3E%3Cpath%20d%3D%22M12%2021V8%22%2F%3E%3Cpath%20d%3D%22M12%208S10.5%204%208.5%204a2.5%202.5%200%200%200%200%205M12%208s1.5-4%203.5-4a2.5%202.5%200%200%201%200%205%22%2F%3E%3C%2Fsvg%3E");}
.welcome .mm-why__title {
  display: block;
  font-size: 1.12em;
  font-weight: 600;
  color: #603623;
  margin-bottom: 6px;
}
.welcome .mm-why__text {
  display: block;
  font-size: .95em;
  line-height: 1.55;
  color: #6b6459;
}
.welcome .mm-why__text a {
  color: #603623;
  border-bottom: 1px solid #c2b393;
  text-decoration: none;
}
.welcome .mm-why__text a:hover,
.welcome .mm-why__text a:focus {border-bottom-color: #603623;}

@media (max-width: 767px) {
  .welcome-wrapper .welcome .mm-hero__title {font-size: 1.4em;}
  .welcome .mm-why {grid-template-columns: 1fr; gap: 12px;}
  .welcome .mm-why__item {padding: 14px 16px 14px 60px; min-height: 0;}
  .welcome .mm-why__item::before {left: 16px; top: 16px; width: 28px; height: 28px;}
}

/* Nadpis "Hodnocení a recenze" srovnaný s ostatními nadpisy sekcí na titulce
   (Mince s příběhem, Nové mince…) – hlavní nadpis stránky zůstává největší. */
.welcome-wrapper .welcome h2 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
}
/* Tlačítko pod recenzemi se nesmí lámat do tří řádků */
.hp-ratings .button {
  width: auto;
  min-width: 150px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .welcome-wrapper .welcome h2 {font-size: 1.4em;}
}

/* Nadpis blogové sekce (přepsaný na claim) srovnaný s ostatními nadpisy sekcí */
.blog-desc .mm-blog-title {
  font-size: 1.8em;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  margin: 0 0 34px;
}
.blog-desc {padding-top: 10px;}
@media (max-width: 767px) {
  .blog-desc .mm-blog-title {font-size: 1.4em;}
}

/* Tap targets on phones (ClickUp 869ege0qx).
   The recommended thumb minimum is 44-48px; two spots were below it: the photo
   thumbnails on the product detail and the category links in the empty-cart /
   empty-search rescue block. Desktop is left untouched. */
@media (max-width: 767px) {
  /* The link is the tap area, not the image inside it. */
  .type-detail .p-thumbnails-inner a.p-thumbnail {
    min-width: 48px;
    min-height: 48px;
  }
  .type-detail .p-thumbnails {height: auto;}

  /* Vertical padding only - horizontal padding pushed the four category
     links onto a second line. */
  #mm-empty .mm-empty__cats a {
    display: inline-block;
    padding: 12px 1px;
    line-height: 1.2;
  }
}

/* ---------------------------------------------------------------------------
 * Product listing on phones: the flags used to cover the coin.
 * ClickUp 869ege6vx – a piece that is new, picked and certified carries three
 * labels, and the template stacks them over the photo at listing size. On a
 * two-column phone grid that is most of the picture, which is the one thing
 * the visitor came to look at. Smaller type and tighter padding keep all three
 * labels and hand the photo back; desktop is left alone, there they fit in one
 * row. Reported as a defect on 11 Aug 2026, before the third label existed.
 *
 * The selector repeats the template's own chain and the size carries
 * !important, because that is how the template states it - a shorter selector
 * matches but loses. Measured on the listing: three labels went from three
 * rows (75 px) to two (36 px). The product detail keeps its bigger badges,
 * they live outside .products-block.
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
  .products-block .product .flags.flags-default .flag {
    font-size: 9px !important;
    padding: 2px 6px;
    margin-bottom: 2px;
    letter-spacing: 0;
  }
}

/* ===========================================================================
 * Sjednocení vzhledu – vlna 1. ClickUp 869egy3en
 *
 * The shop had six page-title sizes, six greys and six golds, because the
 * template sizes headings in `em` - so the same rule renders differently
 * depending on the box it lands in. Everything below is stated in px on
 * purpose: a title should not change size because it moved to another page.
 *
 * Desktop only. On phones the scale already lands in 20-25 px and holds, so
 * the media query keeps this away from it.
 * ------------------------------------------------------------------------ */
@media (min-width: 768px) {

  /* One title size for the whole shop. Was 32 px on the blog and Tipy
     listings, 45 on content pages and articles, 46 on categories. */
  .type-page #content h1,
  .type-post #content h1,
  .type-posts-listing #content h1,
  .in-slovnik-pojmu .content-inner h1,
  .in-slovnik-pojmu .content-wrapper-in h1,
  body h1.category-title {
    font-size: 44px !important;
    font-weight: 600 !important;
  }

  /* Exception, agreed 15 Aug 2026: the product is the hero of its own page,
     so it keeps the larger title - it just stops being the only one in 500. */
  .type-detail .p-detail-inner-header h1 {
    font-size: 48px !important;
    font-weight: 600 !important;
  }

  /* Exception: in the cart the contents matter more than the word "Košík".
     Deliberately smaller than a page title, but no longer the accidental
     26 px in the thin weight. */
  .ordering-process #content h1,
  .ordering-process .cart-inner h1,
  .ordering-process .cart-inner.cart-empty h1 {
    font-size: 32px !important;
    font-weight: 600 !important;
  }

  /* The two levels under the title were 5 px apart in the same thin weight,
     which reads as one level. Weight does the separating, not size alone. */
  .type-page #content h2,
  .type-post #content h2,
  .in-slovnik-pojmu .content-inner h2 {
    font-size: 29px;
    font-weight: 600;
    line-height: 1.25;
  }
  .type-page #content h3,
  .type-post #content h3,
  .in-slovnik-pojmu .content-inner h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
  }

  /* "Z našeho blogu" came out of the add-on as a second page title, so every
     content page had two. It is a section, and now looks like one. */
  body .blog-section .blog-posts .content-inner .blog-desc h1 {
    font-size: 29px;
    font-weight: 600;
    margin-bottom: 28px;
  }

  /* 16 px over 22 is 1.38 - tight for the length these pages run to.
     The product detail already reads at 1.6. */
  .type-page #content p,
  .type-post #content p,
  .type-page #content li,
  .type-post #content li {
    line-height: 1.6;
  }
}

/* Links in running text. The gold #b49856 had 2.8:1 against white, under the
   4.5 the standard asks for; the brand brown has 10.3:1 and is an actual
   brand colour. Buttons keep their own colour, hence the :not(). */
#content p a:not(.btn):not(.button),
#content li a:not(.btn):not(.button),
#content td a:not(.btn):not(.button) {
  color: #603623;
}

/* One muted grey instead of six. */
#content .text-muted,
#content small,
#content .note,
.type-page #content p em {
  color: #6b6459;
}

/* "Více informací" sat in a grey #cfcfcf frame that reads as disabled. Same
   size and shape as the buy button next to it, only quieter. */
.products-block .product a.btn.detail {
  border: 1px solid #603623 !important;
  color: #603623 !important;
  background: #fff;
}
.products-block .product a.btn.detail:hover {
  background: #faf8f4;
  border-color: #432722 !important;
  color: #432722 !important;
}

/* Buttons that arrived with their own corner radius - 6 px inside articles,
   0 px in our own block. The shop rounds buttons by 3 px. The round
   back-to-top button is left alone on purpose. */
#content .btn:not(.to-top):not(.goToTop__button),
#content .button:not(.to-top) {
  border-radius: 3px;
}
