/* ==========================================================================
   ARTMART – main stylesheet
   Ý tưởng: tường gallery (xám lạnh), ray nhôm, dây cáp mảnh, chấm đỏ "đã chọn".
   ========================================================================== */

:root {
	--wall: #eceef1;
	--wall-2: #e1e5e9;
	--paper: #ffffff;
	--ink: #1b2330;
	--ink-2: #4b5565;
	--ink-3: #7a8492;
	--rail: #a9b1ba;
	--rail-hi: #d7dce1;
	--line: #d8dce1;
	--dot: #d8261c;
	--dot-ink: #b01e16;
	--zalo: #0068ff;
	--ok: #1f7a4d;

	--f-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
	--fs-2xl: clamp(2.1rem, 1.3rem + 3.4vw, 4.25rem);

	--r-sm: 4px;
	--r: 8px;
	--r-lg: 14px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--shadow-lift: 0 1px 2px rgba(27, 35, 48, 0.06), 0 8px 24px -12px rgba(27, 35, 48, 0.18);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dot-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--zalo); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ink); color: #fff; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: calc(760px + var(--gutter) * 2); }
.site-main { min-height: 50vh; outline: none; }
.icon { width: 20px; height: 20px; flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1.5px solid transparent;
	border-radius: var(--r);
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	font-size: var(--fs-base);
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover, .button:hover { color: #fff; background: #2b3647; }
.btn:active, .button:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: var(--fs-md); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: var(--fs-sm); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--zalo { background: var(--zalo); }
.btn--zalo:hover { background: #0057d6; }
.btn--call { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--call:hover { background: var(--wall); color: var(--ink); border-color: var(--rail); }
.btn--call .icon { color: var(--ok); }
.btn--dot { background: var(--dot); }
.btn--dot:hover { background: var(--dot-ink); }
.btn--icon { width: 46px; padding: 0; }
.btn.loading, .button.loading { opacity: 0.7; pointer-events: none; }
.btn.added::after, .button.added::after { content: ""; width: 14px; height: 8px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-2px); }
.added_to_cart { display: none !important; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--r);
	background: transparent;
	color: var(--ink);
	text-decoration: none;
}
.icon-btn:hover { background: var(--wall); color: var(--ink); }
.icon-btn .icon { width: 22px; height: 22px; }

.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btns--stack { flex-direction: column; }
.contact-btns--stack .btn, .contact-btns--wide .btn { width: 100%; }
.contact-btns--wide { display: grid; grid-template-columns: 1fr 1fr; }
.contact-btns--inline { margin-top: 12px; }
.contact-btns--inline .btn { flex: 1 1 180px; }
.contact-btns--light .btn--call { background: #fff; border-color: #fff; }

.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-more .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }

/* Topbar & header ---------------------------------------------------------- */
.topbar { background: var(--ink); color: #c9d0d8; font-size: var(--fs-xs); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__notes { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; }
.topbar__notes li { position: relative; }
.topbar__notes li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--rail); }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.topbar__phone .icon { width: 14px; height: 14px; }
@media (max-width: 720px) {
	.topbar__notes li:not(:first-child) { display: none; }
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(27, 35, 48, 0.5); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header__menu { display: none; margin-left: -10px; }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.brand { margin: 0; line-height: 1; }
.brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__link:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; }
.custom-logo-link img { max-height: 48px; width: auto; }

.primary-nav { margin-left: 12px; }
.primary-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--r);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a { background: var(--wall); color: var(--ink); }
.primary-nav .menu-item-has-children > a { padding-right: 26px; }
.primary-nav .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 11px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.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: 9px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: var(--fs-sm); }
.primary-nav .sub-menu a:hover { background: var(--wall); color: var(--ink); }

.header-phone { display: grid; padding: 4px 12px; text-decoration: none; line-height: 1.25; border-left: 1px solid var(--line); margin-left: 6px; }
.header-phone__label { font-size: var(--fs-xs); color: var(--ink-3); }
.header-phone__num { font-weight: 700; font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 1320px) { .header-phone__label { display: none; } .primary-nav .menu > li > a { padding-inline: 9px; } }
.header-phone:hover .header-phone__num { color: var(--dot-ink); }

.cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--dot);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	transition: transform 0.25s var(--ease);
}
.cart-count.is-empty { background: var(--rail); }
.cart-count.is-bump { animation: am-bump 0.5s var(--ease); }
@keyframes am-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding: 14px 0; }
.search-panel[hidden] { display: none; }
.search-form { position: relative; display: flex; gap: 8px; align-items: center; }
.search-form > .icon { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 44px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); }
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }

