/* kupsinohu.cz – doplňky k šabloně style.css (redesign 2026)
   1) komponenty e-shopu (karusel, formáty, našeptávač, bublina, cookies)
   2) sjednocení starších stránek (účet, kontakt, texty) se šablonou */

/* ---------- staré obaly stránek – nic nekreslí ---------- */
#top, #footer, #footer-center, #prefooter-center { display: contents; }
#prefooter, #social { display: none !important; }
body { background: var(--cream); }

.hero { background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%), url(/img/design/hero.jpg) center / cover no-repeat var(--black); }

/* ---------- hlavička: vyhledávání, účet ---------- */
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav .jen-mobil { display: none; }
.hledani { position: relative; margin: 0; }
.hledani .input { width: 180px; padding: 9px 14px; font-size: 13px; background: transparent; color: var(--cream); border: 1px solid #3a3a3a; border-radius: 999px; transition: width .2s, border-color .2s; }
.hledani .input::placeholder { color: var(--muted-dark); }
.hledani .input:focus { width: 230px; border-color: var(--gold); outline: none; }
.icon-btn.is-logged { border-color: var(--gold); color: var(--gold); }
.cart-btn .pocet { min-width: 1ch; }
@media (max-width: 1180px) and (min-width: 901px) {
	.main-nav { gap: 18px; }
	.main-nav ul { gap: 20px; letter-spacing: .08em; }
	.hledani .input { width: 130px; }
	.hledani .input:focus { width: 170px; }
}
@media (max-width: 900px) {
	.main-nav { display: none; flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100vh - 73px); overflow-y: auto; }
	.main-nav.is-open { display: flex; }
	.main-nav .jen-mobil { display: block; }
	.hledani .input, .hledani .input:focus { width: 100%; padding: 13px 16px; font-size: 16px; }
}

/* našeptávač */
.naseptavac { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 360px; max-width: 92vw; margin: 0; padding: 6px 0; list-style: none; background: var(--white); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.naseptavac.otevreny { display: block; }
.naseptavac a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text) !important; border: 0 !important; text-transform: none; letter-spacing: 0; font-size: 14px; }
.naseptavac a:hover, .naseptavac a.aktivni { background: var(--cream); }
.naseptavac img { width: 44px; height: 44px; object-fit: cover; flex: 0 0 44px; background: var(--black-2); }
.naseptavac strong { display: block; font-family: var(--f-serif); font-size: 18px; font-weight: 600; line-height: 1.1; }
.naseptavac small { color: var(--muted); font-size: 12px; }
.naseptavac .vse a { justify-content: center; font-weight: 600; color: var(--brown) !important; }
.naseptavac .nic { padding: 12px 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .naseptavac { position: static; width: auto; max-width: none; margin-top: 6px; box-shadow: none; } }

/* ---------- drobečková navigace (starší stránky používají #mininavi) ---------- */
#mininavi { margin: 0 0 14px; font-size: 12px; color: var(--muted-2); }
#mininavi a { margin: 0 4px; }
#mininavi a:first-child { margin-left: 0; }

/* ---------- tmavá hlavička podstránky ---------- */
.page-head h1 { margin: 0; }
.page-head .lead p { margin: 0; }

