/* ==========================================================================
   2acetech: base, layout, header, sections, footer.
   Brand tokens come from the logo: black 2ACE, red TECH.
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0b0b0d;
	--ink-2: #17171b;
	--paper: #fff;
	--mist: #f5f5f7;
	--line: #e7e7ea;
	--muted: #62626c;
	--accent: #f50505;
	--accent-dark: #c40000;
	--accent-soft: #fff0f0;
	--star: #f5a300;
	--art-accent: var(--accent);

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(11, 11, 13, 0.06), 0 8px 24px rgba(11, 11, 13, 0.06);
	--shadow-lg: 0 2px 4px rgba(11, 11, 13, 0.08), 0 20px 48px rgba(11, 11, 13, 0.14);

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--stick: 120px; /* Set by JS: header height + admin bar. */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	margin: 0; padding: 12px 18px;
	clip: auto;
	background: var(--ink);
	color: #fff;
	z-index: 1000;
	border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.icon { flex: none; }

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1;
	transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(245, 5, 5, 0.32); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	color: var(--ink);
	transition: background 0.2s;
}
.icon-btn:hover { background: var(--mist); color: var(--accent); }

/* Wordmark (until a logo is uploaded) ------------------------------------ */

.wordmark {
	display: inline-flex;
	font-weight: 800;
	font-style: italic;
	font-size: 1.85rem;
	line-height: 1;
	letter-spacing: -0.03em;
	transform: skewX(-4deg);
	color: var(--ink);
}
.wordmark__b { color: var(--accent); }
.wordmark--light .wordmark__a { color: #fff; }
.wordmark:hover { color: inherit; }

.custom-logo-link { display: inline-block; flex: none; line-height: 0; }
/* object-fit keeps the proportions even if something narrows the box. */
.site-header .custom-logo { height: clamp(24px, 6.8vw, 44px); width: auto; max-width: none; object-fit: contain; }
@media (max-width: 960px) { .site-header .custom-logo { height: 30px; } }
.footer-logo { display: inline-block; flex: none; line-height: 0; }
.site-footer .footer-logo img { height: clamp(32px, 9vw, 46px); width: auto; max-width: none; object-fit: contain; }

/* Top bar ---------------------------------------------------------------- */

.topbar { background: var(--ink); color: #d6d6dc; font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__msg { margin: 0; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__links a:hover { color: #fff; }
.topbar .icon { color: var(--accent); }

/* Header ----------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(1.5) blur(14px);
	backdrop-filter: saturate(1.5) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(11, 11, 13, 0.08); }

.header__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px 36px;
	padding-block: 14px;
}
.site-brand { display: flex; align-items: center; }
.nav-toggle { display: none; }

/* "form.search", not ".search": WordPress also puts the class "search" on the
   <body> of every search-results page, which turned the whole page into this
   narrow rounded flex box. */
form.search {
	display: flex;
	align-items: stretch;
	max-width: 640px;
	width: 100%;
	justify-self: center;
	background: var(--mist);
	border: 2px solid transparent;
	border-radius: 999px;
	overflow: hidden;
	transition: border-color 0.2s, background 0.2s;
}
form.search:focus-within { background: #fff; border-color: var(--ink); }
.search__cat {
	flex: none;
	width: 196px;
	max-width: 196px;
	text-overflow: ellipsis;
	padding: 0 14px 0 20px;
	border: 0;
	border-right: 1px solid var(--line);
	background: transparent;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}
.search__input {
	flex: 1;
	min-width: 0;
	padding: 13px 18px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	outline: none;
}
.search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	border: 0;
	background: var(--ink);
	color: #fff;
	transition: background 0.2s;
}
.search__btn:hover { background: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 4px; }
.cart-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: var(--accent);
	border-radius: 999px;
	border: 2px solid #fff;
}
.cart-count[data-count="0"] { background: var(--ink); }

/* Navigation row */

.header__nav { border-top: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 54px; }

.departments { position: relative; flex: none; }
.departments__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 22px;
	border: 0;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	transition: background 0.2s;
}
.departments__btn:hover,
.departments__btn[aria-expanded="true"] { background: var(--accent-dark); }
.departments__btn .icon:last-child { transition: transform 0.25s var(--ease); }
.departments__btn[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.departments__panel {
	position: absolute;
	top: 100%; left: 0;
	z-index: 70;
	width: 290px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-lg);
}
.departments__panel[hidden] { display: none; }
.departments__panel a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 22px;
	font-weight: 600;
	font-size: 0.93rem;
	border-bottom: 1px solid var(--line);
}
.departments__panel li:last-child a { border-bottom: 0; }
.departments__panel a:hover { background: var(--accent-soft); color: var(--accent); }
.departments__panel .icon { color: var(--muted); }
.departments__panel > .menu > li:first-child > a { border-radius: 0; }
.departments__panel a small { margin-left: auto; padding-left: 10px; font-weight: 600; color: var(--muted); }
.departments__panel .has-sub > a .icon { margin-left: auto; }
.departments__panel li > a > span { flex: 1; }
/* Subcategories fly out to the right on desktop. */
.departments__panel li { position: relative; }
.departments__sub {
	display: none;
	position: absolute;
	top: -1px; left: 100%;
	z-index: 71;
	width: 270px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0 var(--radius) var(--radius) 0;
	box-shadow: var(--shadow-lg);
}
.departments__panel .has-sub:hover > .departments__sub,
.departments__panel .has-sub:focus-within > .departments__sub { display: block; }
.departments__panel .has-sub:hover > a { background: var(--accent-soft); color: var(--accent); }
.menu__all a { color: var(--accent); }