@media (max-width: 1180px) {
	.primary-nav { display: none; }
	.site-header__menu { display: inline-grid; }
	.header-phone__label { display: none; }
}
@media (max-width: 720px) {
	:root { --header-h: 60px; }
	.header-phone { display: none; }
	.brand__name { font-size: 1.3rem; }
	.brand__mark { width: 30px; height: 30px; }
	.site-header__inner { gap: 8px; }
	.site-header .cart-btn { display: none; }
}

/* Drawers ------------------------------------------------------------------ */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(27, 35, 48, 0.45); opacity: 0; transition: opacity 0.25s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(420px, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--paper);
	transition: transform 0.32s var(--ease);
	overflow: hidden;
}
.drawer--nav .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer--cart .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }
.drawer__nav { flex: 1; overflow-y: auto; padding: 10px 12px; }
.drawer__nav .menu, .drawer__nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__nav .menu a { display: block; padding: 13px 10px; border-bottom: 1px solid var(--wall-2); font-weight: 600; text-decoration: none; font-size: var(--fs-md); }
.drawer__nav .sub-menu a { padding-left: 26px; font-weight: 500; font-size: var(--fs-base); color: var(--ink-2); }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--wall); }
.drawer__hours { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.drawer__hours .icon { width: 16px; height: 16px; }
body.has-drawer { overflow: hidden; }

/* Mini cart in drawer */
.drawer-cart { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-cart__content { display: flex; flex-direction: column; flex: 1; padding: 8px 20px 20px; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	padding: 14px 28px 14px 0;
	border-bottom: 1px solid var(--wall-2);
	font-size: var(--fs-sm);
}
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 600; text-decoration: none; }
.woocommerce-mini-cart-item img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; background: var(--wall); border-radius: var(--r-sm); }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--ink-2); }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; color: var(--ink-3); font-size: 18px; }
.woocommerce-mini-cart-item .remove:hover { background: var(--wall); color: var(--dot); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 18px 0 12px; font-size: var(--fs-md); }
.woocommerce-mini-cart__total strong { font-weight: 600; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--ink); border-color: var(--ink); }
.woocommerce-mini-cart__buttons .checkout { background: var(--dot); }
.woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--ink-2); }

/* Hero ---------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 70% at 72% -10%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, var(--wall) 0%, var(--wall-2) 100%);
	border-bottom: 1px solid var(--line);
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	min-height: clamp(460px, 62vh, 600px);
	padding-block: clamp(40px, 6vw, 72px);
}
.hero__title {
	font-size: var(--fs-2xl);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
	margin-bottom: 0.45em;
	max-width: 15ch;
	text-wrap: balance;
}
.hero__text { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__call { margin: 16px 0 0; color: var(--ink-2); }
.hero__call a { font-weight: 700; color: var(--ink); }

.hero__wall { position: relative; height: clamp(360px, 46vw, 520px); }
.rail {
	position: relative;
	height: 12px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--rail-hi) 0%, #f4f6f8 30%, var(--rail) 60%, #8f98a2 100%);
	box-shadow: 0 2px 3px rgba(27, 35, 48, 0.18);
}
.rail--hero { position: absolute; left: 2%; right: 0; top: 6%; }
.rail__cap { position: absolute; left: -2px; top: -2px; width: 8px; height: 16px; border-radius: 2px; background: #7d8792; }
.rail__cap--end { left: auto; right: -2px; }

.hang { position: absolute; margin: 0; transform-origin: 50% 0; top: calc(6% + 12px); }
.hang__cable { position: absolute; top: 0; width: 1px; background: linear-gradient(180deg, #8e97a1, #5d6672); transform-origin: 50% 0; }
.hang__frame {
	position: absolute;
	left: 0;
	display: block;
	padding: 6%;
	background: #fbfbfa;
	border: 5px solid var(--ink);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 30px -18px rgba(27, 35, 48, 0.55), 0 4px 8px -4px rgba(27, 35, 48, 0.25);
}
.hang__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

.hang--1 { left: 4%; width: 44%; animation: am-drop 1.4s var(--ease) both; }
.hang--1 .hang__cable { height: 70px; }
.hang--1 .hang__cable--l { left: 30%; transform: rotate(10deg); }
.hang--1 .hang__cable--r { right: 30%; transform: rotate(-10deg); }
.hang--1 .hang__frame { top: 66px; width: 100%; }

.hang--2 { left: 54%; width: 34%; z-index: 2; animation: am-drop 1.5s var(--ease) 0.15s both; }
.hang--2 .hang__cable { height: 40px; }
.hang--2 .hang__cable--l { left: 25%; }
.hang--2 .hang__cable--r { right: 25%; }
.hang--2 .hang__frame { top: 36px; width: 100%; border-width: 4px; }
.hang--2 .hang__frame img { aspect-ratio: 4 / 3; }

/* Khung thứ ba treo nối tiếp trên cùng hai dây của khung thứ hai (hệ treo nhiều tầng). */
.hang--3 { left: 58%; width: 26%; z-index: 1; animation: am-drop 1.6s var(--ease) 0.3s both; }
.hang--3 .hang__cable { height: 252px; }
.hang--3 .hang__cable--l { left: 17.3%; }
.hang--3 .hang__cable--r { right: 17.3%; }
.hang--3 .hang__frame { top: 250px; width: 100%; border-width: 4px; padding: 8%; }
.hang--3 .hang__frame::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px #fbfbfa; }

