/* 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 #e5e0d6;
}
.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 #e0d2bd;
  border-radius: 999px;
  background: #faf7f2;
  text-decoration: none;
  font-size: .95em;
}
.type-search .search-results-groups ul li a:hover {
  background: #f0e7d8;
}

/* ---------------------------------------------------------------------------
 * 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: #1c1917;
}
.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: #b49856;
}
.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: #6e432c;
  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 #e0d2bd;
  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: #6e432c; 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: #6e432c;
  border: 1px solid #cbb894;
  font-weight: 400;
}
.order-complete-links .btn.btn-primary:hover,
.order-complete-links .btn.btn-primary:focus {
  background: #f8f1e4;
  color: #6e432c;
  border-color: #b49856;
}

/* 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: #4a4536;
}
.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 #b49856;
  background: #faf7f1;
  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%23b49856%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%23b49856%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%23b49856%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%23b49856%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%23b49856%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: #6e432c;
  margin-bottom: 6px;
}
.welcome .mm-why__text {
  display: block;
  font-size: .95em;
  line-height: 1.55;
  color: #4a4536;
}
.welcome .mm-why__text a {
  color: #6e432c;
  border-bottom: 1px solid #b49856;
  text-decoration: none;
}
.welcome .mm-why__text a:hover,
.welcome .mm-why__text a:focus {border-bottom-color: #6e432c;}

@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;
  }
}
