/* ResellomartX "resello-modern" theme.
   Layout idea: soft white store, navy for weight, rose for price and action, big rounded cards. */
:root {
  --rm-navy: #0F172A;
  --rm-navy-2: #1E293B;
  --rm-rose: #E11D48;
  --rm-rose-dark: #BE123C;
  --rm-rose-soft: #FFF1F2;
  --rm-rose-light: #FDA4AF;
  --rm-green: #059669;
  --rm-green-soft: #ECFDF5;
  --rm-ink: #0F172A;
  --rm-muted: #64748B;
  --rm-line: #E2E8F0;
  --rm-soft: #F8FAFC;
  --rm-white: #FFFFFF;
  --rm-serif: "Playfair Display", Georgia, serif;
  --rm-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rm-radius: 24px;
  --rm-shadow: 0 22px 44px -22px rgba(15, 23, 42, .35);

  /* QuickUI tokens follow the theme */
  --primary: 222 47% 11%;
  --primary-foreground: 0 0% 100%;
  --ring: 347 77% 50%;
}

html { scroll-behavior: smooth; }
body { font-family: var(--rm-sans); color: var(--rm-ink); background: var(--rm-white); }
.rm-serif { font-family: var(--rm-serif); }
.rm-container { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #F43F5E; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.qui-btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--rm-navy); color: #fff; }
.btn-primary:hover { background: var(--rm-rose); color: #fff; }
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.rm-btn:hover { transform: translateY(-1px); text-decoration: none; }
.rm-btn-dark { background: var(--rm-navy); color: #fff; }
.rm-btn-dark:hover { background: var(--rm-navy-2); color: #fff; }
.rm-btn-rose { background: var(--rm-rose); color: #fff; }
.rm-btn-rose:hover { background: var(--rm-rose-dark); color: #fff; }
.rm-btn-white { background: #fff; color: var(--rm-navy); }
.rm-btn-white:hover { background: var(--rm-rose-soft); color: var(--rm-navy); }
.rm-btn-outline { background: #fff; color: var(--rm-navy); border-color: var(--rm-line); }
.rm-btn-outline:hover { border-color: var(--rm-navy); color: var(--rm-navy); }
.rm-btn-ghost-light { background: transparent; color: #fff; border-color: #475569; }
.rm-btn-ghost-light:hover { background: #fff; color: var(--rm-navy); }
.rm-btn-green { background: var(--rm-green); color: #fff; }
.rm-btn-green:hover { background: #047857; color: #fff; }
.rm-btn-lg { min-height: 56px; padding: 0 1.9rem; font-size: 1rem; }
.rm-btn-block { width: 100%; }
.rm-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.rm-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 1rem; border-radius: 999px; background: var(--rm-soft); color: #334155; font-weight: 600; font-size: .85rem; text-decoration: none; border: 1px solid transparent; }
.rm-chip:hover { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--rm-rose-dark); }
.rm-tag { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.rm-tag-green { background: var(--rm-green-soft); color: #047857; }
.rm-tag-dark { background: var(--rm-navy); color: #fff; }
.rm-tag-rose { background: var(--rm-rose); color: #fff; }

/* ---------- Inputs ---------- */
.qui-input, .rm-input { border-radius: 14px; border-color: var(--rm-line); min-height: 46px; }
.qui-input:focus, .rm-input:focus { border-color: var(--rm-navy); box-shadow: 0 0 0 3px rgba(225, 29, 72, .12); }
.rm-input { width: 100%; border: 1.5px solid var(--rm-line); padding: 0 14px; font: inherit; background: #fff; color: var(--rm-ink); box-sizing: border-box; }
textarea.rm-input { padding: 12px 14px; line-height: 1.6; }
.app-select-trigger { border-radius: 14px; }
.app-select-trigger:focus { border-color: var(--rm-navy); }

/* ---------- Top bar + header ---------- */
.rm-topbar { background: var(--rm-navy); color: #fff; font-size: 12px; }
.rm-topbar .promo-swiper .swiper-slide { letter-spacing: .2em; }
.rm-topbar a { color: var(--rm-rose-light); }
.rm-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #F1F5F9; }
.rm-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.rm-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--rm-ink); text-decoration: none; min-width: 0; }
.rm-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.rm-logo span { font-weight: 700; font-size: 19px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-header .qui-nav-list { gap: 4px; }
.rm-header .qui-nav-trigger { border-radius: 999px; padding: 10px 16px; font-weight: 500; color: #334155; }
.rm-header .qui-nav-trigger:hover { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-header .qui-nav-panel { border-radius: 18px; border-color: var(--rm-line); box-shadow: 0 22px 44px -18px rgba(15, 23, 42, .3); }
.rm-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--rm-ink); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.rm-icon-btn:hover { background: var(--rm-soft); color: var(--rm-ink); }
.rm-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--rm-rose); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.rm-cart-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--rm-navy); color: #fff; font-weight: 600; text-decoration: none; }
.rm-cart-pill:hover { background: var(--rm-rose); color: #fff; }
.rm-cart-pill .rm-count { min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: var(--rm-navy); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; box-sizing: border-box; }

/* Mobile drawer + bottom nav */
.qui-drawer { border-radius: 0 24px 24px 0; }
.rm-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--rm-line); padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); }
.rm-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; color: #334155; font-size: 10.5px; font-weight: 600; text-decoration: none; border-radius: 14px; }
.rm-bottom-nav a.is-active { color: var(--rm-rose); }
.rm-bottom-nav i { font-size: 19px; }
.rm-bottom-nav .rm-badge { top: -6px; right: -10px; }
.rm-bottom-spacer { height: 70px; }
@media (min-width: 1024px) { .rm-bottom-nav, .rm-bottom-spacer { display: none; } }

/* ---------- Section heads ---------- */
.rm-section { padding-top: 80px; }
.rm-section-head { text-align: center; margin-bottom: 32px; }
.rm-section-head h2, .rm-section-head h3 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--rm-ink); }
.rm-section-head p { margin: 10px 0 0; color: var(--rm-muted); }
.rm-section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.rm-section-head-row h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.rm-link { color: var(--rm-rose); font-weight: 600; text-decoration: none; padding: 10px 0; }
.rm-link:hover { color: var(--rm-rose-dark); text-decoration: underline; }
.section-title { font-weight: 700; letter-spacing: -.02em; }
.section-subtitle { color: var(--rm-muted); }

/* ---------- Cards ---------- */
.rm-card { background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-lift { transition: transform .25s ease, box-shadow .25s ease; }
.rm-lift:hover { transform: translateY(-6px); box-shadow: var(--rm-shadow); }
.rm-zoom { overflow: hidden; }
.rm-zoom img { transition: transform .6s ease; }
.rm-zoom:hover img, .rm-lift:hover .rm-zoom img { transform: scale(1.05); }

/* Product grid + card (used on home, listing, related) */
.rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .rm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .rm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) { .rm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rm-pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--rm-line); border-radius: 24px; padding: 8px; }
.rm-pcard-media { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--rm-soft); }
.rm-pcard-media img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: transform .6s ease; }
.rm-pcard:hover .rm-pcard-media img { transform: scale(1.05); }
.rm-pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 75%; }
.rm-pcard-like { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: #fff; color: var(--rm-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.rm-pcard-like:hover, .rm-pcard-like.text-rose-500 { color: var(--rm-rose); }
.rm-pcard-body { padding: 12px 6px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rm-pcard-title { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--rm-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.rm-pcard-title:hover { color: var(--rm-rose); }
.rm-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.rm-price { font-size: 19px; font-weight: 700; color: var(--rm-rose); }
.rm-price-old { font-size: 13px; color: #94A3B8; text-decoration: line-through; }
.rm-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 18px; }
.rm-swatch { width: 16px; height: 16px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; }
.rm-stars { display: flex; gap: 2px; color: #F59E0B; font-size: 12px; }
.rm-muted-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #94A3B8; }
@media (max-width: 640px) {
  .rm-pcard { padding: 6px; border-radius: 18px; }
  .rm-pcard-media { border-radius: 14px; }
  .rm-price { font-size: 17px; }
  .rm-pcard-like { width: 36px; height: 36px; }
}
/* classic card markup still used in a few places */
.product-card { border: 1px solid var(--rm-line); border-radius: 24px; padding: 8px; background: #fff; }
.product-card-media { border-radius: 18px; box-shadow: none; }
.product-card-img { aspect-ratio: 3 / 4; height: auto !important; object-position: top; }

/* ---------- Footer ---------- */
.rm-footer { background: var(--rm-navy); color: #CBD5E1; margin-top: 80px; }
.rm-footer a { color: #CBD5E1; text-decoration: none; }
.rm-footer a:hover { color: #fff; }
.rm-footer h4 { margin: 0 0 10px; color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.rm-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; line-height: 2.1; }
.rm-footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; }
.rm-footer-logo img { display: block; height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.rm-social { display: flex; gap: 8px; padding-top: 8px; }
.rm-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid #334155; display: flex; align-items: center; justify-content: center; }
.rm-social a:hover { background: #fff; color: var(--rm-navy); }
.rm-newsletter { display: flex; gap: 8px; padding-top: 6px; max-width: 340px; }
.rm-newsletter input { flex: 1; min-width: 0; height: 48px; border: 1px solid #334155; border-radius: 999px; background: transparent; color: #fff; padding: 0 18px; font: inherit; }
.rm-newsletter input::placeholder { color: #94A3B8; }
.rm-footer-bottom { border-top: 1px solid #1E293B; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
#scrollTopBtn { border-radius: 999px; }
@media (max-width: 1023px) { #scrollTopBtn { bottom: 84px !important; } }

/* ---------- Generic page pieces (auth, cart, static pages) ---------- */
.page-title { font-family: var(--rm-serif); font-weight: 600; }
.qui-card, .card { border-radius: var(--rm-radius); }
.qui-badge { border-radius: 999px; }
.qui-tab[aria-selected="true"] { color: var(--rm-rose-dark); }
.qui-pagination-list { flex-wrap: wrap; justify-content: center; }

/* Modal used for share / resell */
.rm-modal { position: fixed; inset: 0; z-index: 9990; display: none; align-items: center; justify-content: center; padding: 16px; }
.rm-modal.flex { display: flex; }
.rm-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rm-modal-dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; background: #fff; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px rgba(15, 23, 42, .35); }
.rm-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid var(--rm-line); border-radius: 20px; background: #fff; padding: 16px; font: inherit; color: var(--rm-ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.rm-option:hover { border-color: #FECDD3; background: var(--rm-rose-soft); }
.rm-option-green { border-color: #A7F3D0; background: #F0FDF4; }
.rm-option-green:hover { border-color: #6EE7B7; background: var(--rm-green-soft); }
.rm-option-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rm-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--rm-line); border-radius: 14px; padding: 4px; }
.rm-segment label { cursor: pointer; }
.rm-segment span { display: flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 11px; font-weight: 600; color: var(--rm-muted); }
.rm-segment input:checked + span { background: #fff; color: var(--rm-ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rm-lift, .rm-zoom img, .rm-pcard-media img, .rm-btn { transition: none !important; }
}

/* ---------- Home ---------- */
.rm-hero { position: relative; border-radius: 32px; overflow: hidden; background: var(--rm-navy); }
.rm-hero .swiper-slide { background: var(--rm-navy); }
.rm-hero-slide { display: flex; flex-wrap: wrap; min-height: 540px; }
.rm-hero-copy { flex: 1 1 440px; min-width: 0; box-sizing: border-box; padding: clamp(28px, 5vw, 68px); padding-bottom: 96px; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.rm-hero-kicker { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--rm-rose-light); }
.rm-hero-title { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.06; font-weight: 600; color: #fff; text-wrap: balance; }
.rm-hero-media { flex: 1 1 480px; min-width: 0; position: relative; min-height: 360px; }
.rm-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-hero-controls { position: absolute; z-index: 3; left: clamp(28px, 5vw, 68px); bottom: 56px; display: flex; align-items: center; gap: 10px; }
.rm-hero-dots.swiper-pagination { position: static; width: auto; display: flex; gap: 6px; margin-right: 8px; }
.rm-hero-dots .swiper-pagination-bullet { width: 20px; height: 6px; border-radius: 9px; background: #475569; opacity: 1; margin: 0 !important; transition: width .25s ease, background-color .25s ease; }
.rm-hero-dots .swiper-pagination-bullet-active { width: 40px; background: #F43F5E; }
.rm-hero-arrow { width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--rm-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rm-hero-arrow:hover { background: #fff; }
.rm-hero-product { position: absolute; z-index: 3; right: 16px; top: 16px; display: flex; align-items: center; gap: 12px; max-width: 290px; background: rgba(255, 255, 255, .95); color: var(--rm-ink); border-radius: 20px; padding: 8px 16px 8px 8px; box-shadow: 0 14px 30px rgba(15, 23, 42, .18); text-decoration: none; }
.rm-hero-product img { width: 52px; height: 64px; object-fit: cover; object-position: top; border-radius: 12px; flex: 0 0 auto; }
.rm-hero-product > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rm-hero-product-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .rm-hero-slide { min-height: 0; flex-direction: column-reverse; }
  .rm-hero-media { flex: 0 0 auto; min-height: 260px; }
  .rm-hero-copy { padding-bottom: 104px; flex: 0 0 auto; }
  .rm-hero-controls { bottom: 52px; }
}
@media (max-width: 640px) {
  .rm-hero { border-radius: 24px; }
  .rm-hero-copy .rm-btn { flex: 1 1 100%; }
  .rm-hero-product { left: 12px; right: 12px; top: 12px; max-width: none; }
  .rm-hero-arrow { display: none; }
}
.home-search-card { border-color: var(--rm-line) !important; }
.home-search-button { background: var(--rm-navy) !important; }
.home-search-button:hover { background: var(--rm-rose) !important; }

.rm-trust { max-width: 980px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rm-line); border-radius: 22px; overflow: hidden; text-align: center; }
.rm-trust > div { padding: 18px 12px; border-right: 1px solid var(--rm-line); display: flex; flex-direction: column; gap: 2px; }
.rm-trust > div:last-child { border-right: 0; }
.rm-trust strong { font-size: 20px; font-weight: 700; }
.rm-trust span { color: var(--rm-muted); font-size: 13px; }
@media (max-width: 700px) { .rm-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rm-trust > div:nth-child(2) { border-right: 0; } .rm-trust > div:nth-child(-n+2) { border-bottom: 1px solid var(--rm-line); } }

.rm-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rm-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .rm-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.rm-cat { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--rm-line); border-radius: 24px; background: #fff; color: var(--rm-ink); text-decoration: none; min-width: 0; }
.rm-cat:hover { color: var(--rm-ink); }
.rm-cat-media { display: block; border-radius: 18px; overflow: hidden; background: var(--rm-soft); }
.rm-cat-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.rm-cat:hover .rm-cat-media img { transform: scale(1.05); }
.rm-cat-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 6px 4px; font-weight: 600; font-size: 14px; }
.rm-cat-arrow { flex: 0 0 30px; height: 30px; border-radius: 999px; background: var(--rm-rose-soft); color: var(--rm-rose); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.rm-cat-all { justify-content: flex-end; gap: 8px; padding: 24px; background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; min-height: 180px; }
.rm-cat-all:hover { color: #fff; }
.rm-cat-all .rm-serif { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.15; }
.rm-cat-all span:last-child { color: #CBD5E1; }

.rm-promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.rm-promo { position: relative; min-height: 340px; border-radius: 32px; overflow: hidden; background: var(--rm-navy); color: #fff; }
.rm-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-promo-body { position: relative; min-height: 340px; box-sizing: border-box; background: rgba(15, 23, 42, .72); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.rm-promo-rose .rm-promo-body { background: rgba(136, 19, 55, .8); }
.rm-promo h3 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: #fff; }
.rm-promo p { margin: 0; max-width: 340px; line-height: 1.6; color: #E2E8F0; }

.rm-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.rm-steps li { border: 1px solid var(--rm-line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.rm-steps li > span:first-child { font-size: 40px; font-weight: 600; color: var(--rm-rose); line-height: 1; }
.rm-steps li strong { font-size: 18px; }
.rm-steps li > span:last-child { color: var(--rm-muted); line-height: 1.6; }
.rm-steps li.is-dark { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-steps li.is-dark > span:first-child { color: var(--rm-rose-light); }
.rm-steps li.is-dark > span:last-child { color: #CBD5E1; }

.rm-band { background: var(--rm-soft); }
.rm-section-band { margin-top: 80px; padding: 72px 0; }

.rm-insta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rm-insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rm-insta { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.rm-insta a { position: relative; display: block; border-radius: 24px; }
.rm-insta img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.rm-insta-icon { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--rm-navy); display: flex; align-items: center; justify-content: center; }

.rm-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; padding-top: 64px; }
.rm-perk { border: 1px solid var(--rm-line); border-radius: 22px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.rm-perk-icon { flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--rm-rose-soft); color: var(--rm-rose); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.rm-perk strong { display: block; }
.rm-perk span { color: var(--rm-muted); font-size: 13px; }
.rm-steps li.is-dark strong { color: #fff; }
@media (min-width: 1024px) { .rm-header .lg\:hidden { display: none !important; } }
@media (max-width: 1023px) { .rm-header .hidden.lg\:inline-flex, .rm-header .hidden.lg\:block { display: none !important; } }
.rm-count.hidden, .rm-badge.hidden { display: none !important; }
@media (max-width: 640px) {
  .rm-topbar .promo-swiper .swiper-slide { letter-spacing: .06em; font-size: 11px; }
  .rm-logo span { letter-spacing: .06em; font-size: 18px; }
}

/* ---------- Product detail ---------- */
.rm-crumbs { padding-top: 18px; padding-bottom: 18px; }
.rm-crumbs .qui-breadcrumb { font-size: 13px; color: var(--rm-muted); flex-wrap: wrap; }
.rm-crumbs .qui-breadcrumb a:hover { color: var(--rm-rose); }
.rm-pdp-main { border-radius: 28px; background: var(--rm-soft); }
.rm-pdp-main #galleryPrev, .rm-pdp-main #galleryNext { width: 44px; height: 44px; }
.gallery-thumbs-carousel .gallery-thumb { border-radius: 14px !important; aspect-ratio: 3 / 4 !important; }
.gallery-thumb.active { border-color: var(--rm-rose) !important; }
@media (min-width: 1024px) { .rm-pdp-info { position: sticky; top: 96px; } }
.rm-pdp-title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 600; color: var(--rm-ink); text-wrap: balance; }
.rm-pdp-price { font-size: clamp(28px, 3vw, 34px); font-weight: 700; color: var(--rm-rose); }
.rm-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rm-stock::before { content: ""; width: 8px; height: 8px; border-radius: 9px; background: currentColor; }
.rm-stock.is-in { color: #15803D; }
.rm-stock.is-out { color: var(--rm-muted); }
.rm-pdp-lead { margin: 8px 0 0; color: #475569; line-height: 1.7; }
.rm-pdp-options { border-top: 1px solid var(--rm-line); padding-top: 20px; }
.rm-pdp-options label > div.min-w-\[3\.5rem\] { border-radius: 14px; min-height: 46px; font-weight: 600; }
.rm-pdp-options .rounded-lg.border { border-radius: 18px; }
.rm-pdp-options .flex.items-center.border.rounded-full { border-color: var(--rm-line); }
.rm-pdp-options .qty-btn { width: 46px; height: 46px; }
.rm-pdp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.rm-pdp-actions .rm-share-btn { grid-column: 1 / -1; }
.rm-pdp-actions .rm-btn { width: 100%; }
@media (max-width: 420px) { .rm-pdp-actions { grid-template-columns: 1fr; } }
.rm-share-dialog { border-radius: 28px !important; padding: 22px !important; }
.rm-share-thumb { width: 52px; height: 64px; object-fit: cover; object-position: top; border-radius: 12px; flex: 0 0 auto; }
#shareChoicePanel { display: flex; flex-direction: column; gap: 10px; }
#shareChoicePanel.hidden { display: none; }
#resellMarginFields { background: var(--rm-soft) !important; border-radius: 20px !important; padding: 16px !important; }
.rm-quick-margins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rm-quick-margins button { min-height: 38px; padding: 0 14px; border: 1px solid var(--rm-line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rm-quick-margins button:hover { border-color: var(--rm-green); color: #047857; }
.qui-tabs-list .qui-tab { min-height: 52px; }
.qui-tabs-list .qui-tab[aria-selected="true"] { color: var(--rm-rose-dark); box-shadow: inset 0 -2px 0 var(--rm-rose); }

/* Card price line with action (design: price left, dark pill right) */
.rm-price-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-pcard-cta { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--rm-navy); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .2s ease; }
.rm-pcard-cta:hover { background: var(--rm-rose); color: #fff; }
.rm-pcard-cta i { font-size: 11px; }
@media (max-width: 640px) { .rm-pcard-cta { width: 40px; padding: 0; } .rm-pcard-cta-text { display: none; } .rm-pcard-cta i { font-size: 13px; } }
.rm-header .qui-nav-trigger.is-active { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }

/* Product trust boxes (design: three bordered tiles) */
.rm-pdp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 4px; }
.rm-pdp-trust > div { border: 1px solid var(--rm-line); border-radius: 18px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: #475569; }
.rm-pdp-trust i { color: var(--rm-rose); font-size: 18px; margin-bottom: 2px; }
.rm-pdp-trust strong { color: var(--rm-ink); font-size: 13px; }
.rm-pdp-trust a { color: var(--rm-rose); text-decoration: none; }
@media (max-width: 340px) { .rm-pdp-trust { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rm-pdp-trust > div { padding: 12px 6px; font-size: 12px; } .rm-pdp-trust strong { font-size: 12px; } }

/* Gallery: thumbnails in a column on the left (desktop), strip below on phones */
@media (min-width: 768px) {
  #productGallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
  #productGallery > * { margin: 0 !important; }
  #productGallery > .rm-pdp-main { grid-column: 2; grid-row: 1; }
  #productGallery > .relative:not(.rm-pdp-main) { grid-column: 1; grid-row: 1; }
  #productGallery .gallery-thumb-nav { display: none !important; }
  #productGallery .gallery-thumbs-carousel { flex-direction: column; padding: 2px; gap: 10px; max-height: 640px; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; }
  #productGallery .gallery-thumbs-carousel .gallery-thumb { flex: 0 0 auto; width: 100%; padding: 0; }
}

/* ---------- Touch targets and admin-written content ---------- */
@media (max-width: 767px) {
  .qui-btn:not(.btn-icon):not(.btn-icon-sm):not(.qty-btn) { min-height: 44px; }
  .home-search-suggestions a { min-height: 40px; display: inline-flex; align-items: center; }
  .home-search-input { min-height: 44px; }
  .qui-select-trigger, .app-select-trigger { min-height: 44px; }
  .qui-drawer-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .qui-radio-group-item { width: 20px; height: 20px; }
}
.qui-accordion-content h1, .qui-accordion-content h2, .qui-accordion-content h3, .qui-accordion-content h4 { font-size: 1rem; line-height: 1.5; margin: .75rem 0 .25rem; font-weight: 700; }
.qui-accordion-content { overflow-wrap: anywhere; }
.qui-accordion-item { border-radius: 20px !important; }
.rm-hero-arrows { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; gap: 8px; }
@media (max-width: 640px) { .rm-hero-arrows { display: none; } }
.rm-cart-label { display: none; }
@media (min-width: 640px) { .rm-cart-label { display: inline; } }
@media (min-width: 768px) {
  #productGallery { align-items: stretch; }
  #productGallery > .relative:not(.rm-pdp-main) { position: relative; align-self: stretch; }
  #productGallery .gallery-thumbs-carousel { position: absolute; inset: 0; max-height: none; }
}
@media (max-width: 640px) {
  .rm-topbar .promo-swiper .swiper-slide { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1023px) { #scrollTopBtn { display: none !important; } }
@media (max-width: 640px) { .container.text-center.max-w-3xl > p { text-align: left; } }
#togglePassword { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; right: 6px !important; }
[data-qui-modal-open="sizeGuideModal"] { min-height: 36px; padding: 0 4px; }

/* Fixed drawer must cover the whole screen: keep the blur on a pseudo layer, not the header itself */
.rm-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rm-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.rm-bottom-nav { z-index: 55; }

/* Size guide */
#sizeGuideModal .qui-modal-content { border-radius: 28px; max-width: 560px; }
.rm-guide-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--rm-soft); border-radius: 16px; padding: 4px; }
.rm-guide-tabs button { flex: 1 1 auto; min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--rm-muted); font: inherit; font-weight: 600; cursor: pointer; }
.rm-guide-tabs button[aria-selected="true"] { background: #fff; color: var(--rm-ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .12); }
.rm-guide-note { margin: 0 0 10px; font-size: 13px; color: var(--rm-muted); }
.rm-guide-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rm-guide-table th, .rm-guide-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rm-line); }
.rm-guide-table thead th { background: var(--rm-soft); color: var(--rm-muted); font-weight: 600; font-size: 12px; }
.rm-guide-table tbody th { font-weight: 700; color: var(--rm-ink); white-space: nowrap; }
.rm-guide-table tbody tr:hover { background: var(--rm-rose-soft); }
.rm-guide-measure { background: var(--rm-soft); border-radius: 18px; padding: 16px; }
.rm-guide-measure h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.rm-guide-measure ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; }
.rm-guide-measure li { display: flex; flex-direction: column; gap: 2px; }
.rm-guide-measure span { color: var(--rm-muted); }

/* ===== Header exactly like the design ===== */
.rm-header-row { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.rm-logo img { width: 40px; height: 40px; }
.rm-logo span { font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.rm-header .qui-nav-list { display: flex; gap: 6px; }
.rm-header .qui-nav-trigger { min-height: 42px; padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 20px; color: #334155; }
.rm-header .qui-nav-trigger:hover { background-color: var(--rm-soft) !important; color: var(--rm-ink); }
.rm-header .qui-nav-trigger.is-active { background-color: var(--rm-rose-soft) !important; color: var(--rm-rose-dark); }
.rm-header-link { align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--rm-ink); text-decoration: none; }
.rm-header-link:hover { background: var(--rm-soft); color: var(--rm-ink); }
.rm-cart-pill { gap: 8px; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.rm-cart-pill .rm-count, .rm-cart-pill .rm-count.hidden { display: inline !important; min-width: 0; height: auto; padding: 0; background: none; color: #fff; font-size: 15px; font-weight: 600; }
@media (max-width: 639px) { .rm-cart-pill { padding: 0 16px; } }
.rm-topbar { font-size: 12px; }

/* ===== Type scale (design: Inter 15px body; Playfair only for hero, promo, product title) ===== */
body { font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4, h5, h6, button, input, select, textarea, .qui-btn { font-family: var(--rm-sans); }
.rm-serif, .rm-hero-title, .rm-pdp-title, .rm-promo h3, .rm-cat-all .rm-serif, .rm-steps li > span:first-child { font-family: var(--rm-serif); }
.rm-section-head h2, .rm-section-head h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
.rm-pcard-title { font-size: 14px; font-weight: 600; }
.rm-price { font-size: 20px; font-weight: 700; }
@media (max-width: 640px) { .rm-price { font-size: 17px; } }

/* ===== Form focus, whole site =====
   Text fields: no outline box; border + soft ring on the field.
   Fields inside a shell (search pill, newsletter, stepper, password eye): ring on the shell. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible,
select:focus, select:focus-visible, textarea:focus, textarea:focus-visible { outline: none !important; }
.qui-input:focus, .rm-input:focus, .form-control:focus,
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=tel]:focus, input[type=number]:focus, input[type=search]:focus, input[type=date]:focus, input[type=url]:focus, select:focus, textarea:focus {
  border-color: var(--rm-navy) !important;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .14) !important;
}
.home-search-card input:focus, .rm-newsletter input:focus, .rm-pdp-options #qtyInput:focus, .flex.items-center.border.rounded-full input:focus, .rm-search-shell input:focus { box-shadow: none !important; border-color: transparent !important; }
.home-search-card:focus-within { border-color: var(--rm-navy) !important; box-shadow: 0 0 0 4px rgba(225, 29, 72, .14), 0 22px 55px rgba(15, 23, 42, .16) !important; }
.rm-newsletter input:focus { border-color: #fff !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18) !important; }
.rm-pdp-options .flex.items-center.border.rounded-full:focus-within, .flex.items-center.border.rounded-full:focus-within { border-color: var(--rm-navy); box-shadow: 0 0 0 4px rgba(225, 29, 72, .14); }
.app-select-trigger:focus, .app-select-trigger:focus-visible, .qui-select-trigger:focus { outline: none !important; border-color: var(--rm-navy) !important; box-shadow: 0 0 0 4px rgba(225, 29, 72, .14) !important; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible, input[type=range]:focus-visible { outline: 3px solid #F43F5E; outline-offset: 2px; }
.peer:focus-visible + * { box-shadow: 0 0 0 3px rgba(225, 29, 72, .35); }
input::placeholder, textarea::placeholder { color: #94A3B8; opacity: 1; }
@media (min-width: 1024px) { .rm-header .rm-header-link { display: inline-flex !important; } .rm-header details.account-menu { display: block !important; } .rm-header .rm-icon-btn.hidden { display: inline-flex !important; } .rm-header #mobileMenuButton { display: none !important; } }

/* Home FAQ */
.rm-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rm-faq details { border: 1px solid var(--rm-line); border-radius: 20px; background: #fff; }
.rm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 16px; }
.rm-faq summary::-webkit-details-marker { display: none; }
.rm-faq summary i { flex: 0 0 auto; color: var(--rm-rose); transition: transform .2s ease; }
.rm-faq details[open] summary i { transform: rotate(45deg); }
.rm-faq p { margin: 0; padding: 0 20px 18px; color: #475569; line-height: 1.7; }
.rm-keydetails { border: 1px solid var(--rm-line); border-radius: 20px; padding: 16px 18px; }
.rm-keydetails h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.rm-keydetails dl { margin: 0; display: grid; gap: 0; }
.rm-keydetails dl > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rm-line); font-size: 14px; }
.rm-keydetails dl > div:first-child { border-top: 0; }
.rm-keydetails dt { color: var(--rm-muted); }
.rm-keydetails dd { margin: 0; font-weight: 600; color: var(--rm-ink); overflow-wrap: anywhere; }
@media (max-width: 640px) { .rm-logo span { letter-spacing: .04em; font-size: 18px; } }

/* ---------- Blog ---------- */
.rm-blog-hero { background: linear-gradient(180deg, var(--rm-rose-soft), #fff); padding: 48px 0 32px; text-align: center; }
.rm-blog-hero h1 { margin: 10px auto 12px; max-width: 820px; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 600; text-wrap: balance; }
.rm-blog-hero > .rm-container > p { margin: 0 auto; max-width: 620px; color: #475569; font-size: 17px; line-height: 1.6; }
.rm-blog-search { position: relative; max-width: 560px; margin: 24px auto 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 16px 40px -24px rgba(15, 23, 42, .35); }
.rm-blog-search:focus-within { border-color: var(--rm-navy); box-shadow: 0 0 0 4px rgba(225, 29, 72, .14); }
.rm-blog-search i { color: var(--rm-muted); }
.rm-blog-search input { flex: 1; min-width: 0; height: 44px; border: 0 !important; box-shadow: none !important; background: transparent; font: inherit; }
.rm-blog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.rm-blog-chips a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rm-line); background: #fff; color: #334155; font-weight: 600; font-size: 14px; text-decoration: none; }
.rm-blog-chips a:hover, .rm-blog-chips a.is-active { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--rm-muted); }
.rm-blog-cat { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--rm-rose-soft); color: var(--rm-rose-dark); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rm-blog-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 8px; padding: 12px; border: 1px solid var(--rm-line); border-radius: 32px; background: #fff; }
.rm-blog-featured-media { display: block; border-radius: 24px; }
.rm-blog-featured-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rm-blog-featured-body { padding: 12px 20px 12px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rm-blog-featured-body h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.rm-blog-featured-body h2 a { color: var(--rm-ink); text-decoration: none; }
.rm-blog-featured-body p { margin: 0; color: #475569; line-height: 1.7; }
@media (max-width: 860px) { .rm-blog-featured { grid-template-columns: 1fr; padding: 8px; gap: 8px; } .rm-blog-featured-body { padding: 12px; } }
.rm-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 24px; }
.rm-blog-card { display: flex; flex-direction: column; border: 1px solid var(--rm-line); border-radius: 24px; background: #fff; padding: 8px; }
.rm-blog-card-media { display: block; border-radius: 18px; }
.rm-blog-card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rm-blog-card-body { padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rm-blog-card-body h2, .rm-blog-card-body h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; }
.rm-blog-card-body h2 a, .rm-blog-card-body h3 a { color: var(--rm-ink); text-decoration: none; }
.rm-blog-card-body h2 a:hover, .rm-blog-card-body h3 a:hover, .rm-blog-featured-body h2 a:hover { color: var(--rm-rose); }
.rm-blog-card-body p { margin: 0; color: #64748B; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rm-blog-date { margin-top: auto; font-size: 13px; color: #94A3B8; }
.rm-blog-empty { text-align: center; padding: 48px 0; }
.rm-blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--rm-navy); color: #fff; }
.rm-blog-cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: #fff; }
.rm-blog-cta p { margin: 0; color: #CBD5E1; }

/* Article */
.rm-article-head { max-width: 860px; text-align: center; padding-top: 32px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rm-article-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; color: var(--rm-muted); }
.rm-article-crumbs a { color: var(--rm-muted); text-decoration: none; } .rm-article-crumbs a:hover { color: var(--rm-rose); }
.rm-article-head h1 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.rm-article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--rm-muted); }
.rm-article-meta i { color: var(--rm-rose); margin-right: 4px; }
.rm-article-cover { margin: 0 auto; max-width: 1100px; border-radius: 28px; overflow: hidden; background: var(--rm-soft); }
.rm-article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rm-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; max-width: 1100px; padding-top: 40px; align-items: start; }
@media (max-width: 1023px) { .rm-article-layout { grid-template-columns: 1fr; gap: 32px; } .rm-article-aside .rm-toc { display: none; } }
@media (min-width: 1024px) { .rm-toc-mobile { display: none; } .rm-article-aside { position: sticky; top: 96px; } }
.rm-article-aside { display: flex; flex-direction: column; gap: 16px; }
.rm-toc { border: 1px solid var(--rm-line); border-radius: 20px; padding: 18px 18px 14px; background: #fff; }
.rm-toc-title, .rm-toc summary { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--rm-muted); cursor: pointer; }
.rm-toc-mobile { margin-bottom: 24px; }
.rm-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.rm-toc a { color: #334155; text-decoration: none; } .rm-toc a:hover { color: var(--rm-rose); }
.rm-aside-cta { border-radius: 20px; padding: 20px; background: var(--rm-navy); color: #CBD5E1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.rm-aside-cta p { margin: 0; font-size: 22px; color: #fff; }
.rm-article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rm-line); font-weight: 600; }
.rm-article-share span:first-child { margin-right: 6px; }

/* Article typography */
.rm-prose { font-size: 17px; line-height: 1.8; color: #1E293B; overflow-wrap: anywhere; }
.rm-prose > :first-child { margin-top: 0; }
.rm-prose p { margin: 0 0 1.1em; }
.rm-prose h2 { margin: 2em 0 .6em; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; font-weight: 700; color: var(--rm-ink); scroll-margin-top: 100px; text-wrap: balance; }
.rm-prose h3 { margin: 1.6em 0 .5em; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--rm-ink); }
.rm-prose a { color: var(--rm-rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.rm-prose ul, .rm-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.rm-prose li { margin: .35em 0; }
.rm-prose ul li::marker { color: var(--rm-rose); }
.rm-prose strong { color: var(--rm-ink); }
.rm-prose blockquote, .rm-prose aside { margin: 1.4em 0; padding: 18px 22px; border-radius: 18px; background: var(--rm-rose-soft); color: #4C0519; font-size: 16px; }
.rm-prose blockquote p:last-child, .rm-prose aside p:last-child { margin-bottom: 0; }
.rm-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.rm-prose th, .rm-prose td { padding: 10px 14px; border-bottom: 1px solid var(--rm-line); text-align: left; white-space: nowrap; }
.rm-prose thead th { background: var(--rm-soft); color: var(--rm-muted); font-size: 13px; }
.rm-prose img { border-radius: 16px; height: auto; }
.rm-prose hr { border: 0; border-top: 1px solid var(--rm-line); margin: 2em 0; }
@media (max-width: 640px) { .rm-prose { font-size: 16px; } }
/* Links inside headings keep the heading size (app.css sets a small size on all links) */
h1 a, h2 a, h3 a, h4 a, .rm-prose a { font-size: inherit; }

/* ---------- Static / policy pages ---------- */
.rm-doc-hero { background: linear-gradient(180deg, var(--rm-rose-soft), #fff); padding: 36px 0 28px; text-align: center; }
.rm-doc-hero .rm-container { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rm-doc-hero h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.rm-doc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.rm-doc-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rm-line); background: #fff; color: #334155; font-weight: 600; font-size: 14px; text-decoration: none; }
.rm-doc-tabs a:hover, .rm-doc-tabs a.is-active { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-docpage .rm-article-layout { padding-top: 32px; }
.rm-doc-prose { font-size: 16px; }
.rm-doc-prose h2 { padding-top: 18px; border-top: 1px solid var(--rm-line); font-size: clamp(21px, 2.2vw, 26px); }
.rm-doc-prose > h2:first-child, .rm-doc-prose > :first-child h2 { border-top: 0; padding-top: 0; }
.rm-doc-prose h3 { font-size: 18px; }
.rm-doc-prose h4 { margin: 1.3em 0 .4em; font-size: 16px; font-weight: 700; color: var(--rm-ink); }
.rm-doc-prose p { color: #334155; }
.rm-doc-prose ul, .rm-doc-prose ol { background: var(--rm-soft); border-radius: 16px; padding: 14px 18px 14px 36px; }
.rm-doc-prose li + li { margin-top: .4em; }
.rm-doc-prose h3[id] { padding-top: 16px; border-top: 1px solid var(--rm-line); scroll-margin-top: 100px; }
.rm-prose ul { list-style: disc; } .rm-prose ol { list-style: decimal; } .rm-prose ul ul { list-style: circle; }
.rm-prose li::marker { color: var(--rm-rose); }
.rm-doc-lead { margin: 0 auto; max-width: 680px; color: #475569; font-size: 17px; line-height: 1.65; }
.rm-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #334155; }

/* About */
.rm-about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.rm-about-split h2 { margin: 8px 0 14px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.rm-about-split p { color: #475569; line-height: 1.75; margin: 0 0 1em; }
.rm-about-media { border-radius: 28px; overflow: hidden; background: var(--rm-soft); }
.rm-about-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .rm-about-split { grid-template-columns: 1fr; } }
.rm-about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.rm-about-card { border: 1px solid var(--rm-line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rm-about-card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.rm-about-card p { margin: 0; color: #64748B; line-height: 1.65; }
.rm-about-card .rm-link { margin-top: auto; }
.rm-about-card.is-dark { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-about-card.is-dark h3 { color: #fff; } .rm-about-card.is-dark p { color: #CBD5E1; } .rm-about-card.is-dark .rm-link { color: var(--rm-rose-light); }
.rm-about-card.is-dark .rm-perk-icon { background: rgba(255, 255, 255, .1); color: var(--rm-rose-light); }

/* Contact */
.rm-contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .rm-contact-grid { grid-template-columns: 1fr; } }
.rm-contact-form { padding: clamp(20px, 3vw, 32px); }
.rm-contact-form h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.rm-contact-side { display: flex; flex-direction: column; gap: 12px; }
.rm-contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--rm-line); border-radius: 20px; background: #fff; color: var(--rm-ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
a.rm-contact-card:hover { border-color: var(--rm-navy); transform: translateY(-2px); color: var(--rm-ink); }
.rm-contact-card > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--rm-muted); }
.rm-contact-card strong { color: var(--rm-ink); font-size: 16px; }
.rm-contact-card em { font-style: normal; font-weight: 600; color: var(--rm-rose-dark); overflow-wrap: anywhere; }
.rm-contact-card a { color: var(--rm-rose-dark); }
.rm-contact-card.is-green { background: #F0FDF4; border-color: #A7F3D0; }
.rm-contact-card.is-green .rm-perk-icon { background: var(--rm-green); color: #fff; }
.rm-contact-card.is-green em { color: #047857; }

/* FAQ page */
.rm-faq-layout { padding-top: 28px; }
.rm-faq-page { max-width: none; }
.rm-faq-answer { padding: 0 20px 18px; font-size: 15px; }
.rm-faq-answer h4 { margin: 1em 0 .3em; font-size: 15px; }
.rm-prose li > p { margin: 0; }
.rm-faq-answer ul, .rm-faq-answer ol { background: none; padding: 0 0 0 1.3em; margin: .3em 0 .9em; }
.rm-faq-answer li { margin: .2em 0; }

/* =========================================================
   Account dashboards (customer, reseller, seller)
   ========================================================= */
body.rm-dash { background: #F4F6FB; }
.rm-dash .qui-sidebar-wrapper { z-index: 50; }
@media (min-width: 1024px) { .rm-dash .qui-sidebar-wrapper { z-index: 40; } }
.rm-dash .qui-sidebar { background: #fff; border-right: 1px solid var(--rm-line) !important; }
.rm-dash .qui-sidebar-header { min-height: 72px; padding: 14px 18px; }
.rm-dash-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.rm-dash .qui-sidebar-logo-text { font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--rm-ink); }
.rm-dash-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--rm-soft); border: 1px solid var(--rm-line); }
.rm-dash-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.rm-dash-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--rm-navy); color: #fff; font-weight: 700; font-size: 20px; }
.rm-dash-user-name { margin: 0; font-weight: 700; color: var(--rm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-dash-user-mail { margin: 0; font-size: 12px; color: var(--rm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-dash-role { display: inline-flex; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--rm-rose-soft); color: var(--rm-rose-dark); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rm-dash .qui-sidebar-group-label { padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #94A3B8; }
.rm-dash .qui-sidebar-item { min-height: 44px; margin: 2px 0; padding: 0 14px; border-radius: 14px; font-weight: 500; font-size: 14.5px; color: #334155; gap: 12px; }
.rm-dash .qui-sidebar-item:hover { background: var(--rm-soft); color: var(--rm-ink); }
.rm-dash .qui-sidebar-item.active { background: var(--rm-navy) !important; color: #fff !important; font-weight: 600; }
.rm-dash .qui-sidebar-item.active .qui-sidebar-icon { color: var(--rm-rose-light) !important; }
.rm-dash .qui-sidebar-icon { width: 18px; text-align: center; color: #94A3B8; }
.rm-dash .qui-sidebar-footer .qui-sidebar-item { color: var(--rm-rose-dark); }
.rm-dash .qui-sidebar-footer .qui-sidebar-item:hover { background: var(--rm-rose-soft); }

.rm-dash-mobilebar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rm-line); }
@media (min-width: 1024px) { .rm-dash-mobilebar { display: none; } }
.rm-dash-wrap { min-width: 0; padding: calc(var(--header-height) + 12px) 16px 0; }
@media (min-width: 1024px) { .rm-dash-wrap { margin-left: var(--sidebar-width); padding: 20px 28px 0; } }
.rm-dash-top { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 8px 0 20px; }
.rm-dash-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--rm-muted); }
.rm-dash-crumbs a { color: var(--rm-muted); text-decoration: none; } .rm-dash-crumbs a:hover { color: var(--rm-rose); }
.rm-dash-top h1 { margin: 6px 0 0; font-family: var(--rm-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--rm-ink); line-height: 1.15; }
.rm-dash-top-actions { display: flex; align-items: center; gap: 10px; }
.rm-dash-top-actions .rm-btn { min-height: 44px; }
@media (max-width: 640px) { .rm-dash-top-actions { display: none; } }
.rm-dash-main { max-width: 1240px; margin: 0 auto; }
.rm-dash-footer { max-width: 1240px; margin: 32px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--rm-line); font-size: 14px; }

/* Cards, panels and tables inside the dashboard */
.rm-dash-main .bg-white { border-radius: 24px !important; border: 1px solid var(--rm-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important; }
.rm-dash-main .rounded-xl, .rm-dash-main .rounded-2xl, .rm-dash-main .rounded-3xl { border-radius: 22px !important; }
.rm-dash-main .rounded-lg { border-radius: 14px !important; }
.rm-dash-main .bg-slate-50 { background: var(--rm-soft) !important; }
.rm-dash-main .shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important; }
.rm-dash-main .stat-card { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.rm-dash-main .stat-card:hover { transform: translateY(-3px); box-shadow: var(--rm-shadow) !important; }
.rm-dash-main h2.text-lg, .rm-dash-main h3.text-lg { font-size: 18px; font-weight: 700; }
.rm-dash-main table { width: 100%; border-collapse: separate; border-spacing: 0; }
.rm-dash-main thead th { background: var(--rm-soft); color: var(--rm-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--rm-line); white-space: nowrap; }
.rm-dash-main thead th:first-child { border-top-left-radius: 14px; } .rm-dash-main thead th:last-child { border-top-right-radius: 14px; }
.rm-dash-main tbody td { padding: 14px 16px; border-bottom: 1px solid #EEF2F7; font-size: 14px; vertical-align: middle; }
.rm-dash-main tbody tr:hover td { background: #FBFCFE; }
.rm-dash-main .qui-table-container, .rm-dash-main .overflow-x-auto { overflow-x: auto; }
.rm-dash-main .qui-btn.btn-primary { background: var(--rm-navy); color: #fff; border-radius: 999px; min-height: 42px; padding-left: 18px; padding-right: 18px; }
.rm-dash-main .qui-btn.btn-primary:hover { background: var(--rm-rose); }
.rm-dash-main .qui-btn.btn-outline, .rm-dash-main .qui-btn.btn-ghost { border-radius: 999px; min-height: 42px; }
.rm-dash-main .qui-badge { border-radius: 999px; font-weight: 700; }
.rm-dash-main label { font-weight: 600; color: #334155; }
.rm-dash-main .qui-input, .rm-dash-main input[type=text], .rm-dash-main input[type=email], .rm-dash-main input[type=number], .rm-dash-main input[type=tel], .rm-dash-main input[type=date], .rm-dash-main textarea, .rm-dash-main select { border-radius: 14px; border-color: var(--rm-line); }
.rm-dash-main .text-rose-500, .rm-dash-main .text-rose-600 { color: var(--rm-rose-dark); }
@media (max-width: 640px) { .rm-dash-main .bg-white { border-radius: 18px !important; } }
.rm-dash-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--rm-navy); color: #CBD5E1; }
.rm-dash-hello .rm-eyebrow { color: var(--rm-rose-light); margin: 0; }
.rm-dash-hello h2 { margin: 6px 0 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: #fff; }
.rm-dash-hello p { margin: 0; }
.rm-dash-hello-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.rm-dash { --header-height: 64px; --sidebar-width: 272px; }
@media (min-width: 1024px) { .rm-dash #qui-sidebar { width: var(--sidebar-width) !important; } }
.rm-dash .qui-sidebar-item.active span, .rm-dash .qui-sidebar-item.active { color: #fff !important; }
.rm-dash .qui-sidebar-item span { opacity: 1 !important; visibility: visible !important; }
.rm-dash .qui-sidebar-logo-icon { display: inline-flex !important; }
.rm-dash .qui-sidebar-logo { gap: 10px; }
@media (max-width: 1023px) { .rm-dash .qui-sidebar-wrapper { z-index: 70 !important; } }
.rm-dash .qui-sidebar-logo-icon img { display: block !important; }

/* ---------- Auth pages (login, sign up, forgot, reset) ---------- */
.rm-auth-body { margin: 0; background: var(--rm-soft); min-height: 100vh; font-size: 15px; }
.rm-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.rm-auth-aside { display: none; }
@media (min-width: 1024px) {
  .rm-auth { grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); }
  .rm-auth-aside { position: sticky; top: 0; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px; color: #CBD5E1; overflow: hidden;
    background: radial-gradient(circle at 85% 12%, rgba(225, 29, 72, .35), transparent 42%), radial-gradient(circle at 10% 95%, rgba(253, 164, 175, .16), transparent 40%), var(--rm-navy); }
  .rm-auth-brand-mobile { visibility: hidden; }
}
.rm-auth-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; }
.rm-auth-brand img { border-radius: 12px; background: #fff; object-fit: contain; }
.rm-auth-aside .rm-auth-brand { color: #fff; }
.rm-auth-pitch .rm-eyebrow { color: var(--rm-rose-light); }
.rm-auth-pitch > p { margin: 14px 0 28px; color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; font-weight: 600; max-width: 480px; }
.rm-auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rm-auth-pitch li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.rm-auth-pitch li i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 72, .18); color: var(--rm-rose-light); }
.rm-auth-pitch li span { font-size: 14px; line-height: 1.5; }
.rm-auth-pitch li strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.rm-auth-stats { display: flex; gap: 32px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; }
.rm-auth-stats strong { display: block; color: #fff; font-size: 22px; font-weight: 700; }
.rm-auth-stats span { font-size: 13px; }

.rm-auth-main { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 28px; box-sizing: border-box; min-width: 0; }
.rm-auth-top { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.rm-auth-brand-mobile { color: var(--rm-navy); font-size: 17px; }
.rm-auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--rm-muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--rm-line); }
.rm-auth-back:hover { color: var(--rm-navy); border-color: var(--rm-navy); }
@media (min-width: 1024px) {
  .rm-auth-main { justify-content: center; padding: 32px 40px; }
  .rm-auth-top { max-width: 460px; }
}
.rm-auth-panel { width: 100%; max-width: 480px; box-sizing: border-box; background: #fff; border: 1px solid var(--rm-line); border-radius: 28px; padding: 28px 22px; box-shadow: var(--rm-shadow); }
@media (min-width: 640px) { .rm-auth-panel { padding: 40px 40px 34px; } }
.rm-auth-head { margin-bottom: 22px; }
.rm-auth-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 34px); line-height: 1.15; font-weight: 600; color: var(--rm-navy); }
.rm-auth-head p { margin: 0; color: var(--rm-muted); line-height: 1.55; }
.rm-auth-head strong { color: var(--rm-navy); word-break: break-all; }
.rm-auth-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--rm-rose-soft); color: var(--rm-rose); font-size: 20px; margin-bottom: 16px; }
.rm-auth-icon.is-green { background: var(--rm-green-soft); color: var(--rm-green); }

.rm-auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: var(--rm-rose-soft); color: var(--rm-rose-dark); border: 1px solid #FECDD3; font-size: 14px; line-height: 1.5; }
.rm-auth-alert i { margin-top: 3px; }
.rm-auth-alert p { margin: 0; }
.rm-auth-alert.is-ok { background: var(--rm-green-soft); color: #047857; border-color: #A7F3D0; }
.rm-auth-error { display: block; font-size: 13px; color: var(--rm-rose-dark); }

.rm-auth-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rm-auth-social .rm-btn { font-weight: 600; }
.rm-auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--rm-muted); font-size: 13px; }
.rm-auth-or::before, .rm-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--rm-line); }

.rm-auth-form { display: grid; gap: 16px; }
.rm-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 340px) { .rm-auth-row { grid-template-columns: 1fr; } }
.rm-auth-form .rm-input { height: 50px; font-size: 15px; }
.rm-auth-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rm-auth-labelrow a { font-size: 13px; font-weight: 600; color: var(--rm-rose-dark); text-decoration: none; margin-bottom: 6px; }
.rm-auth-labelrow a:hover { text-decoration: underline; }
.rm-auth-input { position: relative; }
.rm-auth-input > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; }
.rm-auth-input .rm-input { padding-left: 44px; }
.rm-auth-input .rm-input:has(+ .rm-auth-eye) { padding-right: 48px; }
.rm-auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #64748B; cursor: pointer; display: grid; place-items: center; }
.rm-auth-eye:hover { background: var(--rm-soft); color: var(--rm-navy); }
.rm-auth-input:focus-within > i { color: var(--rm-navy); }
.rm-auth-hint { margin: 6px 0 0; font-size: 13px; color: var(--rm-muted); }
.rm-auth-meter { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--rm-line); overflow: hidden; }
.rm-auth-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s ease, background-color .25s ease; }
.rm-auth-check { align-items: flex-start; gap: 10px; }
.rm-auth-check .qui-checkbox-indicator { margin-top: 1px; flex: none; }
.rm-auth-check .qui-checkbox-label { font-size: 14px; color: #475569; line-height: 1.5; }
.rm-auth-check a { color: var(--rm-rose-dark); font-weight: 600; }
.rm-auth-form .rm-btn { margin-top: 4px; }
.rm-auth-form .rm-btn.is-loading { opacity: .75; cursor: progress; }
.rm-auth-switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--rm-muted); }
.rm-auth-switch a, .rm-auth-seller a, .rm-auth-help a { color: var(--rm-rose-dark); font-weight: 600; text-decoration: none; }
.rm-auth-switch a:hover, .rm-auth-seller a:hover, .rm-auth-help a:hover { text-decoration: underline; }
.rm-auth-seller { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--rm-soft); text-align: center; font-size: 14px; color: #475569; }
.rm-auth-seller i { color: var(--rm-navy); margin-right: 4px; }
.rm-auth-help { margin: 20px 0 0; font-size: 14px; color: var(--rm-muted); text-align: center; }
.rm-auth-panel .g-recaptcha { max-width: 100%; overflow: hidden; }

/* ---------- Cart & checkout ---------- */
.rm-cart-hero { background: linear-gradient(180deg, var(--rm-rose-soft), #fff); border-bottom: 1px solid var(--rm-line); padding: 18px 0 22px; }
.rm-cart-hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 10px; }
.rm-cart-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 600; color: var(--rm-navy); display: flex; align-items: baseline; gap: 12px; }
.rm-cart-hero h1 span { font-family: var(--rm-sans); font-size: 14px; font-weight: 600; color: var(--rm-muted); }
.rm-flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rm-flow li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rm-muted); }
.rm-flow li + li::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--rm-line); margin-right: 2px; }
.rm-flow li > span { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--rm-line); font-size: 12px; color: var(--rm-muted); transition: all .2s ease; }
.rm-flow li.is-active, .rm-flow li.active { color: var(--rm-navy); }
.rm-flow li.is-active > span, .rm-flow li.active > span { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-flow li.completed { color: var(--rm-green); }
.rm-flow li.completed > span { background: var(--rm-green); border-color: var(--rm-green); color: transparent; position: relative; }
.rm-flow li.completed > span::after { content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900; color: #fff; position: absolute; font-size: 11px; }
.rm-flow li.completed + li::before { background: var(--rm-green); }
@media (max-width: 639px) { .rm-flow { width: 100%; justify-content: space-between; } .rm-flow li + li::before { width: 10px; } .rm-checkout-steps li { font-size: 0; gap: 0; } .rm-checkout-steps li.active { font-size: 13px; gap: 8px; } }

.rm-cart-section { padding-top: 28px; padding-bottom: 56px; }
.rm-cart-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .rm-cart-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } .rm-cart-aside { position: sticky; top: 96px; } }

.rm-cart-items { display: grid; gap: 14px; }
.rm-cart-item { display: flex; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--rm-line); border-radius: 22px; transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease; }
.rm-cart-item:hover { box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .35); }
.rm-cart-thumb { flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--rm-soft); display: grid; place-items: center; color: #94A3B8; font-size: 22px; }
.rm-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .rm-cart-thumb { width: 112px; } .rm-cart-item { padding: 16px; } }
.rm-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.rm-cart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rm-cart-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--rm-navy); text-decoration: none; margin: 0; }
a.rm-cart-title:hover { color: var(--rm-rose-dark); }
.rm-cart-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--rm-muted); }
.rm-cart-opts span { padding: 3px 9px; border-radius: 999px; background: var(--rm-soft); }
.rm-cart-opts strong { color: var(--rm-navy); font-weight: 600; }
.rm-cart-warn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; font-size: 12px; font-weight: 700; text-decoration: none; }
.rm-cart-unit { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--rm-rose-dark); }
.rm-cart-unit span { font-weight: 500; color: var(--rm-muted); font-size: 12px; }
.rm-cart-remove { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: #94A3B8; cursor: pointer; display: grid; place-items: center; }
.rm-cart-remove:hover { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-cart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-cart-line { margin: 0; font-size: 17px; font-weight: 700; color: var(--rm-navy); }
.rm-cart-item.is-missing { align-items: center; background: var(--rm-soft); }
.rm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rm-line); border-radius: 999px; background: #fff; padding: 2px; }
.rm-qty:focus-within { border-color: var(--rm-navy); box-shadow: 0 0 0 4px rgba(225, 29, 72, .14); }
.rm-qty button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--rm-navy); cursor: pointer; font-size: 12px; display: grid; place-items: center; }
.rm-qty button:hover:not(:disabled) { background: var(--rm-soft); }
.rm-qty button:disabled { color: #CBD5E1; cursor: not-allowed; }
.rm-qty input { width: 40px; height: 34px; border: 0 !important; box-shadow: none !important; background: transparent; text-align: center; font: inherit; font-weight: 700; font-size: 14px; color: var(--rm-navy); -moz-appearance: textfield; padding: 0; }
.rm-qty input::-webkit-outer-spin-button, .rm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rm-cart-continue { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--rm-rose-dark); text-decoration: none; }
.rm-cart-continue:hover { text-decoration: underline; }

.rm-cart-empty { max-width: 560px; margin: 24px auto; text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--rm-line); border-radius: 28px; }
.rm-cart-empty-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose); font-size: 30px; }
.rm-cart-empty h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; color: var(--rm-navy); }
.rm-cart-empty p { margin: 0 auto 24px; max-width: 400px; color: var(--rm-muted); line-height: 1.6; }
.rm-cart-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.rm-summary { background: #fff; border: 1px solid var(--rm-line); border-radius: 24px; padding: 22px; box-shadow: 0 22px 44px -32px rgba(15, 23, 42, .45); }
.rm-summary h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--rm-navy); }
.rm-coupon { position: relative; display: flex; align-items: center; border: 1.5px dashed #CBD5E1; border-radius: 14px; background: var(--rm-soft); padding: 4px 4px 4px 38px; margin-bottom: 16px; }
.rm-coupon:focus-within { border-style: solid; border-color: var(--rm-navy); box-shadow: 0 0 0 4px rgba(225, 29, 72, .14); background: #fff; }
.rm-coupon > i { position: absolute; left: 14px; color: var(--rm-rose); }
.rm-coupon input { flex: 1; min-width: 0; height: 40px; border: 0 !important; box-shadow: none !important; background: transparent; font: inherit; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--rm-navy); padding: 0; }
.rm-coupon input::placeholder { text-transform: none; letter-spacing: 0; }
.rm-coupon button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--rm-navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rm-coupon button:hover { background: var(--rm-rose); }
.rm-coupon-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border-radius: 14px; background: var(--rm-green-soft); color: #047857; font-size: 14px; border: 1px solid #A7F3D0; }
.rm-coupon-applied span { flex: 1; }
.rm-coupon-applied button { border: 0; background: transparent; color: var(--rm-rose-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rm-summary-rows { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.rm-summary-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.rm-summary-rows > div.hidden { display: none; }
.rm-summary-rows dt { color: var(--rm-muted); }
.rm-summary-rows dt small { font-size: 11px; }
.rm-summary-rows dd { margin: 0; font-weight: 600; color: var(--rm-navy); text-align: right; white-space: nowrap; }
.rm-summary-rows .is-green dt, .rm-summary-rows .is-green dd { color: #047857; }
.rm-free { color: #047857; font-weight: 700; }
.rm-summary-was { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--rm-muted); }
.rm-summary-was.hidden { display: none; }
.rm-summary-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 18px; padding-top: 16px; border-top: 1px dashed var(--rm-line); }
.rm-summary-was + .rm-summary-total { margin-top: 6px; padding-top: 6px; border-top: 0; }
.rm-summary-total > span { font-weight: 700; color: var(--rm-navy); display: flex; flex-direction: column; gap: 2px; }
.rm-summary-total small { font-size: 12px; font-weight: 500; color: var(--rm-muted); }
.rm-summary-total small#fullyPaidBadge { color: #047857; font-weight: 700; }
.rm-summary-total small.hidden { display: none; }
.rm-summary-total strong { font-size: 26px; font-weight: 800; color: var(--rm-navy); letter-spacing: -.01em; }
.rm-summary-trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rm-line); display: grid; gap: 8px; font-size: 13px; color: #475569; }
.rm-summary-trust i { width: 18px; color: var(--rm-green); }
.rm-summary-items { list-style: none; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--rm-line); display: grid; gap: 12px; max-height: 260px; overflow-y: auto; }
.rm-summary-items li { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.rm-summary-items li > span:last-child { font-weight: 700; color: var(--rm-navy); white-space: nowrap; }
.rm-summary-thumb { position: relative; flex: none; width: 48px; height: 60px; border-radius: 10px; overflow: visible; }
.rm-summary-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--rm-soft); }
.rm-summary-thumb em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--rm-navy); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rm-summary-name { flex: 1; min-width: 0; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

.rm-cart-mobilebar { display: none; }
@media (max-width: 1023px) {
  .rm-cart-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(61px + env(safe-area-inset-bottom, 0px)); z-index: 55; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--rm-line); box-shadow: 0 -10px 30px -20px rgba(15, 23, 42, .4); }
  .rm-cart-mobilebar span { display: block; font-size: 12px; color: var(--rm-muted); }
  .rm-cart-mobilebar strong { font-size: 18px; color: var(--rm-navy); }
  .rm-cart-section:has(.rm-cart-mobilebar) { padding-bottom: 96px; }
}

.rm-checkout-main { display: grid; gap: 16px; min-width: 0; }
.rm-co-card { background: #fff; border: 1px solid var(--rm-line); border-radius: 24px; padding: 20px; }
.rm-co-card.hidden { display: none; }
@media (min-width: 640px) { .rm-co-card { padding: 26px; } }
.rm-co-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.rm-co-num { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose-dark); font-weight: 800; }
.rm-co-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--rm-navy); }
.rm-co-head p { margin: 2px 0 0; font-size: 14px; color: var(--rm-muted); }
.rm-co-form { display: grid; gap: 14px; }
@media (min-width: 640px) { .rm-co-form { grid-template-columns: 1fr 1fr; } .rm-co-form .rm-col-2 { grid-column: span 2; } }
.rm-co-form .rm-input { height: 50px; font-size: 15px; }
.rm-co-form .rm-input.is-invalid { border-color: var(--rm-rose) !important; background: #FFF7F8; }
.rm-co-account { padding: 14px; border-radius: 16px; background: var(--rm-soft); }
.rm-co-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--rm-soft); font-size: 14px; color: #475569; }
.rm-co-note i { color: var(--rm-navy); margin-right: 4px; }
.rm-co-note a, .rm-co-link { color: var(--rm-rose-dark); font-weight: 700; text-decoration: none; }
.rm-co-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; }
.rm-co-note a:hover, .rm-co-link:hover { text-decoration: underline; }
.rm-co-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94A3B8; }
.rm-co-divider::before, .rm-co-divider::after { content: ""; flex: 1; height: 1px; background: var(--rm-line); }
#onlinePaymentSection.is-disabled { opacity: .4; pointer-events: none; filter: grayscale(1); }
.rm-co-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-co-nav #nextBtn { margin-left: auto; min-width: 220px; }
.rm-co-nav .hidden { display: none; }
@media (max-width: 639px) { .rm-co-nav #nextBtn { flex: 1; min-width: 0; } }

.rm-choice-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .rm-choice-grid { grid-template-columns: 1fr 1fr; } }
.rm-choice-list { display: grid; gap: 10px; }
.rm-choice { position: relative; display: block; cursor: pointer; }
.rm-choice > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rm-choice-box { position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 16px 44px 16px 16px; border: 1.5px solid var(--rm-line); border-radius: 18px; background: #fff; font-size: 14px; color: #475569; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.rm-choice-box strong { color: var(--rm-navy); font-size: 15px; }
.rm-choice:hover .rm-choice-box { border-color: #94A3B8; }
.rm-choice > input:checked + .rm-choice-box { border-color: var(--rm-navy); background: #FBFCFE; box-shadow: 0 0 0 4px rgba(15, 23, 42, .06); }
.rm-choice > input:focus-visible + .rm-choice-box { box-shadow: 0 0 0 4px rgba(225, 29, 72, .25); }
.rm-choice-tick { position: absolute; top: 14px; right: 14px; font-size: 20px; color: var(--rm-line); transition: color .2s ease; }
.rm-choice > input:checked + .rm-choice-box .rm-choice-tick { color: var(--rm-rose); }
.rm-choice-row { flex-direction: row; align-items: center; gap: 14px; }
.rm-choice-row .rm-choice-tick { top: 50%; transform: translateY(-50%); }
.rm-choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-choice-text b { color: var(--rm-navy); }
.rm-choice-price { margin-right: 4px; white-space: nowrap; }
.rm-choice-icon, .rm-choice-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose); font-size: 18px; }
.rm-choice-icon.is-green { background: var(--rm-green-soft); color: var(--rm-green); }
.rm-choice-logo { background: #fff; border: 1px solid var(--rm-line); padding: 4px; box-sizing: border-box; }
.rm-choice-logo img { width: 100%; height: 100%; object-fit: contain; }
.rm-choice-wallet > input:checked + .rm-choice-box { border-color: var(--rm-green); background: var(--rm-green-soft); }
.rm-choice-wallet > input:checked + .rm-choice-box .rm-choice-tick { color: var(--rm-green); }
.rm-review-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.rm-review-list li { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rm-line); }
.rm-review-list img { flex: none; width: 56px; height: 70px; border-radius: 12px; object-fit: cover; background: var(--rm-soft); }
.rm-review-list div { flex: 1; min-width: 0; }
.rm-review-list p { margin: 0; font-weight: 600; color: var(--rm-navy); font-size: 14px; line-height: 1.4; }
.rm-review-list span { font-size: 13px; color: var(--rm-muted); }
.rm-review-list strong { white-space: nowrap; color: var(--rm-navy); }

/* Order placed */
.rm-success { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--rm-line); border-radius: 28px; padding: 40px 22px; box-shadow: var(--rm-shadow); }
@media (min-width: 640px) { .rm-success { padding: 48px 44px; } }
.rm-success-check { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 999px; display: grid; place-items: center; background: var(--rm-green); color: #fff; font-size: 36px; box-shadow: 0 0 0 10px var(--rm-green-soft); animation: rm-pop .5s ease; }
@keyframes rm-pop { 0% { transform: scale(0); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rm-success-check { animation: none; } }
.rm-success h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); font-weight: 600; color: var(--rm-navy); }
.rm-success > p { margin: 0 auto 24px; max-width: 440px; color: var(--rm-muted); line-height: 1.6; }
.rm-success-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rm-line); border: 1px solid var(--rm-line); border-radius: 18px; overflow: hidden; text-align: left; margin-bottom: 24px; }
.rm-success-facts div { background: var(--rm-soft); padding: 14px 16px; min-width: 0; }
.rm-success-facts span { display: block; font-size: 12px; color: var(--rm-muted); }
.rm-success-facts strong { display: block; margin-top: 2px; color: var(--rm-navy); overflow-wrap: anywhere; }
.rm-success-next { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; text-align: left; }
.rm-success-next li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--rm-muted); line-height: 1.5; }
.rm-success-next li > i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose); }
.rm-success-next strong { display: block; color: var(--rm-navy); font-size: 15px; }
.rm-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rm-auth-tag { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #CBD5E1; }

/* ---------- Account: wishlist & orders ---------- */
.rm-btn-sm { min-height: 40px; padding: 0 1rem; font-size: .875rem; }
.rm-acc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.rm-acc-bar > p { margin: 0; color: var(--rm-muted); font-size: 14px; }
.rm-acc-empty { max-width: 520px; margin: 24px auto; text-align: center; padding: 44px 24px; background: #fff; border: 1px solid var(--rm-line); border-radius: 28px; }
.rm-acc-empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose); font-size: 28px; }
.rm-acc-empty h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; color: var(--rm-navy); }
.rm-acc-empty p { margin: 0 auto 22px; color: var(--rm-muted); line-height: 1.6; }

.rm-wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .rm-wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1280px) { .rm-wish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rm-wish-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rm-line); border-radius: 22px; overflow: hidden; transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease; }
.rm-wish-card:hover { box-shadow: 0 18px 36px -24px rgba(15, 23, 42, .45); }
.rm-wish-card.is-off .rm-wish-media img { filter: grayscale(1); opacity: .6; }
.rm-wish-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--rm-soft); overflow: hidden; }
.rm-wish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rm-wish-card:hover .rm-wish-media img { transform: scale(1.04); }
.rm-wish-flag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--rm-navy); color: #fff; font-size: 11px; font-weight: 700; }
.rm-wish-flag.is-new { background: var(--rm-green); }
.rm-wish-heart { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 16px rgba(15, 23, 42, .15); display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.rm-wish-heart:hover { transform: scale(1.06); }
.rm-wish-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.rm-wish-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--rm-navy); text-decoration: none; }
.rm-wish-title:hover { color: var(--rm-rose-dark); }
.rm-wish-rating { color: #F59E0B; font-size: 11px; display: flex; gap: 2px; }
.rm-wish-price { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--rm-rose-dark); }
.rm-wish-body .rm-btn { margin-top: auto; }
@media (max-width: 479px) { .rm-wish-body .rm-btn { font-size: 13px; padding: 0 .6rem; } }

.rm-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
.rm-filter::-webkit-scrollbar { display: none; }
.rm-filter button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rm-line); background: #fff; color: #334155; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rm-filter button:hover { border-color: #94A3B8; }
.rm-filter button.is-active { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }

.rm-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rm-status > i.fa-circle { font-size: 7px; }
.rm-status.is-blue { background: #EFF6FF; color: #1D4ED8; }
.rm-status.is-amber { background: #FFFBEB; color: #B45309; }
.rm-status.is-green { background: var(--rm-green-soft); color: #047857; }
.rm-status.is-red { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-status.is-grey { background: #F1F5F9; color: #475569; }

.rm-orders { display: grid; gap: 14px; }
.rm-orders-none { margin: 0; padding: 28px; text-align: center; color: var(--rm-muted); background: #fff; border: 1px dashed var(--rm-line); border-radius: 22px; }
.rm-orders-none.hidden { display: none; }
.rm-order { position: relative; background: #fff; border: 1px solid var(--rm-line); border-radius: 22px; padding: 16px; transition: box-shadow .2s ease, border-color .2s ease; }
.rm-order[hidden] { display: none; }
.rm-order:hover { border-color: #CBD5E1; box-shadow: 0 18px 36px -26px rgba(15, 23, 42, .5); }
.rm-order-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.rm-order-link:focus-visible { outline: 3px solid #F43F5E; outline-offset: 2px; }
.rm-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rm-line); }
.rm-order-id { margin: 0; font-weight: 700; color: var(--rm-navy); }
.rm-order-date { margin: 2px 0 0; font-size: 13px; color: var(--rm-muted); }
.rm-order-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: center; padding-top: 12px; }
@media (min-width: 768px) { .rm-order-body { grid-template-columns: auto minmax(0, 1fr) auto; } }
.rm-order-thumbs { display: flex; }
.rm-order-thumbs img, .rm-order-more { width: 52px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; background: var(--rm-soft); box-shadow: 0 2px 6px rgba(15, 23, 42, .1); }
.rm-order-thumbs > * + * { margin-left: -14px; }
.rm-order-more { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--rm-navy); }
.rm-order-info { min-width: 0; }
.rm-order-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--rm-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-order-title span { font-weight: 500; color: var(--rm-muted); }
.rm-order-eta { margin: 4px 0 0; font-size: 13px; color: #047857; }
.rm-order-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 1 / -1; }
@media (min-width: 768px) { .rm-order-side { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 4px; } }
.rm-order-side strong { font-size: 18px; color: var(--rm-navy); }
.rm-order-cta { font-size: 13px; font-weight: 700; color: var(--rm-rose-dark); }
.rm-order-cta i { font-size: 10px; margin-left: 2px; }

.rm-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--rm-muted); text-decoration: none; }
.rm-back-link:hover { color: var(--rm-navy); }
.rm-od-head, .rm-od-card { background: #fff; border: 1px solid var(--rm-line); border-radius: 24px; padding: 20px; }
@media (min-width: 640px) { .rm-od-head, .rm-od-card { padding: 24px; } }
.rm-od-head { margin-bottom: 18px; }
.rm-od-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rm-od-title { display: flex; align-items: center; gap: 10px; }
.rm-od-meta { margin: 8px 0 0; font-size: 14px; color: var(--rm-muted); }
.rm-track { list-style: none; margin: 22px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.rm-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rm-track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--rm-line); z-index: 0; }
.rm-track li:first-child::before { display: none; }
.rm-track li.is-done::before, .rm-track li.is-now::before { background: var(--rm-green); }
.rm-track-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 3px solid var(--rm-line); color: #fff; font-size: 11px; box-sizing: border-box; }
.rm-track li.is-done .rm-track-dot { background: var(--rm-green); border-color: var(--rm-green); }
.rm-track li.is-now .rm-track-dot { border-color: var(--rm-green); box-shadow: 0 0 0 5px var(--rm-green-soft); }
.rm-track li.is-now .rm-track-dot:empty::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--rm-green); }
.rm-track li.is-now:last-child .rm-track-dot { background: var(--rm-green); }
.rm-track-label { font-size: 12px; font-weight: 600; color: var(--rm-muted); line-height: 1.3; }
.rm-track li.is-done .rm-track-label, .rm-track li.is-now .rm-track-label { color: var(--rm-navy); }
@media (max-width: 479px) { .rm-track-label { font-size: 10.5px; } }
.rm-od-eta { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--rm-green-soft); color: #065F46; font-size: 14px; }
.rm-od-tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--rm-soft); }
.rm-od-trackid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1; min-width: 0; }
.rm-od-trackid span { font-size: 12px; font-weight: 700; color: var(--rm-muted); text-transform: uppercase; letter-spacing: .06em; }
.rm-od-trackid strong { color: var(--rm-navy); word-break: break-all; }
.rm-od-hint { margin: 0; width: 100%; font-size: 12.5px; color: var(--rm-muted); line-height: 1.5; }
.rm-od-actions .rm-od-hint { width: auto; }

.rm-od-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .rm-od-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.rm-od-side { display: grid; gap: 18px; }
.rm-od-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--rm-navy); }
.rm-od-items { display: grid; }
.rm-od-item { padding: 14px 0; border-top: 1px solid var(--rm-line); }
.rm-od-item:first-child { border-top: 0; padding-top: 0; }
.rm-od-item:last-child { padding-bottom: 0; }
.rm-od-item-row { display: flex; gap: 14px; align-items: flex-start; }
.rm-od-thumb { flex: none; width: 72px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--rm-soft); }
.rm-od-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rm-od-item-info { flex: 1; min-width: 0; }
.rm-od-item-title { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--rm-navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-od-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rm-od-chips span { padding: 3px 9px; border-radius: 999px; background: var(--rm-soft); font-size: 12px; color: #475569; }
.rm-od-chips span.is-qty { background: var(--rm-rose-soft); color: var(--rm-rose-dark); font-weight: 700; }
.rm-od-item-price { white-space: nowrap; color: var(--rm-navy); font-size: 16px; }
.rm-od-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-left: 86px; }
@media (max-width: 479px) { .rm-od-actions { padding-left: 0; } }
.rm-od-note { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; font-size: 13px; }
.rm-od-note.is-blue { background: #EFF6FF; color: #1E40AF; }
.rm-od-note.is-green { background: var(--rm-green-soft); color: #065F46; }
.rm-od-note a { font-weight: 700; color: inherit; }
.rm-od-note code { word-break: break-all; }
.rm-od-dispatch { margin-top: 14px; padding: 16px; border-radius: 18px; border: 2px dashed #BFDBFE; background: #F8FBFF; }
.rm-od-dispatch-head { display: flex; gap: 12px; margin-bottom: 14px; }
.rm-od-dispatch-head > span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #2563EB; color: #fff; }
.rm-od-dispatch-head strong { color: #1E3A8A; }
.rm-od-dispatch-head p { margin: 2px 0 0; font-size: 13px; color: #1E40AF; line-height: 1.5; }
.rm-od-dispatch-addr { margin-bottom: 14px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #DBEAFE; }
.rm-od-dispatch-addr span { font-size: 12px; font-weight: 700; color: var(--rm-muted); }
.rm-od-dispatch-addr p { margin: 4px 0 0; font-size: 14px; color: var(--rm-navy); }
.rm-od-dispatch-form { display: grid; gap: 12px; }
.rm-od-address { font-style: normal; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #475569; line-height: 1.5; }
.rm-od-address strong { color: var(--rm-navy); font-size: 15px; }
.rm-od-help p { margin: 0 0 12px; font-size: 14px; color: #475569; line-height: 1.5; }
.rm-od-help strong { display: block; color: var(--rm-navy); }
.rm-od-card .rm-summary-total { margin-bottom: 0; }
@media (max-width: 639px) {
  .rm-od-tracking { flex-direction: column; align-items: stretch; }
  .rm-od-trackid { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .rm-od-trackid span { grid-column: 1 / -1; }
  .rm-od-trackid strong { font-size: 16px; }
  .rm-od-tracking > .rm-btn { width: 100%; }
}

/* ---------- Account: addresses & profile ---------- */
.rm-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: #64748B; display: grid; place-items: center; cursor: pointer; }
.rm-icon-btn:hover { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-addr-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .rm-addr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .rm-addr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rm-addr { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1.5px solid var(--rm-line); border-radius: 22px; min-width: 0; }
.rm-addr.is-default { border-color: var(--rm-navy); box-shadow: 0 0 0 4px rgba(15, 23, 42, .05); }
.rm-addr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rm-addr-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rm-rose-soft); color: var(--rm-rose); }
.rm-addr-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--rm-navy); }
.rm-addr-lines { font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #475569; line-height: 1.5; overflow-wrap: anywhere; }
.rm-addr-phone { margin-top: 6px; color: var(--rm-navy); font-weight: 600; }
.rm-addr-phone i { font-size: 12px; color: #94A3B8; margin-right: 4px; }
.rm-addr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.rm-addr-del { margin-left: auto; }
.rm-addr-add { align-items: center; justify-content: center; text-align: center; min-height: 220px; border-style: dashed; background: var(--rm-soft); color: var(--rm-muted); text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.rm-addr-add:hover { border-color: var(--rm-rose); background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-addr-add strong { color: var(--rm-navy); font-size: 15px; }
.rm-addr-add span:last-child { font-size: 13px; }

.rm-form-card { background: #fff; border: 1px solid var(--rm-line); border-radius: 24px; padding: 20px; }
@media (min-width: 640px) { .rm-form-card { padding: 26px; } }
.rm-form-card h3 { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--rm-navy); }
.rm-form-card .rm-input { height: 50px; font-size: 15px; }
.rm-form-card textarea.rm-input { height: auto; min-height: 96px; resize: vertical; }
.rm-form-card select.rm-input { appearance: none; -webkit-appearance: none; background-image: 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='%2364748B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.rm-form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rm-line); }
.rm-co-form .rm-form-actions { margin-top: 4px; }
.rm-form-meta { margin-right: auto; font-size: 13px; color: var(--rm-muted); }
.rm-optional { font-weight: 500; font-size: 12px; color: #94A3B8; }
@media (max-width: 479px) { .rm-form-actions .rm-btn { flex: 1; } .rm-form-meta { width: 100%; } }

.rm-profile { display: grid; gap: 18px; }
.rm-profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 22px; border-radius: 24px; color: #CBD5E1; background: radial-gradient(circle at 90% 0%, rgba(225, 29, 72, .35), transparent 45%), var(--rm-navy); }
.rm-avatar-pick { position: relative; cursor: pointer; flex: none; border-radius: 999px; }
.rm-avatar-pick:focus-within { outline: 3px solid #F43F5E; outline-offset: 3px; }
.rm-avatar-big { width: 88px; height: 88px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: var(--rm-rose); color: #fff; font-size: 34px; font-weight: 700; border: 3px solid rgba(255, 255, 255, .9); }
.rm-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.rm-avatar-big img[hidden], .rm-avatar-big span[hidden] { display: none; }
.rm-avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--rm-navy); font-size: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.rm-avatar-pick:hover .rm-avatar-edit { background: var(--rm-rose-soft); }
.rm-profile-who { min-width: 0; flex: 1; }
.rm-profile-who h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.rm-profile-who p { margin: 2px 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.rm-profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rm-profile-since { font-size: 13px; }
.rm-profile-photo-hint { margin: 0; width: 100%; font-size: 12.5px; color: #94A3B8; }
@media (min-width: 900px) { .rm-profile-photo-hint { width: auto; max-width: 200px; text-align: right; } }
.rm-profile-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1100px) { .rm-profile-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.rm-profile-side { display: grid; gap: 12px; }
.rm-side-link { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--rm-line); border-radius: 20px; text-decoration: none; color: #475569; font-size: 13px; transition: border-color .2s ease; }
a.rm-side-link:hover { border-color: #94A3B8; }
.rm-side-link > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.rm-side-link strong { color: var(--rm-navy); font-size: 15px; }
.rm-side-link > i { color: #94A3B8; font-size: 12px; }
.rm-gender { border: 0; margin: 0; padding: 0; min-width: 0; }
.rm-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-seg label { flex: 1; min-width: 80px; cursor: pointer; }
.rm-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rm-seg span { display: flex; align-items: center; justify-content: center; height: 50px; border: 1.5px solid var(--rm-line); border-radius: 14px; font-weight: 600; font-size: 14px; color: #475569; transition: all .2s ease; }
.rm-seg label:hover span { border-color: #94A3B8; }
.rm-seg input:checked + span { border-color: var(--rm-navy); background: var(--rm-navy); color: #fff; }
.rm-seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(225, 29, 72, .25); }

/* ---------- Account: settings & wallet ---------- */
.rm-settings { display: grid; gap: 18px; max-width: 860px; }
.rm-set-list { display: grid; }
.rm-set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rm-line); text-decoration: none; color: #475569; font-size: 13.5px; min-width: 0; }
.rm-set-row:first-child { border-top: 0; padding-top: 0; }
.rm-set-row:last-child { padding-bottom: 0; }
a.rm-set-row:hover strong { color: var(--rm-rose-dark); }
.rm-set-row > i { color: #94A3B8; font-size: 12px; }
.rm-set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.rm-set-text strong { color: var(--rm-navy); font-size: 15px; }
.rm-set-row .rm-btn, .rm-set-row .rm-status { flex: none; }
.rm-set-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--rm-soft); }
.rm-set-help h3 { margin-bottom: 4px; }
.rm-set-help p { margin: 0; font-size: 14px; color: #475569; max-width: 460px; }
.rm-set-help-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.rm-wallet { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .rm-wallet { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.rm-wallet-main, .rm-wallet-side { border-radius: 24px; padding: 22px; }
.rm-wallet-main { display: flex; gap: 16px; align-items: flex-start; color: #CBD5E1; background: radial-gradient(circle at 92% 8%, rgba(225, 29, 72, .4), transparent 45%), var(--rm-navy); }
.rm-wallet-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; }
.rm-wallet-main p, .rm-wallet-side p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.rm-wallet-main strong { display: block; margin: 4px 0 8px; color: #fff; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.rm-wallet-main span { font-size: 13px; line-height: 1.5; }
.rm-wallet-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--rm-green-soft); border: 1px solid #A7F3D0; color: #047857; }
.rm-wallet-side strong { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: #065F46; }
.rm-wallet-side .rm-btn-white { border-color: #A7F3D0; color: #065F46; }

.rm-tx-panel[hidden] { display: none; }
.rm-tx-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rm-tx { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rm-line); min-width: 0; }
.rm-tx:first-child { border-top: 0; padding-top: 0; }
.rm-tx:last-child { padding-bottom: 0; }
.rm-tx-icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 15px; }
.rm-tx-icon.is-green { background: var(--rm-green-soft); color: #047857; }
.rm-tx-icon.is-blue { background: #EFF6FF; color: #1D4ED8; }
.rm-tx-icon.is-violet { background: #F5F3FF; color: #6D28D9; }
.rm-tx-icon.is-amber { background: #FFFBEB; color: #B45309; }
.rm-tx-icon.is-rose, .rm-tx-icon.is-red { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-tx-icon.is-grey { background: #F1F5F9; color: #475569; }
.rm-tx-info { flex: 1; min-width: 0; }
.rm-tx-info p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--rm-navy); overflow-wrap: anywhere; }
.rm-tx-info p code { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--rm-muted); }
.rm-tx-info > span { font-size: 12.5px; color: var(--rm-muted); }
.rm-tx-amt { white-space: nowrap; font-size: 16px; color: var(--rm-navy); }
.rm-tx-amt.is-in { color: #047857; }
.rm-tx-amt.is-out { color: var(--rm-rose-dark); }
.rm-tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rm-tx-right .rm-status { padding: 3px 10px; font-size: 11.5px; }
.rm-tx-empty { text-align: center; padding: 28px 12px; color: var(--rm-muted); }
.rm-tx-empty i { font-size: 26px; color: #CBD5E1; }
.rm-tx-empty p { margin: 10px 0 4px; font-weight: 700; color: var(--rm-navy); }
.rm-tx-empty span { font-size: 13px; }

/* ---------- Seller pages ---------- */
.rm-sl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-sl-search { position: relative; flex: 1; min-width: 220px; }
.rm-sl-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; }
.rm-sl-search input { width: 100%; height: 48px; box-sizing: border-box; padding: 0 16px 0 44px; border: 1.5px solid var(--rm-line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--rm-ink); }
.rm-sl-chips { margin-bottom: 16px; }
.rm-filter button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--rm-soft); color: var(--rm-navy); font-size: 11.5px; font-weight: 700; box-sizing: border-box; }
.rm-filter button.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.rm-sl-list { display: grid; gap: 10px; }
.rm-sl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--rm-line); border-radius: 20px; }
.rm-sl-row[hidden] { display: none; }
@media (min-width: 900px) { .rm-sl-row { grid-template-columns: auto minmax(0, 1fr) auto auto; } }
.rm-sl-thumb { width: 56px; height: 70px; border-radius: 12px; overflow: hidden; background: var(--rm-soft); }
.rm-sl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rm-sl-main { min-width: 0; }
.rm-sl-title { display: block; font-weight: 600; font-size: 14.5px; color: var(--rm-navy); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-sl-title:hover { color: var(--rm-rose-dark); }
.rm-sl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 12.5px; color: var(--rm-muted); }
.rm-sl-meta .rm-status { padding: 3px 10px; font-size: 11.5px; }
.rm-sl-stock { font-weight: 600; color: #475569; }
.rm-sl-stock.is-low { color: #B45309; }
.rm-sl-stock.is-out { color: var(--rm-rose-dark); }
.rm-sl-money { display: flex; gap: 18px; grid-column: 2 / -1; }
@media (min-width: 900px) { .rm-sl-money { grid-column: auto; } }
.rm-sl-money div { display: flex; flex-direction: column; }
.rm-sl-money span { font-size: 11.5px; color: var(--rm-muted); }
.rm-sl-money strong { font-size: 15px; color: var(--rm-navy); white-space: nowrap; }
.rm-sl-money .is-earn strong { color: #047857; }
.rm-sl-action { grid-row: 1; grid-column: 3; }
@media (max-width: 899px) { .rm-sl-action span { display: none; } .rm-sl-action { width: 40px; padding: 0; } }
@media (min-width: 900px) { .rm-sl-action { grid-row: auto; grid-column: auto; } }
.rm-sl-more { justify-self: center; margin-top: 6px; }
.rm-sl-more[hidden], [data-rm-none][hidden] { display: none; }

.rm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 1024px) { .rm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rm-kpi { padding: 16px; border-radius: 20px; border: 1px solid var(--rm-line); background: #fff; min-width: 0; }
.rm-kpi span { display: block; font-size: 12.5px; font-weight: 600; color: var(--rm-muted); }
.rm-kpi strong { display: block; margin-top: 6px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; color: var(--rm-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-kpi small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--rm-muted); line-height: 1.4; }
.rm-kpi.is-violet { background: #F5F3FF; border-color: #DDD6FE; } .rm-kpi.is-violet strong { color: #5B21B6; }
.rm-kpi.is-blue { background: #EFF6FF; border-color: #BFDBFE; } .rm-kpi.is-blue strong { color: #1E40AF; }
.rm-kpi.is-green { background: var(--rm-green-soft); border-color: #A7F3D0; } .rm-kpi.is-green strong { color: #065F46; }
.rm-kpi.is-rose { background: var(--rm-rose-soft); border-color: #FECDD3; } .rm-kpi.is-rose strong { color: var(--rm-rose-dark); }

.rm-order-earn { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) { .rm-order-side .rm-order-earn { align-items: flex-end; } }
.rm-order-earn span { font-size: 11.5px; color: var(--rm-muted); }
.rm-order-earn strong { font-size: 18px; color: #047857; }
.rm-order-earn.is-big { align-items: flex-end; } .rm-order-earn.is-big strong { font-size: 24px; }
.rm-order-eta.is-todo { color: #B45309; }
.rm-earn-text { color: #047857; } .rm-earn-text.is-rose { color: var(--rm-rose-dark); }
.rm-od-mainstack { display: grid; gap: 18px; min-width: 0; }
.rm-od-sum { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rm-line); }
.rm-od-sum .is-total dt, .rm-od-sum .is-total dd { color: var(--rm-navy); font-weight: 800; font-size: 15px; }
.rm-od-form { display: grid; gap: 14px; }
.rm-od-form .rm-input { height: 48px; }
.rm-od-form textarea.rm-input { height: auto; min-height: 88px; padding-top: 12px; }
.rm-od-addr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rm-od-lead { margin: 0 0 14px; font-size: 14px; color: #475569; line-height: 1.6; }
.rm-seg-stack label { min-width: 0; }
.rm-seg-stack span { gap: 6px; font-size: 13px; }
.rm-btn-danger { color: var(--rm-rose-dark); border-color: #FECDD3; }
.rm-btn-danger:hover { background: var(--rm-rose-soft); border-color: var(--rm-rose); color: var(--rm-rose-dark); }

.rm-ret-paths { display: grid; gap: 14px; }
@media (min-width: 768px) { .rm-ret-paths { grid-template-columns: 1fr 1fr; } }
.rm-ret-path { padding: 16px; border: 1.5px solid var(--rm-line); border-radius: 18px; display: grid; gap: 10px; align-content: start; }
.rm-ret-path-head { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rm-navy); }
.rm-ret-path-head span { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; }
.rm-ret-path-head .is-green { background: var(--rm-green-soft); color: #047857; }
.rm-ret-path-head .is-rose { background: var(--rm-rose-soft); color: var(--rm-rose-dark); }
.rm-ret-video { width: 100%; border-radius: 14px; background: #000; }
.rm-ret-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rm-ret-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--rm-line); }
.rm-od-item-row + .rm-od-note { margin-top: 14px; }
.rm-od-note + .rm-od-note { margin-top: 10px; }

.rm-wd-grid { margin-top: 0; }
@media (min-width: 1100px) { .rm-wd-grid { grid-template-columns: minmax(0, 1fr) 360px; } .rm-wd-grid > aside { order: 2; } }
.rm-wd-row .rm-tx-info { display: flex; flex-direction: column; gap: 2px; }
.rm-wd-note { color: var(--rm-rose-dark) !important; }
.rm-wd-max { justify-self: start; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--rm-rose-dark); cursor: pointer; }
.rm-wd-pages { margin-top: 14px; }
.rm-od-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rm-od-form .rm-input:disabled, .rm-od-form .rm-seg input:disabled + span { opacity: .55; cursor: not-allowed; }

.rm-apply-hero { justify-content: space-between; }
.rm-apply-hero .rm-eyebrow { color: var(--rm-rose-light); }
.rm-apply-hero h2 { margin-top: 8px !important; font-family: var(--rm-serif); font-size: clamp(24px, 3vw, 30px) !important; }
.rm-apply-hero p { max-width: 520px; line-height: 1.6; }
.rm-apply-steps { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 768px) { .rm-apply-steps { grid-template-columns: repeat(3, 1fr); } }
.rm-apply-steps > div { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--rm-line); border-radius: 18px; }
.rm-apply-steps > div > span { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--rm-navy); color: #fff; font-weight: 800; }
.rm-apply-steps p { margin: 0; font-size: 13px; color: var(--rm-muted); display: flex; flex-direction: column; }
.rm-apply-steps strong { color: var(--rm-navy); font-size: 14.5px; }
.rm-form-sub { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--rm-line); }
#seller-application-alert[hidden] { display: none; }
.rm-auth-alert a { color: inherit; font-weight: 700; }

/* Product add/edit form: restyle without touching its scripts */
.rm-seller-form > .grid > div > .bg-white { border-radius: 24px !important; border: 1px solid var(--rm-line) !important; box-shadow: none !important; }
.rm-seller-form label.block.text-sm { color: var(--rm-navy); font-weight: 600; }
.rm-seller-form .qui-input, .rm-seller-form select, .rm-seller-form textarea { border-radius: 14px !important; border: 1.5px solid var(--rm-line); min-height: 48px; font-size: 15px; }
.rm-seller-form textarea { min-height: 140px; }
.rm-seller-form [data-product-submit-button] { min-height: 52px; border-radius: 999px !important; font-size: 1rem; }
.rm-seller-form .variant-dropzone { border-radius: 18px !important; border-width: 2px !important; background: var(--rm-soft) !important; }
.rm-seller-form .variant-dropzone:hover { border-color: var(--rm-rose) !important; background: var(--rm-rose-soft) !important; }
@media (min-width: 1024px) { .rm-seller-form > .grid > div:last-child > .bg-white { position: sticky; top: 96px; } }
@media (max-width: 1099px) { .rm-wd-grid > aside { order: -1; } }

/* ---------- Reseller pages ---------- */
.rm-wallet-side.is-amber { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.rm-wallet-side.is-amber strong { color: #92400E; }
.rm-wallet-side.is-amber .rm-btn-white { border-color: #FDE68A; color: #92400E; }
.rm-wallet-note { display: block; margin-top: 4px; font-size: 12.5px; }
.rm-rs-how { margin-bottom: 20px; }
.rm-rs-steps { list-style: none; padding: 0; margin: 0; }
.rm-rs-steps > li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--rm-soft); border-radius: 18px; }
.rm-rs-steps > li > span { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--rm-rose); color: #fff; font-weight: 800; }
.rm-rs-steps p { margin: 0; font-size: 13px; color: var(--rm-muted); display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.rm-rs-steps strong { color: var(--rm-navy); font-size: 14.5px; }
.rm-section-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--rm-navy); }
.rm-rs-code { padding: 2px 8px; border-radius: 8px; background: var(--rm-rose-soft); color: var(--rm-rose-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 12px; }
.rm-rs-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
@media (min-width: 900px) { .rm-rs-row { grid-template-columns: auto minmax(0, 1fr) auto auto; } .rm-rs-actions { grid-column: auto; } }
@media (max-width: 899px) { .rm-rs-row .rm-sl-money { grid-column: 2 / -1; } .rm-rs-actions .rm-btn-outline { flex: 1; } }
.rm-od-note.is-amber { background: #FFFBEB; color: #92400E; margin-top: 4px; }
.rm-od-note.is-blue { margin-top: 4px; }
.rm-od-card > .rm-auth-alert { margin: 4px 0 0; }
