/* elektrobikes.sk — predajný funnel na elektrobicykle.
   Inter je hostovaný lokálne (GDPR, žiadne volanie na Google). */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(/assets/fonts/inter-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0d1117;
	--ink-2: #3d4653;
	--muted: #6b7684;
	--line: #e4e7ec;
	--bg: #ffffff;
	--bg-2: #f6f7f9;
	--accent: #0b7d3e;
	--accent-dark: #096130;
	--sale: #c2321b;
	--radius: 14px;
	--wrap: 1240px;
	--shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px rgba(13, 17, 23, .06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.muted { color: var(--muted); }
.eyebrow {
	display: inline-block; font-size: .78rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
	margin-bottom: .6rem;
}
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.16rem; }
.logo-mark {
	width: 22px; height: 22px; border-radius: 7px;
	background: linear-gradient(135deg, var(--accent), #12b45c);
}
.dot { color: var(--accent); }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .94rem; font-weight: 500; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--accent); }
.header-cta {
	padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
	font-size: .9rem; font-weight: 600;
}
.header-cta:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
	.site-nav { display: none; }
	.header-cta { margin-left: auto; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs ol {
	max-width: var(--wrap); margin-inline: auto; padding: .7rem clamp(1rem, 4vw, 2rem);
	list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
	font-size: .84rem; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner {
	display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
	align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; gap: 2rem; }
	.hero-media { order: -1; }
}

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .85rem 1.6rem; border-radius: 999px;
	font-weight: 650; font-size: .98rem; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- trust ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
	padding-block: 1.6rem;
}
.trust-grid div { display: flex; flex-direction: column; gap: .15rem; }
.trust-grid strong { font-size: .95rem; }
.trust-grid span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-link { font-weight: 600; color: var(--accent); font-size: .95rem; }

.page-head { padding-block: clamp(2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); }
.page-head .count { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
.listing { padding-block: 2.5rem; }

/* ---------- cards ---------- */
.grid {
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; background: var(--bg); display: flex; flex-direction: column;
	transition: .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; background: var(--bg-2); aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: .8rem; }
.card-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.badge {
	font-size: .73rem; font-weight: 700; padding: .25rem .6rem;
	border-radius: 999px; color: #fff; letter-spacing: .01em;
}
.badge-sale { background: var(--sale); }
.badge-last { background: var(--ink); }

.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.card-brand { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { font-size: 1rem; font-weight: 650; margin: 0; }
.card-title a:hover { color: var(--accent); }
.card-specs { font-size: .84rem; color: var(--muted); margin: .1rem 0 0; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.card-price { font-weight: 800; font-size: 1.12rem; }
.card-price s { font-weight: 500; font-size: .88rem; color: var(--muted); margin-left: .45rem; }
.card-link { font-size: .85rem; color: var(--accent); font-weight: 600; }

.empty { padding: 3rem 0; color: var(--muted); }

/* ---------- category cards ---------- */
.cat-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card {
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	padding-bottom: 1rem; background: var(--bg); transition: .18s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: var(--bg-2); padding: .8rem; }
.cat-name { display: block; font-weight: 650; padding: .8rem 1rem 0; }
.cat-count { display: block; padding: 0 1rem; font-size: .85rem; color: var(--muted); }

/* ---------- brands ---------- */
.brands { padding-bottom: 4rem; }
.brand-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.brand-links a {
	border: 1px solid var(--line); border-radius: 999px;
	padding: .5rem 1.1rem; font-weight: 600; font-size: .93rem;
}
.brand-links a:hover { border-color: var(--accent); color: var(--accent); }
.brand-links span { color: var(--muted); font-weight: 500; margin-left: .3rem; }

/* ---------- product ---------- */
.product { padding-block: clamp(1.5rem, 4vw, 3rem); }
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

.main-media { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 4/3; }
.main-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.thumb {
	width: 78px; aspect-ratio: 4/3; padding: 0; cursor: pointer;
	border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); overflow: hidden;
}
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }

.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.price-row { display: flex; align-items: baseline; gap: .8rem; margin: 1rem 0 .3rem; }
.price { font-size: 2rem; font-weight: 800; }
.price-row s { color: var(--muted); font-size: 1.05rem; }
.stock { color: var(--accent); font-weight: 600; font-size: .95rem; margin: 0 0 1.5rem; }
.stock[data-out="1"] { color: var(--sale); }

.sizes-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.sizes-head .label { font-weight: 650; font-size: .95rem; }
.size-help { font-size: .85rem; color: var(--accent); }
.sizes { display: flex; flex-wrap: wrap; gap: .55rem; }
.size {
	min-width: 68px; padding: .6rem .9rem; cursor: pointer;
	border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
	font: inherit; font-weight: 600; font-size: .93rem; text-align: center;
	display: flex; flex-direction: column; gap: .1rem; transition: .12s;
}
.size:hover:not([disabled]) { border-color: var(--ink-2); }
.size[aria-checked="true"] { border-color: var(--accent); background: #f0faf4; color: var(--accent-dark); }
.size[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.size-note { font-size: .68rem; font-weight: 600; color: var(--sale); text-transform: uppercase; letter-spacing: .04em; }
.size-hint { font-size: .86rem; color: var(--muted); margin: .7rem 0 0; }

.buy {
	display: flex; align-items: center; justify-content: center;
	margin-top: 1.4rem; padding: 1.05rem 1.5rem; border-radius: 12px;
	background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
	transition: .15s;
}
.buy:hover { background: var(--accent-dark); }
.buy[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; }

.handoff { font-size: .85rem; color: var(--muted); margin-top: .9rem; }
.handoff a { color: var(--accent); font-weight: 600; }

.specs { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; font-weight: 600; font-size: .92rem; }

.prose { padding-block: clamp(2rem, 4vw, 3.5rem); max-width: 78ch; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose h2 { margin-bottom: 1rem; }
.prose p { color: var(--ink-2); }
.related { padding-bottom: 4rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .8rem; }
.footer-grid a { display: block; font-size: .92rem; color: var(--ink-2); padding: .18rem 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo { font-weight: 800; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 1.2rem 2rem; }
.footer-legal p { font-size: .86rem; color: var(--muted); margin: 0; }
.footer-legal a { color: var(--accent); font-weight: 600; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.card:hover, .cat-card:hover { transform: none; }
}
