/* oblibene-v1.css — Oblíbené produkty (oblibene-v1.js). Písmo Exo 2, konverzní #2CA2C6, fialová #8880B4,
 * světle fialová #B0ABCB, pozadí boxů #f6f5fb. Všechno pod třídami bp-fav-* (žádné zásahy do stylů šablony). */

/* ── Srdíčko (společné) ─────────────────────────────────────────────────────────── */
.bp-fav-heart svg, .bp-fav-detail svg, .bp-fav-head svg, .bp-fav-info svg {
  display: block; fill: none; stroke: #8880B4; stroke-width: 1.8; stroke-linejoin: round;
}
.bp-fav-heart.bp-on svg, .bp-fav-detail.bp-on svg, .bp-fav-head.bp-on svg, .bp-fav-info svg { fill: #8880B4; }

/* ── Karty ve výpisech: kulaté 36 px vlevo nahoře na obrázku (vpravo jsou štítky, vpravo dole „zdarma“) ── */
.products-block .product .p > a.image { position: relative; }
/* Šablona stylije každé „.products .product button“ (barva, šířka, rámeček) → rozměry a vzhled s !important. */
.products .product .bp-fav-heart {
  position: absolute !important; top: 8px !important; left: 8px !important; right: auto !important; bottom: auto !important; z-index: 3;
  width: 36px !important; height: 36px !important; min-width: 0 !important; max-width: none !important; padding: 0 !important; margin: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 50% !important; border: 1px solid #DCD9E8 !important; background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important; cursor: pointer; transition: transform .12s, background .12s;
  line-height: 0 !important; font-size: 0 !important; color: #8880B4 !important;
}
.products .product .bp-fav-heart svg { width: 18px; height: 18px; }
.products .product .bp-fav-heart:hover { background: #fff !important; transform: scale(1.06); }
.bp-fav-heart:focus-visible, .bp-fav-detail:focus-visible, .bp-fav-head:focus-visible { outline: 3px solid #B0ABCB; outline-offset: 2px; }

/* ── Detail: čtvercové tlačítko vedle „Přidat do košíku“ ─────────────────────────── */
#product-detail-form .bp-fav-detail {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  background: #fff !important; border: 2px solid #8880B4 !important; border-radius: 10px !important; cursor: pointer;
  color: #8880B4 !important; font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 15px;
  vertical-align: middle; transition: background .12s; flex: 0 0 auto;
}
#product-detail-form .bp-fav-detail:hover { background: #f6f5fb !important; }
#product-detail-form .bp-fav-square { width: 52px; min-height: 46px; align-self: stretch; margin: 0 0 0 8px !important; padding: 0 !important; }
.bp-fav-square svg { width: 22px; height: 22px; }
.bp-fav-wide { min-height: 44px; padding: 0 18px; margin: 10px 0; }
.bp-fav-wide svg { width: 20px; height: 20px; }

/* ── Hlavička: kulatá 38 px jako ikona účtu, počet v černé bublině ─────────────────── */
#header .navigation-buttons .bp-fav-head {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px; margin: 0 18px 0 0; padding: 0;
  border-radius: 50%; border: 1px solid #DCD9E8; background: #fff; vertical-align: middle; text-decoration: none;
}
#header .navigation-buttons .bp-fav-head:before { content: none; display: none; }   /* šablona dává .btn:before obrázek košíku */
#header .navigation-buttons .bp-fav-head svg { width: 17px; height: 17px; }
#header .navigation-buttons .bp-fav-head .bp-fav-count {
  position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #000; color: #fff; font: 700 11px/18px 'Exo 2', sans-serif; text-align: center;
}
#header .navigation-buttons .bp-fav-head:not(.bp-on) .bp-fav-count { display: none; }

/* ── Potvrzení po přidání ───────────────────────────────────────────────────────── */
#bp-fav-toast {
  position: fixed; top: 16px; right: 16px; z-index: 100000; max-width: 360px;
  padding: 12px 16px; background: #fff; border-left: 4px solid #8880B4; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16); font: 600 14px/1.4 'Exo 2', sans-serif; color: #222;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
#bp-fav-toast.bp-show { opacity: 1; transform: none; pointer-events: auto; }
#bp-fav-toast a { color: #8880B4; font-weight: 700; text-decoration: underline; }

