/* TechMarket demo shop – layout and look modelled on large Czech electronics e-shops */
:root {
  --blue: #2288e5; --blue-d: #1e70bf; --blue-50: #eaf3fc; --navy: #1c2663; --navy-2: #26347a;
  --orange: #f39200; --green: #1f9d3a; --red: #e0282e; --yellow: #ffd23f;
  --ink: #222; --muted: #6b7280; --line: #e2e5e8; --bg: #f7f9fa; --card: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c1c5cb; border-radius: 4px; }

/* ---------- header ---------- */
.demo-bar { background: var(--yellow); color: #3b3000; font-size: 12px; font-weight: 600; text-align: center; padding: 4px 12px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.top-in { max-width: 1580px; margin: 0 auto; height: 72px; padding: 0 16px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 7px; flex: none; }
.logo .mark { width: 38px; height: 38px; border-radius: 7px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 27px; font-style: italic; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.logo .mark span { transform: rotate(-6deg) translateY(-2px); }
.logo .word { font-size: 25px; font-weight: 900; color: var(--navy); letter-spacing: -.6px; }
.logo .word b { color: var(--blue); font-weight: 700; }
.search { flex: 1; max-width: 760px; display: flex; }
.search .field { position: relative; flex: 1; }
.search .field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa1a9; font-size: 14px; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid #cfd4da; border-right: none; border-radius: 6px 0 0 6px; font-size: 14px; outline: none; }
.search input:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.search button { height: 42px; border: none; background: var(--blue); color: #fff; font-weight: 600; padding: 0 24px; border-radius: 0 6px 6px 0; }
.search button:hover { background: var(--blue-d); }
.acts { display: flex; align-items: center; gap: 18px; flex: none; color: #4b5563; }
.account { display: flex; align-items: center; gap: 10px; }
.account .ava { width: 36px; height: 36px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; color: #6b7280; }
.account .txt { font-size: 12px; line-height: 1.35; }
.account b { display: block; color: #111; } .account b i { font-size: 9px; opacity: .6; margin-left: 2px; }
.account small { color: var(--muted); font-size: 12px; }
.account:hover b, .account:hover .ava { color: var(--blue); }
.divider { width: 1px; height: 24px; background: var(--line); }
.acts .ico { font-size: 21px; padding: 4px; position: relative; color: #4b5563; }
.acts .ico:hover { color: var(--blue); }
.flag { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); display: block; }
.flag svg { width: 100%; height: 100%; }
.count { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-style: normal; }
.count.zero { display: none; }

/* ---------- page frame with side banners ---------- */
.page { display: flex; justify-content: center; max-width: 1720px; margin: 0 auto; min-height: 80vh; }
.frame { flex: 1; min-width: 0; max-width: 1380px; background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 4px solid var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.frame.padded { padding: 20px 24px 48px; }
.flank { display: none; width: 160px; flex: none; position: sticky; top: 72px; height: calc(100vh - 72px); flex-direction: column; align-items: center; padding: 22px 10px; text-align: center; user-select: none;
  background: radial-gradient(circle at 50% 70%, #3b4bb0 0%, #1c2663 70%); color: #fff; }
.fl-title { font-weight: 900; font-size: 22px; line-height: 1.05; margin: 0; }
.fl-title .plus { color: var(--orange); font-style: italic; }
.fl-title .big { font-size: 26px; }
.fl-art { position: relative; margin: auto 0 18px; width: 110px; height: 130px; }
.fl-art .pig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(135deg, #ffb72b, #f39200); display: grid; place-items: center; font-size: 42px; color: #8a4b00; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.coin { position: absolute; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.coin.r { right: -6px; top: 0; transform: rotate(14deg); } .coin.l { left: -6px; bottom: 0; transform: rotate(-12deg); }
@media (min-width: 1720px) { .flank { display: flex; } }

/* ---------- common ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 6px; border: none; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.1); transition: background .15s, transform .1s; }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: scale(.97); }
.btn.big { padding: 14px 24px; font-size: 17px; width: 100%; text-align: center; }
.btn.green { background: var(--green); } .btn.green:hover { background: #17802e; }
.crumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.crumbs a { color: var(--blue); } .crumbs a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 16px; letter-spacing: -.2px; }
h2 { font-size: 18px; margin: 0; letter-spacing: -.2px; }
.box { background: var(--card); border-radius: 10px; border: 1px solid var(--line); }
.muted { color: var(--muted); }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: 260px 1fr; }
.home > * { min-width: 0; }
.side { border-right: 1px solid var(--line); padding: 8px 0; font-size: 13.5px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: #1f2937; }
.side a i { width: 22px; text-align: center; color: #6b7280; font-size: 15px; }
.side a:hover { background: var(--blue-50); color: var(--blue); }
.side a:hover i { color: var(--blue); }
.side a.hot { font-weight: 600; }
.side a.hot i { color: #fff; background: var(--orange); border-radius: 4px; padding: 3px 0; font-size: 12px; }
.side a.hot.red i { background: var(--red); }
.side .sep { border-top: 1px solid #f0f1f3; margin: 6px 0; }
.home-main { padding: 22px 24px 48px; }

.hero { position: relative; border-radius: 12px; overflow: hidden; height: 300px; color: #fff; margin-bottom: 20px; }
.slide { position: absolute; inset: 0; padding: 36px 40px; opacity: 0; transition: opacity .6s; display: flex; align-items: center; }
.slide.on { opacity: 1; z-index: 1; }
.slide .glow { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; pointer-events: none; }
.slide .txt { position: relative; z-index: 2; max-width: 56%; }
.slide .kicker { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: -.3px; margin-bottom: 6px; }
.slide .kicker b { color: var(--orange); }
.slide h3 { font-size: 38px; font-weight: 900; line-height: 1.1; margin: 0 0 22px; letter-spacing: -.5px; }
.slide h3 u { text-decoration: none; background: linear-gradient(transparent 82%, var(--orange) 82%); }
.slide .art { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); width: 300px; height: 260px; z-index: 1; }
.slide .art img { position: absolute; inset: 10px 30px; width: 240px; height: 240px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.slide .art .coin { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
.slide .art .c1 { left: 0; top: 10px; transform: rotate(14deg); }
.slide .art .c2 { right: 0; bottom: 30px; transform: rotate(-12deg); }
.slide .art .c3 { right: 20px; top: -6px; transform: rotate(12deg); width: 34px; height: 34px; font-size: 18px; }
.dots { position: absolute; bottom: 14px; left: 40px; display: flex; gap: 6px; z-index: 3; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); padding: 0; }
.dots button.on { background: #fff; width: 26px; border-radius: 5px; }

.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.pc { position: relative; height: 210px; border-radius: 12px; padding: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pc.dark { background: linear-gradient(135deg, #273773, #4054a5); color: #fff; }
.pc.light { background: #f5f7f9; border: 1px solid var(--line); }
.pc .brandline { font-size: 12px; font-weight: 900; font-style: italic; margin-bottom: 4px; display: flex; gap: 5px; align-items: center; }
.pc .brandline span { background: var(--red); color: #fff; padding: 1px 5px; border-radius: 3px; font-style: normal; }
.pc h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; max-width: 60%; letter-spacing: -.2px; }
.pc p { margin: 6px 0 0; font-size: 12.5px; color: #4b5563; max-width: 55%; line-height: 1.35; }
.pc .chips { display: flex; gap: 4px; margin-top: 6px; }
.pc .chip { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #d8f3de; color: #146c2a; }
.pc .chip.r { background: #fde2e2; color: #b4161c; }
.pc .btn { margin-top: auto; align-self: flex-start; padding: 8px 16px; font-size: 13px; position: relative; z-index: 2; }
.pc .fine { font-size: 9.5px; color: #9aa1a9; margin-top: 4px; }
.pc .pimg { position: absolute; right: 8px; bottom: 8px; width: 150px; height: 150px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.pc .tag { position: absolute; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 3px 7px; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 2; }

.shelf { margin-bottom: 32px; }
.shelf-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.shelf-h h2 { display: flex; align-items: center; gap: 12px; }
.shelf-h .more { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: underline; }
.shelf-body { position: relative; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > * { scroll-snap-align: start; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px; border: none; background: var(--navy); color: #fff; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.arrow:hover { background: var(--blue); }
.arrow.next { right: -24px; border-radius: 6px 0 0 6px; }
.arrow.prev { left: -24px; border-radius: 0 6px 6px 0; }
.countdown { font-size: 13px; font-weight: 700; color: var(--red); background: #fdeaea; padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.countdown i { margin-right: 4px; }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; min-width: 0; }
.tile:hover { box-shadow: 0 6px 18px rgba(28,38,99,.12); }
.tile .pic { display: grid; place-items: center; height: 150px; margin-bottom: 6px; }
.tile .pic img { height: 140px; width: 140px; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 1; }
.badge { background: var(--red); color: #fff; font-weight: 800; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; }
.badge.tip { background: var(--orange); }
.badge.top { background: var(--navy); }
.rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; margin-bottom: 4px; }
.stars { color: #fbbf24; font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
.rating b { color: #374151; } .rating small { color: #9aa1a9; font-size: 11px; }
.tile .name { color: var(--blue); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; margin-bottom: 4px; }
.tile .name:hover { text-decoration: underline; }
.tile .hl { color: var(--muted); font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.tile .tfoot { margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f1f3; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.stock { color: var(--green); font-weight: 600; font-size: 11.5px; }
.stock i { font-size: 9px; margin-right: 3px; }
.stock.low { color: #c26a00; }
.price { font-size: 16px; font-weight: 800; color: #111; white-space: nowrap; line-height: 1.15; }
.old { color: var(--muted); text-decoration: line-through; font-size: 11.5px; font-weight: 400; display: block; }
.add { width: 32px; height: 32px; flex: none; border: none; border-radius: 6px; background: var(--blue-50); color: var(--blue); font-size: 13px; transition: background .15s, color .15s; }
.add:hover { background: var(--blue); color: #fff; }

/* ---------- category / search ---------- */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.listing > * { min-width: 0; }
.filters { padding: 16px; align-self: start; position: sticky; top: 90px; }
.filters h4 { margin: 14px 0 8px; font-size: 13.5px; } .filters h4:first-child { margin-top: 0; }
.filters label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; font-size: 13.5px; }
.filters .range { display: flex; gap: 6px; align-items: center; }
.filters input[type=number] { width: 90px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.sortbar { display: flex; gap: 0; margin-bottom: 12px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.sortbar button { background: none; border: none; border-bottom: 3px solid transparent; padding: 9px 14px; color: #4b5563; font-weight: 600; font-size: 13px; }
.sortbar button.on { color: var(--ink); border-color: var(--blue); }
.sortbar .cnt { margin-left: auto; color: var(--muted); font-size: 13px; }
.empty { padding: 40px; text-align: center; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 1.1fr 1.2fr 330px; gap: 24px; align-items: start; }
.detail > * { min-width: 0; }
.gallery { padding: 20px; display: grid; place-items: center; position: relative; }
.gallery img { width: 100%; max-width: 400px; }
.info .brand { color: var(--blue); font-weight: 600; }
.info h1 { font-size: 24px; margin: 4px 0 8px; }
.info ul { padding-left: 18px; line-height: 1.8; margin: 14px 0; }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; margin: 10px 0; font-size: 13px; line-height: 1.45; }
.perk i { font-size: 16px; margin-top: 2px; }
.perk.deal { background: #fff4e0; border: 1px solid #f7d9a4; } .perk.deal i { color: var(--orange); }
.perk.service { background: var(--blue-50); border: 1px solid #c7ddf5; } .perk.service i { color: var(--blue); }
.perk b { display: block; }
.pricebox { padding: 20px; position: sticky; top: 90px; }
.pricebox .price { font-size: 30px; }
.pricebox .old { font-size: 13px; }
.pricebox .save { color: var(--red); font-weight: 700; margin: 6px 0 12px; }
.pricebox .stock { font-size: 14px; margin: 12px 0 4px; }
.pricebox .deliv { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pricebox .qty { display: flex; gap: 8px; margin-bottom: 10px; }
.pricebox .qty input { width: 60px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.pricebox .inst { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pricebox .perks { list-style: none; padding: 12px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: #4b5563; line-height: 2; }
.pricebox .perks i { width: 20px; margin-right: 6px; text-align: center; color: var(--blue); }
.fbt { padding: 18px; margin-top: 24px; }
.fbt h2 { margin-bottom: 12px; }
.fbt .items { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fbt .it { display: flex; align-items: center; gap: 10px; width: 250px; }
.fbt .it img { width: 64px; height: 64px; }
.fbt .it .nm { color: var(--blue); font-size: 13px; }
.fbt .plus { font-size: 22px; color: var(--muted); }
.fbt .sum { margin-left: auto; text-align: right; }
.tabs { margin-top: 24px; padding: 4px 20px 20px; }
.tabs .tabbar { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs .tabbar button { background: none; border: none; padding: 12px 0; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs .tabbar button.on { color: var(--ink); border-color: var(--blue); }
.params { width: 100%; border-collapse: collapse; }
.params td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.params td:first-child { color: var(--muted); width: 38%; }

/* ---------- cart ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps span { padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.steps span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cartwrap { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cartwrap > * { min-width: 0; }
.line { display: grid; grid-template-columns: 80px 1fr 120px 110px 30px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; }
.line .nm { color: var(--blue); font-weight: 600; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: fit-content; }
.stepper button { border: none; background: var(--bg); width: 30px; height: 32px; font-size: 16px; }
.stepper span { width: 36px; display: grid; place-items: center; font-weight: 600; }
.line .lp { font-weight: 800; font-size: 16px; text-align: right; }
.rm { background: none; border: none; color: var(--muted); font-size: 16px; }
.summary { padding: 20px; position: sticky; top: 90px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .r.disc { color: var(--red); font-weight: 600; }
.summary .tot { font-size: 21px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.ship { margin: 14px 0; font-size: 13px; }
.ship .bar { height: 8px; background: #eef0f2; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.ship .bar div { height: 100%; background: var(--green); border-radius: 4px; }
.thanks { padding: 50px; text-align: center; }
.thanks .big { font-size: 60px; color: var(--green); }
.toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 8px; z-index: 60; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #c9d0ea; padding: 36px 28px; }
.foot-cols { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot-cols b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .shelf-row { grid-auto-columns: calc((100% - 4 * 12px) / 5); } }
@media (max-width: 1100px) {
  .home { grid-template-columns: 1fr; } .side { display: none; }
  .promos { grid-template-columns: 1fr 1fr; } .promos .pc:last-child { display: none; }
  .shelf-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .detail { grid-template-columns: 1fr 1fr; } .pricebox { grid-column: 1 / -1; position: static; }
  .account .txt, .divider, .flag { display: none; }
}
@media (max-width: 800px) {
  .listing, .cartwrap, .detail { grid-template-columns: 1fr; } .filters { display: none; }
  .slide .art { opacity: .35; right: -60px; } .slide .txt { max-width: 100%; } .slide h3 { font-size: 28px; }
  .promos { grid-template-columns: 1fr; } .promos .pc:last-child { display: flex; }
  .shelf-row { grid-auto-columns: calc((100% - 12px) / 2.2); } .arrow { display: none; }
}
@media (max-width: 640px) {
  .top-in { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .search { order: 3; flex-basis: 100%; }
  .search input, .filters input[type=number] { font-size: 16px; } /* no iOS zoom when typing */
  .acts { margin-left: auto; gap: 12px; }
  .frame.padded, .home-main { padding: 16px 14px 40px; }
  .hero { height: 260px; } .slide { padding: 24px; }
  .line { grid-template-columns: 60px 1fr; } .line .lp, .line .rm { grid-column: 2; text-align: left; }
}