.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.primary-nav a {
	position: relative;
	display: inline-block;
	padding: 14px 0;
	font-weight: 700;
	font-size: 0.95rem;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 8px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute;
	top: 100%; left: -16px;
	min-width: 220px;
	padding: 8px 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s var(--ease);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 10px 20px; }
.primary-nav .sub-menu a::after { display: none; }

@media (max-width: 960px) {
	.header__row { grid-template-columns: auto 1fr auto; padding-block: 10px; row-gap: 10px; }
	.nav-toggle { display: inline-grid; margin-left: -10px; }
	.site-brand { justify-self: start; }
	form.search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.search__cat { display: none; }

	.header__nav { display: none; border-top: 1px solid var(--line); }
	.header__nav.is-open { display: block; max-height: calc(100svh - var(--stick)); overflow-y: auto; }
	.nav__row { flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px 16px; }
	.departments__btn { width: 100%; justify-content: space-between; height: 50px; border-radius: var(--radius-sm); }
	.departments__panel { position: static; width: 100%; box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; }
	.departments__sub { display: block; position: static; width: auto; border: 0; box-shadow: none; border-radius: 0; background: var(--mist); }
	.departments__sub a { padding-left: 38px; font-weight: 500; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
	.primary-nav a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}
@media (max-width: 640px) {
	.header__row { gap: 8px 10px; }
	.topbar__links { display: none; }
	.topbar__inner { justify-content: center; }
	.wordmark { font-size: 1.55rem; }
	.header__actions .icon-btn { width: 40px; height: 40px; }
}

/* Sections --------------------------------------------------------------- */

.section { padding-block: clamp(48px, 7vw, 92px); }
.section--tight { padding-block: clamp(20px, 3vw, 36px); }
.section--mist { background: var(--mist); }

.section__head {
	display: flex;
	align-items: center;
	gap: 14px 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.section__title {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 800;
}
.section__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 44px; height: 4px;
	background: var(--accent);
	border-radius: 4px;
}
.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	font-weight: 700;
	font-size: 0.93rem;
}
.link-more .icon { transition: transform 0.25s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }
.section__head .rail-nav + .link-more,
.section__head .link-more + .rail-nav { margin-left: 0; }

/* Reveal on scroll (only when JS runs) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.demo-notice {
	padding: 10px var(--gutter);
	background: #fff8e1;
	border-bottom: 1px solid #f1dc9a;
	font-size: 0.85rem;
	text-align: center;
}

/* Trust strip ------------------------------------------------------------ */

