/* RonyMotors theme — main stylesheet. No framework; mobile-first. */

:root {
	--rm-red: #E31E24;
	--rm-red-dark: #c3171c;
	--rm-ink: #171717;
	--rm-charcoal: #2b2b2b;
	--rm-grey: #F5F5F5;
	--rm-line: #e5e5e5;
	--rm-muted: #6b6b6b;
	--rm-white: #fff;
	--rm-green: #16a34a;
	--rm-amber: #b45309;
	--rm-wa: #25D366;
	--rm-radius: 16px;
	--rm-radius-sm: 10px;
	--rm-shadow: 0 14px 34px -14px rgba(0, 0, 0, .22);
	--rm-font: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rm-container: 1320px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--rm-font); font-size: 15px; line-height: 1.55; color: var(--rm-ink); background: var(--rm-white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rm-red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rm-red); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--rm-ink); color: #fff; border-radius: 8px; }
.rm-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.rm-container { width: 100%; max-width: var(--rm-container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .rm-container { padding-inline: 24px; } }
.rm-main { min-height: 50vh; }
.rm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }
.rm-mono::placeholder { font-family: var(--rm-font); text-transform: none; letter-spacing: 0; }

/* ---------- Buttons & badges ---------- */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--rm-radius-sm); border: 2px solid transparent; font-weight: 700; font-size: 14px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.rm-btn--lg { padding: 13px 22px; font-size: 15px; }
.rm-btn--red { background: var(--rm-red); color: #fff; box-shadow: 0 10px 24px -12px var(--rm-red); }
.rm-btn--red:hover { background: var(--rm-red-dark); color: #fff; }
.rm-btn--dark { background: var(--rm-ink); color: #fff; }
.rm-btn--dark:hover { background: #000; color: #fff; }
.rm-btn--outline { border-color: rgba(23, 23, 23, .15); color: var(--rm-ink); background: #fff; }
.rm-btn--outline:hover { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff; }
.rm-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.rm-btn--ghost:hover { background: #fff; color: var(--rm-ink); }
.rm-btn--wide { width: 100%; grid-column: 1 / -1; }
.rm-btn .rm-icon { width: 18px; height: 18px; }
.rm-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.rm-badge--red { background: var(--rm-red); color: #fff; }
.rm-badge--dark { background: var(--rm-ink); color: #fff; }
.rm-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.rm-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rm-red); }
.rm-admin-hint { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: var(--rm-radius-sm); background: #fffbeb; border: 1px dashed #f59e0b; color: #78350f; font-size: 13px; }
.rm-admin-hint .rm-icon { margin-top: 2px; color: #d97706; }
.rm-admin-hint a { text-decoration: underline; font-weight: 700; }
.rm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; border: 1px dashed #d4d4d4; border-radius: var(--rm-radius); color: var(--rm-muted); background: #fff; }
.rm-empty .rm-icon { width: 32px; height: 32px; color: var(--rm-red); }

/* ---------- Notice + top bar ---------- */
.rm-notice { background: #fffbeb; color: #92400e; text-align: center; font-size: 12px; font-weight: 600; padding: 6px 16px; }
.rm-topbar { display: none; background: var(--rm-ink); color: rgba(255, 255, 255, .75); font-size: 12.5px; }
@media (min-width: 768px) { .rm-topbar { display: block; } }
.rm-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.rm-topbar__hotline { display: inline-flex; align-items: center; gap: 6px; }
.rm-topbar__hotline .rm-icon { color: var(--rm-red); }
.rm-topbar__hotline strong { color: #fff; }
.rm-topbar a:hover { color: #fff; }
.rm-topbar__links { display: flex; align-items: center; gap: 20px; }
.rm-inline-menu { display: flex; gap: 20px; }
.rm-lang { display: inline-flex; gap: 4px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.rm-lang li a, .rm-lang a { display: block; padding: 3px 10px; border-radius: 6px; font-weight: 700; }
.rm-lang .current-lang a { background: #fff; color: var(--rm-ink); }

/* ---------- Header ---------- */
.rm-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.admin-bar .rm-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .rm-header { top: 32px; } }
.rm-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .3); }
.rm-header__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 14px; padding-block: 12px; }
@media (min-width: 1024px) { .rm-header__main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; padding-block: 16px; } .rm-header__menu-btn { display: none !important; } }
.rm-header__search { grid-column: 1 / -1; order: 3; }
@media (min-width: 768px) { .rm-header__search { grid-column: auto; order: 0; } .rm-header__main { grid-template-columns: auto auto minmax(0, 1fr) auto; } }
@media (min-width: 1024px) { .rm-header__main { grid-template-columns: auto minmax(0, 1fr) auto; } }
.rm-header__actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.rm-icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--rm-ink); }
.rm-icon-btn:hover { background: var(--rm-grey); color: var(--rm-ink); }
.rm-icon-btn .rm-icon { width: 22px; height: 22px; }
.rm-cart-btn { background: rgba(227, 30, 36, .1); color: var(--rm-red); }
.rm-cart-btn:hover { background: var(--rm-red); color: #fff; }
.rm-cart-count { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--rm-red); color: #fff; font-size: 10.5px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.rm-cart-count.is-empty { display: none; }
.rm-account { display: inline-flex; align-items: center; gap: 10px; padding-right: 6px; }
.rm-account__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rm-grey); }
.rm-account__icon .rm-icon { width: 22px; height: 22px; }
.rm-account__text { display: none; line-height: 1.2; }
.rm-account__text small { display: block; font-size: 11px; color: var(--rm-muted); }
.rm-account__text strong { font-size: 13.5px; white-space: nowrap; }
@media (min-width: 1200px) { .rm-account__text { display: block; } }
@media (max-width: 639px) { .rm-hide-sm { display: none; } .rm-account__icon { background: transparent; } }

/* Logo */
.rm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--rm-ink); }
.rm-logo:hover { color: var(--rm-ink); }
.rm-logo__mark { width: 40px; height: 40px; color: var(--rm-red); }
.rm-logo__name { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.rm-logo__name b { color: var(--rm-red); font-weight: 800; }
.rm-logo__tag { display: none; margin-top: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #a3a3a3; }
@media (min-width: 640px) { .rm-logo__tag { display: block; } }
.rm-logo.is-dark { color: #fff; }
.rm-logo.is-dark .rm-logo__tag { color: rgba(255, 255, 255, .5); }
.custom-logo { max-height: 48px; width: auto; }

/* Search */
.rm-search { display: flex; height: 46px; border: 2px solid var(--rm-line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .2s; }
.rm-search:focus-within { border-color: var(--rm-red); }
.rm-search__cat { display: none; width: 170px; border: 0; border-right: 1px solid var(--rm-line); background: var(--rm-grey); padding: 0 12px; font-size: 12.5px; font-weight: 600; color: #525252; outline: 0; }
@media (min-width: 900px) { .rm-search__cat { display: block; } }
.rm-search__input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 14px; outline: 0; background: transparent; }
.rm-search__btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0 18px; background: var(--rm-red); color: #fff; font-weight: 700; }
.rm-search__btn:hover { background: var(--rm-red-dark); }
.rm-search__btn-text { display: none; }
@media (min-width: 1100px) { .rm-search__btn-text { display: inline; } }

/* Main nav */
.rm-nav { display: none; background: var(--rm-red); }
@media (min-width: 1024px) { .rm-nav { display: block; } }
.rm-nav__inner { display: flex; align-items: stretch; min-height: 48px; }
.rm-catmenu { position: relative; }
.rm-catmenu__btn { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 20px; border: 0; background: rgba(0, 0, 0, .16); color: #fff; font-weight: 800; font-size: 14px; }
.rm-catmenu__btn:hover, .rm-catmenu.is-open .rm-catmenu__btn { background: rgba(0, 0, 0, .28); }
.rm-catmenu__chev { transition: transform .2s; }
.rm-catmenu.is-open .rm-catmenu__chev { transform: rotate(180deg); }
.rm-catmenu__list { position: absolute; top: 100%; left: 0; z-index: 60; width: 290px; max-height: 70vh; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--rm-line); border-radius: 0 0 var(--rm-radius) var(--rm-radius); box-shadow: var(--rm-shadow); }
.rm-catmenu__list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.rm-catmenu__list a:hover { background: var(--rm-grey); }
.rm-catmenu__list .rm-icon { color: var(--rm-red); }
.rm-nav__menu { flex: 1; min-width: 0; }
.rm-menu { display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; }
.rm-menu > li { position: relative; }
.rm-menu > li > a { display: flex; align-items: center; height: 100%; padding: 0 14px; color: rgba(255, 255, 255, .92); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.rm-menu > li > a:hover, .rm-menu > .current-menu-item > a { background: rgba(0, 0, 0, .12); color: #fff; }
.rm-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--rm-shadow); z-index: 60; }
.rm-menu li:hover > .sub-menu, .rm-menu li:focus-within > .sub-menu { display: block; }
.rm-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.rm-menu .sub-menu a:hover { background: var(--rm-grey); }

/* Drawer */
.rm-drawer { position: fixed; inset: 0; z-index: 100; }
.rm-drawer[hidden] { display: none; }
.rm-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.rm-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(88%, 380px); display: flex; flex-direction: column; background: #fff; animation: rm-slide-in .25s ease; }
@keyframes rm-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.rm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rm-line); }
.rm-drawer__body { flex: 1; overflow-y: auto; padding-bottom: 24px; }
.rm-drawer .rm-lang { margin: 12px 16px 0; background: var(--rm-grey); }
.rm-drawer__menu { padding: 8px 0; border-bottom: 1px solid var(--rm-line); }
.rm-drawer__menu a { display: block; padding: 11px 16px; font-weight: 700; font-size: 15px; }
.rm-drawer__menu .sub-menu a { padding-left: 32px; font-weight: 500; }
.rm-drawer__label { margin: 18px 16px 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a3a3a3; }
.rm-drawer__cats li { min-width: 0; }
.rm-drawer__cats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0 16px; }
.rm-drawer__cats a { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--rm-grey); font-size: 13px; font-weight: 600; }
.rm-drawer__cats span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-drawer__cats .rm-icon { color: var(--rm-red); }
.rm-drawer__contact { display: grid; gap: 10px; margin: 18px 16px 0; padding: 14px; border-radius: 12px; background: var(--rm-grey); font-weight: 600; font-size: 14px; }
.rm-drawer__contact .rm-icon { color: var(--rm-red); }
body.rm-no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.rm-hero { display: grid; gap: 16px; padding-top: 16px; }
@media (min-width: 1024px) { .rm-hero { grid-template-columns: minmax(0, 1fr) 300px; padding-top: 24px; } }
@media (min-width: 1280px) { .rm-hero { grid-template-columns: 250px minmax(0, 1fr) 290px; } }
.rm-hero__cats { display: none; padding: 12px; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: #fff; }
@media (min-width: 1280px) { .rm-hero__cats { display: flex; flex-direction: column; } }
.rm-hero__cats-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 8px; font-weight: 800; font-size: 14px; }
.rm-hero__cats-title .rm-icon { color: var(--rm-red); }
.rm-hero__cats li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #404040; }
.rm-hero__cats li a:hover { background: var(--rm-grey); color: var(--rm-red); }
.rm-hero__cats li .rm-icon { color: #a3a3a3; }
.rm-hero__cats li a:hover .rm-icon { color: var(--rm-red); }
.rm-hero__cats li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-hero__cats-all { margin-top: auto; padding: 8px; font-size: 13px; font-weight: 700; color: var(--rm-red); }

.rm-slider { position: relative; overflow: hidden; border-radius: 24px; min-width: 0; background: var(--rm-ink); }
.rm-slider__track { display: flex; transition: transform .7s cubic-bezier(.22, .8, .2, 1); }
.rm-slide { position: relative; flex: 0 0 100%; min-height: 380px; display: flex; align-items: center; overflow: hidden; color: #fff; }
@media (min-width: 640px) { .rm-slide { min-height: 430px; } }
.rm-slide--1 { background: radial-gradient(120% 120% at 85% 20%, var(--rm-red) 0%, #7a0f13 32%, var(--rm-ink) 70%); }
.rm-slide--2 { background: radial-gradient(120% 120% at 80% 80%, #3f3f46 0%, #1f1f22 45%, #0f0f10 100%); }
.rm-slide--3 { background: radial-gradient(120% 120% at 90% 10%, #2b2b2b 0%, var(--rm-ink) 55%, #3d0a0c 100%); }
.rm-slide.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0) 100%); }
.rm-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-slide__content { position: relative; z-index: 2; max-width: 560px; padding: 40px 24px 64px; }
@media (min-width: 640px) { .rm-slide__content { padding: 48px 44px 72px; } }
.rm-slide__title { margin: 16px 0 10px; font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.08; color: #fff; }
.rm-slide__text { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .75); }
.rm-slide__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rm-slide__art { position: absolute; inset: 0 0 0 50%; display: none; }
@media (min-width: 768px) { .rm-slide__art { display: block; } }
.rm-slide__art .rm-car-art { position: absolute; bottom: 24px; right: -12%; width: 120%; max-width: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
.rm-art-tiles span { position: absolute; display: grid; place-items: center; border-radius: 24px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4); backdrop-filter: blur(4px); animation: rm-float 7s ease-in-out infinite; }
.rm-art-tiles .rm-icon { width: 46%; height: 46%; stroke-width: 1.4; }
.rm-art-tiles .t0 { left: 8%; top: 14%; width: 112px; height: 112px; transform: rotate(-6deg); }
.rm-art-tiles .t1 { left: 44%; top: 6%; width: 128px; height: 128px; background: var(--rm-red); animation-delay: .6s; }
.rm-art-tiles .t2 { left: 20%; top: 54%; width: 96px; height: 96px; animation-delay: 1.2s; }
.rm-art-tiles .t3 { left: 56%; top: 52%; width: 96px; height: 96px; animation-delay: 1.8s; }
.rm-art-tiles .t4 { left: 82%; top: 28%; width: 80px; height: 80px; animation-delay: 2.4s; }
.rm-art-tiles .t5 { left: 78%; top: 68%; width: 64px; height: 64px; animation-delay: 3s; }
@keyframes rm-float { 50% { translate: 0 -10px; } }
.rm-art-boxes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 92px); gap: 10px; place-content: center; }
.rm-art-boxes span { display: grid; place-items: center; height: 92px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); }
.rm-art-boxes span.is-red { background: var(--rm-red); }
.rm-art-boxes .rm-icon { width: 40px; height: 40px; stroke-width: 1.3; }
.rm-slider__dots { position: absolute; left: 24px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
@media (min-width: 640px) { .rm-slider__dots { left: 44px; } }
.rm-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.rm-slider__dots button[aria-current="true"] { width: 32px; background: var(--rm-red); }
.rm-slider__arrows { position: absolute; right: 16px; bottom: 14px; z-index: 3; display: none; gap: 8px; }
@media (min-width: 640px) { .rm-slider__arrows { display: flex; } }
.rm-slider__arrows button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; }
.rm-slider__arrows button:hover { background: #fff; color: var(--rm-ink); }

.rm-hero > * { min-width: 0; }
.rm-hero__side { display: grid; gap: 16px; }
@media (min-width: 640px) and (max-width: 1023px) { .rm-hero__side { grid-template-columns: 1fr 1fr; } }
.rm-deals-box { padding: 14px; border: 2px solid var(--rm-red); border-radius: var(--rm-radius); background: #fff; }
.rm-deals-box__title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-weight: 800; }
.rm-deals-box ul { display: grid; gap: 10px; }
.rm-deals-box li { min-width: 0; }
.rm-deals-box a { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--rm-line); border-radius: 12px; }
.rm-deals-box a:hover { border-color: var(--rm-red); }
.rm-deals-box__img { width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--rm-grey); }
.rm-deals-box__img img { width: 100%; height: 100%; object-fit: cover; }
.rm-deals-box__info { min-width: 0; }
.rm-deals-box__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.rm-deals-box__price { font-weight: 800; color: var(--rm-red); font-size: 14px; }
.rm-deals-box__price del { color: #a3a3a3; font-weight: 500; font-size: 12px; margin-right: 4px; }
.rm-deals-box__price ins { text-decoration: none; }

/* Promo cards */
.rm-promos { display: grid; gap: 16px; padding-top: 16px; }
@media (min-width: 768px) { .rm-promos { grid-template-columns: repeat(3, 1fr); } }
.rm-promo { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 150px; padding: 22px; overflow: hidden; border-radius: var(--rm-radius); background: var(--rm-grey); color: var(--rm-ink); transition: box-shadow .2s, transform .2s; }
.rm-promo:hover { box-shadow: var(--rm-shadow); transform: translateY(-2px); color: var(--rm-ink); }
.rm-promo--2, .rm-promo--4 { background: var(--rm-ink); color: #fff; }
.rm-promo--2:hover, .rm-promo--4:hover { color: #fff; }
.rm-promo--5 { background: linear-gradient(135deg, var(--rm-red), #9b1015); color: #fff; }
.rm-promo--5:hover { color: #fff; }
.rm-promo.has-image { padding: 0; }
.rm-promo.has-image img { width: 100%; height: 100%; object-fit: cover; }
.rm-promo__title { position: relative; z-index: 1; max-width: 80%; font-size: 18px; font-weight: 800; line-height: 1.25; }
.rm-promo__text { position: relative; z-index: 1; max-width: 80%; font-size: 13.5px; opacity: .75; }
.rm-promo__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--rm-red); }
.rm-promo--2 .rm-promo__btn, .rm-promo--4 .rm-promo__btn, .rm-promo--5 .rm-promo__btn { color: #fff; }
.rm-promo__icon { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; opacity: .12; stroke-width: 1.2; }

/* ---------- Sections ---------- */
.rm-section { padding-block: 44px; }
@media (min-width: 768px) { .rm-section { padding-block: 56px; } }
.rm-section--grey { background: var(--rm-grey); }
.rm-section--offers { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); }
.rm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.rm-section-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.rm-section-title::before { content: ""; width: 6px; height: 24px; border-radius: 99px; background: var(--rm-red); }
.rm-view-all { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 700; font-size: 14px; color: var(--rm-red); }

/* Finder */
.rm-finder-wrap { padding-top: 24px; scroll-margin-top: 140px; }
.rm-finder { position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--rm-line); border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .3); }
.rm-finder::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--rm-red); }
@media (min-width: 640px) { .rm-finder { padding: 28px; } }
.rm-finder__head { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .rm-finder__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.rm-finder__title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.rm-finder__sub { margin: 4px 0 0; color: var(--rm-muted); font-size: 14px; }
.rm-tabs { display: flex; padding: 4px; border-radius: 12px; background: var(--rm-grey); }
.rm-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 14px; color: var(--rm-muted); }
.rm-tabs button[aria-selected="true"] { background: #fff; color: var(--rm-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.rm-finder__form { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .rm-finder__form { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rm-finder__form { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; } .rm-finder__form--vin { grid-template-columns: 2fr 1fr auto; } }
.rm-finder__form[hidden] { display: none; }
.rm-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #525252; }
.rm-field input, .rm-field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--rm-line); border-radius: 12px; background: #fff; font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.rm-field input:focus, .rm-field select:focus { border-color: var(--rm-red); box-shadow: 0 0 0 4px rgba(227, 30, 36, .1); }
.rm-field input[aria-invalid="true"] { border-color: var(--rm-red); }
.rm-field small { display: block; margin-top: 6px; font-size: 12px; color: var(--rm-muted); }
.rm-field--btn .rm-btn { width: 100%; height: 48px; }
@media (min-width: 640px) { .rm-field--btn { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .rm-field--btn { grid-column: auto; } .rm-finder__form--vin .rm-field--btn { align-self: start; margin-top: 22px; } }
.rm-finder__error { margin: 12px 0 0; font-weight: 600; font-size: 14px; color: var(--rm-red); }
.rm-finder__note { display: flex; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--rm-muted); }

/* Categories */
.rm-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 640px) { .rm-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.rm-cat { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 12px; text-align: center; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rm-cat:hover { transform: translateY(-4px); border-color: rgba(227, 30, 36, .4); box-shadow: 0 14px 30px -14px rgba(227, 30, 36, .35); color: var(--rm-red); }
.rm-cat__media { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #f5f5f5, #e7e7e7); transition: background .25s; }
@media (min-width: 640px) { .rm-cat__media { aspect-ratio: 16 / 10; } }
.rm-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-cat__media .rm-icon { width: 44px; height: 44px; stroke-width: 1.5; color: rgba(23, 23, 23, .8); transition: transform .25s, color .25s; }
.rm-cat:hover .rm-cat__media { background: linear-gradient(135deg, var(--rm-red), var(--rm-red-dark)); }
.rm-cat:hover .rm-cat__media .rm-icon { color: #fff; transform: scale(1.1); }
.rm-cat__name { margin-top: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.25; }

/* Product grid & card */
.rm-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .rm-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .rm-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rm-products.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rm-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.rm-card:hover { transform: translateY(-4px); border-color: #d4d4d4; box-shadow: var(--rm-shadow); }
.rm-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--rm-grey); }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rm-card:hover .rm-card__media img { transform: scale(1.05); }
.rm-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rm-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.rm-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--rm-muted); }
.rm-card__brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #525252; }
.rm-card__num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; }
.rm-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; margin: 6px 0 0; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.3; }
.rm-card__rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--rm-muted); }
.rm-card__rating .star-rating { font-size: 12px; }
.rm-card__deal { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--rm-red); font-variant-numeric: tabular-nums; }
.rm-card__foot { margin-top: auto; padding-top: 12px; }
.rm-card__price { font-size: 18px; font-weight: 800; color: var(--rm-red); }
.rm-card__price del { margin-right: 6px; font-size: 13px; font-weight: 500; color: #a3a3a3; }
.rm-card__price ins { text-decoration: none; }
.rm-card__stock { margin: 4px 0 0; font-size: 12px; font-weight: 600; }
.rm-card__stock.is-in { color: var(--rm-green); }
.rm-card__stock.is-low { color: var(--rm-amber); }
.rm-card__stock.is-out { color: #a3a3a3; }
.rm-card__actions { display: grid; grid-template-columns: 42px 1fr; gap: 8px; margin-top: 12px; }
.rm-card__actions .rm-btn { padding: 9px 8px; font-size: 12.5px; }
.rm-card__actions .rm-btn--outline span { display: none; }
.rm-card__actions .added_to_cart { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--rm-green); text-align: center; }
.rm-card__actions .add_to_cart_button.loading { opacity: .5; }
@media (min-width: 1200px) { .rm-products.cols-3 .rm-card__actions, .rm-products.cols-4 .rm-card__actions { grid-template-columns: 1fr 1fr; } .rm-products.cols-3 .rm-btn--outline span, .rm-products.cols-4 .rm-btn--outline span { display: inline; } }

/* Brands */
.rm-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .rm-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .rm-brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rm-brand-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.rm-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 16px 10px 14px; text-align: center; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rm-brand:hover, .rm-brand:focus-visible { transform: translateY(-3px); border-color: rgba(227, 30, 36, .45); box-shadow: 0 14px 28px -16px rgba(227, 30, 36, .45); color: var(--rm-ink); }
.rm-brand__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
@media (min-width: 640px) { .rm-brand__logo { height: 72px; } }
.rm-brand__logo img { width: auto; max-width: 82%; height: auto; max-height: 100%; object-fit: contain; transition: filter .25s, opacity .25s, transform .25s; }
.rm-brand:hover .rm-brand__logo img { transform: scale(1.04); }
.rm-brand-grid.is-grayscale .rm-brand__logo img { filter: grayscale(1); opacity: .75; }
.rm-brand-grid.is-grayscale .rm-brand:hover .rm-brand__logo img, .rm-brand-grid.is-grayscale .rm-brand:focus-visible .rm-brand__logo img { filter: none; opacity: 1; }
.rm-brand__initial { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rm-grey); color: var(--rm-ink); font-size: 24px; font-weight: 800; transition: background .25s, color .25s; }
.rm-brand:hover .rm-brand__initial { background: var(--rm-red); color: #fff; }
.rm-brand__name { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--rm-ink); }
.rm-brand:hover .rm-brand__name { color: var(--rm-red); }