@keyframes am-drop {
	0% { opacity: 0; transform: translateY(-26px) rotate(3.2deg); }
	35% { opacity: 1; transform: translateY(0) rotate(-2.2deg); }
	55% { transform: rotate(1.3deg); }
	72% { transform: rotate(-0.6deg); }
	86% { transform: rotate(0.25deg); }
	100% { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 8px; }
	.hero__title { max-width: 18ch; }
	.hero__wall { height: 330px; margin-inline: calc(var(--gutter) * -0.25); }
	.hang--1 { width: 46%; }
	.hang--2 { left: 56%; width: 38%; }
	.hang--3 { display: none; }
}
@media (max-width: 480px) {
	.hero__wall { height: 260px; }
	.hang--1 .hang__cable { height: 44px; }
	.hang--1 .hang__frame { top: 40px; border-width: 4px; }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* Assurance strip */
.assure { background: var(--paper); border-bottom: 1px solid var(--line); }
.assure__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.assure__item { display: flex; gap: 12px; align-items: flex-start; padding: 22px 18px; }
.assure__item + .assure__item { border-left: 1px solid var(--line); }
.assure__item .icon { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.assure__item p { margin: 0; display: grid; line-height: 1.4; }
.assure__item strong { font-weight: 700; }
.assure__item span { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 900px) {
	.assure__list { grid-template-columns: 1fr 1fr; padding-inline: 0; }
	.assure__item:nth-child(3) { border-left: 0; }
	.assure__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
	.assure__item { padding: 16px 14px; flex-direction: column; gap: 8px; }
}

/* Sections ------------------------------------------------------------------ */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.section__head--stack { display: block; max-width: 760px; }
.section__title { font-size: var(--fs-xl); margin: 0; text-wrap: balance; }
.section__lead { margin: 12px 0 0; color: var(--ink-2); font-size: var(--fs-md); max-width: 60ch; }

/* Category panels */
.cats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.cat-panel {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 280px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	background: var(--paper);
	transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.cat-panel:hover { border-color: var(--rail); box-shadow: var(--shadow-lift); color: var(--ink); }
.cat-panel__media { background: var(--wall); }
.cat-panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-panel:hover .cat-panel__media img { transform: scale(1.04); }
.cat-panel__body { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.4vw, 28px); }
.cat-panel__count { font-size: var(--fs-sm); color: var(--ink-3); }
.cat-panel__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.cat-panel__desc { color: var(--ink-2); font-size: var(--fs-sm); }
.cat-panel__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cat-panel__go .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.cat-panel:hover .cat-panel__go .icon { transform: translateX(4px); }
@media (max-width: 900px) { .cats__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
	.cat-panel { grid-template-columns: 1fr; min-height: 0; }
	.cat-panel__media { aspect-ratio: 16 / 9; }
}

/* Systems */
.systems { background: var(--wall); }
.systems__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 20px); }
.system {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 14px 20px;
	background: var(--paper);
	border-radius: var(--r);
	text-decoration: none;
	color: var(--ink);
	border: 1px solid transparent;
	transition: border-color 0.2s var(--ease);
}
.system:hover { border-color: var(--ink); color: var(--ink); }
.system__fig { display: block; margin-bottom: 8px; border-radius: var(--r-sm); overflow: hidden; }
.system__fig svg { width: 100%; height: auto; }
.system__fig .s-rail { fill: var(--rail); }
.system__fig .s-ceil { fill: #cfd5db; }
.system__fig .s-cable { stroke: #5d6672; stroke-width: 1.2; fill: none; }
.system__fig .s-frame { fill: #fbfbfa; stroke: var(--ink); stroke-width: 4; }
.system__fig .s-art { fill: #c3cad2; }
.system__fig .s-sign { fill: var(--ink); }
.system__fig .s-wheel { fill: var(--ink); }
.system__fig .s-post { stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; }
.system:hover .s-cable { stroke: var(--dot); }
.system__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }
.system__pair { font-weight: 600; font-size: var(--fs-sm); color: var(--dot-ink); }
.system__text { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 1000px) { .systems__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .systems__grid { grid-template-columns: 1fr; } }

/* Tabs / chips */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab, .chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	color: var(--ink);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.tab:hover, .chip:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active, .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip span { color: inherit; opacity: 0.6; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 640px) {
	.tabs, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
	.tab, .chip { flex: none; }
}

/* Product grid & card ------------------------------------------------------ */
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 22px);
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.products::before, ul.products::after { display: none; }
@media (max-width: 1080px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: var(--rail); box-shadow: var(--shadow-lift); }
.card.is-hidden { display: none; }
.card.is-entering { animation: am-fade 0.35s var(--ease) both; }
@keyframes am-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--wall); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__cat { margin: 0 0 4px; font-size: var(--fs-xs); color: var(--ink-3); }
.card__title { font-family: var(--f-body); font-size: 0.98rem; font-weight: 600; line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0 0 64px; }
.card__specs { margin: 0 0 12px; font-size: var(--fs-xs); color: var(--ink-2); display: grid; gap: 2px; }
.card__specs div { display: flex; gap: 6px; }
.card__specs dt { color: var(--ink-3); white-space: nowrap; }
.card__specs dt::after { content: ":"; }
.card__specs dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card__foot .btn { position: relative; z-index: 1; }
@media (max-width: 760px) {
	.card__body { padding: 10px 12px 12px; }
	.card__specs { display: none; }
	.card__title { font-size: 0.9rem; }
	.card__foot { flex-direction: column; align-items: stretch; }
	.card__foot .btn { width: 100%; }
	.card__title a::after { inset: 0 0 56px; }
}

.price { font-weight: 700; color: var(--ink); font-size: var(--fs-md); display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price del { color: var(--ink-3); font-weight: 400; font-size: 0.85em; }
.price ins { text-decoration: none; color: var(--dot-ink); }
.price-contact { color: var(--ink-2); font-weight: 600; font-size: var(--fs-base); }

.red-dot, .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 6px;
	border-radius: 50%;
	background: var(--dot);
	color: #fff;
	font-weight: 700;
	font-size: var(--fs-xs);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.featured__more { text-align: center; margin: 32px 0 0; }

/* Consult band */
.consult { background: var(--ink); color: #e6eaee; position: relative; overflow: hidden; }
.consult::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 10px; background: linear-gradient(180deg, #5b6574, #3a4453); opacity: 0.6; }
.consult__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 56px; align-items: start; padding-top: 24px; }
.consult__title { color: #fff; font-size: var(--fs-xl); max-width: 20ch; }
.consult__copy p { color: #b8c0ca; max-width: 52ch; }
.consult__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.consult__steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.consult__steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #5b6574; font-family: var(--f-display); font-weight: 700; color: #fff; }
.consult__steps li:last-child::before { background: var(--dot); border-color: var(--dot); }
.consult__steps strong { color: #fff; }
.consult__steps span { font-size: var(--fs-sm); color: #b8c0ca; }
.consult__cta { grid-column: 1 / -1; }
@media (max-width: 860px) { .consult__inner { grid-template-columns: 1fr; } }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--wall); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--rail); }
.post-card__placeholder svg { width: 64px; height: 64px; }
.post-card__body { padding-top: 14px; }
.post-card__title { font-size: var(--fs-lg); margin: 6px 0 8px; text-wrap: balance; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--ink-3); }
.post-meta__cat { color: var(--dot-ink); font-weight: 600; text-decoration: none; }

/* Page head, breadcrumbs ---------------------------------------------------- */
.page-head { background: var(--wall); border-bottom: 1px solid var(--line); padding: 22px 0 clamp(26px, 4vw, 40px); }
.page-head--compact { padding-bottom: 20px; }
.page-head__title { font-size: var(--fs-xl); margin: 10px 0 0; max-width: 24ch; }
.page-head__lead { color: var(--ink-2); max-width: 68ch; margin-top: 10px; }
.page-head__lead p:last-child { margin: 0; }

.crumbs { font-size: var(--fs-xs); color: var(--ink-3); padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 9px; border-right: 1.2px solid currentColor; border-top: 1.2px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--dot-ink); }
.page-head .crumbs { padding-top: 0; }
.crumbs .rank-math-breadcrumb p { margin: 0; }

/* Shop ---------------------------------------------------------------------- */
.shop { padding-block: 24px clamp(48px, 6vw, 80px); }
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.woocommerce-result-count { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.woocommerce-ordering { margin: 0; }
select, .woocommerce-ordering select {
	height: 44px;
	padding: 0 38px 0 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b2330' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
	appearance: none;
	-webkit-appearance: none;
}
.shop__help {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 48px;
	padding: clamp(20px, 3vw, 32px);
	border: 1px dashed var(--rail);
	border-radius: var(--r-lg);
	background: var(--wall);
}
.shop__help h2 { font-size: var(--fs-lg); margin-bottom: 6px; }
.shop__help p { margin: 0; color: var(--ink-2); max-width: 56ch; }

.woocommerce-pagination, .navigation.pagination { margin-top: 36px; }
.woocommerce-pagination ul, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span, .nav-links a, .nav-links span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	text-decoration: none;
	font-weight: 600;
}
.woocommerce-pagination .current, .nav-links .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: var(--r);
	border-left: 4px solid var(--ink);
	background: var(--wall);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.woocommerce-message { border-left-color: var(--ok); }
.woocommerce-error { border-left-color: var(--dot); display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-info .button, .woocommerce-message .button { order: 2; min-height: 38px; padding: 6px 14px; font-size: var(--fs-sm); }
.woocommerce-notices-wrapper:empty { display: none; }

/* Single product ------------------------------------------------------------ */
.ps { padding-bottom: 24px; }
.ps__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 18px; }
.ps__gallery { position: relative; }
.ps__gallery .red-dot { top: 16px; left: 16px; min-width: 56px; height: 56px; font-size: var(--fs-sm); }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__image:only-child { border-radius: var(--r-lg); overflow: hidden; background: var(--wall); }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	font-size: 0;
	text-decoration: none;
	display: grid;
	place-items: center;
}
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; margin: -4px 0 0 -4px; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; width: 2px; height: 8px; background: var(--ink); transform: rotate(-45deg); margin: 13px 0 0 13px; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.flex-control-thumbs li { border-radius: var(--r); overflow: hidden; background: var(--wall); }
.flex-control-thumbs img { cursor: pointer; opacity: 0.55; transition: opacity 0.2s; aspect-ratio: 1; object-fit: cover; width: 100%; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }

.ps__summary { position: sticky; top: calc(var(--header-h) + 20px); }
.ps__cats { margin: 0 0 6px; font-size: var(--fs-sm); }
.ps__cats a { color: var(--dot-ink); font-weight: 600; text-decoration: none; }
.ps__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; margin-bottom: 14px; text-wrap: balance; }
.ps__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 18px; }
.ps__price .price { font-size: 1.75rem; font-family: var(--f-display); margin: 0; }
.ps__price .price del { font-family: var(--f-body); font-size: 1rem; }
.ps__save { padding: 4px 10px; border-radius: 999px; background: #fdeceb; color: var(--dot-ink); font-weight: 600; font-size: var(--fs-sm); }
.ps__lead { color: var(--ink-2); }
.ps__quote { padding: 12px 14px; background: var(--wall); border-radius: var(--r); font-size: var(--fs-sm); color: var(--ink-2); }

.specs { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: var(--fs-sm); }
.specs__row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.specs__row:nth-child(odd) { background: #f6f7f9; }
.specs dt { padding: 9px 14px; color: var(--ink-2); }
.specs dd { margin: 0; padding: 9px 14px; font-weight: 600; }

.ps__buy { margin-bottom: 18px; }
form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
form.cart .quantity { flex: none; }
form.cart .single_add_to_cart_button { flex: 1 1 180px; min-height: 52px; }
form.cart .single_buy_now { flex: 1 1 100%; min-height: 52px; font-size: var(--fs-md); }
.quantity { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; height: 52px; background: var(--paper); }
.quantity .qty, .woocommerce .quantity input.qty { width: 56px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; border: 0; background: transparent; font-size: 20px; color: var(--ink); }
.qty-btn:hover { background: var(--wall); }
.ps__assure { list-style: none; margin: 0 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.ps__assure li { display: flex; gap: 10px; align-items: center; }
.ps__assure .icon { color: var(--ink); }
.ps__meta { font-size: var(--fs-xs); color: var(--ink-3); }
.ps__meta p { margin: 0 0 4px; }
.ps__meta a { color: var(--ink-2); }
.stock { font-size: var(--fs-sm); }
.stock.out-of-stock { color: var(--dot-ink); font-weight: 600; }

.ps__detail { margin-top: clamp(40px, 6vw, 72px); padding-block: clamp(32px, 5vw, 56px); background: linear-gradient(180deg, var(--wall), var(--paper) 360px); border-top: 1px solid var(--line); }
.ps__detail-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ps__detail-title { font-size: var(--fs-xl); }
.ps__content { max-width: 780px; }
.ps__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside-cta { padding: 18px; border-radius: var(--r); background: var(--ink); color: #c9d0d8; font-size: var(--fs-sm); }
.aside-cta__title { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-md); margin-bottom: 6px; }
.aside-cta .btn--call { background: #fff; border-color: #fff; }

@media (max-width: 960px) {
	.ps__top { grid-template-columns: 1fr; }
	.ps__summary { position: static; }
	.ps__detail-grid { grid-template-columns: 1fr; }
	.ps__aside { position: static; order: 2; }
	.ps__aside .toc { display: none; }
}

.related { padding-top: clamp(32px, 5vw, 56px); }

/* Mobile buy bar */
.buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: var(--paper);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -16px rgba(27, 35, 48, 0.4);
	transform: translateY(110%);
	transition: transform 0.3s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__price { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.buybar__name { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .price { font-size: var(--fs-base); }
.buybar .btn { min-height: 46px; }

/* TOC */
.toc { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--fs-sm); }
.toc__title { font-weight: 700; margin-bottom: 8px; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc__item a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); }
.toc__item--h3 a { padding-left: 22px; font-size: var(--fs-xs); }
.toc__item a:hover { color: var(--ink); border-left-color: var(--rail); }
.toc__item a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--dot); }

/* Prose ---------------------------------------------------------------------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: #283242; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin: 1.8em 0 0.5em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 0.4em; }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose ul li::marker { color: var(--dot); }
.prose a { color: var(--ink); text-decoration-color: var(--dot); text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--r); }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .wp-caption-text { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 8px; text-align: center; }
.prose .wp-caption { max-width: 100% !important; width: auto !important; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--dot); font-size: 1.15rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose table tbody, .prose table thead { display: table; width: 100%; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--wall); font-weight: 600; }
.prose tr:nth-child(even) td { background: #f8f9fa; }
.prose .note, .prose .callout { padding: 16px 18px; border-radius: var(--r); background: #fff7e8; border-left: 3px solid #e2a227; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

/* Article (single post) ------------------------------------------------------ */
.article__head { background: var(--wall); padding: 20px 0 36px; border-bottom: 1px solid var(--line); }
.article__head .crumbs { margin-bottom: 18px; }
.article__layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: clamp(24px, 4vw, 64px); }
.article__head-main { grid-column: 2; }
.article__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.article__lead { font-size: var(--fs-md); color: var(--ink-2); }
.article__cover { margin: 0 0 28px; }
.article__cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--wall); }
.article__cover figcaption { font-size: var(--fs-xs); color: var(--ink-3); padding-top: 8px; }
.article__grid { padding-block: clamp(28px, 4vw, 48px) 24px; }
.article__aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 18px; }
.article__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding: 22px; border-radius: var(--r-lg); background: var(--wall); }
.article__cta p { margin: 0; color: var(--ink-2); }
.article__cta-title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink) !important; margin-bottom: 4px !important; }
.article__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.article__tags a { padding: 4px 12px; border-radius: 999px; background: var(--wall); text-decoration: none; font-size: var(--fs-xs); }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.article__nav a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 600; }
.article__nav a span { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.article__nav-next { text-align: right; grid-column: 2; }
@media (max-width: 960px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.article__head-main { grid-column: 1; }
	.article__aside { position: static; order: 2; }
}
@media (max-width: 560px) { .article__nav { grid-template-columns: 1fr; } .article__nav-next { grid-column: auto; } }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact__card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact__title { font-size: var(--fs-lg); }
.contact__map { border-radius: var(--r-lg); overflow: hidden; background: var(--wall); aspect-ratio: 4 / 3; margin-bottom: 20px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--rail); }
.contact-list a { text-decoration: none; }
.contact-list--lg { margin-bottom: 24px; gap: 16px; }
.contact-list--lg .icon { color: var(--ink); width: 22px; height: 22px; }
.contact-list--lg span { display: grid; }
.contact-list--lg small { color: var(--ink-3); font-size: var(--fs-xs); }
.contact-list--lg a { font-weight: 700; font-size: var(--fs-md); }

