/* Aikol (Shoptet šablona mime digital) v barvách Oděvy Pilař.
   Proporce změřené na cube-store.cz (1440 px): kontejner 1300, lišta 45, hlavička 126, menu 60. */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* značka Pilař — jediné místo s barvou klienta (accent = žlutá z gfx.css) */
  --yellow: var(--gfx-accent);
  --on-yellow: var(--gfx-accent-fg);
  --orange: #E27631;       /* znak loga */
  --brown: #944600;        /* box s výhodami na dnešním webu */
  --khaki: #D1A462;        /* znak loga */
  --ink: #231F20;          /* text loga místo černé Cube */

  /* šablona Aikol */
  --text: #222;
  --muted: #6B6B6B;
  --line: #E6E3E0;
  --soft: #F6F5F3;
  --ok: #1E8A2E;
  --warn: #B86E00;
  --sale: #C8261B;
  --r: 2px;                /* Aikol: ostré rohy, tlačítka 2 px */
  --r-box: 4px;
  --shadow: 0 1px 2px rgba(43,36,32,.06), 0 4px 14px rgba(43,36,32,.06);
  --wrap: 1300px;
  --gut: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 "Source Sans 3", system-ui, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; color: #1C1714; }
h1 { font-size: 38px; }
.sec-title { font-size: 38px; text-align: center; margin: 0 0 36px; }
.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 26px; border: 0; border-radius: var(--r); font-weight: 600; font-size: 17px; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.btn-primary { background: var(--yellow); color: var(--on-yellow); }
.btn-primary:hover { background: var(--orange); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brown); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .ico { font-size: 22px; }

/* ---------- horní lišta ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 16px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 45px; gap: 24px; }
.topbar nav { display: flex; gap: 22px; }
.topbar a { text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .contact { display: flex; gap: 22px; align-items: center; }
.topbar .contact span { display: inline-flex; gap: 8px; align-items: center; }
.topbar .ico { font-size: 18px; }

/* ---------- hlavička ---------- */
.header { background: #fff; position: relative; z-index: 30; }
.header-main { display: grid; grid-template-columns: 1fr minmax(0, 508px) 1fr; align-items: center; gap: 24px; min-height: 100px; }
.logo img { height: 56px; width: auto; }
.search { display: flex; border: 3px solid #E9E7E5; border-radius: var(--r-box); background: #fff; }
.search label { display: flex; align-items: center; gap: 10px; flex: 1; padding-left: 12px; }
.search input { border: 0; outline: 0; width: 100%; height: 44px; font-size: 16px; background: transparent; }
.search input::placeholder { color: #333; }
.search .ico { font-size: 22px; }
.search .btn { min-height: 0; margin: 3px; padding: 0 24px; }
.hicons { display: flex; justify-content: flex-end; gap: 26px; }
.hicons a { position: relative; display: grid; place-items: center; text-decoration: none; }
.hicons .ico { font-size: 30px; stroke-width: 1.5; }
.hicons .badge { position: absolute; top: -6px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--on-yellow); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.hicons .badge[hidden] { display: none; }
.burger { display: none; background: none; border: 0; padding: 6px; }
.navhead { display: none; }

/* menu kategorií */
.nav { border-top: 1px solid var(--line); }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; min-height: 60px; align-items: stretch; }
.nav .menu > li { position: static; display: flex; }
.nav .menu > li > a, .nav .menu > li > button { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; white-space: nowrap; }
.nav .menu > li > a:hover, .nav .menu > li > button:hover, .nav .menu > li.open > button { color: var(--brown); }
.nav .chev { font-size: 15px; transition: transform .2s; }
.nav li.open .chev { transform: rotate(180deg); }
.nav .b2b { margin-left: auto; }
.nav .b2b a { color: var(--brown); }
.nav .b2b a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 4px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(43,36,32,.12); display: none; }
li.open > .mega { display: block; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 28px; }
.mega a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-box); text-decoration: none; font-weight: 600; }
.mega a:hover { border-color: var(--yellow); }
.mega img { width: 48px; height: 48px; object-fit: contain; }

