/* TianDe.sk – public site */
:root {
	--navy: #0f3c6b;
	--navy-2: #134a80;
	--blue: #1e63a8;
	--pink: #d2327b;
	--pink-2: #b42267;
	--green: #3e9a3c;
	--green-soft: #e8f4e6;
	--bg: #f4f8fb;
	--card: #fff;
	--border: #e2eaf1;
	--text: #22364b;
	--muted: #5d6f82; /* 4.9:1 on white */
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 6px 22px rgba(15, 60, 107, .08);
	--shadow-lg: 0 14px 40px rgba(15, 60, 107, .14);
	--container: 1240px;
	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.5em; border-radius: 10px; border: 1px solid transparent; background: var(--pink); color: #fff; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--pink-2); color: #fff; box-shadow: 0 6px 16px rgba(210, 50, 123, .3); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.9em; font-size: 1.06rem; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); color: var(--navy); box-shadow: none; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--navy); box-shadow: 0 6px 16px rgba(30, 99, 168, .3); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 9px; }
.btn[disabled], .btn.htmx-request { opacity: .6; pointer-events: none; }

.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=password], .field textarea, .field select, select.input {
	width: 100%; padding: .7em .9em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 99, 168, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error, .form-errors { color: #c0392b; font-size: .88rem; margin-top: .3rem; }
.form-errors { list-style: none; padding: .8em 1em; background: #fdecea; border-radius: var(--radius-sm); }
.required::after { content: " *"; color: var(--pink); }
.check { display: flex; align-items: center; gap: .55em; cursor: pointer; font-size: .93rem; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; gap: 2.2rem; min-height: 38px; }
.topbar span { display: inline-flex; align-items: center; gap: .45em; opacity: .95; }
.topbar .icon { width: 1.1em; height: 1.1em; }
.topbar a { color: #fff; margin-left: auto; display: inline-flex; align-items: center; gap: .4em; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; gap: 1.6rem; min-height: 86px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav > a, .nav > .dropdown > a { display: inline-flex; align-items: center; gap: .3em; padding: .55em .85em; color: var(--navy); font-weight: 600; font-size: 1.02rem; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav > .dropdown > a:hover { color: var(--pink); }
.nav a.active { border-bottom-color: var(--navy); }
.nav .icon { width: 1em; height: 1em; }
.dropdown { position: relative; }
.mega { position: absolute; left: -40px; top: 100%; width: min(860px, 90vw); padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1.6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
.dropdown:hover .mega, .dropdown:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega:has(.mega-more) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.mega-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.6rem; align-content: start; }
.mega:not(:has(.mega-more)) .mega-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-more { border-left: 1px solid var(--border); padding-left: 1.6rem; }
.mega-more .mega-img img { object-position: center 62%; }
.mega-more li a { color: var(--text); }
.mega-img { display: block; aspect-ratio: 190 / 72; margin-bottom: .55rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-soft); }
.mega-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mega-img span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--green); opacity: .45; }
.mega-img .icon { width: 1.6rem; height: 1.6rem; }
.mega-col:hover .mega-img img { transform: scale(1.05); }
.mega h4 { font-size: .95rem; margin: 0 0 .35rem; }
.mega h4 a { color: var(--navy); }
.mega ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.mega li a { color: var(--muted); display: block; padding: .12em 0; }
.mega li a:hover { color: var(--pink); }
.mega .all { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: .8rem; font-weight: 600; }

.header-search { margin-left: auto; position: relative; flex: 0 1 260px; }
.header-search input { width: 100%; padding: .65em 2.6em .65em 1em; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.header-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; }
.search-results { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, min(460px, calc(100vw - 40px))); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.search-results:empty { display: none; }
.search-results a { display: flex; align-items: center; gap: .7em; padding: .5em .8em; color: var(--text); font-size: .9rem; }
.search-results a:hover { background: var(--bg); }
.search-results img { width: 38px; height: 38px; object-fit: contain; }
.search-results .price { margin-left: auto; font-weight: 700; color: var(--navy); white-space: nowrap; }
.search-results .more { justify-content: center; color: var(--blue); font-weight: 600; border-top: 1px solid var(--border); }
.header-icons { display: flex; align-items: center; gap: .4rem; }
.header-icons a, .header-icons .theme-toggle, .menu-toggle {position: relative; display: inline-flex; padding: .5rem; color: var(--navy); background: none; border: 0; cursor: pointer; }
.header-icons .icon { width: 1.6em; height: 1.6em; }
.header-icons .admin-link { align-items: center; gap: .3em; padding: .35rem .65rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.header-icons .admin-link .icon { width: 1.3em; height: 1.3em; }
.header-icons .admin-link:hover { background: var(--pink); }
.badge { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge:empty, .badge[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* progress bar while htmx loads a page */
.loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--pink), var(--blue)); z-index: 100; opacity: 0; transition: width .3s ease, opacity .3s; }
body.is-loading .loading-bar { width: 75%; opacity: 1; transition: width 2s cubic-bezier(.1, .7, .2, 1); }
#main { min-height: 50vh; }
#main.htmx-swapping { opacity: .4; }

/* ---------- hero slider ---------- */
.hero { position: relative; margin: 0 auto; max-width: var(--container); padding: 0 20px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0 0 var(--radius) var(--radius); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 430px; background: linear-gradient(110deg, #f1f8fd 0%, #e3f1f9 45%, #d8ecf4 100%); overflow: hidden; }
.slide-text { padding: 3rem 2rem 3rem 4.5rem; position: relative; z-index: 2; }
.slide h1, .slide h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: .35em; letter-spacing: -.01em; }
.slide p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--navy); max-width: 26ch; margin-bottom: 1.4em; }
.slide-img { display: block; height: 100%; position: relative; }
.slide-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slide-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, #e6f2f9, transparent); z-index: 1; }
.slide-banner { display: block; min-height: 0; background: none; }
.slide-banner picture { display: block; }
.slide-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1216 / 427; object-fit: cover; }
.slide-banner .slide-banner-fill { display: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 0; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--navy); cursor: pointer; z-index: 3; }
.slider-btn.prev { left: 36px; }
.slider-btn.next { right: 36px; }
.dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dots button.active { background: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.feature { display: flex; align-items: center; gap: .9rem; }
.feature .icon { width: 40px; height: 40px; color: var(--green); }
.feature strong { display: block; color: var(--navy); font-size: .97rem; }
.feature span { font-size: .84rem; color: var(--muted); }

.section { padding: 2.2rem 0; }
.section-title { text-align: center; margin-bottom: 1.6rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }

.category-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.category-tile { background: linear-gradient(180deg, #f5f8fb, #edf3f8); border-radius: var(--radius); overflow: hidden; color: var(--navy); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; box-shadow: 0 1px 0 var(--border); }
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--pink); }
.category-tile img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.category-tile span { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .85rem 1rem; font-weight: 700; font-size: .98rem; line-height: 1.25; min-height: 64px; }

/* ---------- product cards ---------- */
.products-row { display: grid; grid-template-columns: 1fr 260px; gap: 1.2rem; align-items: stretch; }
.carousel { position: relative; min-width: 0; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel .slider-btn { width: 38px; height: 38px; }
.carousel .slider-btn.prev { left: -16px; }
.carousel .slider-btn.next { right: -16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1rem; }
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: .8rem; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: .93rem; font-weight: 600; margin: 0 0 .25rem; line-height: 1.35; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--pink); }
.card .code { font-size: .78rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.price del { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .3em; }
.card .btn-icon { background: var(--pink); color: #fff; }
.fav-btn { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: rgba(255, 255, 255, .9); border: 0; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
.fav-btn.on, .fav-btn:hover { color: var(--pink); }
.tags { position: absolute; top: .8rem; left: .8rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .2em .55em; border-radius: 6px; background: var(--green); color: #fff; }
.tag.sale { background: var(--pink); }

.promo-card { position: relative; border-radius: var(--radius); background: linear-gradient(135deg, #fdeef5 0%, #f9d8e7 55%, #f4c3da 100%); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-height: 280px; }
.promo-card h2 { color: var(--pink); font-size: 1.9rem; position: relative; z-index: 1; }
.promo-card p { position: relative; z-index: 1; max-width: 16ch; font-size: 1.05rem; color: var(--text); }
.promo-card .btn { align-self: flex-start; position: relative; z-index: 1; }
.promo-card img { position: absolute; right: 0; bottom: 0; height: 100%; width: 40%; object-fit: cover; opacity: .9; mask-image: linear-gradient(90deg, transparent, #000 40%); }

.newsletter { background: linear-gradient(90deg, #eaf5ea, #f2f8fb 40%, #eef6ee); border-top: 1px solid var(--border); }
.newsletter .container { display: flex; align-items: center; gap: 1.5rem; padding: 1.4rem 20px; flex-wrap: wrap; }
.newsletter .icon { width: 38px; height: 38px; color: var(--navy); }
.newsletter h3 { margin: 0; font-size: 1.25rem; }
.newsletter p { margin: 0; font-size: .88rem; color: var(--muted); }
.newsletter form { margin-left: auto; display: flex; gap: .6rem; flex: 1 1 380px; max-width: 470px; }
.newsletter input { flex: 1; padding: .72em 1em; border: 1px solid var(--border); border-radius: 10px; }
.newsletter .ok { margin-left: auto; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: .5em; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #c9d8e7; font-size: .9rem; }
.footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.8rem 20px 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer a { color: #c9d8e7; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .35rem; }
.footer .logo-white { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: .8rem; }
.footer .contact-line { display: flex; gap: .6em; align-items: flex-start; margin-bottom: .45rem; }
.footer .contact-line .icon { margin-top: .15em; color: #8fb6dc; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; font-size: .8rem; text-align: center; color: #93acc4; }
.footer-bottom .link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
/* cookie bar (Silktide Consent Manager) in the shop's colours; "body" outranks its own stylesheet, which loads later */
body #stcm-wrapper { --fontFamily: var(--font); --primaryColor: var(--navy); --backgroundColor: var(--card); --textColor: var(--text); --iconColor: var(--navy); --iconBackgroundColor: var(--card); --backdropBackgroundColor: rgba(15, 60, 107, .35); }

/* ---------- breadcrumbs & page heads ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4em; font-size: .85rem; color: var(--muted); padding: 1.1rem 0 .4rem; list-style: none; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4em; }
.breadcrumbs a { color: var(--muted); }
.page-head { background: linear-gradient(110deg, #f4f9fc, #e6f2f8); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-head .container { padding-top: .2rem; padding-bottom: 1.8rem; position: relative; z-index: 1; }
.page-head h1 { margin: .3rem 0 .4rem; }
.page-head p { max-width: 70ch; color: var(--muted); margin: 0; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -30px; width: 340px; height: 220px; background: url(/assets/img/design/cat-zdravie.jpg) center / cover; opacity: .18; border-radius: 50%; filter: blur(1px); }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding: 1.5rem 0 3rem; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.sidebar-box h3 { font-size: 1rem; margin-bottom: .6rem; }
.cat-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.cat-list a { display: flex; justify-content: space-between; padding: .38em .6em; border-radius: 7px; color: var(--text); }
.cat-list a:hover { background: var(--bg); color: var(--pink); }
.cat-list a.active { background: #e6f0f9; color: var(--navy); font-weight: 600; }
.cat-list ul { list-style: none; margin: .25rem 0 .5rem .9rem; padding: 0 0 0 .5rem; border-left: 2px solid var(--border); font-size: .86rem; }
.cat-list ul a { position: relative; padding: .3em .6em; color: var(--muted); }
.cat-list ul a::before { content: ""; position: absolute; left: -.5rem; top: 50%; width: .4rem; height: 2px; margin-left: -2px; background: var(--border); }
.cat-list ul a:hover { color: var(--pink); background: transparent; }
.cat-list ul a.active { background: #fbe9f1; color: var(--pink); font-weight: 600; }
.cat-list ul a.active::before { background: var(--pink); }
.price-inputs { display: flex; gap: .5rem; align-items: center; }
.price-inputs input { width: 100%; padding: .5em .6em; border: 1px solid var(--border); border-radius: 8px; }
.attribute-filter { margin-top: 1rem; display: grid; gap: .35rem; }
.attribute-filter select { width: 100%; padding: .5em .6em; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar h1 { margin: 0; font-size: 1.6rem; }
.toolbar h1 small { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: .4em; }
.toolbar select { padding: .5em .8em; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.subcats a { padding: .4em .9em; border: 1px solid var(--border); border-radius: 30px; font-size: .88rem; color: var(--navy); background: #fff; }
.subcats a:hover { border-color: var(--pink); color: var(--pink); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--navy); background: #fff; padding: 0 .6em; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.infinite-loader { display: flex; justify-content: center; align-items: center; gap: .6rem; padding: 2rem 0 0; color: var(--muted); font-size: .9rem; }
.infinite-loader[hidden] { display: none; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* with infinite scroll the pagination stays in view and shows the page being looked at */
[data-infinite-grid] ~ .pagination { position: sticky; bottom: .8rem; z-index: 5; width: fit-content; margin-inline: auto; padding: .35rem; background: rgb(255 255 255 / .92); border-radius: 12px; box-shadow: 0 4px 18px rgb(0 0 0 / .12); backdrop-filter: blur(4px); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; color: #b5c6d6; margin: 0 auto .8rem; }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 1rem 0 2rem; align-items: start; }
.product-gallery { background: radial-gradient(circle at 50% 55%, #fff 0, #f2f7fb 70%); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-info h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .3rem; }
.product-info .code { color: var(--muted); font-size: .9rem; }
.product-info .perex { margin: 1rem 0; color: var(--muted); }
.product-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: .8rem 0 .2rem; }
.stock { display: inline-flex; align-items: center; gap: .35em; font-size: .92rem; font-weight: 600; color: #2e7d2c; }
.stock.out { color: #c0392b; }
.buy { display: flex; gap: .8rem; align-items: center; margin: 1.4rem 0 1rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--navy); }
.qty input { width: 46px; text-align: center; border: 0; height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: .45em; font-size: .92rem; }
.link-btn.on { color: var(--pink); }
.product-cats { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; }
.benefits div { display: flex; align-items: center; gap: .5em; font-size: .85rem; background: var(--bg); border-radius: 10px; padding: .6em .8em; color: var(--navy); }
.benefits .icon { color: var(--green); }
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 1.5rem; margin-bottom: 1.2rem; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .7em 0; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { color: var(--pink); border-bottom-color: var(--pink); }
.tab-panel[hidden] { display: none; }
.prose { max-width: 820px; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.7em; margin-bottom: .35em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1em; height: 1.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e9a3c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose h3 { font-size: 1.05rem; margin-bottom: .5em; color: var(--navy); }
.prose > :first-child, .desc-usage > :first-child { margin-top: 0; }
.desc-usage { margin: 1.4em 0; padding: 1rem 1.2rem; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; }
.desc-usage > :last-child { margin-bottom: 0; }
.desc-usage h3 { display: flex; align-items: center; gap: .45em; color: var(--green); }
.desc-usage h3::before { content: ""; width: 1.1em; height: 1.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e9a3c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.4 6 11a6 6 0 0 1-12 0c0-4.6 6-11 6-11z'/%3E%3C/svg%3E") center / contain no-repeat; }
.desc-warning { padding: .7em 1em; background: var(--warn-bg, #fff6e5); border-left: 4px solid var(--warn, #e0a020); border-radius: 0 10px 10px 0; }
.product-params { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; }
.product-params li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .2em .8em; color: var(--navy); }
.product-params span { color: var(--muted); }
.ingredients { margin-top: 2rem; }
.ingredients dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; margin: 0; }
.ingredients dl > div { border: 1px solid var(--border); border-radius: 10px; padding: .8em 1em; background: var(--bg); }
.ingredients dt { font-weight: 600; color: var(--navy); }
.ingredients dd { margin: .3em 0 0; font-size: .9rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--border); padding: .4em .6em; }

/* ---------- content pages ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 2rem 0; }
.about img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 0 3rem; }
.value { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.value .icon { width: 42px; height: 42px; color: var(--green); margin: 0 auto .6rem; }
.value strong { color: var(--navy); display: block; }
.accordion { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .6rem; background: #fff; }
.accordion summary { cursor: pointer; padding: .9em 1.1em; font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; gap: .5em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.accordion[open] summary::after { transform: rotate(-135deg); }
.accordion > p, .accordion > div { padding: 0 1.1em; }
.accordion[open] { box-shadow: var(--shadow); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; padding: 2rem 0 3rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-item .icon { width: 26px; height: 26px; color: var(--navy); margin-top: .1em; }
.contact-item strong { display: block; color: var(--navy); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; }

.flash { border-radius: 10px; padding: .85em 1.1em; margin: 1rem 0; display: flex; gap: .6em; align-items: center; background: var(--green-soft); color: #2d6a2b; font-weight: 600; }
.flash.error { background: #fdecea; color: #b03a2e; }
.flash.info { background: #e8f1fa; color: var(--navy); }

/* ---------- cart & checkout ---------- */
.cart-page { padding: 1.5rem 0 3rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .8rem 1rem; background: var(--bg); }
.cart-table td { padding: .9rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; }
.cart-product { display: flex; align-items: center; gap: .9rem; }
.cart-product a { color: var(--text); font-weight: 600; }
.summary { position: sticky; top: 110px; }
/* checkout: the order button sticks together with the summary, never slides under it */
.checkout-side { position: sticky; top: 110px; }
.checkout-side .summary { position: static; }
.checkout-side .summary-items { max-height: calc(100vh - 470px); min-height: 60px; overflow-y: auto; overscroll-behavior: contain; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 0 0 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { font-size: 1.3rem; color: var(--navy); font-weight: 800; border-top: 1px solid var(--border); padding-top: .6rem; }
.summary .btn { width: 100%; }
.free-ship { font-size: .85rem; background: var(--green-soft); color: #2d6a2b; padding: .6em .8em; border-radius: 9px; margin-bottom: 1rem; }
.options { display: grid; gap: .6rem; margin-bottom: 1.3rem; }
.option { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--blue); background: #f2f8fd; box-shadow: 0 0 0 2px rgba(30, 99, 168, .12); }
.option input { accent-color: var(--blue); width: 18px; height: 18px; }
.option span { flex: 1; }
.option b { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.done { text-align: center; max-width: 640px; margin: 3rem auto; }
.done .icon { width: 70px; height: 70px; color: var(--green); margin: 0 auto 1rem; }
/* online payment by QR code (thank-you page) */
.pay-qr { display: flex; gap: 1.4rem; align-items: flex-start; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.pay-qr-code { flex: none; width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.pay-qr-code svg { display: block; width: 100%; height: auto; }
.pay-qr-info h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--navy); }
.pay-qr-info dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .8rem 0; }
.pay-qr-info dt { color: var(--muted); }
.pay-qr-info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
	.pay-qr { flex-direction: column; align-items: center; }
}
/* push notifications box (thank-you page, account) */
.push-box { display: flex; align-items: center; gap: 1rem; text-align: left; background: var(--green-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.push-box[hidden] { display: none; }
.push-box > .icon, .done .push-box > .icon { flex: none; width: 28px; height: 28px; margin: 0; color: var(--green); }
.push-box-text { flex: 1; }
.push-box-text p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.push-box[data-state="on"] > .icon { color: var(--navy); }
.account-side .push-box { flex-wrap: wrap; margin: 0; }
@media (max-width: 520px) { .push-box { flex-wrap: wrap; } .push-box .btn { width: 100%; } }
.sign { max-width: 480px; margin: 1rem auto 3rem; }
.sign h1 { font-size: 1.8rem; }

/* ---------- customer account ---------- */
.account { padding-top: 1.5rem; padding-bottom: 3rem; }
.account-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.25rem; padding: 2rem 2.2rem 4.4rem; border-radius: 20px; color: #fff;
	background: radial-gradient(circle at 85% 15%, #2a6db0 0, transparent 45%), linear-gradient(120deg, var(--navy), #123f70 60%, #0c2f55); }
.account-hero::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: rgba(210, 50, 123, .28); filter: blur(12px); pointer-events: none; }
.account-avatar { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); background: linear-gradient(135deg, var(--pink), #8e3fb0); font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.account-hero-text { position: relative; z-index: 1; min-width: 0; }
.account-hero h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); overflow-wrap: anywhere; }
.account-hero p { margin: .25rem 0 0; color: #c8daee; }
.account-member { position: relative; z-index: 1; margin-left: auto; text-align: right; font-size: .82rem; color: #c8daee; padding: .6rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.account-member b { display: block; color: #fff; font-size: 1rem; }
.account-member + .account-points { margin-left: 0; }
.account-points .icon { width: 1em; height: 1em; vertical-align: -.12em; color: #f4c95d; }
.account-tabs { position: relative; z-index: 2; display: flex; gap: .3rem; width: max-content; max-width: calc(100% - 2.4rem); overflow-x: auto; margin: -1.8rem 0 2rem 2.2rem; padding: .35rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.account-tabs a { display: flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.account-tabs a:hover { background: var(--bg); color: var(--navy); }
.account-tabs a.current { background: var(--pink); color: #fff; }
.account-tabs .icon { width: 1.1em; height: 1.1em; }

.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.account-h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.account-card h2 { font-size: 1.15rem; margin: 0; }
.account-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.account-card-head a { font-size: .92rem; font-weight: 600; }

.account-order { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: .8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: transform .15s, box-shadow .15s; }
.account-order:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.account-order-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: var(--navy); background: linear-gradient(135deg, #e6effa, #f6e7ef); }
.account-order-main { min-width: 0; }
.account-order-main b { display: block; color: var(--navy); font-size: 1.02rem; }
.account-order-meta { display: block; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-order-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.account .price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.account-order-side .price { font-size: 1.05rem; }

.status { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #e6effa; color: var(--blue); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-processing, .status-shipped { background: #fdf3df; color: #a86f08; }
.status-completed { background: var(--green-soft); color: #2d7a2b; }
.status-cancelled { background: #fdecea; color: #b03a2e; }

.account-empty { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }
.account-empty .icon { width: 44px; height: 44px; color: var(--muted); margin-bottom: .6rem; }

.account-side { display: grid; gap: 1rem; }
.account-contact { display: grid; grid-template-columns: 22px 1fr; gap: .75rem .7rem; margin: 0; font-size: .93rem; }
.account-contact dt { color: var(--muted); }
.account-contact dd { margin: 0; overflow-wrap: anywhere; }
.account-cta { padding: 1.4rem 1.5rem; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-2)); }
.account-cta b { font-size: 1.05rem; }
.account-cta p { margin: .35rem 0 1rem; font-size: .9rem; color: #fde3ef; }
.account-cta .btn { background: #fff; color: var(--pink); }
.account-cta .btn:hover { background: #fff; color: var(--pink-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }

.account-form { max-width: 760px; }
.account-form > p { margin: .3rem 0 1.4rem; font-size: .93rem; }
.account-form .field input[disabled] { background: var(--bg); color: var(--muted); }
.account-form .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.account-form .hint.ok { color: var(--green); }
.account-form .hint.bad { color: #c0392b; }
.account-actions { display: flex; justify-content: flex-end; margin-top: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.pw-meter { display: flex; gap: 5px; margin-top: .5rem; }
.pw-meter i { flex: 1; height: 5px; border-radius: 5px; background: var(--border); transition: background .2s; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: #d9534f; }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: #e8a33d; }
.pw-meter[data-level="3"] i:nth-child(-n+3), .pw-meter[data-level="4"] i { background: var(--green); }

.account-order-detail { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.account-back { display: inline-flex; align-items: center; gap: .2rem; font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.account-lines { list-style: none; margin: 0; padding: 0; }
.account-lines li { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); }
.account-lines .account-order-icon { width: 46px; height: 46px; }
.account-line-name { flex: 1; min-width: 0; font-size: .95rem; }
.account-line-name small { display: block; color: var(--muted); }
.account-sum dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; font-size: .93rem; }
.account-sum dt { color: var(--muted); }
.account-sum dt small { display: block; font-size: .82rem; }
.account-sum dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.account-sum-total { display: flex; justify-content: space-between; margin: .9rem 0 1.4rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.account-sum h3 { font-size: .95rem; margin-bottom: .3rem; }
.account-sum p { font-size: .93rem; margin: 0 0 .6rem; }

@media (max-width: 860px) {
	.account-grid, .account-order-detail { grid-template-columns: 1fr; }
	.account-hero { padding: 1.5rem 1.4rem 4rem; flex-wrap: wrap; }
	.account-member { margin-left: 0; text-align: left; }
	.account-tabs { margin-left: 1rem; max-width: calc(100% - 2rem); }
}
@media (max-width: 520px) {
	.account-avatar { width: 56px; height: 56px; font-size: 1.25rem; }
	.account-tabs a:not(.current) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* icon only, label kept for screen readers */
	.account-order { grid-template-columns: 1fr auto; }
	.account-order > .account-order-icon { display: none; }
}

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: .6rem; }
.toast { background: var(--navy); color: #fff; padding: .85em 1.1em; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7em; animation: toast-in .25s ease-out; max-width: 360px; }
.toast a { color: #ffd3e6; font-weight: 600; margin-left: .4em; }
.toast .icon { color: #9be29a; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-search { flex-basis: 220px; }
	.category-tiles { grid-template-columns: repeat(3, 1fr); }
	.carousel-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
	.products-row { grid-template-columns: 1fr; }
	.promo-card { min-height: 200px; }
	.footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.topbar span:nth-child(n+2) { display: none; }
	.header .container { min-height: 70px; gap: .8rem; }
	.logo img { height: 42px; }
	.header-search { position: absolute; left: 20px; right: 20px; top: 100%; margin-top: 8px; display: none; }
	.header.search-open .header-search { display: block; }
	.header-icons .search-toggle { display: inline-flex !important; }
	.header-icons { margin-left: auto; }
	.header-icons .admin-link { padding: .4rem; }
	.header-icons .admin-link span { display: none; }
	/* every slide gets the same height so the slider never leaves a gap under a short banner */
	.slide { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: clamp(420px, 100vw + 40px, 560px); }
	.slide-text { padding: 1.6rem 1.5rem .8rem; }
	.slide h1, .slide h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
	.slide p { margin-bottom: 1em; }
	.slide-img { height: auto; min-height: 0; align-self: stretch; }
	.slide-banner { display: block; }
	.slide-banner picture { position: absolute; inset: 0; }
	.slide-banner img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
	.slide-banner .slide-banner-fill { display: block; }
	.slide-banner-fill img { object-fit: cover; filter: blur(24px) saturate(1.1); transform: scale(1.2); }
	.slider-btn.prev, .slider-btn.next { display: none; }
	.hero:has(.slide-banner) .dots { position: static; transform: none; justify-content: center; margin-top: 10px; }
	.hero:has(.slide-banner) .dots button { border-color: var(--navy); }
	.hero:has(.slide-banner) .dots button.active { background: var(--navy); }
	.features, .values { grid-template-columns: 1fr 1fr; }
	.catalog, .product, .about, .contact, .cart-layout { grid-template-columns: 1fr; gap: 1.5rem; }
	.catalog aside { order: 2; }
	.checkout-side, .summary { position: static; }
	.checkout-side .summary-items { max-height: none; }
	.carousel-track { grid-auto-columns: calc((100% - 1rem) / 2); }
	.grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
	.form-grid { grid-template-columns: 1fr; }
	.benefits { grid-template-columns: 1fr; }
	.cart-table thead { display: none; }
	.cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: .6rem 0; border-top: 1px solid var(--border); }
	.cart-table td { border: 0; padding: .3rem .8rem; }
	.cart-table td:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	body { font-size: 15px; }
	.category-tiles { grid-template-columns: repeat(2, 1fr); }
	.features { gap: 1rem; }
	.feature { flex-direction: column; text-align: center; }
	.footer .container { grid-template-columns: 1fr; }
	.newsletter form { flex-direction: column; }
}
.search-toggle { display: none !important; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 30, 55, .45); opacity: 0; transition: opacity .2s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 1.2rem; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel .close { position: absolute; right: .8rem; top: .8rem; background: none; border: 0; cursor: pointer; color: var(--navy); }
.drawer-panel nav a { display: block; padding: .55em 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.drawer-panel details summary { padding: .55em 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); cursor: pointer; }
.drawer-panel details a { font-weight: 400; padding-left: .8em; font-size: .94rem; }

/* distributor prices and points */
.your-price { font-size: .7em; font-weight: 600; color: var(--green); margin-right: .2em; }
.regular-price, .price .points, .product-price .points, td .points { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.product-price .regular-price, .product-price .points { font-size: .95rem; margin-top: .2rem; }
.product-price del { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: .3em; }
td del { display: block; font-size: .8rem; }
.points .icon { width: 1em; height: 1em; vertical-align: -.12em; color: var(--pink); }
.distributor-tag { margin-left: .4em; font-size: .7rem; padding: .1em .45em; vertical-align: middle; }
.account-member small { display: block; margin-top: .2rem; color: #c8daee; }
.distributor-badge { background: var(--green); }

/* ---------- dark theme "Polnočná modrá" (html[data-theme=dark], set by the inline script in @layout.latte) ---------- */
html[data-theme="dark"] {
	color-scheme: dark;
	--navy: #eef4fb;
	--navy-2: #6fb2f2;
	--blue: #6fb2f2;
	--pink: #e5408c;
	--pink-2: #f05c9e;
	--green: #5cc46a;
	--green-soft: rgba(92, 196, 106, .1);
	--bg: #16283d;
	--card: #132336;
	--border: #1f3349;
	--text: #c5d3e2;
	--muted: #7e93a9;
	--shadow: 0 6px 22px rgba(0, 0, 0, .4);
	--shadow-lg: 0 14px 40px rgba(0, 0, 0, .55);
	--surface: #101d2d;
	--ink: #0b1522;
	--deep: #071019;
	--input-bg: #0d1928;
	--danger: #ff6b6b;
	--danger-bg: rgba(255, 107, 107, .1);
	--warn: #f0b860;
	--warn-bg: rgba(240, 184, 96, .1);
	--plate: #eef3f8;
}
html[data-theme="dark"] body { background: var(--ink); }

/* surfaces that are white in the light theme */
html[data-theme="dark"] :is(.mega, .search-results, .sidebar-box, .value, .accordion, .panel, .cart-table, .option, .account-card, .account-order, .account-empty, .account-tabs, .drawer-panel, .slider-btn, .subcats a, .pagination a, .pagination span, .qty, .btn-outline) { background: var(--surface); }
html[data-theme="dark"] :is(.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=password], .field textarea, .field select, select.input, .header-search input, .toolbar select, .price-inputs input, .attribute-filter select, .newsletter input, .qty input) { background: var(--input-bg); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .header { background: rgba(11, 21, 34, .95); }
html[data-theme="dark"] [data-infinite-grid] ~ .pagination { background: rgb(16 29 45 / .92); box-shadow: 0 4px 18px rgb(0 0 0 / .5); }
html[data-theme="dark"] .input:focus, html[data-theme="dark"] .field :is(input, textarea, select):focus { box-shadow: 0 0 0 3px rgba(111, 178, 242, .25); }

/* buttons & badges whose background was navy */
html[data-theme="dark"] .btn:hover { box-shadow: 0 6px 18px rgba(229, 64, 140, .35); }
html[data-theme="dark"] .btn-outline, html[data-theme="dark"] .btn-outline:hover { color: var(--navy); border-color: #35506e; }
html[data-theme="dark"] .btn-outline:hover { background: var(--bg); box-shadow: none; }
html[data-theme="dark"] .btn-blue { background: #1e63a8; }
html[data-theme="dark"] .btn-blue:hover { background: #2a77c4; }
html[data-theme="dark"] .pagination .current { background: var(--pink); border-color: var(--pink); }
html[data-theme="dark"] .header-icons .admin-link { background: #1e63a8; }
html[data-theme="dark"] .header-icons .admin-link:hover { background: var(--pink); }
html[data-theme="dark"] body #stcm-wrapper { --primaryColor: var(--pink); --backdropBackgroundColor: rgba(0, 0, 0, .5); }

/* logo: single-colour navy SVG → white */
html[data-theme="dark"] .logo img, html[data-theme="dark"] .footer .logo-white { filter: brightness(0) invert(.94); }

/* top bar, footer and toast use navy as a background */
html[data-theme="dark"] .topbar { background: var(--deep); color: #b9cbe0; border-bottom: 1px solid var(--border); }
html[data-theme="dark"] .topbar a { color: #b9cbe0; }
html[data-theme="dark"] .footer { background: var(--deep); color: var(--muted); border-top: 1px solid var(--border); }
html[data-theme="dark"] .footer h4, html[data-theme="dark"] .footer a:hover { color: var(--navy); }
html[data-theme="dark"] .footer a { color: var(--text); }
html[data-theme="dark"] .footer .contact-line .icon { color: var(--blue); }
html[data-theme="dark"] .footer-bottom { border-top-color: var(--border); color: var(--muted); }
html[data-theme="dark"] .toast { background: #1a2e45; color: var(--text); border: 1px solid #35506e; }
html[data-theme="dark"] .toast a { color: #ff8cbf; }
html[data-theme="dark"] .drawer-backdrop { background: rgba(0, 0, 0, .6); }

/* light gradients → dark */
html[data-theme="dark"] .slide { background: linear-gradient(110deg, #0b1522 0%, #102035 45%, #15294a 100%); }
html[data-theme="dark"] .slide-img::before { background: linear-gradient(90deg, #102035, transparent); }
html[data-theme="dark"] .slide p { color: var(--text); }
html[data-theme="dark"] .category-tile { background: var(--surface); border: 1px solid var(--border); color: var(--navy); }
html[data-theme="dark"] .category-tile:hover { color: #ff8cbf; }
html[data-theme="dark"] .promo-card { background: linear-gradient(135deg, #2a1730, #132336); border: 1px solid var(--border); }
html[data-theme="dark"] .promo-card h2 { color: #ff8cbf; }
html[data-theme="dark"] .newsletter { background: linear-gradient(90deg, #0f2a22, #101d2d 40%, #0f2a22); }
html[data-theme="dark"] .page-head { background: linear-gradient(110deg, #0b1522, #12243a); }
html[data-theme="dark"] .page-head::after { opacity: .1; }
html[data-theme="dark"] .cat-list a.active { background: rgba(111, 178, 242, .12); color: var(--navy); }
html[data-theme="dark"] .cat-list ul a.active { background: rgba(229, 64, 140, .14); color: #ff8cbf; }
html[data-theme="dark"] .option:has(input:checked) { background: rgba(111, 178, 242, .08); box-shadow: 0 0 0 2px rgba(111, 178, 242, .2); }
html[data-theme="dark"] .account-hero { background: radial-gradient(circle at 85% 15%, #1e4f85 0, transparent 45%), linear-gradient(120deg, #12304f, #0f2440 60%, #0b1a2e); border: 1px solid var(--border); }
html[data-theme="dark"] .account-order-icon { background: linear-gradient(135deg, #16304d, #2a1730); }
html[data-theme="dark"] .empty .icon { color: #35506e; }

/* product photos have white backgrounds → show them on a light "plate" */
html[data-theme="dark"] .card-img { background: var(--plate); border-radius: var(--radius-sm); }
html[data-theme="dark"] .product-gallery { background: radial-gradient(circle at 50% 55%, #fff 0, var(--plate) 70%); }
html[data-theme="dark"] .search-results img { background: var(--plate); border-radius: 4px; }
html[data-theme="dark"] .fav-btn { background: rgba(11, 21, 34, .75); color: var(--navy); }

/* status colours */
html[data-theme="dark"] :is(.field .error, .stock.out, .account-form .hint.bad) { color: var(--danger); }
html[data-theme="dark"] :is(.form-errors, .flash.error, .status-cancelled) { background: var(--danger-bg); color: var(--danger); }
html[data-theme="dark"] :is(.flash, .free-ship) { color: var(--green); }
html[data-theme="dark"] .flash.info { background: rgba(111, 178, 242, .1); color: var(--blue); }
html[data-theme="dark"] .status { background: rgba(111, 178, 242, .1); color: var(--blue); }
html[data-theme="dark"] :is(.status-processing, .status-shipped) { background: var(--warn-bg); color: var(--warn); }
html[data-theme="dark"] .status-completed { background: var(--green-soft); color: var(--green); }
html[data-theme="dark"] .status-cancelled { background: var(--danger-bg); color: var(--danger); }

/* theme switch: moon in the light theme, sun in the dark one */
.theme-toggle .icon-sun, html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }

/* ---- accessibility: visible keyboard focus, skip link, less motion on request */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--navy); color: #fff; padding: .7em 1.2em; border-radius: 0 0 10px 10px; font-weight: 600; }
.skip-link:focus { top: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- cart: discount code */
.discount { color: #2e7d2c; }
.coupon { margin: -.2rem 0 1rem; font-size: .92rem; }
.coupon summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: .3rem 0; }
.coupon-row { display: flex; gap: .5rem; margin-top: .5rem; }
.coupon-row .btn { width: auto; flex: none; }
.coupon-row input::placeholder { text-transform: none; }
.coupon-row input { flex: 1; min-width: 0; padding: .55em .8em; border: 1px solid var(--border); border-radius: 9px; text-transform: uppercase; background: #fff; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border-radius: 9px; background: var(--green-soft); color: #2e7d2c; }
.coupon-applied .link-btn { color: inherit; text-decoration: underline; font-weight: 600; }
.coupon-error { color: #b03a2e; font-size: .88rem; margin: .4rem 0 0; }

/* ---- checkout: Packeta pickup point */
.pickup-point { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.3rem; background: var(--bg); }
.pickup-point h2 { font-size: 1.1rem; }
.pickup-chosen { font-weight: 600; color: var(--navy); }
.pickup-point .error { color: #c0392b; font-size: .88rem; margin-top: .4rem; }

/* ---- product: back-in-stock alert */
.stock-alert { margin: 1.2rem 0 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.stock-alert label { display: block; color: var(--navy); }
.stock-alert p { margin: .2rem 0 .7rem; font-size: .9rem; }
.stock-alert-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.stock-alert-row input { flex: 1 1 200px; min-width: 0; padding: .7em .9em; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.stock-alert .error { color: #c0392b; margin: .5rem 0 0; }
.stock-alert .stock-alert-ok { display: flex; gap: .5em; align-items: flex-start; margin: 0; color: #2e7d2c; font-weight: 600; }

/* ---- product: reviews */
.stars { display: inline-flex; gap: 1px; color: #c9d4de; vertical-align: middle; }
.stars .icon { width: 1.05em; height: 1.05em; fill: currentColor; }
.stars .on { color: #f2a91a; }
.stars .half { color: #f2a91a; opacity: .55; }
.rating-summary { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.rating-summary:hover { color: var(--pink); }
.reviews { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.review-total { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.review-total strong { font-size: 2rem; color: var(--navy); line-height: 1; }
.review { border-top: 1px solid var(--border); padding: 1rem 0; }
.review header { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .4rem; }
.review header strong { color: var(--navy); }
.review time { font-size: .85rem; margin-left: auto; }
.review p { margin: 0; }
.verified { display: inline-flex; align-items: center; gap: .3em; font-size: .8rem; font-weight: 600; color: #2e7d2c; }
.review-form { background: var(--bg); border-radius: var(--radius); padding: 1.3rem; }
.review-form h3 { margin-bottom: .8rem; }
.review-form .field textarea { min-height: 90px; }
.small-note { font-size: .82rem; margin: .7rem 0 0; }
.star-input { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: .15rem; }
.star-input legend { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .3rem; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #b3c1ce; padding: .1rem; border-radius: 6px; }
.star-input label .icon { width: 2rem; height: 2rem; fill: currentColor; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f2a91a; }
.star-input input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 1px; }

/* ---- account: reorder */
.reorder { margin-top: 1.2rem; }
.reorder p { font-size: .82rem; margin: .5rem 0 0; text-align: center; }

/* ---- empty states with a way forward */
.empty-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.empty-suggest { margin-top: 2.5rem; text-align: left; }
.empty-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .8rem; }
.empty-chips a { padding: .4em .9em; border-radius: 20px; border: 1px solid var(--border); background: var(--card); color: var(--navy); font-size: .9rem; }
.empty-chips a:hover { border-color: var(--pink); color: var(--pink); }

/* ---- phones: bigger touch targets, sticky buy bar */
.sticky-buy { display: none; }
@media (max-width: 760px) {
	.qty button { width: 44px; height: 48px; }
	.qty input { height: 48px; font-size: 16px; }
	.coupon-row input, .stock-alert-row input, .field input, .field textarea, .field select { font-size: 16px; } /* no iOS zoom on focus */
	.option { padding: 1rem; min-height: 52px; }
	.tabs { gap: 1rem; overflow-x: auto; scrollbar-width: none; }
	.tabs button { padding: .9em 0; white-space: nowrap; }
	.reviews { grid-template-columns: 1fr; }
	.review time { margin-left: 0; }
	.sticky-buy:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; align-items: center; gap: .8rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 60, 107, .12); animation: toast-in .2s ease-out; }
	.sticky-buy-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
	.sticky-buy-name strong { color: var(--navy); font-size: 1.05rem; }
	body.has-sticky-buy #toasts { bottom: 90px; }
	body.has-sticky-buy .footer { padding-bottom: 80px; }
}

/* ---- dark theme for the parts above */
html[data-theme="dark"] :is(.discount, .verified, .coupon-applied, .stock-alert .stock-alert-ok) { color: var(--green); }
html[data-theme="dark"] .stock { color: var(--green); }
html[data-theme="dark"] :is(.coupon-row input, .stock-alert-row input) { background: var(--input-bg); border-color: var(--border); color: var(--text); }
html[data-theme="dark"] :is(.pickup-point, .stock-alert, .review-form) { background: var(--surface); }
html[data-theme="dark"] :is(.coupon-error, .pickup-point .error, .stock-alert .error) { color: var(--danger); }
html[data-theme="dark"] :is(.stars, .star-input label) { color: #4a6584; }
html[data-theme="dark"] .sticky-buy { box-shadow: 0 -6px 20px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .skip-link { background: var(--pink); }
#main:focus { outline: none; }
.star-input .star-full { display: none; }
.star-input label:hover .star-full, .star-input label:hover ~ label .star-full, .star-input input:checked ~ label .star-full { display: inline-block; }
.star-input label:hover .star-empty, .star-input label:hover ~ label .star-empty, .star-input input:checked ~ label .star-empty { display: none; }
html[data-theme="dark"] .star-input :is(label:hover, label:hover ~ label, input:checked ~ label) { color: #f2a91a; }
.empty .empty-actions .icon { width: 1.25em; height: 1.25em; margin: 0; color: inherit; }
