/*
Theme Name: FaktHusty.cz – eMagazín | BeryPixel design
Theme URI: https://emagazin.fakthusty.cz/
Author: BeryPixel.cz – Jiří Berec
Author URI: https://berypixel.cz/
Description: Komiksové digitální knihkupectví pro elektronická vydání FaktHusty.cz.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: fakthusty-emagazin
*/
:root{--ink:#17191e;--red:#c71020;--blue:#064bb8;--yellow:#ffde20;--paper:#fffdf5;--line:3px solid var(--ink);--shadow:5px 5px 0 var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#f8eecb;font:17px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}a{color:var(--blue);text-underline-offset:3px}a:hover{color:var(--red)}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit;max-width:100%}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0064cc;outline-offset:4px}h1,h2,h3{line-height:1.13;margin:0 0 .65em;font-weight:900;letter-spacing:-.035em}h1{font-size:clamp(2rem,4.7vw,4.7rem)}h2{font-size:clamp(1.6rem,3vw,2.6rem)}h3{font-size:1.25rem}p{margin:.5em 0 1em}.em-wrap{width:min(1360px,calc(100% - 44px));margin-inline:auto}.em-skip{position:absolute;left:12px;top:-200px;background:white;padding:12px;z-index:100}.em-skip:focus{top:12px}.em-top{background:var(--ink);color:#fff;font-size:13px;font-weight:700;letter-spacing:.04em}.em-top .em-wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 0}.em-top a{color:white}.em-header{background:var(--paper);border-bottom:var(--line);position:relative;z-index:5}.em-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;flex-wrap:wrap}.em-logo{display:block;flex:0 1 235px}.em-logo img{display:block;width:235px;max-height:105px;object-fit:contain;object-position:left center}.em-mainnav{flex:1;min-width:0}.em-mainnav ul,.em-usernav ul,.em-footer ul{list-style:none;padding:0;margin:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.em-mainnav a{display:block;text-decoration:none;font-size:14px;font-weight:850;padding:8px 6px;color:var(--ink);border-bottom:3px solid transparent}.em-mainnav a:hover,.em-mainnav .current-menu-item a{border-color:var(--red)}.em-tools{display:flex;gap:9px;align-items:center}.em-iconbtn,.em-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce button.button.alt,.woocommerce a.button.alt{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:2px solid var(--ink);border-radius:8px;background:var(--yellow);color:var(--ink);font-weight:850;text-decoration:none;padding:10px 17px;box-shadow:3px 3px 0 var(--ink);line-height:1.3;min-height:44px}.em-iconbtn{width:44px;padding:0;background:white}.em-iconbtn svg{width:22px;height:22px}.em-btn:hover,.em-iconbtn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#ffef83;color:var(--ink);box-shadow:1px 1px 0 var(--ink);transform:translate(2px,2px)}.em-btn.blue{background:var(--blue);color:white}.em-btn.red{background:var(--red);color:white}.em-usernav{background:#f2f5ff;border-top:1px solid #b9c9e6}.em-usernav .em-wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:7px 0}.em-usernav a{font-size:13px;font-weight:800;text-decoration:none;color:var(--ink);padding:4px 8px;display:inline-block}.em-usernav a:hover{text-decoration:underline}.em-search{padding:0 0 16px}.em-search form{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap}.em-search input{flex:1;min-width:120px;border:2px solid var(--ink);border-radius:6px;padding:10px;background:white}.em-search label{font-weight:bold}.em-toggle{display:none}.em-hero{position:relative;background:var(--yellow);background-image:radial-gradient(#17191e24 1.1px,transparent 1.1px);background-size:9px 9px;border-bottom:var(--line);padding:42px 0}.em-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:40px}.em-kicker{display:inline-block;background:var(--ink);color:white;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;padding:5px 10px;margin-bottom:16px;transform:rotate(-1deg)}.em-hero h1{font-style:italic;max-width:780px}.em-hero h1 span{display:block;color:var(--red);text-shadow:2px 2px #fff}.em-hero p{max-width:640px;font-weight:550;font-size:clamp(1rem,1.7vw,1.3rem)}.em-actions{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0 8px}.em-stage{min-height:315px;display:grid;place-items:center;position:relative;background:var(--blue);background-image:repeating-conic-gradient(from 6deg at 55% 60%,#ffffff14 0deg 12deg,transparent 12deg 24deg);border:var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;padding:32px}.em-stage:before{content:"";position:absolute;inset:10px;border:2px dashed #ffffff7a;border-radius:9px;pointer-events:none}.em-cover{width:min(210px,75%);aspect-ratio:3/4;background:#fff9e6;border:3px solid var(--ink);box-shadow:10px 11px 0 #111b;transform:rotate(-6deg);display:flex;flex-direction:column;justify-content:space-between;padding:15px;text-align:center;position:relative}.em-cover img{width:100%}.em-cover strong{font-size:clamp(1.6rem,3vw,2.6rem);line-height:1;font-weight:950;font-style:italic;color:var(--red);letter-spacing:-.06em}.em-cover small{font-weight:850;border-top:3px solid var(--ink);padding-top:7px}.em-burst{position:absolute;right:12px;bottom:16px;background:var(--yellow);border:var(--line);box-shadow:3px 3px var(--ink);font-weight:900;padding:8px 13px;transform:rotate(5deg);border-radius:50%}.em-main{padding:42px 0 56px;min-height:45vh}.em-section{margin:0 0 42px}.em-sectionhead{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:22px}.em-sectionhead h2{margin:0}.em-panel,.em-page,.em-card{background:var(--paper);border:var(--line);border-radius:12px;box-shadow:var(--shadow)}.em-panel,.em-page{padding:clamp(20px,4vw,48px)}.em-page{max-width:1100px;margin:auto}.em-page h1{font-size:clamp(2rem,4vw,3.3rem)}.em-page h2{font-size:clamp(1.3rem,2.5vw,1.85rem);margin-top:1.4em}.em-page li{margin:.35em 0}.em-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.em-card{padding:22px;display:flex;flex-direction:column;gap:10px;min-width:0}.em-card h3{margin:0}.em-card p{margin:0}.em-card .em-btn{align-self:flex-start;margin-top:auto}.em-coverthumb{display:block;position:relative;flex:none;width:100%;aspect-ratio:4/5;min-width:0;background:#e4edff;border:2px solid var(--ink);border-radius:7px;overflow:hidden}.em-coverthumb img{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100% - 20px);object-fit:contain;display:block;margin:0}.em-coverthumb img.em-placeholder{max-width:110px;max-height:110px;inset:0;margin:auto}.em-price{font-weight:900;font-size:1.3rem;color:var(--red)}.em-label{font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#454952}.em-empty{background:#fffaf0;border:2px dashed #79705a;padding:25px;border-radius:8px;max-width:100%}.em-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.em-feature{border:var(--line);box-shadow:3px 3px var(--ink);background:white;padding:18px;border-radius:9px}.em-feature b{display:block;font-size:1.25rem}.em-feature:nth-child(2){background:#e2edff}.em-feature:nth-child(3){background:#fff3b1}.em-footer{background:var(--ink);color:#f5f4ed;border-top:6px solid var(--red);padding:38px 0 24px;font-size:14px}.em-footer a{color:#ffe35b}.em-footer a:hover{color:white}.em-footgrid{display:grid;grid-template-columns:1fr 1.5fr;gap:36px;margin-bottom:20px}.em-footer img{width:230px}.em-footer h2{font-size:1.2rem;letter-spacing:0}.em-footer ul{align-items:flex-start;gap:10px 18px}.em-copyright{border-top:1px solid #ffffff45;padding-top:18px;font-size:13px;line-height:1.7}.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,.woocommerce .quantity .qty{border:2px solid #666;padding:10px;border-radius:5px;background:white}.woocommerce .woocommerce-MyAccount-navigation ul{padding:0;list-style:none}.woocommerce .woocommerce-MyAccount-navigation a{display:block;padding:9px;border-bottom:1px solid #ddd}.woocommerce .woocommerce-MyAccount-navigation li.is-active a{font-weight:850;background:#fff2a1}.em-wc{background:white;border:var(--line);padding:clamp(14px,3vw,35px);border-radius:12px;box-shadow:var(--shadow)}.em-wc h1{font-size:clamp(2rem,4vw,3.3rem)}.em-notice{border-left:5px solid var(--blue);background:#edf4ff;padding:14px 18px;margin:18px 0}[hidden]{display:none!important}.em-pagination{margin:24px 0;display:flex;gap:8px;flex-wrap:wrap}.em-pagination a,.em-pagination span{padding:5px 10px;background:white;border:2px solid var(--ink);border-radius:4px}.em-pagination .current{background:var(--yellow)}
@media(max-width:1100px){.em-head{gap:12px}.em-logo{flex-basis:190px}.em-logo img{width:190px}.em-mainnav a{font-size:13px;padding:6px 3px}.em-mainnav ul{gap:5px}}
@media(max-width:900px){.em-wrap{width:calc(100% - 32px)}.em-head{flex-wrap:wrap}.em-logo{flex:1}.em-logo img{width:220px}.em-mainnav{flex:0 0 100%;order:3}.js .em-mainnav:not(.open){display:none}.js .em-toggle{display:inline-flex}.em-mainnav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.em-mainnav a{padding:10px;font-size:15px;border:1px solid #ddd}.em-hero-grid{grid-template-columns:1fr;gap:24px}.em-stage{min-height:270px}.em-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.em-features{grid-template-columns:1fr}.em-footgrid{grid-template-columns:1fr;gap:16px}.em-usernav .em-wrap{justify-content:flex-start}.em-usernav ul{gap:4px}.em-usernav a{padding:5px;font-size:12px}}
@media(max-width:540px){.em-wrap{width:calc(100% - 26px)}.em-top .em-wrap{font-size:11px;gap:3px}.em-logo img{width:175px}.em-head{gap:8px}.em-tools{gap:6px}.em-hero{padding:28px 0}.em-stage{min-height:230px;padding:24px}.em-cover{width:155px}.em-burst{font-size:12px}.em-grid{grid-template-columns:1fr}.em-main{padding:28px 0 40px}.em-section{margin-bottom:28px}.em-page{padding:18px}.em-btn{padding:10px 13px}.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2,.woocommerce .woocommerce-MyAccount-content,.woocommerce .woocommerce-MyAccount-navigation{width:100%;float:none}.woocommerce ul.products[class*=columns-] li.product{width:100%;float:none;margin-right:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Katalog knih: skutečné portrétní obálky, text vždy mimo obrázek. */
.em-card h3 a{display:inline;overflow-wrap:anywhere;line-height:1.35;text-decoration:none}.em-card h3 a:hover{text-decoration:underline}.em-card .em-label{margin-top:3px}.em-card .em-price:empty{display:none}
.em-wc ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 20px;margin:24px 0;padding:0;list-style:none}.em-wc ul.products::before,.em-wc ul.products::after{display:none!important;content:none!important}.em-wc ul.products[class*=columns-] li.product{float:none!important;clear:none!important;width:auto!important;min-width:0;margin:0!important;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.em-wc ul.products li.product a.woocommerce-loop-product__link{display:block;width:100%;min-width:0}.em-wc ul.products li.product a img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;object-position:center;background:#f2f5ff;border:2px solid var(--ink);border-radius:7px;padding:9px;margin:0 0 12px}.em-wc ul.products li.product .woocommerce-loop-product__title{font-size:1.1rem;line-height:1.4;padding:0;margin:0;overflow-wrap:anywhere}.em-wc ul.products li.product .button{margin-top:auto;max-width:100%;white-space:normal}.em-wc div.product .woocommerce-product-gallery img{object-fit:contain;height:auto;max-width:100%}.em-wc div.product .woocommerce-product-gallery__image a{display:block}.em-wc div.product .summary{min-width:0;overflow-wrap:anywhere}.em-wc div.product .product_title{font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.16}.em-wc div.product .woocommerce-tabs{clear:both}.em-wc div.product .related{clear:both;margin-top:35px}
@media(max-width:900px){.em-wc ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.em-wc ul.products{grid-template-columns:1fr}.em-wc div.product div.images,.em-wc div.product div.summary{float:none;width:100%}.em-coverthumb{max-height:360px}.em-wc ul.products li.product a img{max-height:350px}}