/* informační proužek */
.infobar { background: var(--yellow); color: var(--on-yellow); font-weight: 600; }
.infobar .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; position: relative; text-align: center; }
.infobar button { position: absolute; right: var(--gut); background: none; border: 0; font-size: 22px; line-height: 1; padding: 6px; color: inherit; }

/* drobečky */
.crumbs { background: var(--soft); font-size: 15px; }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 48px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { color: var(--muted); }

/* ---------- homepage ---------- */
.hero { background: var(--soft); padding: 25px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; }
.slider { position: relative; overflow: hidden; aspect-ratio: 970 / 390; border-radius: var(--r); background: #fff; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }
.slide .copy { padding: 0 0 0 9%; position: relative; z-index: 2; }
.slide .kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r); background: var(--ink); color: #fff; margin-bottom: 16px; }
.slide h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1; text-transform: uppercase; margin-bottom: 12px; letter-spacing: -.005em; }
.slide p { margin: 0 0 22px; font-size: 18px; max-width: 34ch; }
.slide .art { position: relative; height: 100%; display: grid; place-items: center; background: #fff; overflow: hidden; }
.slide .art img { max-height: 86%; width: auto; object-fit: contain; position: relative; z-index: 1; }
/* origami trojúhelníky ze znaku loga */
.slide .art::before, .slide .art::after { content: ""; position: absolute; z-index: 0; }
.slide .art::before { left: 0; bottom: 0; width: 34%; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.slide .art::after { right: 0; top: 0; width: 22%; aspect-ratio: 1; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.slide.s-orange .art::before { background: var(--orange); } .slide.s-orange .art::after { background: var(--khaki); }
.slide.s-khaki .art::before { background: var(--khaki); } .slide.s-khaki .art::after { background: var(--yellow); }
.slide.s-yellow { background: #FFF4D6; }
.slide.s-orange { background: #FCE6D6; }
.slide.s-khaki  { background: #F3E8D6; }
.slider .arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; background: none; border: 0; font-size: 34px; padding: 8px; color: var(--ink); }
.slider .arr.prev { left: 8px; } .slider .arr.next { right: 8px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots button { width: 32px; height: 6px; border-radius: 3px; border: 0; background: #D9D5D1; padding: 0; }
.dots button.on { background: var(--ink); }
.side-banner { position: relative; overflow: hidden; border-radius: var(--r); background: var(--brown); color: #fff; padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 310 / 390; }
.side-banner .kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.side-banner h3 { color: #fff; font-size: 38px; font-weight: 700; text-transform: uppercase; line-height: .95; margin: 8px 0 14px; }
.side-banner ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; }
.side-banner li { display: flex; gap: 8px; align-items: baseline; }
.side-banner li::before { content: ""; width: 7px; height: 7px; background: var(--yellow); flex: none; translate: 0 -2px; }
.side-banner .btn { align-self: center; }
.side-banner .stripe { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 22px solid var(--orange); border-radius: 50%; opacity: .55; }

.usp { padding: 34px 0; }
.usp .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp-item { display: flex; gap: 16px; align-items: center; }
.usp-item .ico { font-size: 34px; color: var(--ink); stroke-width: 1.4; }
.usp-item b { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.usp-item span { font-size: 15px; color: #444; line-height: 1.35; display: block; }

.cats { padding: 6px 0 46px; border-bottom: 1px solid var(--line); }
.cats .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat-tile { text-decoration: none; text-align: center; }
.cat-tile .ph { aspect-ratio: 1; background: var(--soft); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; position: relative; }
.cat-tile .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.cat-tile:hover .ph::after { transform: scaleX(1); }
.cat-tile img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { display: block; margin-top: 14px; font-size: 19px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.groups { padding: 56px 0 10px; }
.groups .wrap > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 210px; text-decoration: none; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.group .txt { padding: 22px 0 24px 24px; align-self: center; }
.group .txt small { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brown); }
.group .txt b { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; margin: 6px 0 12px; }
.group .txt span { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.group img { mix-blend-mode: multiply; height: 100%; max-height: 210px; width: 100%; object-fit: contain; object-position: bottom; }
.group::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow); }
.group.g2::before { background: var(--orange); } .group.g3::before { background: var(--khaki); }

.psec { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 25%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > .card { scroll-snap-align: start; }
.carousel .arr { position: absolute; top: 34%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 22px; }
.carousel .arr.prev { left: -22px; } .carousel .arr.next { right: -22px; }
.carousel .arr[disabled] { opacity: 0; pointer-events: none; }

/* ---------- produktová karta (Aikol) ---------- */
.card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 20px 26px; border-right: 1px solid var(--line); background: #fff; }
.grid .card { border-bottom: 1px solid var(--line); }
.card .fav { position: absolute; top: 18px; right: 18px; background: none; border: 0; padding: 4px; font-size: 22px; z-index: 2; }
.card .fav.on .ico { fill: var(--sale); stroke: var(--sale); }
.card .flags { position: absolute; top: 18px; left: 18px; display: grid; gap: 6px; justify-items: start; z-index: 2; }
.flag { font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: var(--r); line-height: 1.4; }
.flag-sale { background: #FCE4E2; color: var(--sale); }
.flag-tip { background: var(--yellow); color: var(--on-yellow); }
.flag-norm { background: var(--ink); color: #fff; }
.card .img { position: relative; display: block; width: 100%; aspect-ratio: 6 / 5; margin-bottom: 16px; }
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .img img { transform: scale(1.04); }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; min-height: 30px; }
.sizes span { font-size: 14px; padding: 2px 7px; border: 1px solid #333; border-radius: var(--r); line-height: 1.5; }
.sizes .more { border-color: transparent; color: var(--muted); }
.card .brand { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.card .name { font-size: 18px; font-weight: 600; line-height: 1.3; text-decoration: none; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .name:hover { text-decoration: underline; }
.stock { font-weight: 600; font-size: 16px; }
.stock.ok { color: var(--ok); } .stock.wait { color: var(--warn); }
.card .stock { margin-bottom: 12px; }
.price { font-size: 24px; font-weight: 700; color: #1C1714; line-height: 1.2; }
.price-old { font-size: 15px; color: var(--muted); }
.price-old s { margin-right: 6px; }
.price-old em { color: var(--sale); font-style: normal; }
.vat { font-size: 14px; color: #8A8A8A; margin: 6px 0 16px; }
.card .btn { width: 200px; max-width: 100%; margin-top: auto; }

/* ---------- výpis kategorie ---------- */
.cat-head { padding: 32px 0 30px; }
.cat-head p { max-width: 1000px; margin: 18px 0 0; font-size: 17px; }
.subcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.subcats a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 64px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; font-size: 16px; line-height: 1.25; border-radius: var(--r); }
.subcats a:hover, .subcats a.on { border-color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow), var(--shadow); }
.subcats img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.listing { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 70px; }
.filters { align-self: start; background: #FAFAF9; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px 18px; position: sticky; top: 20px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { font-size: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; }
.fgroup label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 17px; cursor: pointer; }
.fgroup label i { font-style: normal; color: #8A8A8A; }
.fgroup input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range input { width: 100%; height: 44px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 44px; height: 38px; padding: 0 10px; border: 1px solid #BDB7B2; background: #fff; border-radius: var(--r); font-size: 15px; }
.chips button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toplist h2 { font-size: 38px; margin-bottom: 18px; }
.toprow { display: grid; grid-template-columns: 100px 1fr 140px 120px; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.toprow img { width: 90px; height: 90px; object-fit: contain; }
.toprow b { font-size: 18px; font-weight: 600; }
.toprow .stock { text-decoration: underline dashed; text-underline-offset: 5px; }
.toprow .price { text-align: right; font-size: 26px; }
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 0; color: #555; font-size: 17px; flex-wrap: wrap; }
.listbar select { border: 0; background: none; font-weight: 700; font-size: 17px; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border-top: 1px solid var(--line); }
.grid .card:nth-child(3n) { border-right: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.fbtn { display: none; }

/* ---------- detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 70px; padding-top: 40px; padding-bottom: 34px; }
.gal-main { aspect-ratio: 1; display: grid; place-items: center; background: #fff; position: relative; }
.gal-main img { max-height: 100%; object-fit: contain; }
.gal-thumbs { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.gal-thumbs button { width: 110px; height: 110px; padding: 6px; border: 1px solid var(--line); background: #fff; }
.gal-thumbs button[aria-current=true] { border: 2px solid var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd h1 { font-size: 44px; line-height: 1.1; }
.pd .meta { margin: 12px 0 18px; font-size: 16px; display: flex; gap: 24px; flex-wrap: wrap; color: #333; }
.pd .short { font-size: 17px; margin: 0 0 8px; }
.pd .more { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.vrow { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 10px; }
.vrow h3 { font-size: 20px; }
.vrow a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; }
.normrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.normrow span { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); }
.buybox { background: var(--soft); border-radius: var(--r); padding: 20px 22px; display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: center; margin-top: 18px; }
.buybox .price { font-size: 34px; }
.buybox .vat { margin: 0; font-size: 16px; color: #555; }
.qty { display: flex; border: 1px solid var(--line); background: #fff; }
.qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 22px; }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 18px; }
.buybox .btn { justify-self: end; min-height: 54px; min-width: 220px; font-size: 19px; }
.b2bnote { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 16px; border: 1px dashed var(--khaki); border-radius: var(--r); font-size: 16px; }
.b2bnote .ico { font-size: 24px; color: var(--brown); }
.b2bnote a { font-weight: 600; }
.stores { margin-top: 16px; display: grid; gap: 4px; font-size: 16px; }
.stores div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stores b { font-weight: 600; }
.pd-actions { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.pd-actions a, .pd-actions button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 17px; }
.pd-actions .ico { font-size: 22px; }
.tabs { background: var(--soft); }
.tabs .wrap { display: flex; gap: 40px; min-height: 64px; align-items: center; }
.tabs button { background: none; border: 0; font-size: 20px; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.tabs button[aria-selected=true] { font-weight: 600; text-decoration: none; box-shadow: inset 0 -3px 0 var(--yellow); padding-bottom: 4px; }
.tabpanel { padding: 34px 0 60px; font-size: 17px; max-width: 900px; }
.tabpanel table { border-collapse: collapse; width: 100%; max-width: 640px; }
.tabpanel td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tabpanel td:first-child { color: #555; width: 45%; }
.sizes-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.sizes-pick button { min-width: 50px; height: 46px; padding: 0 12px; border: 1px solid #BDB7B2; background: #fff; border-radius: var(--r); font-size: 17px; }
.sizes-pick button[aria-pressed=true] { border: 2px solid var(--ink); font-weight: 700; }

/* ---------- dialog (tabulka velikostí, přidáno do košíku) ---------- */
dialog { border: 0; border-radius: var(--r-box); padding: 0; max-width: min(640px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(43,36,32,.55); }
.dlg { padding: 28px 30px; }
.dlg h2 { font-size: 28px; margin-bottom: 14px; }
.dlg .x { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 28px; padding: 6px; }
.dlg table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dlg th, .dlg td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.dlg th { background: var(--soft); }
.added { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.added img { width: 90px; height: 90px; object-fit: contain; }
.dlg .row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.freeship { margin: 0 0 20px; font-size: 16px; }
.bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--yellow); border-radius: 4px; transition: width .5s; }

/* ---------- košík ---------- */
.steps { display: flex; gap: 0; margin: 30px 0 34px; counter-reset: s; }
.steps li { list-style: none; flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; color: #999; padding-bottom: 12px; border-bottom: 3px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #555; }
.steps li.on { color: var(--text); border-color: var(--yellow); }
.steps li.on::before { background: var(--yellow); color: var(--on-yellow); }
.steps ol { display: contents; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-bottom: 70px; align-items: start; }
.citem { display: grid; grid-template-columns: 90px 1fr auto auto 32px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 90px; height: 90px; object-fit: contain; }
.citem b { font-weight: 600; font-size: 18px; display: block; }
.citem small { color: var(--muted); font-size: 15px; }
.citem .qty button { height: 40px; width: 36px; } .citem .qty input { width: 42px; }
.citem .rm { background: none; border: 0; font-size: 22px; color: var(--muted); }
.citem .price { font-size: 20px; text-align: right; min-width: 100px; }
.summary { background: var(--soft); padding: 24px; border-radius: var(--r); position: sticky; top: 20px; }
.summary h2 { font-size: 24px; margin-bottom: 16px; }
.summary .ln { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .tot { border-top: 1px solid #DDD8D3; margin-top: 10px; padding-top: 14px; font-size: 22px; font-weight: 700; }
.summary .btn { width: 100%; margin-top: 18px; min-height: 54px; }
.opts { display: grid; gap: 10px; margin: 12px 0 30px; }
.opt { display: grid; grid-template-columns: 24px 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: #fff; }
.opt:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); }
.opt .ico { font-size: 28px; color: var(--brown); }
.opt b { font-weight: 600; display: block; }
.opt small { color: var(--muted); }
.opt .p { font-weight: 700; }
.cart-empty { padding: 60px 0; text-align: center; }
.cart-h2 { font-size: 26px; margin-top: 10px; }

/* ---------- pro firmy ---------- */
.b2b-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.b2b-hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; min-height: 380px; padding-top: 40px; padding-bottom: 40px; }
.b2b-hero h1 { color: #fff; font-size: 52px; text-transform: uppercase; font-weight: 700; line-height: 1; }
.b2b-hero p { font-size: 19px; max-width: 46ch; opacity: .92; }
.b2b-hero .k { color: var(--yellow); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.b2b-hero .art { position: relative; display: grid; place-items: center; }
.b2b-hero .art::before { content: ""; position: absolute; right: 6%; bottom: -6%; width: 46%; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.b2b-hero .art img { position: relative; max-height: 320px; width: auto; background: #fff; padding: 18px; border-radius: var(--r-box); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.svc { padding: 60px 0; }
.svc .wrap > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.svc-card .ico { font-size: 36px; color: var(--brown); }
.svc-card h3 { font-size: 22px; margin: 14px 0 8px; }
.svc-card p { margin: 0; color: #444; }
.form-sec { background: var(--soft); padding: 60px 0; }
.form-sec .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.form { background: #fff; padding: 30px; border-radius: var(--r); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { border: 1px solid #CFC9C4; border-radius: var(--r); padding: 11px 12px; font-weight: 400; font-size: 16px; background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form .ok { grid-column: 1 / -1; padding: 14px 16px; background: #EAF6EC; color: #165E22; border-radius: var(--r); font-weight: 600; }
.ico-fill { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ok); font-weight: 600; }

/* ---------- o nás, newsletter, patička ---------- */
.about { padding: 60px 0; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.about h2 { font-size: 46px; margin-bottom: 18px; }
.about p { font-size: 18px; margin: 0 0 14px; }
.stores-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.store { background: var(--soft); border-radius: var(--r); padding: 22px; border-top: 5px solid var(--yellow); }
.store:nth-child(2) { border-top-color: var(--orange); }
.store h3 { font-size: 20px; margin-bottom: 8px; }
.store p { margin: 0 0 4px; font-size: 16px; }
.brands { padding: 40px 0; border-top: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.brands span { font-size: 26px; font-weight: 700; color: #A39B94; letter-spacing: .02em; }
.newsletter { padding: 50px 0 60px; border-top: 1px solid var(--line); text-align: center; }
.newsletter h2 { font-size: 28px; font-weight: 400; }
.newsletter h2 b { font-weight: 700; }
.newsletter form { display: flex; max-width: 480px; margin: 22px auto 10px; }
.newsletter input { flex: 1; height: 50px; border: 1px solid var(--line); padding: 0 12px; border-radius: var(--r) 0 0 var(--r); }
.newsletter .btn { border-radius: 0 var(--r) var(--r) 0; min-height: 50px; }
.newsletter small { font-size: 16px; }
.footer { background: var(--ink); color: #fff; padding: 56px 0 0; }
.footer .cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 30px; }
.footer .flogo { display: inline-block; opacity: 1; }
.footer .flogo img { height: 92px; width: auto; }
.footer h4 { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer li { display: flex; gap: 10px; align-items: center; }
.footer .ico { font-size: 20px; }
.paybar { margin-top: 44px; border-top: 1px solid #4A413B; border-bottom: 1px solid #4A413B; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: center; }
.paybar > span { font-size: 16px; }
.paybar div { display: flex; gap: 10px; flex-wrap: wrap; }
.paybar i { font-style: normal; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; border-radius: 4px; padding: 0 12px; height: 34px; min-width: 86px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.paybar i .ico { font-size: 18px; }
.copyright { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 26px; font-size: 16px; opacity: .92; }

/* ---------- prezentační anotace (jen pro schůzku) ---------- */
.ann-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ann-toggle i { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.ann-toggle[aria-pressed=true] { background: var(--yellow); color: var(--on-yellow); }
.ann-toggle[aria-pressed=true] i { background: var(--ink); color: #fff; }
[data-note] { position: relative; }
.pin { position: absolute; z-index: 40; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; display: none; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); top: 6px; left: 6px; padding: 0; }
body.ann .pin { display: grid; animation: pinIn .35s cubic-bezier(.2,.9,.3,1.3) both; }
body.ann [data-note] { outline: 2px dashed var(--orange); outline-offset: 4px; }
.pin-pop { position: absolute; z-index: 95; width: 300px; background: var(--ink); color: #fff; border-radius: var(--r-box); padding: 14px 16px; font-size: 15px; line-height: 1.4; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.pin-pop b { color: var(--yellow); display: block; margin-bottom: 4px; font-size: 16px; }
@keyframes pinIn { from { transform: scale(.4); opacity: 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; margin-left: -160px; width: 320px; text-align: center; bottom: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-box); box-shadow: 0 12px 30px rgba(0,0,0,.3); transform: translateY(160%); transition: transform .3s; }
.toast.on { transform: none; }

/* ---------- mobil ---------- */
@media (max-width: 1100px) {
  .nav .menu { gap: 22px; overflow-x: auto; }
  .usp .wrap { grid-template-columns: repeat(2, 1fr); }
  .cats .wrap { grid-template-columns: repeat(3, 1fr); }
  .track { grid-auto-columns: 33.333%; }
  .listing { grid-template-columns: 250px 1fr; gap: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid .card:nth-child(2n) { border-right: 0; }
  .pd { gap: 40px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --gut: 16px; }
  h1, .sec-title { font-size: 30px; }
  .topbar nav { display: none; }
  .topbar .contact { width: 100%; justify-content: space-between; font-size: 15px; }
  .topbar .contact .mail { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .burger { display: grid; place-items: center; font-size: 30px; }
  .logo img { height: 44px; }
  .search { grid-column: 1 / -1; order: 3; }
  .search .btn { padding: 0 14px; }
  .hicons { gap: 18px; }
  .hicons .ico { font-size: 27px; }
  .hicons .fav-link { display: none; }
  .nav { display: none; position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto; border: 0; }
  .nav.open { display: block; }
  .nav .navhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
  .nav .navhead img { height: 40px; width: auto; }
  .nav .navhead .burger { font-size: 34px; line-height: 1; }
  .nav .menu { flex-direction: column; gap: 0; min-height: 0; overflow: visible; padding: 0 16px; }
  .nav .menu > li { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav .menu > li > a, .nav .menu > li > button { min-height: 56px; justify-content: space-between; width: 100%; font-size: 18px; }
  .nav .b2b { margin-left: 0; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0 0 14px; gap: 8px; }
  .infobar .wrap { font-size: 15px; padding-right: 44px; justify-content: flex-start; text-align: left; }
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .slider { aspect-ratio: auto; height: 470px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 26px; }
  .slide .copy { padding: 0 22px; }
  .slide p { font-size: 16px; margin-bottom: 14px; }
  .slide .art { height: 100%; min-height: 0; margin-top: 16px; }
  .slide .art img { position: absolute; left: 5%; top: 5%; width: 90%; height: 90%; max-height: none; object-fit: contain; }
  .slide .copy { text-align: left; }
  .slide p { display: none; }
  .slide h2 { font-size: 26px; }
  .slide .copy .btn { min-height: 40px; }
  .slider .arr { display: none; }
  .side-banner { aspect-ratio: auto; min-height: 0; gap: 16px; }
  .side-banner h3 { font-size: 30px; }
  .usp .wrap { grid-template-columns: 1fr; gap: 16px; }
  .cats .wrap { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-tile span { font-size: 17px; }
  .groups .wrap > div { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 72%; }
  .carousel .arr { display: none; }
  .psec { padding: 40px 0 30px; }
  .card { padding: 18px 12px 22px; }
  .card .name { font-size: 16px; }
  .price { font-size: 21px; }
  .card .btn { width: 100%; padding: 0 10px; }
  .subcats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .subcats a { font-size: 16px; padding: 10px 12px; min-height: 64px; gap: 10px; }
  .subcats img { width: 34px; height: 34px; }
  .listing { grid-template-columns: minmax(0,1fr); padding-top: 24px; }
  .fbtn { display: inline-flex; width: 100%; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .toplist h2 { font-size: 26px; }
  .toprow { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .toprow img { width: 64px; height: 64px; }
  .toprow .stock { display: none; }
  .toprow b { font-size: 16px; }
  .toprow .price { font-size: 19px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 20px; }
  .pd h1 { font-size: 30px; }
  .gal-thumbs { flex-wrap: nowrap; overflow-x: auto; }
  .gal-thumbs button { width: 76px; height: 76px; flex: none; }
  .buybox { grid-template-columns: 1fr auto; }
  .buybox .btn { grid-column: 1 / -1; width: 100%; }
  .tabs .wrap { gap: 26px; }
  .cart-grid { grid-template-columns: minmax(0,1fr); }
  .citem { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .citem img { width: 64px; height: 64px; }
  .citem .qty { grid-column: 2; }
  .citem .price { grid-column: 3; grid-row: 1; }
  .citem .rm { grid-column: 3; grid-row: 2; justify-self: end; }
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li::before { font-size: 15px; }
  .opt { grid-template-columns: 22px 30px 1fr auto; gap: 10px; }
  .b2b-hero .wrap, .form-sec .wrap, .about .wrap { grid-template-columns: 1fr; }
  .b2b-hero h1 { font-size: 36px; }
  .b2b-hero .art { display: none; }
  .svc .wrap > div { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .about h2 { font-size: 32px; }
  .stores-card { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .copyright { justify-content: center; text-align: center; }
  .pin-pop { width: min(300px, calc(100vw - 32px)); }
  .ann-toggle span { display: none; }
  .ann-toggle { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.dlg .tt { font-size: 18px; margin: 18px 0 8px; }
.dlg { max-height: 85vh; overflow-y: auto; }
.sizes-pick button.na { border-style: dashed; color: #8A8A8A; }
.sizes-pick button.na[aria-pressed=true] { color: var(--text); }
.szlegend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: #6B6B6B; }
.szlegend .d { width: 12px; height: 12px; border: 1px dashed #8A8A8A; border-radius: 2px; margin-left: 6px; }
.szlegend .d.ok { border: 1px solid #333; margin-left: 0; }
.ico-fill[hidden] { display: none; }
.about h1 { font-size: 46px; margin-bottom: 18px; }
.navinfo { display: none; }
@media (max-width: 820px) {
  .about h1 { font-size: 32px; }
  .nav .menu > li.b2b > a { justify-content: flex-start; gap: 10px; }
  .navinfo { display: grid; gap: 4px; padding: 14px 32px 30px; background: var(--soft); }
  body:has(.nav.open) .pin, body:has(.nav.open) .ann-toggle { display: none !important; }
  .navinfo a { padding: 10px 0; text-decoration: none; font-size: 17px; }
}
