/* ==========================================================================
   Renik — main stylesheet (app layout)
   A web-app shell: fixed sidebar (navigation + category tree), glass app bar
   with a command-palette search, and card-based content on a soft canvas.
   RTL first; logical properties; layouts respond to the content width
   (container queries) so they hold up next to the sidebar.
   ========================================================================== */

/* -------------------------------------------------------------- Tokens */
:root {
	--red: #B5191E;            /* brand red, from the logo */
	--red-600: #9C1519;
	--red-50: #FDEEEE;
	--ink: #16181B;
	--ink-2: #3B3F45;
	--muted: #646A72;
	--muted-2: #9AA0A6;
	--line: #E7E9EC;
	--line-2: #F0F1F3;
	--canvas: #F3F4F6;
	--card: #FFFFFF;
	--dark: #16181B;
	--good: #1F8A4C;
	--warn: #A8670E;
	--gold: #F2B544;

	--r-s: 10px;
	--r: 14px;
	--r-l: 20px;
	--r-xl: 24px;
	--side: 264px;
	--pad: 28px;
	--font: "Estedad", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--lift: 0 16px 30px -18px rgba(16, 18, 20, .3);
	--pop: 0 24px 60px -20px rgba(16, 18, 20, .35), 0 2px 8px rgba(16, 18, 20, .06);

	/* Renik Core plugin reads these. */
	--rnk-accent: var(--red);
	--rnk-ink: var(--ink);
	--rnk-muted: var(--muted);
	--rnk-line: var(--line);
	--rnk-surface: #fff;
	--rnk-good: var(--good);
	--rnk-warn: var(--warn);
	--rnk-radius: var(--r-s);

	/* Aliases used by shop.css. */
	--renik: var(--red);
	--renik-600: var(--red-600);
	--renik-700: #7F1114;
	--renik-50: var(--red-50);
	--iron: var(--ink);
	--iron-2: #24272B;
	--iron-3: #3F444A;
	--steel-50: var(--canvas);
	--steel-100: #ECEEF1;
	--steel-200: var(--line);
	--steel-300: #CFD3D8;
	--steel-500: var(--muted-2);
	--steel-600: var(--muted);
	--steel-700: #4E545A;
	--surface: var(--canvas);
	--lamp: var(--gold);
	--radius: var(--r-s);
	--radius-m: var(--r);
	--radius-l: var(--r-l);
	--radius-xl: var(--r-l);
}

/* -------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
/* The off-canvas sidebar sits outside the viewport when closed; never let it widen the page. */
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font);
	font-size: 14.5px;
	line-height: 1.9;
	font-feature-settings: "ss20"; /* Persian digits from Estedad */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
.renik-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.icon { flex: none; display: inline-block; vertical-align: middle; }
:where(a) { color: inherit; text-decoration: none; }
:where(a):hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.5; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { cursor: pointer; }
:where(input, button, select, textarea) { font: inherit; font-feature-settings: inherit; color: inherit; }
.ltr, bdi.ltr { direction: ltr; unicode-bidi: isolate; font-feature-settings: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 1000; padding: 10px 18px; background: var(--dark); color: #fff; border-radius: var(--r-s); transform: translateY(-200%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; color: #fff; }
.site-main:focus { outline: none; }
.container { width: 100%; max-width: 1480px; margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding-block: 0; }
.section--tight { padding-block: 0 24px; }

/* -------------------------------------------------------------- Buttons + forms */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 8px 20px; border: 1px solid transparent; border-radius: var(--r-s);
	font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2B2F34; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--canvas); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; }
.badge[hidden] { display: none; }
.link { color: var(--red); font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: border-color .15s, color .15s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill--cat { gap: 8px; padding-block: 4px; padding-inline: 4px 14px; }
@media (min-width: 721px) { .hello__chips > li:nth-child(n + 7) { display: none; } }
.pill__img { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--canvas); overflow: hidden; color: var(--muted-2); }
.pill__img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; mix-blend-mode: multiply; }

:where(input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="url"], input[type="password"], input[type="number"], input[type="date"], select, textarea) {
	width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-s);
	background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
:where(textarea) { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); opacity: 1; }
:where(input, select, textarea):focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(181, 25, 30, .12); }
:where(select) {
	padding-inline-end: 36px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316181B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 12px center;
}
html:not([dir="rtl"]) :where(select) { background-position: right 12px center; }
label { font-size: 13.5px; font-weight: 600; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); width: 18px; height: 18px; }

