/* ==========================================================================
   Smart Market — main styles
   ========================================================================== */

:root {
	--sm-ink: #16181C;
	--sm-panel: #1E2127;
	--sm-panel-2: #2A2E36;
	--sm-bg: #F3F1EC;
	--sm-surface: #FFFFFF;
	--sm-line: #E4E0D8;
	--sm-muted: #5A5F68;
	--sm-muted-dark: #C9CDD4;
	--sm-red: #D7141B;
	--sm-red-dark: #B5101A;
	--sm-red-text: #B3121A;
	--sm-red-tint: #FDE8E8;
	--sm-red-on-dark: #FF5A5F;
	--sm-green: #1F7A3A;
	--sm-radius: 16px;
	--sm-radius-sm: 12px;
	--sm-gap: 20px;
	--sm-font: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sm-container: 1280px;
	--sm-gutter: 16px;
	--sm-tabbar-h: 64px;
}

@media (min-width: 768px) {
	:root { --sm-gutter: 32px; }
}

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

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

body {
	margin: 0;
	font-family: var(--sm-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--sm-ink);
	background: var(--sm-bg);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
svg.sm-icon { flex-shrink: 0; display: block; }

a { color: var(--sm-ink); text-underline-offset: 3px; }
a:hover { color: var(--sm-red-text); }

button, input, select, textarea { font: inherit; color: inherit; }

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

.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:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto; margin: 0;
	padding: 12px 18px; background: var(--sm-ink); color: #fff; border-radius: 8px;
}

.sm-container {
	width: 100%;
	max-width: calc(var(--sm-container) + var(--sm-gutter) * 2);
	margin: 0 auto;
	padding-left: var(--sm-gutter);
	padding-right: var(--sm-gutter);
}

/* ---------- Typography helpers ---------- */

.sm-h1, .sm-h2, .sm-h3, .sm-hero__title, .sm-cta__title, .sm-promo__title {
	font-weight: 900;
	font-stretch: 75%;
	line-height: 1.02;
	letter-spacing: -0.3px;
	margin: 0;
}
.sm-h1 { font-size: clamp(32px, 4vw, 48px); }
.sm-h2 { font-size: clamp(30px, 3.4vw, 44px); }
.sm-h3 { font-size: 26px; }

.sm-eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sm-red-text);
}
.sm-eyebrow--light { color: var(--sm-red-on-dark); }

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

.sm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--sm-radius-sm);
	border: 2px solid transparent;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.sm-btn:active { transform: translateY(1px); }