/* Footer --------------------------------------------------------------------- */
.site-footer { background: #141b25; color: #aeb7c2; font-size: var(--fs-sm); padding-bottom: 24px; margin-top: 0; }
.site-footer__rail { height: 10px; background: linear-gradient(180deg, #5b6574, #2b3442); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: clamp(40px, 6vw, 64px) 32px; }
.site-footer .brand__link { color: #fff; }
.site-footer__about p { margin-top: 16px; max-width: 40ch; }
.site-footer__title { font-family: var(--f-body); color: #fff; font-size: var(--fs-base); font-weight: 700; margin-bottom: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6dce3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .contact-list .icon { color: #7a8492; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #2a3340; font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }
@media (min-width: 721px) { .site-footer__bottom { padding-right: 96px; } }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #222b37; }
.social a:hover { background: var(--zalo); text-decoration: none; }
.social .icon { width: 18px; height: 18px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Floating contact & mobile bar --------------------------------------------- */
.float-contact { position: fixed; right: 18px; bottom: 22px; z-index: 40; display: grid; gap: 10px; justify-items: end; }
.float-contact__btn {
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 52px;
	padding: 0 15px;
	border-radius: 26px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 10px 24px -10px rgba(27, 35, 48, 0.6);
	overflow: hidden;
	transition: gap 0.25s var(--ease), padding 0.25s var(--ease);
}
.float-contact__btn .icon { width: 22px; height: 22px; }
.float-contact__btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--ease); }
.float-contact__btn:hover { color: #fff; gap: 8px; padding-right: 20px; }
.float-contact__btn:hover span, .float-contact__btn:focus-visible span { max-width: 180px; }
.float-contact__btn--zalo { background: var(--zalo); }
.float-contact__btn--call { background: var(--ok); position: relative; }
.float-contact__btn--call::before { content: ""; position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.6); animation: am-ring 2.4s infinite; }
@keyframes am-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(31, 122, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); } }

.mobile-bar { display: none; }
@media (max-width: 720px) {
	.float-contact { display: none; }
	.mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 55;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--paper);
		border-top: 1px solid var(--line);
		box-shadow: 0 -6px 18px -14px rgba(27, 35, 48, 0.5);
	}
	.mobile-bar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
	.mobile-bar .icon { width: 22px; height: 22px; }
	.mobile-bar__call { color: var(--ok) !important; }
	.mobile-bar__zalo { color: var(--zalo) !important; }
	.mobile-bar .cart-count { top: 3px; right: calc(50% - 22px); }
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	body.single-product .buybar { display: flex; bottom: calc(58px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
}

/* Toast */
.toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: 300;
	transform: translate(-50%, 20px);
	opacity: 0;
	padding: 12px 18px;
	border-radius: var(--r);
	background: var(--ink);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 600;
	box-shadow: var(--shadow-lift);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
	display: flex;
	gap: 12px;
	align-items: center;
	max-width: calc(100vw - 32px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* Forms (checkout, account, comments) --------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], textarea,
.woocommerce form .input-text, .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--paper);
	line-height: 1.4;
	transition: border-color 0.2s;
}
textarea, .woocommerce form textarea.input-text { min-height: 110px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
label { font-weight: 600; font-size: var(--fs-sm); display: block; margin-bottom: 6px; }
.required { color: var(--dot); text-decoration: none; border: 0; }
.form-row { margin: 0 0 14px; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 7px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce form .form-row::after, .woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) { .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; } }
.woocommerce-invalid input.input-text, .woocommerce-invalid select { border-color: var(--dot); }
.select2-container .select2-selection--single { display: flex; align-items: center; height: 48px; }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 11px; right: 8px; }
.select2-dropdown { border-color: var(--line); border-radius: var(--r); }
.select2-search--dropdown .select2-search__field { border: 1.5px solid var(--line); border-radius: var(--r-sm); min-height: 40px; }
.select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink) !important; }