/* ---------- obsahové stránky (texty z redakčního systému) ---------- */
.prose { max-width: 820px; font-size: 16px; line-height: 1.8; color: #3d362f; }
.prose h2, .prose h3 { font-family: var(--f-serif); font-weight: 600; color: var(--text); line-height: 1.15; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 32px; } .prose h3 { font-size: 26px; }
.prose a { color: var(--brown); text-decoration: underline; }
.prose img { height: auto !important; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose ul { padding-left: 1.2em; }
.prose .portret img { float: right; width: 320px !important; max-width: 42%; margin: 6px 0 24px 40px; filter: grayscale(1); }
@media (max-width: 600px) { .prose .portret img { float: none; max-width: 100%; margin: 0 0 24px; } }
.prose .cta { margin: 32px 0; }
.btn-cta, a.btn-cta { display: inline-flex; align-items: center; min-height: 52px; padding: 16px 32px; background: var(--brown); color: var(--white) !important; text-decoration: none !important; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.btn-cta:hover { background: #5e3118; }

/* ---------- starší stránky v #content (účet, hledání, 404 …) ---------- */
#content { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 96px; }
#content > h1, #content .right_bar > h1 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; margin: 0 0 28px; text-transform: none; }
#content h2 { font-family: var(--f-serif); font-weight: 600; font-size: 28px; margin: 28px 0 12px; text-transform: none; }
#content h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
#content p { font-size: 15px; line-height: 1.7; }
#content a:not(.btn):not(.btn-cta):not(.pill) { color: var(--brown); }
#content input[type=text], #content input[type=email], #content input[type=password], #content input[type=tel], #content input[type=number], #content select, #content textarea {
	border: 1px solid var(--input); background: var(--white); padding: 12px 14px; font-size: 15px; border-radius: 0; max-width: 100%; }
#content textarea { width: 100%; min-height: 110px; }
#content input[type=submit], #content .btn-blue, #content button[type=submit]:not(.remove-btn) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 0; background: var(--brown); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
#content input[type=submit]:hover, #content .btn-blue:hover { background: #5e3118; }
#content table { border-collapse: collapse; }
#content td, #content th { padding: 6px 10px 6px 0; vertical-align: top; text-align: left; }
.left_bar, .right_bar { float: none !important; width: 100% !important; }
.clear { clear: both; }

#content .card h2.label-caps { margin: 0; font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
#content .right_bar > form:not(.formular-ucet), #content .right_bar > .platba-login { max-width: 560px; background: var(--white); padding: 32px; margin: 0 0 24px; }
#content .right_bar > form:not(.formular-ucet) p { margin: 0 0 16px; font-size: 13px; font-weight: 600; }
#content .right_bar > form:not(.formular-ucet) input[type=text], #content .right_bar > form:not(.formular-ucet) input[type=email], #content .right_bar > form:not(.formular-ucet) input[type=password] { width: 100%; margin-top: 8px; font-weight: 400; }
#content .formular-ucet .card { margin-bottom: 0; }
#mininavi:empty { display: none; }

/* lišta cyklů na starších stránkách (eshop/boxes/submenu.php) */
.cykly { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cykly a { padding: 9px 16px; border: 1px solid #c9beb1; border-radius: 999px; font-size: 13px; color: var(--text) !important; }
.cykly a:hover { border-color: var(--text); }
.cykly a.aktivni { background: var(--black-2); border-color: var(--black-2); color: var(--cream) !important; }
@media (max-width: 600px) { .cykly { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 20px; padding: 0 var(--pad) 6px; scrollbar-width: none; } .cykly a { white-space: nowrap; } }

/* hlášky */
.hlaska { padding: 16px 20px; margin: 0 0 24px; font-size: 15px; background: var(--white); border-left: 4px solid var(--brown); }
.hlaska.ok, .green { padding: 16px 20px; margin: 0 0 24px; background: var(--white); border-left: 4px solid #2e7d32; }
.hlaska.chyba { border-left-color: #b3261e; color: #8a1c15; }
.green h2 { margin: 0 0 6px !important; font-size: 22px !important; }

/* výpis e-shopu na mobilu: cykly jako vodorovná lišta, fotky hned pod ní */
@media (max-width: 900px) {
	.shop-layout { gap: 20px; padding-top: 24px; }
	.shop-side { flex-basis: 100%; gap: 0; min-width: 0; max-width: 100%; }
	.shop-side > div { min-width: 0; }
	.shop-side h2, .shop-side .side-info { display: none; }
	.shop-side .side-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scrollbar-width: none; }
	.shop-side .side-list::-webkit-scrollbar { display: none; }
	.shop-side .side-list a { white-space: nowrap; border: 1px solid #c9beb1; border-radius: 999px; padding: 9px 16px; font-size: 13px; }
	.shop-side .side-list a.is-active { border-color: var(--black-2); }
	.page-head { padding-top: 40px; padding-bottom: 40px; }
	.toolbar { margin-bottom: 24px; }
	.works-grid--shop { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
	.works-grid--shop .work-frame { padding: 12px; }
	.works-grid--shop .work-title { font-size: 19px; }
	.works-grid--shop .work-actions { flex-wrap: wrap; }
	.works-grid--shop .work-actions .btn { width: 100%; padding: 10px 8px; font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 420px) { .site-header .logo { font-size: 20px; gap: 6px; } .site-header .logo img { height: 28px; width: 28px; } .header-tools { gap: 6px; } .icon-btn { width: 36px; height: 36px; } .cart-btn { padding: 8px 12px; } }

/* ---------- karty děl: drobnosti navíc ---------- */
.work-frame { position: relative; }
.work-frame .stitek { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--cream); color: var(--black); }
.work-frame .stitek.prodano { background: #3a3a3a; color: var(--cream); }
.work-card form { display: contents; }
.work-card .work-sub { margin-top: 4px; }
.dark .work-sub, .dark-2 .work-sub { color: var(--muted-dark); }
.work-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.works-empty { padding: 48px 0; }

/* ---------- detail: karusel ve stylu product-media ---------- */
.product-media.karusel { padding: 0; aspect-ratio: auto; display: block; }
.karusel-pas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; }
.karusel-pas::-webkit-scrollbar { display: none; }
.karusel-pas a { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; height: min(72vh, 640px); padding: 48px; }
.karusel-pas img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,.7); }
.karusel-sipka { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a3a3a; background: rgba(11,11,11,.7); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.karusel-sipka:hover { border-color: var(--gold); color: var(--gold); }
.karusel-sipka.vlevo { left: 20px; } .karusel-sipka.vpravo { right: 20px; }
.karusel-pocitadlo { position: absolute; left: 20px; bottom: 20px; padding: 4px 12px; font-size: 12px; letter-spacing: .1em; color: var(--cream); background: rgba(11,11,11,.7); }
.product-media .zoom-btn { z-index: 2; }
.karusel-nahledy { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.karusel-nahledy button { flex: 0 0 auto; width: 76px; height: 76px; padding: 4px; border: 1px solid transparent; background: var(--black-2); cursor: pointer; }
.karusel-nahledy button.aktivni { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.karusel-nahledy img { width: 100%; height: 100%; object-fit: contain; }
.karusel-napoveda { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.product-gallery { flex: 3 1 560px; min-width: 0; }
.product-gallery .product-media { flex: none; }
@media (max-width: 600px) { .karusel-pas a { height: 62vh; padding: 20px; } .karusel-sipka { display: none; } }

/* formáty tisku */
.formaty { border: 0; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.formaty legend { float: left; width: 100%; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brown-text); }
.product-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.product-price s { font-size: 20px; color: var(--muted); font-weight: 500; margin-right: 10px; }
.product-sold { margin: 24px 0 0; padding: 14px 18px; background: var(--black-2); color: var(--cream); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.product-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.product-note a { color: var(--brown); }
.product-text { max-width: 820px; padding-bottom: 96px; }
.reviews p { padding: 14px 18px; background: var(--white); border-left: 3px solid var(--line); }

/* ---------- objednávka ---------- */
.cart-row .cart-name .format { display: block; margin-top: 4px; font-size: 13px; color: var(--brown-text); font-weight: 600; }
.summary-rows dd.sleva { color: #2e7d32; }
.kupon { display: flex; gap: 8px; flex-wrap: wrap; }
.kupon .input { flex: 1 1 160px; }
.kupon .btn { min-height: 50px; }
.summary .text-muted { font-size: 13px; margin: 0; }
.option-text small a { color: var(--brown); }
.recap-box .tabulka { width: 100%; font-size: 14px; }
.platba { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; margin: 40px auto 0; }
.platba .pay-box { margin: 0; }
.platba .qr { background: var(--white); padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.platba .qr img { margin: 8px auto 0; }
.kopirovat { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); background: transparent; font-size: 11px; cursor: pointer; }
.kopirovat:hover { border-color: var(--brown); color: var(--brown); }
.thanks .prepis { margin-top: 56px; text-align: left; }
.thanks .prepis table { width: 100%; border-collapse: collapse; font-size: 14px; }
.thanks .prepis td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); }

/* ---------- bublina „přidáno do košíku“ ---------- */
.kosik-bublina { position: fixed; right: 24px; bottom: 24px; z-index: 300; width: 360px; max-width: calc(100vw - 48px); padding: 20px 44px 20px 22px; background: var(--black-2); color: var(--cream); border-left: 3px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.4); font-size: 14px; transform: translateY(150%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.kosik-bublina.viditelna { transform: none; opacity: 1; pointer-events: auto; }
.kosik-bublina.chyba { border-left-color: #e57373; }
.kosik-bublina strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.kosik-bublina span { display: block; font-family: var(--f-serif); font-size: 20px; }
.kosik-bublina em { display: block; margin-top: 6px; color: #ffcc80; font-style: normal; }
.kosik-bublina .akce { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.kosik-bublina .akce a { font-size: 13px; }
.kosik-bublina .akce a.do-kosiku { background: var(--cream); color: var(--black); padding: 9px 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.kosik-bublina .zavrit { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted-dark); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 600px) { .kosik-bublina { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; } }

/* ---------- cookies ---------- */
.cookie-lista { position: fixed; left: 24px; bottom: 24px; z-index: 250; max-width: 520px; padding: 22px 24px; background: var(--black-2); color: var(--cream); font-size: 14px; line-height: 1.6; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.cookie-lista p { margin: 0; }
.cookie-lista a { color: var(--gold); text-decoration: underline; }
.cookie-volby { display: flex; gap: 20px; margin-top: 12px !important; }
.cookie-lista .btn-outline { border-color: #6b6259; color: var(--cream); }
@media (max-width: 600px) { .cookie-lista { left: 12px; right: 12px; bottom: 12px; max-width: none; } .cookie-lista .btn { width: auto; } }

/* ---------- formuláře účtu a kontaktu ve stylu šablony ---------- */
form.contact table, .formular-ucet table { width: 100%; }
form.contact td { display: block; padding: 0 0 16px !important; }
form.contact input[type=text], form.contact input[type=email], form.contact textarea { width: 100%; }
@media (min-width: 700px) { form.contact td { display: table-cell; padding-right: 20px !important; } }
