/* 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: #6a7d90;
	--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: repeat(4, 1fr); gap: 1.1rem 1.6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.dropdown:hover .mega, .dropdown:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.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, .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; }
.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 { 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 img { display: block; width: 100%; height: auto; aspect-ratio: 1216 / 427; object-fit: cover; }
.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; }

/* ---------- 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; }
.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: var(--green); }
.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 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; }
.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; }
.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-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; }
	.slide { grid-template-columns: 1fr; min-height: 0; }
	.slide-text { padding: 2rem 1.5rem 1rem; }
	.slide-img { height: 240px; }
	.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; }
	.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; }