/* Cart & checkout pages ---------------------------------------------------- */
.wc-page { max-width: var(--container); }
.wc-page__content > .woocommerce { display: block; }
.shop_table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.shop_table th, .shop_table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop_table thead th { background: var(--wall); font-weight: 600; }
.woocommerce-cart-form .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--wall); }
.woocommerce-cart-form .product-name a { font-weight: 600; text-decoration: none; }
.woocommerce-cart-form .product-remove a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; text-decoration: none; color: var(--ink-3); font-size: 20px; }
.woocommerce-cart-form .product-remove a:hover { background: #fdeceb; color: var(--dot); }
.woocommerce-cart-form td.actions { padding-top: 18px; }
.woocommerce-cart-form .coupon { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.woocommerce-cart-form .coupon .input-text { width: 200px; }
.woocommerce-cart-form td.actions > .button { float: right; background: transparent; color: var(--ink); border-color: var(--line); }
.cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.cart_totals { width: min(460px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart_totals h2 { font-size: var(--fs-lg); }
.cart_totals .shop_table th { width: 40%; }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; background: var(--dot); font-size: var(--fs-md); }
.wc-proceed-to-checkout .checkout-button:hover { background: var(--dot-ink); }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.cart-empty { font-size: var(--fs-lg); }
.return-to-shop .button { margin-top: 8px; }

@media (max-width: 760px) {
	.shop_table_responsive thead { display: none; }
	.shop_table_responsive tr { display: block; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; position: relative; }
	.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--wall-2); }
	.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; color: var(--ink-2); }
	.shop_table_responsive td.product-remove { position: absolute; right: 4px; top: 4px; border: 0; padding: 4px; }
	.shop_table_responsive td.product-remove::before, .shop_table_responsive td.product-thumbnail::before, .shop_table_responsive td.actions::before { display: none; }
	.shop_table_responsive td.product-thumbnail { justify-content: flex-start; }
	.shop_table_responsive td.actions { display: block; text-align: left; }
	.woocommerce-cart-form .coupon { display: flex; margin-bottom: 10px; }
	.woocommerce-cart-form .coupon .input-text { flex: 1; width: auto; }
	.woocommerce-cart-form td.actions > .button { float: none; width: 100%; }
}