.sm-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.sm-btn--block { width: 100%; }
.sm-btn--primary { background: var(--sm-red); color: #fff; }
.sm-btn--primary:hover { background: var(--sm-red-dark); color: #fff; }
.sm-btn--dark { background: var(--sm-ink); color: #fff; }
.sm-btn--dark:hover { background: #000; color: #fff; }
.sm-btn--dark .sm-icon { color: var(--sm-red-on-dark); }
.sm-btn--outline { border-color: var(--sm-ink); background: transparent; color: var(--sm-ink); }
.sm-btn--outline:hover { background: var(--sm-ink); color: #fff; }
.sm-btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.sm-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.sm-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px;
	border: 0; border-radius: var(--sm-radius-sm);
	background: transparent; color: var(--sm-ink);
	cursor: pointer;
}
.sm-iconbtn--outline { border: 2px solid var(--sm-ink); }
.sm-iconbtn--outline:hover { background: var(--sm-ink); color: #fff; }
.sm-iconbtn--dark { background: var(--sm-ink); color: var(--sm-red-on-dark); }
.sm-iconbtn--dark:hover { background: #000; }

.sm-link-more {
	font-weight: 800; font-size: 15px; text-decoration: none;
	border-bottom: 2px solid var(--sm-red); padding-bottom: 2px; white-space: nowrap;
}

.sm-hazard {
	height: 14px;
	background-image: repeating-linear-gradient(135deg, var(--sm-red) 0 18px, var(--sm-ink) 18px 36px);
}

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

.sm-topbar {
	display: none;
	background: var(--sm-ink);
	color: var(--sm-muted-dark);
	font-size: 13px;
}
.sm-topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sm-topbar__info, .sm-topbar__right { display: flex; align-items: center; gap: 28px; }
.sm-topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.sm-topbar__info .sm-icon { color: var(--sm-red-on-dark); }
.sm-topbar__phone { color: #fff; font-weight: 700; text-decoration: none; }
.sm-topbar__phone:hover { color: var(--sm-red-on-dark); }

.sm-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.sm-lang a { color: #9AA0AA; text-decoration: none; font-weight: 600; }
.sm-lang a.is-current, .sm-lang a:hover { color: #fff; font-weight: 800; }

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

.sm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--sm-surface);
	border-bottom: 1px solid var(--sm-line);
}
.admin-bar .sm-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .sm-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .sm-header { top: 0; } }

.sm-header__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 64px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.sm-header__burger { margin-left: -12px; }
.sm-logo { display: inline-flex; align-items: center; text-decoration: none; }
.sm-logo__img,
.sm .sm-logo img.sm-logo__img { display: block; height: 38px; width: auto; max-width: none; }
.sm-header__logo { margin-right: auto; }

.sm-header__catalog,
.sm-header__search { display: none; }

.sm-header__actions { display: flex; align-items: center; gap: 2px; }
.sm-action {
	position: relative;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-width: 44px; height: 48px;
	font-size: 12px; text-decoration: none; color: var(--sm-ink);
}
.sm-action__label { display: none; }
.sm-action--wishlist, .sm-action--account { display: none; }
.sm-cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px;
	background: var(--sm-red); color: #fff;
	font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.sm-cart-count[data-count="0"] { background: var(--sm-ink); }

.sm-header__search-mobile { padding-bottom: 12px; }

/* Search */
.sm-search {
	display: flex; align-items: center;
	height: 48px;
	border: 2px solid var(--sm-ink);
	border-radius: var(--sm-radius-sm);
	overflow: hidden;
	background: #fff;
}
.sm-search__icon { display: flex; padding: 0 10px 0 14px; color: var(--sm-muted); }
.sm-search__input {
	flex: 1; min-width: 0; height: 100%;
	border: 0; outline: 0; background: transparent;
	font-size: 15px;
}
.sm-search__input::-webkit-search-cancel-button { cursor: pointer; }
.sm-search__btn {
	display: none;
	height: 100%; padding: 0 22px;
	border: 0; background: var(--sm-ink); color: #fff;
	font-weight: 700; cursor: pointer;
}
.sm-search__btn:hover { background: var(--sm-red); }
.sm-search:focus-within { border-color: var(--sm-red); }

/* Category nav */
.sm-catnav { border-top: 1px solid var(--sm-line); }
.sm-catnav__inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.sm-catnav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 8px;
	overflow-x: auto; scrollbar-width: none;
	flex: 1;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.sm-catnav__list::-webkit-scrollbar { display: none; }
.sm-catnav__list a {
	display: inline-flex; align-items: center;
	height: 36px; padding: 0 14px;
	border-radius: 18px;
	background: var(--sm-bg);
	font-size: 13px; font-weight: 600;
	text-decoration: none; white-space: nowrap;
}
.sm-catnav__list .current-menu-item > a,
.sm-catnav__list a:hover { background: var(--sm-ink); color: #fff; }
.sm-catnav__all { display: none; font-weight: 800; font-size: 14px; color: var(--sm-red-text); text-decoration: none; white-space: nowrap; }

/* Mega catalog */
.sm-mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff;
	border-top: 1px solid var(--sm-line);
	box-shadow: 0 24px 48px rgba(22, 24, 28, .16);
	padding: 24px 0 28px;
	max-height: calc(100vh - 160px);
	overflow-y: auto;
}
.sm-mega[hidden] { display: none; }
.sm-mega__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.sm-mega__grid a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: var(--sm-radius-sm);
	text-decoration: none; font-weight: 700; font-size: 15px;
}
.sm-mega__grid a:hover { background: var(--sm-bg); color: var(--sm-ink); }
.sm-mega__icon {
	width: 40px; height: 40px; border-radius: 10px;
	background: var(--sm-red-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sm-mega__name { flex: 1; }
.sm-mega__count { font-size: 12px; color: var(--sm-muted); font-weight: 600; }

/* Drawer (mobile menu) */
.sm-drawer { position: fixed; inset: 0; z-index: 100; }
.sm-drawer[hidden] { display: none; }
.sm-drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 24, 28, .55); }
.sm-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: min(88vw, 360px);
	background: #fff;
	overflow-y: auto;
	padding: 12px 16px 32px;
	animation: sm-slide-in .2s ease-out;
}
@keyframes sm-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.sm-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sm-drawer__title { margin: 8px 0; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sm-red-text); }
.sm-drawer__cats { list-style: none; margin: 0; padding: 0; }
.sm-drawer__cats a {
	display: flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 4px 0;
	border-bottom: 1px solid var(--sm-line);
	text-decoration: none; font-weight: 600;
}
.sm-drawer__icon { width: 36px; height: 36px; border-radius: 9px; background: var(--sm-red-tint); display: flex; align-items: center; justify-content: center; }
.sm-drawer__count { margin-left: auto; font-size: 12px; color: var(--sm-muted); }
.sm-drawer__contacts { margin-top: 24px; font-size: 14px; color: var(--sm-muted); }
.sm-drawer__contacts .sm-lang a { color: var(--sm-muted); }
.sm-drawer__contacts .sm-lang a.is-current { color: var(--sm-ink); }
body.sm-lock { overflow: hidden; }

/* ---------- Main ---------- */

.sm-main { display: block; min-height: 40vh; }

/* ---------- Hero ---------- */

.sm-hero {
	display: grid;
	gap: 12px;
	padding-top: 16px;
}
.sm-hero__main {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: var(--sm-panel);
	color: #fff;
	padding: 28px 22px 40px;
	display: flex; flex-direction: column; gap: 20px;
}
.sm-hero__title { font-size: clamp(38px, 5vw, 62px); max-width: 560px; margin-top: 8px; }
.sm-hero__text { margin: 16px 0 0; font-size: 16px; color: var(--sm-muted-dark); max-width: 500px; }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sm-hero__actions .sm-btn { flex: 1 1 auto; }
.sm-hero__stats {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.sm-hero__stats li { padding: 12px 14px; border-radius: 14px; background: var(--sm-panel-2); }
.sm-hero__stats strong { display: block; font-size: 22px; font-weight: 900; font-stretch: 75%; line-height: 1.1; color: var(--sm-red-on-dark); }
.sm-hero__stats span { display: block; font-size: 12px; color: var(--sm-muted-dark); }
.sm-hero__hazard { position: absolute; left: 0; right: 0; bottom: 0; }

.sm-hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.sm-promo {
	display: flex; flex-direction: column-reverse;
	border-radius: var(--sm-radius);
	overflow: hidden;
	text-decoration: none;
	min-height: 100%;
}
.sm-promo--light { background: #fff; border: 1px solid var(--sm-line); color: var(--sm-ink); }
.sm-promo--red { background: var(--sm-red); color: #fff; }
.sm-promo--red:hover { color: #fff; background: var(--sm-red-dark); }
.sm-promo--light:hover { color: var(--sm-ink); border-color: var(--sm-ink); }
.sm-promo__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; flex: 1; }
.sm-promo__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.sm-promo--light .sm-promo__eyebrow { color: var(--sm-red-text); }
.sm-promo__title { font-size: 17px; line-height: 1.12; font-stretch: 80%; }
.sm-promo__link { display: none; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; }
.sm-promo__media {
	height: 110px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sm-bg);
	color: var(--sm-ink);
}
.sm-promo--red .sm-promo__media { background: var(--sm-red-dark); color: #fff; }
.sm-promo__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Benefits ---------- */

.sm-benefits {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
	padding-top: 12px;
}
.sm-benefit {
	display: flex; flex-direction: column; gap: 10px;
	padding: 16px;
	background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius);
	font-size: 13px; color: var(--sm-muted);
}
.sm-benefit strong { display: block; color: var(--sm-ink); font-size: 14px; line-height: 1.3; }
.sm-benefit > span:last-child > span { display: none; }
.sm-benefit__icon {
	width: 44px; height: 44px; border-radius: var(--sm-radius-sm);
	background: var(--sm-ink); color: var(--sm-red-on-dark);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

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

.sm-section { padding-top: 48px; }
.sm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* Categories */
.sm-cats {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.sm-cat {
	height: 100%;
	min-height: 118px;
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px;
	background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius);
	text-decoration: none; color: var(--sm-ink);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sm-cat:hover { color: var(--sm-ink); border-color: var(--sm-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 24, 28, .08); }
.sm-cat__icon {
	width: 44px; height: 44px; border-radius: 11px;
	background: var(--sm-red-tint); color: var(--sm-ink);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: auto;
	transition: background-color .15s, color .15s;
}
.sm-cat:hover .sm-cat__icon { background: var(--sm-red); color: #fff; }
.sm-cat__photo { display: block; margin: -14px -14px 10px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sm-bg); border-radius: var(--sm-radius) var(--sm-radius) 0 0; }
.sm-cat__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-cat__name { font-weight: 800; font-size: 15px; line-height: 1.25; margin-top: 10px; }
.sm-cat__count { font-size: 12px; color: var(--sm-muted); }
.sm-cat--all { background: var(--sm-ink); border-color: var(--sm-ink); color: #fff; }
.sm-cat--all:hover { color: #fff; }
.sm-cat--all .sm-cat__icon { background: var(--sm-red); color: #fff; }
.sm-cat--all .sm-cat__count { color: var(--sm-muted-dark); }

/* Products row (front page slider) */
.sm-slider-nav { display: none; gap: 8px; }
.sm-products-row ul.products {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 12px) / 2);
	grid-template-columns: none !important;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	margin: 0 !important;
}
.sm-products-row ul.products::-webkit-scrollbar { display: none; }
.sm-products-row ul.products li.product { scroll-snap-align: start; width: auto !important; margin: 0 !important; }
.sm-products-row ul.products::before,
.sm-products-row ul.products::after { display: none !important; }

/* CTA */
.sm-cta { padding-top: 48px; }
.sm-cta__inner {
	border-radius: 20px;
	background: var(--sm-red);
	color: #fff;
	padding: 26px 22px;
	display: flex; flex-direction: column; gap: 18px;
}
.sm-cta__title { font-size: clamp(28px, 3vw, 40px); }
.sm-cta__text { margin: 10px 0 0; font-size: 16px; }
.sm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-cta__actions .sm-btn { flex: 1 1 auto; }
.sm-cta .sm-btn--ghost-light { border-color: #fff; }

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

.sm-footer {
	margin-top: 56px;
	background: var(--sm-ink);
	color: var(--sm-muted-dark);
	font-size: 14px;
}
.sm-footer a { color: var(--sm-muted-dark); text-decoration: none; }
.sm-footer a:hover { color: #fff; }
.sm-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 36px; padding-bottom: 28px; }
.sm-footer__brand { grid-column: 1 / -1; }
.sm-footer__brand p { margin: 16px 0 0; line-height: 1.6; max-width: 360px; }
.sm-footer__logo { display: inline-flex; padding: 10px 14px; border-radius: var(--sm-radius-sm); background: #fff; }
.sm .sm-footer__logo img.sm-logo__img { height: 38px; }
.sm-footer__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: #fff; }
.sm-footer__list { list-style: none; margin: 0; padding: 0; line-height: 1.5; }
.sm-footer__list li { padding: 5px 0; }
.sm-footer__list a, .sm-footer__list span { display: inline-flex; align-items: flex-start; gap: 8px; }
.sm-footer__list .sm-icon { margin-top: 3px; color: var(--sm-red-on-dark); }
.sm-footer__more { color: var(--sm-red-on-dark) !important; font-weight: 700; }
.sm-footer__contacts { margin-top: 10px; }
.sm-footer__contacts a { color: #fff; font-weight: 700; }
.sm-footer__social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-footer__social a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #3A3F48; border-radius: 18px; font-weight: 600; font-size: 13px; }
.sm-footer__social a:hover { border-color: #fff; }
.sm-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	padding-top: 18px; padding-bottom: 24px;
	border-top: 1px solid #2E323A;
	font-size: 12px; color: #9AA0AA;
}

/* ---------- Bottom tab bar (mobile) ---------- */

.sm-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	height: calc(var(--sm-tabbar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff;
	border-top: 1px solid var(--sm-line);
	display: flex;
}
.sm-tabbar a {
	flex: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	font-size: 10px; font-weight: 600; color: var(--sm-muted);
	text-decoration: none;
}
.sm-tabbar__icon {
	position: relative;
	width: 48px; height: 28px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
}
.sm-tabbar__icon .sm-cart-count { top: -6px; right: 0; }
.sm-tabbar a.is-active { color: var(--sm-ink); font-weight: 800; }
.sm-tabbar a.is-active .sm-tabbar__icon { background: var(--sm-red); color: #fff; }
body.sm { padding-bottom: calc(var(--sm-tabbar-h) + env(safe-area-inset-bottom)); }

/* ---------- Generic pages ---------- */

.sm-page { padding-top: 28px; }
.sm-page--narrow { max-width: calc(820px + var(--sm-gutter) * 2); }
.sm-page__head { margin-bottom: 24px; }
.sm-page__desc { margin-top: 10px; color: var(--sm-muted); }
.sm-entry__content { font-size: 17px; line-height: 1.7; }
.sm-entry__content > * { max-width: 100%; }
.sm-entry__content h2, .sm-entry__content h3 { font-stretch: 80%; font-weight: 900; line-height: 1.15; }
.sm-entry__meta { color: var(--sm-muted); margin: 8px 0 0; }
.sm-entry__thumb img { border-radius: var(--sm-radius); display: block; margin-bottom: 24px; }
.sm-posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sm-post-card { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); overflow: hidden; }
.sm-post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sm-post-card__body { padding: 18px; }
.sm-post-card__title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.sm-post-card__title a { text-decoration: none; }
.sm-post-card__excerpt { color: var(--sm-muted); font-size: 15px; }
.sm-empty { padding: 40px 0; max-width: 560px; }
.sm-404 { text-align: center; max-width: 640px; padding-top: 60px; }
.sm-404 .sm-search { margin: 24px 0; }
.sm-404__code { margin: 0; font-size: 120px; font-weight: 900; font-stretch: 70%; line-height: 1; color: var(--sm-red); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--sm-line); text-decoration: none; font-weight: 700; }
.nav-links .current { background: var(--sm-ink); color: #fff; border-color: var(--sm-ink); }
.sm-comments { margin-top: 40px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 600px) {
	.sm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm-benefit { flex-direction: row; align-items: center; gap: 14px; }
	.sm-benefit > span:last-child > span { display: block; margin-top: 2px; }
	.sm-products-row ul.products { grid-auto-columns: calc((100% - 24px) / 3); }
	.sm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.sm-hero__main { padding: 44px 40px 56px; }
	.sm-hero__actions .sm-btn, .sm-cta__actions .sm-btn { flex: 0 0 auto; }
	.sm-hero__side { gap: 20px; }
	.sm-promo { flex-direction: row; min-height: 200px; }
	.sm-promo__body { padding: 24px 0 24px 24px; }
	.sm-promo__title { font-size: 22px; }
	.sm-promo__link { display: block; }
	.sm-promo__media { width: 42%; height: auto; flex-shrink: 0; }
	.sm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.sm-cat { min-height: 150px; padding: 18px; }
	.sm-cat__photo { margin: -18px -18px 10px; }
	.sm-cat__icon { width: 52px; height: 52px; border-radius: 12px; }
	.sm-cat__name { font-size: 16px; }
	.sm-cat__count { font-size: 13px; }
	.sm-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 48px; gap: 32px; }
	.sm-section { padding-top: 64px; }
	.sm-cta { padding-top: 64px; }
	.sm-slider-nav { display: flex; }
}

@media (min-width: 1024px) {
	:root { --sm-tabbar-h: 0px; }
	body.sm { padding-bottom: 0; }
	.sm-tabbar { display: none; }

	.sm-topbar { display: block; }
	.sm-header__inner { min-height: 96px; gap: 24px; }
	.sm-header__burger { display: none; }
	.sm-header__logo { margin-right: 0; }
	.sm-logo__img, .sm .sm-header .sm-logo img.sm-logo__img { height: 56px; }
	.sm-header__catalog { display: inline-flex; min-height: 52px; margin-left: 8px; }
	.sm-header__catalog[aria-expanded="true"] { background: var(--sm-ink); }
	.sm-header__search { display: block; flex: 1; }
	.sm-header__search .sm-search { height: 52px; }
	.sm-search__btn { display: block; }
	.sm-header__search-mobile { display: none; }
	.sm-header__actions { gap: 6px; }
	.sm-action { width: 76px; height: 56px; }
	.sm-action__label { display: block; }
	.sm-action--phone { display: none; }
	.sm-action--wishlist, .sm-action--account { display: inline-flex; }
	.sm-action .sm-cart-count { top: -2px; right: 14px; }
	.sm-header { position: relative; }

	.sm-catnav__inner { min-height: 56px; gap: 28px; }
	.sm-catnav__list { gap: 28px; -webkit-mask-image: none; mask-image: none; overflow: hidden; flex-wrap: wrap; height: 56px; align-items: center; }
	.sm-catnav__list a { height: 56px; padding: 0; background: none; border-radius: 0; font-size: 14px; border-bottom: 3px solid transparent; }
	.sm-catnav__list a:hover, .sm-catnav__list .current-menu-item > a { background: none; color: var(--sm-ink); border-bottom-color: var(--sm-red); }
	.sm-catnav__all { display: inline-flex; margin-left: auto; }

	.sm-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 32px; }
	.sm-hero__main { grid-column: span 2; min-height: 500px; padding: 56px 56px 60px; flex-direction: row; justify-content: space-between; }
	.sm-hero__stats { grid-template-columns: 1fr; align-content: start; width: 190px; flex-shrink: 0; gap: 14px; }
	.sm-hero__stats li { padding: 18px 20px; }
	.sm-hero__stats strong { font-size: 36px; }
	.sm-hero__stats span { font-size: 13px; }
	.sm-hero__side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
	.sm-promo { min-height: 0; }

	.sm-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 20px; }
	.sm-benefit { padding: 22px 24px; gap: 16px; }
	.sm-benefit strong { font-size: 15px; }
	.sm-benefit__icon { width: 48px; height: 48px; }

	.sm-section { padding-top: 72px; }
	.sm-section__head { margin-bottom: 28px; }
	.sm-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.sm-cat { min-height: 164px; padding: 20px; }
	.sm-cat__photo { margin: -20px -20px 10px; }

	.sm-products-row ul.products { grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; }

	.sm-cta { padding-top: 72px; }
	.sm-cta__inner { padding: 0 56px; min-height: 200px; }

	.sm-footer { margin-top: 72px; }
	.sm-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
	.sm-footer__brand { grid-column: auto; }
	.sm .sm-footer__logo img.sm-logo__img { height: 44px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.sm-action { width: 64px; }
	.sm-hero__stats { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