.trust { background: var(--ink); color: #fff; }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; color: var(--accent); background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
.trust__item strong { display: block; font-size: 0.98rem; line-height: 1.25; }
.trust__item small { display: block; color: #a9a9b3; font-size: 0.82rem; line-height: 1.35; margin-top: 2px; }
@media (max-width: 960px) {
	.trust__list { grid-template-columns: repeat(2, 1fr); }
	.trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
	.trust__item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
	.trust__item:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 520px) {
	.trust__list { grid-template-columns: 1fr; }
	.trust__item { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
	.trust__item:first-child { border-top: 0; }
}

/* Category tiles --------------------------------------------------------- */

.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tiles > li { flex: 0 0 calc((100% - 5 * 18px) / 6); min-width: 0; }
.tiles > li > .tile { height: 100%; }
.tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 18px 14px 20px;
	background: var(--mist);
	border-radius: var(--radius);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); }
.tile__media { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: 8px; }
.tile__media svg, .tile__media img { width: 78%; height: 78%; object-fit: contain; transition: transform 0.5s var(--ease); }
.tile:hover .tile__media svg, .tile:hover .tile__media img { transform: scale(1.08) rotate(-3deg); }
.tile__initial { font-size: 4rem; font-weight: 800; color: var(--line); }
.tile__name { font-weight: 800; font-size: 0.98rem; line-height: 1.25; }
.tile__count { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 1100px) { .tiles > li { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 560px) { .tiles { gap: 12px; } .tiles > li { flex-basis: calc((100% - 12px) / 2); } }

/* Product card ----------------------------------------------------------- */

.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.pcard__badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	background: var(--ink);
}
.badge--sale { background: var(--accent); }
.badge--out { background: var(--muted); }

.pcard__media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	margin: 10px 10px 0;
	background: var(--mist);
	border-radius: calc(var(--radius) - 6px);
	overflow: hidden;
}
.pcard__media img, .pcard__media svg { width: 82%; height: 82%; object-fit: contain; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__media img, .pcard:hover .pcard__media svg { transform: scale(1.07); }

.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 18px; }
.pcard__title { margin: 0; font-size: 0.98rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.pcard__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a:hover { color: var(--accent); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.pcard__price { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.pcard__price del { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.pcard__price ins { text-decoration: none; color: var(--accent); }

.pcard__cta .button {
	position: relative;
	display: block;
	flex: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	font-size: 0;
	color: transparent;
	transition: background 0.25s, transform 0.25s var(--ease);
}
.pcard__cta .button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: var(--ico-cart) center / 20px no-repeat;
	mask: var(--ico-cart) center / 20px no-repeat;
}
.pcard__cta .button:hover { background: var(--accent); transform: scale(1.08); }
.pcard__cta .button.loading { opacity: 0.6; pointer-events: none; }
.pcard__cta .button.loading::before { animation: pulse 0.8s infinite alternate; }
.pcard__cta .button.added { background: #14a44d; }
.pcard__cta .button.added::before { -webkit-mask-image: var(--ico-check); mask-image: var(--ico-check); }
.pcard__cta .added_to_cart { display: none; }
@keyframes pulse { to { transform: scale(0.7); } }

:root {
	--ico-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.4l2.2 11.2a1.5 1.5 0 0 0 1.5 1.2h7.8a1.5 1.5 0 0 0 1.5-1.1L20 8H6.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
	--ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.stars { position: relative; display: inline-block; width: max-content; font-size: 0.9rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; color: #d9d9df; }
.stars::after {
	content: "★★★★★";
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--rating) * 20%);
	overflow: hidden;
	white-space: nowrap;
	color: var(--star);
}

/* Rails and grids -------------------------------------------------------- */

.rail-nav { display: flex; gap: 8px; margin-left: auto; }
.rail-nav__btn {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.rail-nav__btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail-nav__btn:disabled { opacity: 0.35; cursor: default; }
.link-more + .rail-nav { margin-left: 0; }

.rail {
	display: flex;
	gap: 20px;
	padding: 8px 4px 28px;
	margin: -8px -4px -28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1100px) { .rail__item { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px) { .rail__item { flex-basis: calc((100% - 20px) / 2.2); } .rail { gap: 14px; } .rail-nav { display: none; } }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Tabs */
.tabs__list { display: flex; gap: 4px 26px; flex-wrap: wrap; }
.tabs__tab {
	position: relative;
	padding: 10px 0 14px;
	border: 0;
	background: none;
	font-weight: 700;
	font-size: 1rem;
	color: var(--muted);
	transition: color 0.2s;
}
.tabs__tab::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: var(--accent);
	border-radius: 3px;
	transform: scaleX(0);
	transition: transform 0.3s var(--ease);
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel:not([hidden]) { animation: tab-in 0.5s var(--ease); }
@keyframes tab-in { from { opacity: 0; transform: translateY(14px); } }
.section__head--tabs { justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 28px; gap: 0 28px; }
.section__head--tabs .section__title { padding-bottom: 14px; }
.section__head--tabs .section__title::after { bottom: -1px; }
.section__head--tabs .tabs__list { margin-left: auto; margin-bottom: -1px; }
.section__head--tabs .tabs__tab::after { bottom: -1px; }

/* Promo banners ---------------------------------------------------------- */

.promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 280px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.promo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.promo--light { background: var(--mist); color: var(--ink); }
.promo--dark { background: var(--ink); color: #fff; }
.promo--dark:hover { color: #fff; }
.promo--light:hover { color: var(--ink); }
.promo::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -8%; top: -30%;
	width: 70%; aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(245, 5, 5, 0.22), transparent);
}
.promo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 320px; }
.promo__kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.promo__title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.promo__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.9rem; transition: background 0.2s, gap 0.25s var(--ease); }
.promo--dark .promo__cta { background: #fff; color: var(--ink); }
.promo:hover .promo__cta { background: var(--accent); color: #fff; gap: 12px; }
.promo__art img { width: 100%; height: auto; max-height: 230px; object-fit: contain; }
.promo__art { flex: none; width: clamp(150px, 28%, 250px); transition: transform 0.6s var(--ease); }
.promo:hover .promo__art { transform: scale(1.08) rotate(-4deg); }
@media (max-width: 860px) { .promos { grid-template-columns: 1fr; } .promo { min-height: 220px; } }

/* Deal ------------------------------------------------------------------- */

.deal { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 32px; align-items: start; }
.deal__card {
	position: relative;
	padding: 26px;
	text-align: center;
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 24px;
	box-shadow: 8px 8px 0 var(--accent);
}
/* Several deals sit side by side and scroll sideways; the padding leaves room
   for each card's offset shadow. */
.deal__side { min-width: 0; }
.deal__cards {
	display: flex;
	gap: 18px;
	padding: 0 10px 10px 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.deal__cards::-webkit-scrollbar { display: none; }
.deal__cards .deal__card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.deal__more { display: none; margin: 6px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.deal__nav { justify-content: center; margin: 10px 0 0; }
@media (max-width: 760px) { .deal__more { display: block; } }
.deal__label { margin: 0 0 6px; text-align: left; }
.deal__media { display: grid; place-items: center; aspect-ratio: 1; }
.deal__media img, .deal__media svg { width: 84%; height: 84%; object-fit: contain; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.deal__name { margin: 4px 0 8px; font-size: 1.15rem; }
.deal__price { margin: 0 0 14px; font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.deal__price del { margin-left: 8px; font-size: 1rem; font-weight: 500; color: var(--muted); }
.deal__price ins { text-decoration: none; }
.deal__hurry { margin: 0 0 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { padding: 10px 4px 8px; background: var(--ink); color: #fff; border-radius: 12px; line-height: 1; }
.countdown b { display: block; font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 5px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a9a9b3; }
.deal__tabs .tabs__list { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
@media (max-width: 1100px) { .deal { grid-template-columns: 1fr; } .deal__side { max-width: 420px; margin-inline: auto; width: 100%; } }

/* Brands ----------------------------------------------------------------- */

.brands { border-block: 1px solid var(--line); }
.brands__list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; padding-block: 28px; }
/* Every brand gets the same slot. --brand-h is set from Customize > Brand logos. */
.brands__list li { flex: none; width: min(calc(var(--brand-h, 64px) * 2.6), calc(50% - 12px)); }
.brand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--brand-h, 64px);
	font-size: 1.2rem;
	font-weight: 800;
	font-style: italic;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	color: #b4b4bd;
	transition: color 0.3s;
}
a.brand:hover { color: var(--ink); }
/* The logo fills a fixed share of the slot, whatever shape the file is. A white
   background disappears (multiply). --logo-scale is the per-brand "Logo size". */
.brand-logo {
	--s: min(1, calc(var(--brand-fill, 0.7) * var(--logo-scale, 1)));
	--bw: min(1, calc(0.92 * var(--logo-scale, 1))); /* wide logos may use nearly the full slot width */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.brand-logo img {
	width: calc(100% * var(--bw));
	height: calc(100% * var(--s));
	max-width: none;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: opacity 0.3s, filter 0.3s;
}
.brands--grey .brand-logo img { filter: grayscale(1); opacity: 0.6; }
.brands--grey a.brand:hover .brand-logo img { filter: none; opacity: 1; }
@media (max-width: 760px) { .brand { font-size: 1rem; } .brands__list { gap: 10px 24px; } }

/* Newsletter ------------------------------------------------------------- */

.newsletter { background: var(--accent); color: #fff; }
.newsletter__inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 24px 48px; align-items: center; padding-block: 44px; }
.newsletter__copy { display: flex; align-items: center; gap: 20px; }
.newsletter__icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: rgba(0, 0, 0, 0.18); border-radius: 50%; }
.newsletter h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; }
.newsletter p { margin: 0; opacity: 0.92; }
.newsletter form { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 999px; }
.newsletter input[type="email"] { flex: 1; min-width: 0; padding: 0 20px; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.newsletter .btn { padding: 15px 28px; }
.newsletter__msg { margin-top: 12px !important; font-weight: 700; }
.newsletter__msg.is-error { background: #fff; color: var(--accent-dark); padding: 8px 14px; border-radius: 10px; display: inline-block; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .newsletter__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter form { flex-direction: column; border-radius: 20px; } .newsletter input[type="email"] { padding: 14px 16px; } }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #b4b4bd; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer__grid:has(.footer__widgets) { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.footer__tagline { max-width: 340px; margin: 18px 0 20px; }
.footer__contact { display: grid; gap: 10px; margin-bottom: 20px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact .icon { color: var(--accent); margin-top: 2px; }
.footer__contact a:hover { color: #fff; }
.footer__col h2 { margin-bottom: 18px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer__col .menu { display: grid; gap: 10px; }
.footer__col a { position: relative; transition: color 0.2s, padding 0.25s var(--ease); }
.footer__col a:hover { color: #fff; padding-left: 6px; }
.footer__widgets .widget__title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; color: #fff; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.footer__bar p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__seller { padding-bottom: 20px; font-size: 0.78rem; color: #8b8b95; }
.footer__bar a:hover { color: #fff; }
@media (max-width: 860px) { .footer__grid, .footer__grid:has(.footer__widgets) { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid, .footer__grid:has(.footer__widgets) { grid-template-columns: 1fr; } }

.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 55;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.3s, transform 0.3s var(--ease), background 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top[hidden] { display: none; }

/* Pages and posts -------------------------------------------------------- */

.site-main { min-height: 50vh; }
.site-main:not(.front) { padding-block: clamp(32px, 5vw, 64px); }
.page-head { margin-bottom: 28px; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.entry-content > * + * { margin-top: 1.1em; }
/* Long texts (terms, privacy policy): visible list numbers, readable tables. */
.entry-content :where(ol) { padding-left: 1.7em; list-style: decimal; }
.entry-content :where(ul) { padding-left: 1.4em; list-style: disc; }
.entry-content :where(ol ol, ul ul, ol ul, ul ol) { margin-top: 0.5em; }
.entry-content :where(li) { margin: 0 0 0.55em; line-height: 1.7; }
.entry-content :where(h2) { margin-top: 2em; font-size: 1.35rem; }
.entry-content h2[id] { scroll-margin-top: calc(var(--stick, 120px) + 16px); }
.entry-content :where(h3) { margin-top: 1.6em; font-size: 1.1rem; }
.entry-content :where(blockquote) { margin-inline: 0; padding: 14px 20px; background: #fff7e0; border-left: 4px solid #f0b429; border-radius: 4px; }
.entry-content :where(code) { padding: 1px 6px; background: var(--mist); border-radius: 4px; font-size: 0.9em; }
.entry-content :where(table) { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.entry-content :where(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content :where(th) { background: var(--mist); }
@media (max-width: 760px) { .entry-content :where(table) { display: block; overflow-x: auto; } }
.entry-content :where(a:not(.btn):not(.button):not([class*="wc-block"])) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry__thumb { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }

.posts { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card:not(:has(.post-card__media)) { grid-template-columns: 1fr; padding: 24px; }
.post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.post-card__meta { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); }
.post-card__title { font-size: 1.4rem; }
.post-card__excerpt p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } }

.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.notfound { text-align: center; }
.notfound__code { margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--accent); }
.notfound form.search { margin: 24px auto; }

.comments { margin-top: 48px; }
.comment-list { display: grid; gap: 20px; margin-bottom: 32px; }
.comment-body { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit;
}
.comment-respond .submit { padding: 14px 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.comment-respond .submit:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Contact page ----------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
.contact h2 { font-size: 1.4rem; font-weight: 800; }
.contact__form, .contact__info { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); }
.contact__info { background: var(--mist); border-color: transparent; }
.contact .field { margin: 0 0 18px; }
.contact .field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.92rem; }
.contact .field input, .contact .field textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; transition: border-color 0.2s; }
.contact .field input:focus, .contact .field textarea:focus { outline: 0; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.contact__note { margin: 0 0 18px; font-size: 0.85rem; color: var(--muted); }
.contact__note a { text-decoration: underline; text-underline-offset: 3px; }
.contact__msg { margin: 0 0 18px; padding: 14px 18px; background: #eefaf2; border: 1px solid #bfe7cd; border-radius: var(--radius-sm); font-weight: 600; }
.contact__msg.is-error { background: var(--accent-soft); border-color: #ffc9c9; color: var(--accent-dark); }
.contact__info ul { display: grid; gap: 18px; margin-bottom: 22px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.contact__info li .icon { margin-top: 3px; color: var(--accent); }
.contact__info strong { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact__info a:hover { color: var(--accent); }
.contact__seller { margin: 0; padding-top: 18px; border-top: 1px solid #dcdce2; font-size: 0.88rem; color: var(--muted); }
.contact__intro { margin-bottom: 28px; max-width: 720px; }
/* Withdrawal page and links */
.contact--single { grid-template-columns: minmax(0, 700px); }
.footer__legal .withdraw-link { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.withdraw-note { margin: 24px 0; }
.withdraw-link--box { display: inline-block; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; transition: background 0.2s, color 0.2s; }
.withdraw-link--box:hover { background: var(--ink); color: #fff; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* Category chips on shop and category pages --------------------------------- */
.cat-chips { margin: 0 0 22px; }
.cat-chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cat-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 700; font-size: 0.92rem;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-chip small { font-weight: 600; color: var(--muted); }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.cat-chip.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip.is-current small { color: rgba(255, 255, 255, 0.7); }

/* Main categories directly in the header bar on desktop ---------------------- */
.catbar { display: none; }
@media (min-width: 961px) {
	.nav__row--cats .departments { display: none; }
	.nav__row--cats .catbar {
		display: flex;
		align-items: center;
		gap: 2px;
		margin: 0;
		padding: 0 22px 0 0;
		border-right: 1px solid var(--line);
		list-style: none;
	}
}
.catbar > li { position: relative; }
.catbar > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 54px;
	padding: 0 14px;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
	transition: color 0.2s;
}
.catbar > li > a .icon { color: var(--muted); transition: transform 0.25s var(--ease); }
.catbar > li:hover > a,
.catbar > li:focus-within > a { color: var(--accent); }
.catbar > li:hover > a .icon,
.catbar > li:focus-within > a .icon { transform: rotate(180deg); color: var(--accent); }
.catbar > li > a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 8px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.catbar > li:hover > a::after,
.catbar > li:focus-within > a::after { transform: scaleX(1); }
.catbar__sub {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	z-index: 71;
	min-width: 270px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-lg);
}
.catbar > li:hover > .catbar__sub,
.catbar > li:focus-within > .catbar__sub { display: block; }
.catbar__sub a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 22px; font-weight: 600; font-size: 0.93rem; }
.catbar__sub a:hover { background: var(--accent-soft); color: var(--accent); }
.catbar__sub small { color: var(--muted); font-weight: 600; }
.catbar__sub .menu__all a { color: var(--accent); }

/* Category row (photo tiles, like Amazon's "shop by category") ---------------- */
.catrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.catrow__item { display: flex; flex-direction: column; align-items: center; width: 150px; text-align: center; gap: 4px; }
.catrow__img {
	display: grid;
	place-items: center;
	width: 132px; height: 132px;
	margin-bottom: 8px;
	overflow: hidden;
	background: radial-gradient(circle at 30% 22%, #fff 0, var(--mist) 72%);
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.catrow__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.catrow__img svg { width: 90%; height: 90%; transition: transform 0.5s var(--ease); }
.catrow__item:hover .catrow__img svg { transform: scale(1.1) rotate(-3deg); }
.catrow__initial { font-size: 3rem; font-weight: 800; color: var(--line); }
.catrow__item:hover .catrow__img { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.catrow__item:hover .catrow__img img { transform: scale(1.08); }
.catrow__name { font-weight: 800; font-size: 0.98rem; line-height: 1.25; }
.catrow__count { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 760px) {
	.catrow { flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-inline: calc(var(--gutter, 20px) * -1); padding-inline: var(--gutter, 20px); scrollbar-width: none; }
	.catrow::-webkit-scrollbar { display: none; }
	.catrow > li { flex: none; scroll-snap-align: start; }
	.catrow__item { width: 104px; }
	.catrow__img { width: 92px; height: 92px; }
}

/* In-site notifications (assets/js/toast.js): cards at the top corner.
   They replace the grey WooCommerce message bar and every browser pop-up. */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 1100; display: grid; gap: 10px; width: min(400px, calc(100vw - 24px)); pointer-events: none; }
.toast {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 44px 16px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	pointer-events: auto;
	animation: toast-in 0.4s var(--ease) both;
}
.toast--error { border-color: color-mix(in srgb, var(--accent) 45%, #fff); }
.toast.is-leaving { animation: toast-out 0.3s var(--ease) forwards; }
.toast__img { flex: none; width: 58px; height: 58px; padding: 4px; object-fit: contain; background: var(--mist); border-radius: 12px; }
.toast__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; }
.toast--success .toast__icon { background: #14a44d; }
.toast--error .toast__icon { background: var(--accent); }
.toast__icon svg, .toast__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast__body { min-width: 0; flex: 1; align-self: center; }
.toast__title { margin: 0 0 2px; font-size: 0.95rem; font-weight: 800; line-height: 1.3; }
.toast__text { margin: 0; font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toast__title + .toast__text { color: var(--muted); font-weight: 600; }
.toast__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toast__btn { padding: 9px 15px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 0.85rem; font-weight: 700; line-height: 1; text-decoration: none; transition: background 0.2s, color 0.2s; }
.toast__btn:hover { background: var(--ink); color: #fff; }
.toast__btn--primary { background: var(--ink); color: #fff; }
.toast__btn--primary:hover { background: var(--accent); }
.toast__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.toast__close:hover { background: var(--mist); color: var(--ink); }
.toast__close svg { width: 16px; height: 16px; }
.toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--ink); transform-origin: left; animation: toast-bar var(--ms, 6.5s) linear forwards; }
.toast--success .toast__bar { background: #14a44d; }
.toast--error .toast__bar { background: var(--accent); }
.toast:hover .toast__bar { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.97); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toasts { top: 10px; right: 12px; left: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-leaving, .toast__bar { animation: none; } }