/* Checkout layout */
#billing_country_field, #shipping_country_field { display: none !important; }
.woocommerce form #billing_phone_field, .woocommerce form #billing_email_field { width: 100%; float: none; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer { top: 46px; } }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: var(--fs-lg); align-self: end; }
form.checkout #order_review { grid-column: 2; grid-row: 2 / span 3; position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fafbfc; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
#customer_details h3 { font-size: var(--fs-lg); }
.woocommerce-checkout-review-order-table { margin-bottom: 18px; }
.woocommerce-checkout-review-order-table tfoot .order-total td, .cart_totals .order-total td { font-size: 1.3rem; font-weight: 700; color: var(--dot-ink); }
#payment .payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
#payment .wc_payment_method { padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); }
#payment .wc_payment_method label { display: inline; font-size: var(--fs-base); }
#payment .payment_box { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
#payment .payment_box p { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: var(--fs-md); background: var(--dot); }
#place_order:hover { background: var(--dot-ink); }
.woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--ink-3); }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 14px; }
.checkout_coupon { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
@media (max-width: 900px) {
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}
.woocommerce-order { max-width: 760px; }
.woocommerce-thankyou-order-received { font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 700; color: var(--ok); }
.woocommerce-order-overview { list-style: none; padding: 18px; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; background: var(--wall); border-radius: var(--r); }
.woocommerce-order-overview li { font-size: var(--fs-sm); color: var(--ink-2); }
.woocommerce-order-overview strong { display: block; color: var(--ink); font-size: var(--fs-base); }

/* My account */
.woocommerce-account .wc-page__content > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .woocommerce-account .wc-page__content > .woocommerce { grid-template-columns: 1fr; } }
.woocommerce-form-login, .woocommerce-form-register { max-width: 460px; }

