/* ============================================================
   SHEZMU, konfigurátor „Najděte svou vůni"
   Soubor: /user/documents/upload/CSS/shezmu-finder.css
   Pracuje spolu se shezmu-finder.js
   ============================================================ */

/* Skrýt nadpis stránky Shoptetu, konfigurátor má vlastní */
body:has(#sh-finder) header[itemprop="headline"],
body:has(#sh-finder) h1[itemprop="headline"] { display: none !important; }

#sh-finder { font-size: 0; line-height: 0; }
.shf {
    --f-black: #1a1a1a; --f-text: #4a4a4a; --f-muted: #9a9a9a;
    --f-line: #e6e6e6; --f-soft: #f7f7f7; --f-gold: #b8924a; --f-pink: #d4609a;
    max-width: 1100px; margin: 0 auto; padding: 32px 0 64px;
    font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.6; color: var(--f-black);
}
.shf *, .shf *::before, .shf *::after { box-sizing: border-box; }

/* Ornament */
.shf-orn { position: relative; width: 116px; height: 9px; margin: 0 auto 16px; font-size: 0; line-height: 0; }
.shf-orn::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(90deg, var(--f-gold) 0 44px, transparent 44px 72px, var(--f-pink) 72px 116px); opacity: .8; }
.shf-orn::after { content: ''; position: absolute; left: 58px; top: 1px; width: 7px; height: 7px; background: var(--f-black); transform: translateX(-50%) rotate(45deg); }
.shf-caption { display: block; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--f-muted); margin: 0 0 10px; }

/* Úvod */
.shf-intro, .shf-res-head { text-align: center; max-width: 640px; margin: 0 auto; }
.shf .shf-h1, .shf .shf-h2 { font-family: 'Poppins', sans-serif !important; font-weight: 300 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--f-black) !important; line-height: 1.15 !important; }
.shf .shf-h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem) !important; margin: 0 0 14px !important; }
.shf .shf-h2 { font-size: clamp(1.4rem, 3vw, 2rem) !important; margin: 0 0 32px !important; }
.shf-lead { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--f-text); margin: 0 0 28px; }
.shf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Tlačítka */
.shf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 1px solid var(--f-black); background: var(--f-black); color: #fff !important; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: background .2s ease, color .2s ease; }
.shf-btn:hover, .shf-btn:focus-visible { background: #fff; color: var(--f-black) !important; }
.shf-btn.is-ghost { background: #fff; color: var(--f-black) !important; }
.shf-btn.is-ghost:hover { background: var(--f-black); color: #fff !important; }
.shf-btn.is-small { padding: 10px 14px; font-size: 11px; }
.shf-btn[disabled] { opacity: .35; cursor: default; }
.shf-btn[disabled]:hover { background: var(--f-black); color: #fff !important; }
.shf-back { background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 300; color: var(--f-text); text-decoration: underline; text-underline-offset: 3px; }

/* Otázky */
.shf-progress { max-width: 640px; margin: 0 auto 28px; }
.shf-progress-text { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--f-muted); margin: 0 0 8px; text-align: center; }
.shf-bar { height: 2px; background: var(--f-line); font-size: 0; line-height: 0; }
.shf-bar i { display: block; height: 2px; background: var(--f-black); transition: width .3s ease; font-size: 0; }
.shf .shf-q { font-family: 'Poppins', sans-serif !important; font-size: clamp(1.3rem, 3vw, 1.8rem) !important; font-weight: 300 !important; text-align: center; color: var(--f-black) !important; margin: 0 0 8px !important; }
.shf-hint { text-align: center; font-size: 14px; font-weight: 300; color: var(--f-muted); margin: 0 0 8px; }
.shf-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 24px auto 0; }
.shf-options.is-multi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.shf-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92px; padding: 16px; border: 1px solid var(--f-line); background: #fff; cursor: pointer; font-family: 'Poppins', sans-serif; text-align: center; transition: border-color .2s ease, background .2s ease; }
.shf-opt:hover, .shf-opt:focus-visible { border-color: var(--f-black); }
.shf-opt.is-on { border-color: var(--f-black); background: var(--f-black); }
.shf-opt.is-on .shf-opt-t, .shf-opt.is-on .shf-opt-n { color: #fff; }
.shf-opt-t { font-size: 15px; font-weight: 500; color: var(--f-black); }
.shf-opt-n { font-size: 12px; font-weight: 300; color: var(--f-muted); margin-top: 4px; }
.shf-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 14px; font-weight: 300; color: var(--f-text); cursor: pointer; }
.shf-check input { width: 16px; height: 16px; accent-color: var(--f-black); }
.shf-nav { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 28px auto 0; }

/* Výsledky */
.shf-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shf-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--f-line); border-top: 2px solid var(--f-gold); background: #fff; }
.shf-card.is-icandy { border-top-color: var(--f-pink); }
.shf-best { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--f-black); padding: 5px 10px; }
.shf-card-img { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--f-line); overflow: hidden; }
.shf-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: #fff; transition: transform .4s ease; }
.shf-card:hover .shf-card-img img { transform: scale(1.04); }
.shf-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.shf-brand { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold); margin: 0 0 4px; }
.shf-card.is-icandy .shf-brand { color: var(--f-pink); }
.shf-name { font-size: 17px; font-weight: 500; letter-spacing: .04em; color: var(--f-black) !important; text-decoration: none !important; margin: 0 0 8px; }
.shf-desc { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--f-text); margin: 0 0 10px; }
.shf-why { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--f-text); background: var(--f-soft); padding: 10px 12px; margin: 0 0 12px; flex: 1; }
.shf-why strong { font-weight: 500; color: var(--f-black); }
.shf-price { font-size: 16px; font-weight: 500; margin: 0 0 12px; }
.shf-card-btns { display: grid; gap: 8px; }

.shf-samples { max-width: 640px; margin: 40px auto 0; padding: 28px 24px; border: 1px solid var(--f-line); border-top: 2px solid var(--f-black); text-align: center; }
.shf-samples-t { font-size: 20px; font-weight: 300; margin: 0 0 6px; }
.shf-samples-n { font-size: 14px; font-weight: 300; color: var(--f-text); margin: 0 0 18px; }
.shf-msg { min-height: 1.6em; margin: 12px 0 0; font-size: 14px; font-weight: 300; color: var(--f-text); }
.shf-msg a, .shf-gift-note a { color: var(--f-black) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.shf-gift-note { margin: 12px 0 0; font-size: 14px; font-weight: 300; color: var(--f-text); }
.shf-gift-note strong { font-weight: 500; color: var(--f-black); }
.shf-restart { text-align: center; margin: 24px 0 0; }

@media (max-width: 900px) { .shf-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .shf { padding: 20px 0 48px; }
    .shf-options { grid-template-columns: 1fr; }
    .shf-opt { min-height: 64px; }
    .shf-cards { grid-template-columns: 1fr; }
    .shf-btn { width: 100%; }
    .shf-nav .shf-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .shf * { transition: none !important; } }