/* Cars */
.rm-car-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .rm-car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rm-car-grid { grid-template-columns: repeat(3, 1fr); } }
.rm-car { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: #fff; transition: transform .3s, box-shadow .3s; }
.rm-car:hover { transform: translateY(-4px); box-shadow: var(--rm-shadow); }
.rm-car__media { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; background: linear-gradient(180deg, #f5f5f5, #e5e5e5); }
.rm-car__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-car__media .rm-car-art { width: 86%; margin-bottom: 12px; }
.rm-car__body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.rm-car__title { margin: 0; font-size: 16px; font-weight: 800; }
.rm-car__years, .rm-car__specs { margin: 4px 0 0; font-size: 12.5px; color: var(--rm-muted); }
.rm-car__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.rm-car__foot small { display: block; font-size: 12px; color: var(--rm-muted); }
.rm-car__price { display: block; font-size: 18px; font-weight: 800; color: var(--rm-red); }
.rm-car__foot .rm-btn { padding: 8px 12px; font-size: 12.5px; }

/* Showcase */
.rm-showcase { display: grid; gap: 16px; padding-block: 20px; }
@media (min-width: 1024px) { .rm-showcase { grid-template-columns: 280px minmax(0, 1fr); } }
.rm-showcase__banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 22px; overflow: hidden; border-radius: var(--rm-radius); background: linear-gradient(160deg, var(--rm-ink) 0%, #3a0b0d 100%); color: #fff; }
.rm-showcase__banner:hover { color: #fff; }
.rm-showcase__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-showcase__banner.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 60%); }
.rm-showcase__icon { position: absolute; top: 18px; right: 18px; width: 96px; height: 96px; opacity: .2; stroke-width: 1.2; }
.rm-showcase__name, .rm-showcase__cta { position: relative; z-index: 1; }
.rm-showcase__name { font-size: 24px; font-weight: 800; line-height: 1.15; }
.rm-showcase__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: #fca5a5; }
.rm-showcase__products .rm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .rm-showcase__products .rm-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Wholesale */
.rm-wholesale { position: relative; overflow: hidden; padding-block: 56px; background: var(--rm-ink); color: #fff; }
.rm-wholesale::before { content: ""; position: absolute; top: -160px; right: -160px; width: 480px; height: 480px; border-radius: 50%; background: rgba(227, 30, 36, .25); filter: blur(60px); }
@media (min-width: 768px) { .rm-wholesale { padding-block: 80px; } }
.rm-wholesale__inner { position: relative; display: grid; gap: 36px; }
@media (min-width: 1024px) { .rm-wholesale__inner { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; } }
.rm-wholesale__eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rm-red); }
.rm-wholesale__title { margin: 10px 0 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: #fff; }
.rm-wholesale__intro p { color: rgba(255, 255, 255, .7); }
.rm-wholesale__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rm-wholesale__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .rm-wholesale__grid { grid-template-columns: repeat(3, 1fr); } }
.rm-wholesale__grid li { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--rm-radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-weight: 700; }
.rm-wholesale__grid .rm-icon { width: 28px; height: 28px; color: var(--rm-red); stroke-width: 1.6; }

/* Sell / exchange */
.rm-sell { display: grid; gap: 16px; }
@media (min-width: 768px) { .rm-sell { grid-template-columns: 1fr 1fr; gap: 24px; } }
.rm-sell__card { position: relative; min-height: 300px; padding: 28px; overflow: hidden; border: 1px solid var(--rm-line); border-radius: 24px; background: var(--rm-grey); }
.rm-sell__card--dark { border-color: var(--rm-ink); background: var(--rm-ink); color: #fff; }
.rm-sell__text { position: relative; z-index: 1; max-width: 340px; }
.rm-sell__card h2 { margin: 18px 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.rm-sell__card p { margin: 0 0 22px; opacity: .7; }
.rm-sell__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--rm-red); color: #fff; }
.rm-sell__icon.is-dark { background: var(--rm-ink); }
.rm-sell__icon .rm-icon { width: 24px; height: 24px; }
.rm-sell__card .rm-car-art { position: absolute; right: -60px; bottom: -14px; width: 340px; max-width: none; display: none; }
@media (min-width: 640px) { .rm-sell__card .rm-car-art { display: block; } }

/* Support */
.rm-support { border-top: 1px solid var(--rm-line); background: #fff; }
.rm-support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-block: 30px; }
@media (min-width: 1024px) { .rm-support__grid { grid-template-columns: repeat(4, 1fr); } }
.rm-support__grid li { display: flex; align-items: center; gap: 14px; }
.rm-support__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: rgba(227, 30, 36, .1); color: var(--rm-red); }
.rm-support__icon .rm-icon { width: 24px; height: 24px; }
.rm-support__grid strong { display: block; font-size: 14px; }
.rm-support__grid small { display: block; font-size: 12px; color: var(--rm-muted); }

/* Newsletter */
.rm-newsletter { background: var(--rm-red); color: #fff; }
.rm-newsletter__inner { display: grid; gap: 18px; padding-block: 34px; align-items: center; }
@media (min-width: 900px) { .rm-newsletter__inner { grid-template-columns: 1fr 1fr; } }
.rm-newsletter__title { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: #fff; }
.rm-newsletter p { margin: 0; opacity: .85; }
.rm-newsletter input[type="email"], .rm-newsletter input[type="text"] { height: 48px; padding: 0 14px; border: 0; border-radius: 10px; }
.rm-newsletter input[type="submit"], .rm-newsletter button { height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--rm-ink); color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.rm-footer { background: #111214; color: rgba(255, 255, 255, .62); padding-bottom: 80px; }
@media (min-width: 1024px) { .rm-footer { padding-bottom: 0; } }
.rm-footer__grid { display: grid; gap: 34px; padding-block: 56px; }
@media (min-width: 640px) { .rm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rm-footer__grid { grid-template-columns: 4fr 2fr 2fr 2fr 2fr; } }
.rm-footer__about p { max-width: 380px; margin: 18px 0; font-size: 14px; line-height: 1.7; }
.rm-footer__title { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.rm-footer__links li + li { margin-top: 10px; }
.rm-footer__links a, .rm-footer__contact a { font-size: 14px; }
.rm-footer a:hover { color: #fff; }
.rm-footer__contact li { display: flex; gap: 10px; font-size: 14px; }
.rm-footer__contact li + li { margin-top: 12px; }
.rm-footer__contact .rm-icon { margin-top: 3px; color: var(--rm-red); }
.rm-social { display: flex; gap: 10px; }
.rm-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.rm-social a:hover { background: var(--rm-red); }
.rm-social .rm-icon { width: 18px; height: 18px; }
.rm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.rm-footer__bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: 12.5px; }
@media (min-width: 768px) { .rm-footer__bottom-inner { flex-direction: row; } }
.rm-footer__bottom p { margin: 0; }
.rm-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rm-badges li { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; font-size: 11px; }

/* ---------- Mobile bottom nav & WhatsApp ---------- */
.rm-bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: flex; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rm-line); backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .rm-bottom-nav { display: none; } }
.rm-bottom-nav > a, .rm-bottom-nav > button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; font-size: 11px; font-weight: 600; color: #737373; }
.rm-bottom-nav .rm-icon { width: 22px; height: 22px; }
.rm-bottom-nav [aria-current="page"] { color: var(--rm-red); }
.rm-bottom-nav .rm-cart-count { top: 6px; right: calc(50% - 22px); }
.rm-whatsapp-float { position: fixed; right: 16px; bottom: 84px; z-index: 41; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rm-wa); color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.rm-whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.rm-whatsapp-float .rm-icon { width: 30px; height: 30px; }
@media (min-width: 1024px) { .rm-whatsapp-float { bottom: 24px; right: 24px; } }

/* ---------- Pages, posts, WooCommerce wrapper ---------- */
.rm-page { padding-block: 32px 64px; }
.rm-page__head { margin-bottom: 24px; }
.rm-page__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.rm-page__desc { color: var(--rm-muted); }
.rm-page__thumb { margin: 0 0 24px; overflow: hidden; border-radius: var(--rm-radius); }
.rm-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .rm-layout:has(.rm-layout__side) { grid-template-columns: minmax(0, 1fr) 300px; } }
.rm-prose { max-width: 820px; font-size: 16px; line-height: 1.75; }
.rm-prose h2 { margin-top: 1.6em; font-size: 24px; }
.rm-prose h3 { margin-top: 1.4em; font-size: 19px; }
.rm-prose ul { list-style: disc; padding-left: 1.4em; }
.rm-prose ol { padding-left: 1.4em; }
.rm-prose a { color: var(--rm-red); text-decoration: underline; }
.rm-prose img { border-radius: var(--rm-radius-sm); }
.rm-meta { font-size: 13px; color: var(--rm-muted); }
.rm-post-list { display: grid; gap: 24px; }
.rm-post { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--rm-line); }
@media (min-width: 640px) { .rm-post:has(.rm-post__thumb) { grid-template-columns: 240px 1fr; } }
.rm-post__thumb { overflow: hidden; border-radius: var(--rm-radius-sm); }
.rm-post__title { margin: 0; font-size: 20px; }
.rm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.rm-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: 10px; font-weight: 700; }
.rm-pagination .current { background: var(--rm-red); border-color: var(--rm-red); color: #fff; }
.widget { margin-bottom: 28px; }
.widget-title { font-size: 16px; font-weight: 800; }
.rm-404 { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 72px; text-align: center; }
.rm-404__code { margin: 0; font-size: 72px; font-weight: 800; line-height: 1; color: var(--rm-red); }
.rm-404__search { width: 100%; max-width: 560px; margin: 8px 0 16px; }
.rm-comments { margin-top: 48px; }
.rm-comment-list { padding-left: 0; list-style: none; }
.rm-breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--rm-muted); }
.rm-breadcrumb .sep { margin: 0 8px; color: #d4d4d4; }

/* WooCommerce defaults inside the theme wrapper (refined in Phase 2) */
.rm-woo .woocommerce-products-header__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.rm-woo ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
@media (min-width: 768px) { .rm-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rm-woo ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rm-woo ul.products::before, .rm-woo ul.products::after { display: none; }
.rm-woo ul.products li.product { width: auto !important; margin: 0 !important; padding: 12px; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-woo .button, .rm-woo button.button, .rm-woo .woocommerce-message .button { border-radius: 10px; background: var(--rm-red); color: #fff; font-weight: 700; }
.rm-woo .button:hover { background: var(--rm-red-dark); color: #fff; }
.rm-woo .price { color: var(--rm-red); font-weight: 800; }
.woocommerce-store-notice { background: var(--rm-ink) !important; }

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