/* 404 & empty ---------------------------------------------------------------- */
.notfound { text-align: center; max-width: 640px; }
.notfound__art { position: relative; width: 280px; height: 220px; margin: 0 auto 24px; }
.notfound__art .rail { position: absolute; left: 0; right: 0; top: 0; }
.notfound__art .hang__cable { left: 50%; height: 70px; top: 12px; transform: rotate(4deg); }
.notfound__frame { position: absolute; left: 50%; top: 80px; width: 160px; margin-left: -80px; padding: 26px 0; border: 6px solid var(--ink); background: #fbfbfa; font-family: var(--f-display); font-weight: 800; font-size: 3rem; transform: rotate(8deg); transform-origin: 50% -60px; animation: am-tilt 3s var(--ease) both; }
@keyframes am-tilt { 0% { transform: rotate(0); } 40% { transform: rotate(12deg); } 70% { transform: rotate(6deg); } 100% { transform: rotate(8deg); } }
.notfound__title { font-size: var(--fs-xl); }
.notfound .search-form { margin: 24px 0; }
.empty { text-align: center; padding: 48px 0; max-width: 560px; margin: 0 auto; }
.empty__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-lg); }

/* Comments */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.comment-form p { margin-bottom: 14px; }

/* WordPress core alignment & blocks */
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-block-image img { border-radius: var(--r); }
.page-links { margin-top: 24px; display: flex; gap: 6px; }

/* Reduced motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