/* -------------------------------------------------------------- App shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.shell__main { min-width: 0; display: flex; flex-direction: column; }
.site-main { flex: 1; width: 100%; max-width: 1480px; margin-inline: auto; padding: 18px var(--pad) 32px; container-type: inline-size; container-name: main; }

/* Sidebar */
.sidebar {
	position: sticky; inset-block-start: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 16px;
	background: #fff; border-inline-end: 1px solid var(--line); scrollbar-width: thin;
}
.admin-bar .sidebar { inset-block-start: 32px; height: calc(100vh - 32px); }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 6px; }
.logo { display: inline-flex; align-items: center; color: var(--red); }
.logo__svg { width: 112px; height: auto; }
.logo__img { max-height: 40px; width: auto; }
.logo:hover { color: var(--red-600); }
.sidebar .sidebar__close { display: none; }
.sidenav ul { list-style: none; display: grid; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color .15s, color .15s; }
.sidenav a:hover { background: var(--canvas); color: var(--ink); }
.sidenav a.is-current { background: var(--dark); color: #fff; }
.sidenav .badge { margin-inline-start: auto; }
.sidebar__label { margin: 4px 12px -6px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.sidecats__list { list-style: none; display: grid; gap: 1px; }
.sidecat__row { display: flex; align-items: center; border-radius: 12px; transition: background-color .15s; }
.sidecat__row:hover { background: var(--canvas); }
.sidecat__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sidecat__img { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--canvas); overflow: hidden; color: var(--muted-2); }
.sidecat__img img { width: 100%; height: 100%; object-fit: contain; padding: 2px; mix-blend-mode: multiply; }
.sidecat__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidecat__n { font-style: normal; font-size: 11px; color: var(--muted-2); }
.sidecat__toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-inline-end: 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.sidecat__toggle:hover { background: #fff; color: var(--ink); }
.sidecat__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sidecat__sub { list-style: none; margin: 2px 0 6px; padding-inline-start: 50px; }
.sidecat__sublink { display: block; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.sidecat__sublink:hover, .sidecat__sublink[aria-current] { color: var(--red); background: var(--red-50); }
.sidecat__link[aria-current] { color: var(--red); }
.sidebar__help { margin-top: auto; display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #1C1F23, #2B2F35); color: #fff; }
.sidebar__help:hover { color: #fff; }
.sidebar__help-label { font-size: 12px; color: #B9C0C8; }
.sidebar__help strong { font-size: 17px; font-weight: 900; }

/* App bar */
.appbar {
	position: sticky; inset-block-start: 0; z-index: 40;
	display: flex; align-items: center; gap: 14px; padding: 12px var(--pad);
	background: rgba(243, 244, 246, .82);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid rgba(16, 18, 20, .05);
	transition: transform .3s var(--ease);
}
.admin-bar .appbar { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .appbar { inset-block-start: 46px; } }
@media (max-width: 600px) { .admin-bar .appbar { inset-block-start: 0; } } /* The admin bar scrolls away here. */
.appbar.is-hidden { transform: none; }
.appbar .appbar__menu, .appbar .appbar__logo, .appbar .appbar__back { display: none; }
html:not([dir="rtl"]) .appbar__back .icon { transform: scaleX(-1); }
[data-cart-target].is-bump .icon { animation: bump .55s var(--ease); }
.fly { position: fixed; z-index: 300; margin: 0; padding: 4px; border-radius: 16px; background: #fff; box-shadow: var(--pop); object-fit: contain; pointer-events: none; will-change: transform; }
@keyframes bump { 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(.9); } }
.appbar__title { min-width: 0; max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 900; }
.cmd {
	flex: 1; text-decoration: none; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 10px;
	height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
	color: var(--muted); font-size: 13.5px; text-align: start; box-shadow: 0 1px 2px rgba(16, 18, 20, .04);
	transition: border-color .15s, box-shadow .15s;
}
.cmd:hover { border-color: #D5D8DD; box-shadow: 0 4px 14px -8px rgba(16, 18, 20, .2); }
.cmd__hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd__kbd, .palette__esc { flex: none; padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--canvas); font: 600 11.5px/1.8 var(--font); color: var(--muted); }
.appbar__actions { display: flex; align-items: center; gap: 6px; }
.appbar__btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
	background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; transition: border-color .15s;
}
.appbar__btn:hover { border-color: var(--ink-2); color: var(--ink); }
.appbar__btn .badge { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; box-shadow: 0 0 0 2px var(--canvas); }
.notice-bar { display: flex; align-items: center; gap: 8px; margin: 14px var(--pad) 0; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.notice-bar .icon { color: var(--red); }

/* Command palette */
.palette { position: fixed; inset: 0; z-index: 200; }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: rgba(16, 18, 20, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.palette__box { position: relative; width: min(680px, calc(100% - 24px)); margin: 9vh auto 0; background: #fff; border-radius: var(--r-l); box-shadow: var(--pop); overflow: hidden; animation: rise .22s var(--ease); }
.palette .search { position: relative; }
.palette .search__input { height: 62px; padding-inline: 52px 110px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; box-shadow: none; }
.palette .search__input::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; inset-inline-start: 18px; inset-block-start: 21px; color: var(--muted); pointer-events: none; }
.palette__esc { position: absolute; inset-inline-end: 16px; inset-block-start: 19px; cursor: pointer; }
.search__clear { position: absolute; inset-inline-end: 62px; inset-block-start: 15px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.search__clear:hover { background: var(--canvas); }
.search__clear[hidden] { display: none; }
.search__panel { max-height: min(62vh, 560px); overflow-y: auto; padding: 8px; }
.search__panel[hidden] { display: none; }
.search__status { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.search__status:empty { display: none; }
.search__group { display: flex; align-items: baseline; justify-content: space-between; padding-inline-end: 10px; }
.search__group-title { padding: 10px 12px 4px; font-size: 12px; font-weight: 800; color: var(--muted-2); }
.search__forget { border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--red); padding: 4px; }
.search__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 10px; list-style: none; }
.search__cats a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.search__cats a:hover, .search__cats a.is-active { border-color: var(--ink); color: var(--ink); background: var(--canvas); }
.search__items { list-style: none; }
.search__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.search__item:hover, .search__item.is-active { background: var(--canvas); color: var(--ink); outline: none; }
.search__thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: var(--canvas); mix-blend-mode: multiply; }
.search__name { font-size: 13.5px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.search__price del { display: none; }
.search__price ins { text-decoration: none; }
.search__all { display: flex; align-items: center; justify-content: center; margin-top: 6px; padding: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; color: var(--red); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }

/* -------------------------------------------------------------- Page blocks */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.block { min-width: 0; }
.block.shelf, .block.brands, .block.journal, .block.projects, .block.faq, .block.entry-content { padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block__head .section-head { flex: 1; margin: 0; }
.block__more { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--red); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head__title { font-size: 17px; font-weight: 900; }
.section-head__link { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }

/* Intro */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.hello__text { min-width: 0; max-width: 46em; }
.hello__title { font-size: clamp(21px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; letter-spacing: -.005em; }
.hello__sub { margin-top: 4px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hello__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; min-width: 0; max-width: 100%; }

/* Bento */
.bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.bento__hero { grid-row: span 2; }
.bento__tile { position: relative; min-height: 0; border-radius: var(--r-xl); overflow: hidden; }
.bento__tile.banner .banner__img { position: absolute; inset: 0; }
.slider { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: 0 22px 44px -28px rgba(16, 18, 20, .45); }
.slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.banner { display: block; height: 100%; overflow: hidden; background: #fff; }
.banner__img { width: 100%; height: 100%; object-fit: cover; }
.slider__arrow { position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .16); opacity: 0; transition: opacity .2s; }
.slider:hover .slider__arrow, .slider__arrow:focus-visible { opacity: 1; }
.slider__arrow--prev { inset-inline-start: 14px; }
.slider__arrow--next { inset-inline-end: 14px; }
html:not([dir="rtl"]) .slider__arrow .icon,
html:not([dir="rtl"]) :is(.section-head__link, .block__more, .features__more, .catsheet__all, .page-numbers, .tile__go, .search__all) .icon { transform: scaleX(-1); }
.slider__dots { position: absolute; inset-block-end: 14px; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.slider__dot::after { content: ""; position: absolute; inset: -12px -3px; }
.slider__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .25s var(--ease), background-color .25s; }
.slider__dot[aria-current="true"] { width: 24px; background: #fff; }
.designed { height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(20px, 4cqi, 48px); }
.designed--red { background: linear-gradient(150deg, #FCEFEF, #F7E1E1); }
.designed--steel { background: linear-gradient(150deg, #F1F3F6, #E5E9EE); }
.designed--green { background: linear-gradient(150deg, #EEF6F1, #E1EEE6); }
.designed__title { font-size: clamp(20px, 2.6cqi, 34px); font-weight: 900; line-height: 1.45; }
.designed__text { margin-block: 10px 20px; max-width: 30em; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.designed__art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 100%; }
.designed__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.designed__art img:first-child { grid-row: span 2; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.tile__title { font-size: 19px; font-weight: 900; line-height: 1.5; }
.tile__text { font-size: 13px; line-height: 1.8; opacity: .82; }
.tile--dark { background: var(--dark); color: #fff; }
.tile--dark:hover { color: #fff; background: #1D2024; }
.steps { display: flex; gap: 6px; margin-top: auto; }
.steps__item { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 11.5px; line-height: 1.6; color: #D7DBE0; }
.steps__item b { display: block; font-size: 15px; color: var(--gold); }
.tile--red { background: var(--red); color: #fff; }
.tile--red:hover { color: #fff; background: var(--red-600); }
.tile__go { margin-top: auto; align-self: flex-start; padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; }
.tile__mark { position: absolute; inset-inline-end: -10px; inset-block-end: -36px; font-size: 160px; font-weight: 900; line-height: 1; opacity: .15; pointer-events: none; }
.tile--steel { background: #fff; border: 1px solid var(--line); }
.tile--light { background: #fff; border: 1px solid var(--line); }
.tile--wide { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-l); }
.tile--wide .tile__icon { color: var(--red); }
.tile--wide .tile__body { flex: 1; min-width: 0; }
.tile--wide .tile__title { font-size: 17px; }
.tile--wide .tile__text { opacity: 1; color: var(--muted); }
.mid-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.banner--wide { aspect-ratio: 16 / 6; border-radius: var(--r-l); }

/* Category cards */
.cat-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; }
.cat-card { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--lift); color: var(--ink); }
.cat-card__img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--canvas); overflow: hidden; }
.cat-card__img img { width: 72%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.cat-card:hover .cat-card__img img { transform: scale(1.05); }
.cat-card__name { padding-inline: 4px; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Segmented control */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: #E8EAED; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg__btn { flex: none; border: 0; background: none; padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #565C63; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 18, 20, .12); }

/* -------------------------------------------------------------- Product cards */
ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
ul.products::before, ul.products::after { content: none; }
ul.products.products--cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.products--rail, .related ul.products, .upsells ul.products, .cross-sells ul.products, .recently-viewed ul.products {
	grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px;
}
ul.products.products--rail::-webkit-scrollbar { display: none; }
/* Rails without arrow buttons (related, upsells, recently viewed): a thin scrollbar for mouse users. */
@media (hover: hover) and (pointer: fine) {
	.related ul.products, .upsells ul.products, .cross-sells ul.products, .recently-viewed ul.products { scrollbar-width: thin; padding-bottom: 10px; }
}
ul.products.products--rail > li { scroll-snap-align: start; }

.card { container: card / inline-size; position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 10px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--lift); } }
.block .products--rail .card { border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--canvas); }
.card__img { position: absolute; inset: 0; display: block; }
.card__img img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.card__img-alt { opacity: 0; }
@media (hover: hover) {
	.card:hover .card__img:has(.card__img-alt) .card__img-main { opacity: 0; }
	.card:hover .card__img-alt { opacity: 1; }
	.card:hover .card__img-main:only-child { transform: scale(1.05); }
}
.card__badges { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.onsale, .card__badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.8; }
.card__badge--out { background: #fff; color: var(--muted); }
.card__tools { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.card__buy { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; z-index: 3; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 4px 0; }
.card__brand { min-height: 1.6em; font-size: 11px; font-weight: 700; color: var(--muted-2); line-height: 1.6; }
.card__title, .post-card__title, .project-card__title, .article__title, .page-head__title, .product-title__name, .hello__title { overflow-wrap: anywhere; }
.card__title { margin: 2px 0 0; font-size: 13px; font-weight: 600; line-height: 1.85; min-height: calc(2em * 1.85); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__stock { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--red); }
.card__foot { margin-top: auto; padding-top: 8px; }
.card__price { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.card__off { flex: none; margin-top: 2px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.8; }
.card__amount { margin-inline-start: auto; text-align: end; font-size: 15.5px; font-weight: 900; line-height: 1.5; }
.card__amount del { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.card__amount ins { text-decoration: none; }
/* Narrow cards (2 columns on a 320px phone): the discount pill and price stack. */
@container card (max-width: 175px) {
	.card__price { flex-wrap: wrap; }
	.card__amount { font-size: 13.5px; }
	.card__amount del { font-size: 10.5px; }
	.card__title { font-size: 12.5px; }
}
.woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 600; color: var(--muted); margin-inline-start: 2px; }
.card__amount .rnk-ask-price-label { font-size: 13px; color: var(--warn); }
.card__cta, .card .rnk-ask-price {
	position: relative; z-index: 2; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 12px; background: var(--dark); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
	transition: background-color .15s, transform .1s;
}
.card__cta:hover { background: var(--red); color: #fff; }
.card__cta:active { transform: scale(.94); }
.card__cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card__cta .card__cta-done { display: none; }
.card__cta.loading .icon { opacity: 0; }
.card__cta.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.card__cta.added { background: var(--good); }
.card__cta.added .icon:not(.card__cta-done) { display: none; }
.card__cta.added .card__cta-done { display: inline-block; animation: pop .35s var(--ease); }
.card .added_to_cart { display: none; }
.card .rnk-ask-price { width: auto; padding: 0 12px; font-size: 12px; font-weight: 800; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.card .rnk-ask-price:hover { color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: none; } }

/* Renik Core toggles on cards */
.card__tools .rnk-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--muted); box-shadow: 0 2px 8px rgba(16, 18, 20, .1); transition: color .15s; }
.card__tools .rnk-toggle:hover { color: var(--ink); }
.card__tools .rnk-toggle svg { width: 16px; height: 16px; }
@media (hover: hover) {
	.card__tools .rnk-toggle--compare { opacity: 0; transition: opacity .2s; }
	.card:hover .card__tools .rnk-toggle--compare, .card__tools .rnk-toggle--compare[aria-pressed="true"], .card__tools .rnk-toggle--compare:focus-visible { opacity: 1; }
}
.rnk-toggle.is-active, .rnk-toggle[aria-pressed="true"] { color: var(--red); background: var(--red-50); }
.rnk-toggle--wishlist.is-active svg, .rnk-toggle--wishlist[aria-pressed="true"] svg, .rnk-action--wishlist.is-active svg, .rnk-action--wishlist[aria-pressed="true"] svg { fill: currentColor; }
[data-rnk-wishlist].is-popping svg { animation: pop .4s var(--ease); }

.rail-arrows { display: flex; gap: 6px; flex: none; }
.rail-arrows__btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, opacity .15s; }
.rail-arrows__btn:hover { border-color: var(--ink); }
.rail-arrows__btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.rail-arrows[hidden] { display: none; }
html:not([dir="rtl"]) .rail-arrows__btn .icon { transform: scaleX(-1); }

/* -------------------------------------------------------------- Brands, projects, journal, FAQ */
.brand-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; }
.brand-wall__item { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 86px; height: 100%; padding: 12px; border-radius: var(--r); background: var(--canvas); text-align: center; color: var(--ink); transition: background-color .15s, box-shadow .15s; }
.brand-wall__item:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift); color: var(--ink); }
.brand-wall__name { font-size: 15.5px; font-weight: 900; line-height: 1.4; }
.brand-wall__logo { max-height: 42px; width: auto; filter: grayscale(1); opacity: .8; }
.brand-wall__item:hover .brand-wall__logo { filter: none; opacity: 1; }
.brand-wall__count { font-size: 11.5px; color: var(--muted); }
.project-grid, .post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card__link { display: block; color: var(--ink); }
.project-card__media, .post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--canvas); }
.project-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card__link:hover img, .post-card:hover .post-card__media img { transform: scale(1.04); }
.project-card__body { display: grid; gap: 2px; padding-top: 10px; }
.project-card__place { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.project-card__title { font-size: 14.5px; font-weight: 800; line-height: 1.7; }
.post-card { position: relative; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted-2); background: linear-gradient(150deg, #F1F3F6, #E5E9EE); }
.post-card .post-meta { margin-top: 10px; }
.post-card__title { margin-top: 2px; font-size: 14px; font-weight: 800; line-height: 1.8; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--red); }
.post-card__excerpt { margin-top: 4px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.post-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.faq .section-head__title { margin-bottom: 10px; }
.accordion { border-top: 1px solid var(--line-2); }
.accordion__item { border-bottom: 1px solid var(--line-2); }
.accordion__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; list-style: none; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q:hover { color: var(--red); }
.accordion__icon { transition: transform .25s var(--ease); color: var(--muted); }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); color: var(--red); }
.accordion__a { padding: 0 2px 16px; color: var(--ink-2); font-size: 14px; }
.help-card { padding: 22px; border-radius: var(--r); background: var(--canvas); }
.help-card__icon { color: var(--red); }
.help-card__title { margin-top: 8px; font-size: 16px; }
.help-card__text { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.help-card__phone { display: inline-block; margin-top: 10px; font-size: 22px; font-weight: 900; color: var(--ink); }
.seo-text { position: relative; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.seo-text__body { max-height: 160px; overflow: hidden; -webkit-mask: linear-gradient(#000 50%, transparent); mask: linear-gradient(#000 50%, transparent); color: var(--ink-2); font-size: 14px; }
.seo-text.is-expanded .seo-text__body { max-height: none; -webkit-mask: none; mask: none; }
.seo-text__toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 0; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--red); }
.seo-text.is-expanded .seo-text__toggle .icon { transform: rotate(180deg); }
.seo-text__toggle [hidden] { display: none; }
.socials { display: flex; gap: 8px; list-style: none; margin-top: 14px; }
.socials__link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--canvas); color: var(--ink-2); transition: background-color .15s, color .15s; }
.socials__link:hover { background: var(--red); color: #fff; }

/* -------------------------------------------------------------- Footer */
.site-footer { padding: 0 var(--pad) 22px; width: 100%; max-width: calc(1480px); margin-inline: auto; font-size: 13.5px; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin-bottom: 12px; }
.service { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.service__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red); }
.service__title { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.service__text { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }
.site-footer__card { padding: 24px 24px 0; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; gap: 28px; }
.site-footer__about { margin-top: 10px; max-width: 32em; line-height: 2; }
.site-footer__title { margin-bottom: 8px; font-size: 14px; font-weight: 900; color: var(--ink); }
.site-footer__links { list-style: none; display: grid; }
.site-footer__links a { line-height: 2.1; }
.site-footer a:hover { color: var(--red); }
.logo--footer .logo__svg { width: 104px; }
.contact-list { list-style: none; display: grid; gap: 6px; }
.contact-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.8; }
.contact-list .icon { margin-top: 3px; color: var(--muted-2); }
.site-footer__trust { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.site-footer__trust a, .site-footer__trust img { display: block; max-width: 108px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 22px; padding-block: 14px; border-top: 1px solid var(--line-2); font-size: 12px; }

/* -------------------------------------------------------------- Drawers (cart) */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16, 18, 20, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
	--off: calc(100% + 24px); position: absolute; inset-block: 12px; z-index: 1; display: flex; flex-direction: column;
	width: min(420px, calc(100vw - 24px)); background: #fff; border-radius: var(--r-l); box-shadow: var(--pop); overflow: hidden;
	transform: translateX(var(--off)); transition: transform .32s var(--ease);
}
.drawer--end .drawer__panel { inset-inline-end: 12px; --off: calc(-100% - 24px); }
html:not([dir="rtl"]) .drawer--end .drawer__panel { --off: calc(100% + 24px); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 16px; font-weight: 900; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
body.has-drawer { overflow: hidden; }

/* -------------------------------------------------------------- Dock (phones), toasts */
.dock { display: none; }
.sidebar-scrim { display: none; }
.toasts { position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 210; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--pop); pointer-events: auto; animation: rise .3s var(--ease); }
.toast .icon { color: #7FD3A0; }
.toast__text { flex: 1; }
.toast__action { flex: none; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--gold); white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }

/* -------------------------------------------------------------- Page heads + content */
.page-head { padding-block: 2px 14px; }
.page-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.page-head__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.5; }
.page-head__count { font-size: 13px; font-weight: 700; color: var(--muted); }
.page-head__count:empty { display: none; }
.page-head__desc { margin-top: 4px; max-width: 60em; color: var(--muted); font-size: 14px; }
.page-head--compact { padding-bottom: 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs__sep { display: inline-flex; color: var(--muted-2); }
html:not([dir="rtl"]) .breadcrumbs__sep .icon { transform: scaleX(-1); }
.entry-content { font-size: 15.5px; line-height: 2.05; color: var(--ink-2); }
.container--narrow > .entry-content, .article .entry-content { padding: clamp(18px, 3cqi, 32px); border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 21px; color: var(--ink); }
.entry-content h3 { margin-top: 1.5em; font-size: 18px; color: var(--ink); }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote { margin-inline: 0; padding: 4px 18px; border-inline-start: 3px solid var(--red); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.article__head { padding-block: 0 14px; }
.article__title { font-size: clamp(22px, 3cqi, 34px); font-weight: 900; line-height: 1.5; }
.article__head .post-meta { margin-top: 6px; }
.article__cover { margin-block: 0 18px; }
.article__cover img { width: 100%; border-radius: var(--r-l); }
.project__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0 0; }
.project__facts dt { font-size: 12px; color: var(--muted); }
.project__facts dd { margin: 0; font-weight: 800; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 20px; }
.tag-list a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 20px; }
.post-nav__link { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.post-nav__link--next { text-align: end; grid-column: 2; }
.post-nav__label { font-size: 12px; color: var(--muted); }
.post-nav__title { font-weight: 700; line-height: 1.7; }
.comments { margin-top: 20px; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.comments__title, .comment-reply-title { font-size: 18px; margin-bottom: 14px; }
.comment-list { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.comment-list .children { list-style: none; margin-top: 12px; padding-inline-start: 24px; }
.comment-body { padding: 14px 16px; border-radius: var(--r); background: var(--canvas); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.comment-form p { display: grid; gap: 6px; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--muted); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-inline: auto; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--ink-2); border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.empty-state > .icon { color: var(--steel-300); }
.empty-state__title { font-size: 18px; color: var(--ink); }
.empty-state .btn { margin-top: 8px; }
.notfound { text-align: center; padding-block: 48px; }
.notfound__code { display: block; font-size: 96px; font-weight: 900; line-height: 1; color: var(--steel-300); }
.notfound__title { margin-top: 12px; font-size: clamp(20px, 2.4vw, 28px); }
.notfound__text { margin: 8px auto 20px; max-width: 32em; color: var(--ink-2); }
.notfound__search { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 16px; }
.az-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.az-index a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; }
.az-group { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 18px; margin-bottom: 10px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.az-group__letter { font-size: 24px; font-weight: 900; color: var(--red); line-height: 1.2; }
.az-group__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 24px; list-style: none; }
.az-group__list a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-weight: 600; border-bottom: 1px dashed var(--line); }
.az-group__count { font-size: 12px; color: var(--muted); }
.nav-links, .page-numbers:is(ul) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.pagination, .navigation.pagination { margin-top: 24px; }
.page-numbers:not(ul) { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14px; }
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--dark); border-color: var(--dark); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* -------------------------------------------------------------- Content-width layouts */
@container main (max-width: 1000px) and (min-width: 781px) {
	/* Ten picks in four columns would leave two orphans: show eight. */
	.block__panel ul.products--cards > li:nth-child(n + 9) { display: none; }
}
@container main (max-width: 780px) and (min-width: 541px) {
	.block__panel ul.products--cards > li:nth-child(n + 10) { display: none; }
}
@container main (max-width: 540px) {
	.block__panel ul.products--cards > li:nth-child(n + 7) { display: none; }
}
@container main (max-width: 1000px) {
	ul.products.products--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.post-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	ul.products.products--rail, .related ul.products, .upsells ul.products, .cross-sells ul.products, .recently-viewed ul.products { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
	.cat-cards, .brand-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cat-cards > li:nth-child(n + 5) { display: none; }
	.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container main (max-width: 780px) {
	.bento { grid-template-columns: 1fr 1fr; }
	.bento__hero { grid-column: 1 / -1; grid-row: auto; }
	.bento__tile { aspect-ratio: auto; min-height: 168px; }
	.bento__tile.banner { aspect-ratio: 16 / 10; min-height: 0; }
	.tile { padding: 16px; }
	.tile__title { font-size: 15px; }
	.bento__tile .tile__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tile__go { padding: 6px 14px; font-size: 12.5px; }
	.steps { display: none; }
	ul.products, ul.products.products--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	ul.products.products--rail, .related ul.products, .upsells ul.products, .cross-sells ul.products, .recently-viewed ul.products { grid-auto-columns: calc((100% - 2 * 10px) / 3.2); gap: 10px; }
	.cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cat-cards > li:nth-child(n + 5) { display: block; }
	.brand-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mid-banners { grid-template-columns: 1fr; }
	.faq__grid { grid-template-columns: 1fr; }
	.project-grid, .post-grid, .post-grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.designed { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
@container main (max-width: 540px) {
	ul.products, ul.products.products--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ul.products.products--rail, .related ul.products, .upsells ul.products, .cross-sells ul.products, .recently-viewed ul.products { grid-auto-columns: 46%; }
	.card { padding: 8px 8px 12px; }
	.card__amount { font-size: 14.5px; }
	.hello__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
	.project-grid { grid-template-columns: 1fr; }
	.designed { grid-template-columns: 1fr; }
	.designed__art { display: none; }
	.tile--wide { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 14px; padding: 18px; }
	.tile--wide > .btn { grid-column: 1 / -1; justify-content: center; }
}

/* -------------------------------------------------------------- Viewport breakpoints (shell) */
@media (max-width: 1100px) {
	.shell { grid-template-columns: minmax(0, 1fr); }
	.sidebar {
		position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 150; width: min(300px, 86vw); height: 100%;
		transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; box-shadow: var(--pop);
	}
	html:not([dir="rtl"]) .sidebar { transform: translateX(-105%); }
	body.sidebar-open .sidebar { transform: none; visibility: visible; transition: transform .3s var(--ease); }
	.admin-bar .sidebar { inset-block-start: 0; height: 100%; }
	.sidebar .sidebar__close { display: inline-flex; }
	.sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 140; background: rgba(16, 18, 20, .38); }
	.sidebar-scrim[hidden] { display: none; }
	.appbar .appbar__menu, .appbar .appbar__logo { display: inline-flex; }
	.appbar__title { display: none; }
	.appbar__logo .logo__svg { width: 96px; }
}
@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	:root { --pad: 14px; }
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.appbar { gap: 8px; padding-block: 8px; flex-wrap: wrap; }
	.appbar .appbar__wishlist, .appbar .appbar__account { display: none; }
	.cmd { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
	.cmd__kbd { display: none; }
	.notice-bar { margin-top: 10px; font-size: 12px; }
	.site-main { padding-top: 12px; }
	.page { gap: 16px; }
	.services { grid-template-columns: 1fr 1fr; gap: 8px; }
	.service { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.site-footer__card { padding: 18px 16px 0; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
	.site-footer__brand { grid-column: 1 / -1; }
	.palette__box { width: 100%; height: 100%; margin: 0; border-radius: 0; }
	.palette .search__panel { max-height: calc(100vh - 64px); }
	.dock {
		position: fixed; inset-inline: 12px; inset-block-end: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
		display: flex; justify-content: space-around; padding: 6px; border-radius: 22px;
		background: rgba(22, 24, 27, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
	}
	.dock__item { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 56px; padding: 6px 8px; border: 0; border-radius: 16px; background: none; color: #C5CAD0; font-size: 10.5px; font-weight: 700; line-height: 1.5; }
	.dock__item.is-current { background: #fff; color: var(--ink); }
	.dock__item .badge { position: absolute; inset-block-start: 2px; inset-inline-end: 10px; box-shadow: 0 0 0 2px #16181B; }
	.toasts { inset-block-end: calc(92px + env(safe-area-inset-bottom)); inset-inline: 16px; width: auto; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.az-group { grid-template-columns: 1fr; gap: 6px; }
}
/* -------------------------------------------------------------- Without JavaScript
   Panel triggers are links to #palette / #sidebar / #drawer-cats: show the target. */
html:not(.js) .palette:target, html:not(.js) .drawer:target { display: block; }
html:not(.js) .drawer:target .drawer__panel { transform: none; }
html:not(.js) .drawer:target .drawer__scrim { opacity: 1; }
html:not(.js) .sidebar:target { transform: none; visibility: visible; }

/* -------------------------------------------------------------- Phone app layer (≤720px)
   The phone gets its own app: a bar that steps aside while you read, a floating dock,
   and everything secondary rising from the bottom as a sheet you can drag away. */
@media (min-width: 721px) {
	.catsheet { display: none !important; }
}
@media (max-width: 720px) {
	/* App bar: back (inner pages) or menu, centred logo, cart; search pill underneath. */
	.appbar { padding-top: calc(8px + env(safe-area-inset-top)); }
	.appbar.is-hidden { transform: translateY(-100%); }
	.appbar .appbar__logo { flex: 1; justify-content: center; }
	body:not(.home) .appbar .appbar__back { display: inline-flex; }
	body:not(.home) .appbar .appbar__menu { display: none; }
	.appbar__actions { margin-inline-start: 0; }

	/* Dock */
	.dock { inset-inline: 10px; padding: 6px; border-radius: 24px; }
	.dock__item { transition: background-color .2s, color .2s, transform .12s; }
	.dock__item:active { transform: scale(.9); }
	.dock__item[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }

	/* Bottom sheets (cart, categories). */
	.drawer--sheet .drawer__panel {
		inset: auto 0 0 0; width: 100%; max-height: calc(100% - 52px - env(safe-area-inset-top));
		border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom);
		transform: translateY(100%); transition: transform .42s cubic-bezier(.2, .85, .25, 1);
	}
	.drawer--sheet.is-open .drawer__panel { transform: none; }
	.drawer--sheet .drawer__panel.is-dragging { transition: none; }
	.drawer--sheet .drawer__head { position: relative; padding: 24px 16px 10px; border-bottom: 0; touch-action: none; }
	.drawer--sheet .drawer__head::before { content: ""; position: absolute; inset-block-start: 9px; inset-inline-start: calc(50% - 20px); width: 40px; height: 5px; border-radius: 99px; background: #D5D8DD; }
	.drawer--sheet .drawer__head .appbar__btn { min-width: 36px; height: 36px; border: 0; background: var(--canvas); border-radius: 50%; }
	.drawer--sheet .drawer__body { border-top: 1px solid var(--line-2); }

	/* Category browser */
	.catsheet .drawer__panel { height: calc(100% - 44px - env(safe-area-inset-top)); }
	.catsheet__quick { flex: none; display: flex; gap: 8px; list-style: none; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
	.catsheet__quick::-webkit-scrollbar { display: none; }
	.catsheet__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--canvas); font-size: 12.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
	.catsheet__chip .icon { color: var(--red); }
	.catsheet__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 94px minmax(0, 1fr); border-top: 1px solid var(--line-2); }
	.catsheet__rail { overflow-y: auto; overscroll-behavior: contain; padding-block: 4px 32px; background: var(--canvas); scrollbar-width: none; }
	.catsheet__rail::-webkit-scrollbar { display: none; }
	.catsheet__tab { position: relative; display: grid; justify-items: center; gap: 5px; width: 100%; padding: 11px 6px; border: 0; background: none; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--muted); text-align: center; transition: background-color .2s, color .2s; }
	.catsheet__tab .sidecat__img { width: 46px; height: 46px; border-radius: 15px; background: #fff; transition: transform .25s var(--ease); }
	.catsheet__tab[aria-selected="true"] { background: #fff; color: var(--ink); }
	.catsheet__tab[aria-selected="true"]::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--red); }
	.catsheet__tab[aria-selected="true"] .sidecat__img { transform: scale(1.06); box-shadow: 0 6px 14px -8px rgba(16, 18, 20, .35); }
	.catsheet__pane { overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 40px; animation: fade .25s var(--ease); }
	.catsheet__all { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-radius: 16px; background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 800; }
	.catsheet__all:hover { color: #fff; }
	.catsheet__all em { margin-inline-start: auto; font-style: normal; font-size: 11.5px; font-weight: 600; color: #B9C0C8; }
	.catsheet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; margin-top: 14px; list-style: none; }
	.catsheet__item { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.6; text-align: center; color: var(--ink-2); }
	.catsheet__item .sidecat__img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; }
	.catsheet__item .sidecat__img img { padding: 12%; }
	.catsheet__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

	/* Home: stories row of categories. */
	.hello__title { font-size: 20px; }
	.hello__sub { font-size: 13px; }
	.hello__chips { gap: 4px; width: calc(100% + 2 * var(--pad)); max-width: none; margin-inline: calc(var(--pad) * -1); padding: 6px calc(var(--pad) - 2px) 2px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
	/* One-line breadcrumbs that scroll; the announcement only on the home screen. */
	.breadcrumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
	.breadcrumbs::-webkit-scrollbar { display: none; }
	body:not(.home) .notice-bar { display: none; }
	.hello__chips > li { scroll-snap-align: start; }
	.pill--cat { flex-direction: column; gap: 7px; width: 76px; padding: 0; border: 0; background: none; font-size: 11px; line-height: 1.5; text-align: center; white-space: normal; }
	.pill--cat .pill__img { width: 62px; height: 62px; background: #fff; outline: 2px solid var(--red); outline-offset: 3px; }
	.pill--cat .pill__img img { padding: 8px; }
	.pill__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.block.shelf, .block.brands, .block.journal, .block.projects, .block.faq, .block.entry-content { padding: 14px 12px 12px; border-radius: 22px; }
	.slider, .bento__tile { border-radius: 22px; }

	/* Touch: answer every press. */
	.card, .cat-card, .pill, .catsheet__item, .catsheet__chip, .brand-wall__item { transition: transform .12s var(--ease); }
	.card:active, .cat-card:active, .catsheet__item:active, .brand-wall__item:active { transform: scale(.97); }
	.pill:active, .catsheet__chip:active, .btn:active { transform: scale(.95); }
	.toasts { inset-block-end: calc(96px + env(safe-area-inset-bottom)); }
	.single-product .toasts { inset-block-end: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1101px) and (max-width: 1300px) { :root { --side: 236px; --pad: 22px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