/* ── Stránka Moje oblíbené ──────────────────────────────────────────────────────── */
.bp-fav-page { font-family: 'Exo 2', sans-serif; color: #222; margin: 0 0 40px; }
.bp-fav-page .bp-fav-h { text-transform: uppercase; margin: 0 0 18px; }
.bp-fav-info {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 12px 16px; background: #f6f5fb; border-radius: 12px; font-size: 15px;
}
.bp-fav-info svg { width: 20px; height: 20px; flex: 0 0 20px; }
.bp-fav-info a { color: #8880B4; font-weight: 700; text-decoration: underline; }
.bp-fav-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.bp-fav-n { font-weight: 700; font-size: 16px; }
.bp-fav-tools-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-fav-msg { display: none; margin: 6px 0 12px; padding: 10px 14px; background: #f6f5fb; border-radius: 10px; font-weight: 600; }
.bp-fav-msg.bp-show { display: block; }

.bp-fav-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 128px; padding: 0 18px;
  border-radius: 50px; border: 2px solid #2CA2C6; background: #fff; color: #2CA2C6;
  font: 700 14px/1.2 'Exo 2', sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.bp-fav-btn:hover { background: #2CA2C6; color: #fff; text-decoration: none; }
.bp-fav-btn:disabled { opacity: .55; cursor: wait; }
.bp-fav-btn-cart { background: #2CA2C6; color: #fff; }
.bp-fav-btn-cart:hover { background: #8880B4; border-color: #8880B4; }
.bp-fav-btn-watch { border-color: #8880B4; color: #8880B4; background: #fff; }
.bp-fav-btn-watch:hover { background: #8880B4; color: #fff; }

.bp-fav-list { border-top: 1px solid #ECEAF3; }
.bp-fav-row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 130px 112px 140px 32px; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #ECEAF3;
}
.bp-fav-img { display: block; width: 84px; height: 84px; }
.bp-fav-img img { width: 84px; height: 84px; object-fit: contain; display: block; }
.bp-fav-main { min-width: 0; }
.bp-fav-name { display: block; font-weight: 700; color: #222; text-decoration: none; line-height: 1.3; }
.bp-fav-name:hover { color: #8880B4; text-decoration: underline; }
.bp-fav-date { font-size: 12px; color: #8a8a8a; margin-top: 2px; }
.bp-fav-av { font-size: 13px; font-weight: 700; margin-top: 4px; }
.bp-fav-av:empty { display: none; }
.bp-fav-av.bp-av-1 { color: #009901; }
.bp-fav-av.bp-av-2 { color: #e67e00; }
.bp-fav-av.bp-av-3 { color: #d0021b; }
.bp-fav-var { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bp-fav-select {
  max-width: 100%; min-height: 36px; padding: 4px 30px 4px 10px; border: 1px solid #DCD9E8; border-radius: 8px;
  background-color: #fff; font: 600 14px 'Exo 2', sans-serif; color: #222;
}
.bp-fav-var-hint { display: none; color: #d0021b; font-size: 13px; font-weight: 700; }
.bp-fav-var.bp-need .bp-fav-select { border: 2px solid #d0021b; }
.bp-fav-var.bp-need .bp-fav-var-hint { display: inline; }
.bp-fav-price { text-align: right; line-height: 1.25; }
.bp-fav-p { display: block; font-weight: 800; font-size: 17px; color: #222; }
.bp-fav-s { display: block; color: #8a8a8a; font-size: 13px; }
.bp-fav-note { font-size: 12px; color: #8a8a8a; }
.bp-fav-qty { display: inline-flex; align-items: center; border: 1px solid #DCD9E8; border-radius: 50px; overflow: hidden; height: 38px; }
.bp-fav-qty button { width: 32px; height: 36px; border: 0; background: #fff; font-size: 18px; color: #8880B4; cursor: pointer; padding: 0; }
.bp-fav-qty input {
  width: 42px; height: 36px; border: 0; text-align: center; font: 700 15px 'Exo 2', sans-serif; padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.bp-fav-qty input::-webkit-outer-spin-button, .bp-fav-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bp-fav-x {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #8a8a8a;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.bp-fav-x:hover { background: #f6f5fb; color: #222; }
.bp-fav-row.bp-fav-gone { grid-template-columns: 84px minmax(0, 1fr) 32px; }
.bp-fav-row.bp-fav-gone .bp-fav-img img { filter: grayscale(1); opacity: .6; }
.bp-fav-row.bp-fav-gone .bp-fav-name { color: #8a8a8a; }
.bp-fav-similar { display: inline-block; margin-top: 6px; color: #8880B4; font-weight: 700; text-decoration: underline; }
.bp-fav-empty { padding: 26px 20px; background: #f6f5fb; border-radius: 12px; text-align: center; }
.bp-fav-empty p { margin: 0 0 16px; font-size: 16px; }
.bp-fav-tip { margin: 20px 0 0; color: #6b6b6b; font-size: 14px; }
.bp-fav-clear { margin-top: 14px; background: none; border: 0; padding: 0; color: #8a8a8a; font: 600 13px 'Exo 2', sans-serif; text-decoration: underline; cursor: pointer; }
.bp-fav-clear.bp-sure { color: #d0021b; }

/* Mobil: obrázek vlevo, vpravo název a varianta; pod tím cena, počet a tlačítko */
@media (max-width: 767px) {
  .bp-fav-row {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    grid-template-areas: "img main x" "img price price" "qty act act";
    gap: 8px 12px;
  }
  .bp-fav-img { grid-area: img; width: 72px; height: 72px; align-self: start; }
  .bp-fav-img img { width: 72px; height: 72px; }
  .bp-fav-main { grid-area: main; }
  .bp-fav-x { grid-area: x; align-self: start; }
  .bp-fav-price { grid-area: price; text-align: left; }
  .bp-fav-p, .bp-fav-s { display: inline; margin-right: 8px; }
  .bp-fav-qty { grid-area: qty; }
  .bp-fav-row > .bp-fav-btn { grid-area: act; width: 100%; min-width: 0; }
  .bp-fav-row.bp-fav-gone { grid-template-columns: 72px minmax(0, 1fr) 32px; grid-template-areas: "img main x"; }
  .bp-fav-tools { flex-direction: column; align-items: stretch; }
  .bp-fav-tools-btns .bp-fav-btn { flex: 1 1 100%; }
  .bp-fav-select { width: 100%; }
  #bp-fav-toast { left: 12px; right: 12px; max-width: none; }
  #header .navigation-buttons .bp-fav-head { margin-right: 12px; }
}

/* „Přidat vše skladem“: okno po přidání se během dávky nezobrazí */
html.bp-fav-quiet #colorbox, html.bp-fav-quiet #cboxOverlay { opacity: 0 !important; pointer-events: none !important; }

/* Ladicí panel (?bp_fav_debug=1) */
#bp-fav-debug {
  position: fixed; left: 8px; bottom: 8px; z-index: 2147483000; max-width: calc(100vw - 16px); max-height: 42vh; overflow: auto;
  padding: 8px 10px; border-radius: 8px; background: rgba(20, 16, 40, .9); color: #fff;
  font: 11px/1.35 Consolas, monospace; white-space: pre-wrap; pointer-events: auto;
}
