/* ============================================================
   Robert Magazin — storefront theme
   Design system extracted from the approved mockup.
   All classes are prefixed `rm-` and scoped to `.rm-body`
   so they never collide with Bootstrap (still loaded for OC JS)
   or the admin UI.
   ============================================================ */

:root {
  --rm-primary:      #1449c9;
  --rm-primary-600:  #103aa6;
  --rm-primary-800:  #0c2f8f;
  --rm-ink:          #171a21;
  --rm-bg:           #f5f6f9;
  --rm-surface:      #ffffff;
  --rm-tint:         #eef2fd;   /* light blue tint */
  --rm-gold:         #c99a3f;   /* logo gold — readable on white */
  --rm-gold-light:   #e6c377;   /* logo gold — for dark surfaces */
  --rm-red:          #e23b34;
  --rm-green:        #2aa869;
  --rm-amber:        #f5a623;
  --rm-line:         #eef0f5;
  --rm-line-2:       #e7e9f0;
  --rm-line-3:       #f2f3f7;
  --rm-muted:        #8b93a3;
  --rm-muted-2:      #9aa3b2;
  --rm-muted-3:      #6b7280;
  --rm-text-2:       #5a6273;
  --rm-text-3:       #4b5263;
  --rm-radius:       14px;
  --rm-radius-sm:    10px;
  --rm-maxw:         1240px;
  --rm-shadow-card:  0 6px 20px -12px rgba(20,30,60,.18);
  --rm-shadow-pop:   0 24px 40px -18px rgba(20,30,60,.28);
}

/* ---- link-colour specificity guards -----------------------
   `.rm-body a` sets a default link colour; these raise specificity
   so component links (buttons, nav pills, cards) keep their colour. */
.rm-body a.rm-btn-primary, .rm-body a.rm-btn-dark { color:#fff; }
.rm-body a.rm-btn-light, .rm-body a.rm-btn-tint, .rm-body a.rm-add { color: var(--rm-primary); }
.rm-body a.rm-btn-tint:hover, .rm-body a.rm-add:hover { color:#fff; }
.rm-body a.rm-btn-outline { color: var(--rm-text-3); }
.rm-body a.rm-btn-outline:hover { color: var(--rm-primary); }
.rm-body a.rm-nav-all, .rm-body a.rm-nav-all:hover { color:#fff; }
.rm-body a.rm-nav-sale { color: var(--rm-red); }
.rm-body a.rm-haction, .rm-body a.rm-haction:hover { color: var(--rm-ink); }
.rm-body a.rm-catcard, .rm-body a.rm-catcard:hover { color: inherit; }
.rm-body a.rm-prod-name { color: var(--rm-ink); }
.rm-body a.rm-prod-name:hover { color: var(--rm-primary); }
.rm-body a.rm-slide-btn { color: var(--rm-primary-800); }
.rm-body a.rm-foot-brand { color:#fff; }

/* OpenCart's stylesheet sets `h1..h6 { color:#444 }` directly on the elements,
   which beats inherited colour on coloured panels. Force white where needed. */
.rm-body .rm-deal h3, .rm-body .rm-deal p,
.rm-body .rm-promo-dark h3,
.rm-body .rm-contact-hero h1,
.rm-body .rm-news-t,
.rm-body .rm-acc-side-head,
.rm-body .rm-on-dark h1, .rm-body .rm-on-dark h2, .rm-body .rm-on-dark h3,
.rm-body .rm-slide-in h2 { color:#fff !important; }
.rm-body .rm-promo-light h3 { color: var(--rm-ink); }

/* ---- base ------------------------------------------------- */
.rm-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--rm-ink);
  background: var(--rm-bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  /* sticky footer: keep the footer at the bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.rm-body * { box-sizing: border-box; }
.rm-body a { color: var(--rm-primary); text-decoration: none; }
.rm-body a:hover { color: var(--rm-primary-600); }
.rm-body img { max-width: 100%; }
.rm-body ::selection { background: var(--rm-primary); color: #fff; }
.rm-body h1,.rm-body h2,.rm-body h3,.rm-body h4 { letter-spacing: -.02em; }
.rm-wrap { max-width: var(--rm-maxw); margin: 0 auto; padding: 0 20px; }
.rm-main { flex: 1 0 auto; padding-bottom: 60px; }
.rm-foot { flex-shrink: 0; }

@keyframes rm-marq { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@keyframes rm-fadeup { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform: translateY(0);} }

/* ---- buttons --------------------------------------------- */
.rm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  border: none; border-radius: var(--rm-radius-sm); padding: 13px 26px;
  transition: filter .15s, background .15s, color .15s, border-color .15s, transform .15s;
  text-align: center;
}
.rm-btn-primary { background: var(--rm-primary); color: #fff; }
.rm-btn-primary:hover { filter: brightness(1.08); color:#fff; }
.rm-btn-dark { background: var(--rm-ink); color: #fff; }
.rm-btn-dark:hover { filter: brightness(1.15); color:#fff; }
.rm-btn-light { background: #fff; color: var(--rm-primary); }
.rm-btn-outline { background: #fff; color: var(--rm-text-3); border: 1px solid var(--rm-line-2); }
.rm-btn-outline:hover { border-color: var(--rm-primary); color: var(--rm-primary); }
.rm-btn-tint { background: var(--rm-tint); color: var(--rm-primary); }
.rm-btn-tint:hover { background: var(--rm-primary); color: #fff; }
.rm-btn-block { width: 100%; }
.rm-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- badges ---------------------------------------------- */
.rm-badge { position:absolute; top:12px; left:12px; z-index:3; color:#fff;
  font-size:11px; font-weight:700; padding:4px 9px; border-radius:6px; }
.rm-badge-red { background: var(--rm-red); }
.rm-badge-blue { background: var(--rm-primary); }
.rm-badge-dark { background: var(--rm-ink); }
.rm-chip { display:inline-block; font-size:12.5px; font-weight:700; padding:4px 10px; border-radius:6px; }
.rm-chip-save { background:#fdecea; color: var(--rm-red); }

/* ---- section heads --------------------------------------- */
.rm-eyebrow { font-size:13px; font-weight:700; color: var(--rm-primary); letter-spacing:.06em; }
.rm-sechead { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:20px; }
.rm-sechead h2, .rm-sechead h3 { font-size:28px; font-weight:800; margin:6px 0 0; }
.rm-link-more { font-size:14px; font-weight:700; color: var(--rm-primary); cursor:pointer; white-space:nowrap; }

/* ---- cards ----------------------------------------------- */
.rm-card { background: var(--rm-surface); border:1px solid var(--rm-line); border-radius: var(--rm-radius); }
.rm-card-pad { padding: 22px; }

/* ---- product card ---------------------------------------- */
.rm-prod {
  background:#fff; border:1px solid var(--rm-line); border-radius: var(--rm-radius);
  overflow:hidden; position:relative; transition: all .2s;
  display:flex; flex-direction:column;
}
.rm-prod:hover { border-color:#cdd9f7; box-shadow:0 14px 30px -16px rgba(20,73,201,.35); transform: translateY(-3px); }
.rm-prod-img { display:flex; align-items:center; justify-content:center; height:210px;
  background:#ffffff; position:relative; overflow:hidden; padding:10px; }
.rm-prod-img img { max-width:70%; max-height:100%; width:auto; height:auto; margin:0 auto;
  object-fit:contain; transition:transform .25s; }
.rm-prod:hover .rm-prod-img img { transform:scale(1.04); }
.rm-prod-wish { position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%;
  background:#fff; box-shadow:0 3px 10px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center;
  color: var(--rm-muted); font-size:16px; border:none; cursor:pointer; z-index:3; }
.rm-prod-wish:hover { color: var(--rm-red); }
.rm-prod-body { padding:16px; display:flex; flex-direction:column; flex:1; }
.rm-prod-cat { font-size:11.5px; color: var(--rm-muted-2); font-weight:600; margin-bottom:5px; }
.rm-prod-name { font-weight:600; font-size:14.5px; line-height:1.3; min-height:38px; color: var(--rm-ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rm-prod-name:hover { color: var(--rm-primary); }
.rm-stars { color: var(--rm-amber); font-size:13px; letter-spacing:1px; }
.rm-rate { display:flex; align-items:center; gap:5px; margin:8px 0; }
.rm-rate small { font-size:12px; color: var(--rm-muted-2); }
.rm-prod-foot { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:10px; }
.rm-price { display:flex; align-items:baseline; gap:7px; }
.rm-price-now { font-weight:800; font-size:18px; color: var(--rm-ink); }
.rm-price-old { font-size:13px; color:#b0b7c3; text-decoration: line-through; }
.rm-add { height:44px; min-width:44px; padding:0 16px; border-radius:var(--rm-radius-sm); background: var(--rm-tint);
  color: var(--rm-primary); display:inline-flex; align-items:center; justify-content:center; gap:8px;
  cursor:pointer; border:none; font-weight:700; font-size:13.5px; transition: all .15s; }
.rm-add:hover { background: var(--rm-primary); color:#fff; }

/* ---- product grids --------------------------------------- */
.rm-grid { display:grid; gap:16px; }
.rm-grid-6 { grid-template-columns: repeat(6,1fr); }
.rm-grid-4 { grid-template-columns: repeat(4,1fr); }
.rm-grid-3 { grid-template-columns: repeat(3,1fr); }
.rm-grid-2 { grid-template-columns: repeat(2,1fr); }

/* ============ ANNOUNCEMENT BAR ============ */
.rm-announce { background:#0f1420; color:#c9cfda; font-size:12.5px; letter-spacing:.02em; }
.rm-announce .rm-wrap { display:flex; justify-content:space-between; align-items:center; gap:16px;
  flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }
.rm-announce a { color:#c9cfda; }
.rm-announce .rm-sep { opacity:.4; }
.rm-announce-l, .rm-announce-r { display:flex; gap:18px; align-items:center; }

/* ============ HEADER ============ */
.rm-sticky { position:sticky; top:0; z-index:100; background:#fff; box-shadow: var(--rm-shadow-card); }
.rm-header { background:#fff; border-bottom:1px solid var(--rm-line); }
.rm-header .rm-wrap { display:flex; align-items:center; gap:28px; padding-top:20px; padding-bottom:20px; }
/* brand lockup: emblem plaque (from the official logo) + live-text wordmark.
   The plaque JPEGs are opaque on purpose — the corners are rounded here, which
   keeps the files a fraction of the size of an alpha PNG. */
.rm-logo { display:flex; align-items:center; gap:12px; line-height:1; flex-shrink:0; }
.rm-logo-mark { width:69px; height:46px; border-radius:10px; display:block; flex-shrink:0;
  box-shadow:0 4px 12px -6px rgba(15,20,32,.6); }
.rm-logo-txt { display:flex; flex-direction:column; }
.rm-logo .rm-logo-1 { font-weight:800; font-size:23px; color:var(--rm-ink); }
.rm-logo .rm-logo-1 span { color: var(--rm-gold); }
.rm-logo .rm-logo-2 { font-size:10px; letter-spacing:.34em; color: var(--rm-muted-2); font-weight:600; margin-top:4px; }

.rm-search { flex:1; max-width:600px; display:flex; border:2px solid var(--rm-primary);
  border-radius: var(--rm-radius-sm); overflow:hidden; height:48px; background:#fff; }
.rm-search input { flex:1; border:none; outline:none; padding:0 16px; font:inherit; font-size:14px; color:var(--rm-ink); }
.rm-search button { background: var(--rm-primary); border:none; color:#fff; padding:0 22px; cursor:pointer;
  display:flex; align-items:center; }
.rm-search button:hover { filter: brightness(1.08); }

.rm-hactions { display:flex; align-items:center; gap:22px; margin-left:auto; }
.rm-haction { display:flex; align-items:center; gap:9px; color: var(--rm-ink); position:relative; }
.rm-haction:hover { color: var(--rm-ink); }
.rm-haction .rm-ha-txt { line-height:1.25; font-size:12.5px; }
.rm-haction .rm-ha-txt .rm-ha-sub { color: var(--rm-muted-2); }
.rm-haction .rm-ha-txt .rm-ha-main { font-weight:700; }
.rm-count { position:absolute; top:-7px; right:-9px; color:#fff; font-size:10.5px; font-weight:700;
  min-width:17px; height:17px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.rm-count-dark { background: var(--rm-ink); }
.rm-count-blue { background: var(--rm-primary); }
/* keep the #cart reload wrapper transparent to the header flex layout */
.rm-cart-slot { display: contents; }

/* ============ TOAST NOTIFICATIONS (#alert) ============
   OpenCart's common.js injects Bootstrap `.alert` markup into #alert on
   add-to-cart / errors. Restyle it as an on-brand toast, top-right. */
#alert { position: fixed; top: 20px; right: 20px; z-index: 3000;
  display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.rm-body #alert .alert { position: relative; margin: 0; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--rm-line-2); border-left: 4px solid var(--rm-primary);
  border-radius: 12px; padding: 15px 44px 15px 16px; font-size: 14px; font-weight: 600; color: var(--rm-ink);
  box-shadow: 0 16px 40px -14px rgba(15,20,32,.35); animation: rm-toast-in .25s ease; }
.rm-body #alert .alert i { font-size: 19px; flex-shrink: 0; }
/* success = solid blue card */
.rm-body #alert .alert-success { background: var(--rm-primary); border-color: var(--rm-primary);
  border-left-color: var(--rm-primary-800); color: #fff;
  box-shadow: 0 16px 40px -12px rgba(20,73,201,.5); }
.rm-body #alert .alert-success i { color: #fff; }
.rm-body #alert .alert-success a { color: #fff; font-weight: 700; text-decoration: underline; }
.rm-body #alert .alert-success a:hover { color: #fff; }
.rm-body #alert .alert-success .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.rm-body #alert .alert-danger { border-left-color: var(--rm-red); }
.rm-body #alert .alert-danger i { color: var(--rm-red); }
.rm-body #alert .btn-close { position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  padding: 6px; opacity: .5; }
.rm-body #alert .btn-close:hover { opacity: 1; }
@keyframes rm-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  /* on mobile the toast occupies the right half of the page */
  #alert { top: 12px; right: 12px; left: 50%; max-width: none; }
}

/* ============ NAV — 20-CATEGORY SYSTEM ============ */
.rm-nav { background:#fff; border-bottom:1px solid var(--rm-line); position:relative; z-index:40; }
.rm-nav .rm-wrap { display:flex; align-items:stretch; gap:2px; }

/* "Toate categoriile" trigger */
.rm-cat-wrap { position:relative; display:flex; align-items:center; flex-shrink:0; }
.rm-nav-all { display:flex; align-items:center; gap:10px; background: var(--rm-primary); color:#fff;
  padding:0 18px; font-weight:700; font-size:14px; cursor:pointer; height:44px;
  border-radius:8px; margin-right:14px; flex-shrink:0; width:252px; }
.rm-nav-all:hover { color:#fff; filter:brightness(1.06); }
.rm-nav-all-caret { margin-left:auto; font-size:11px; opacity:.85; }

/* featured links + more */
.rm-nav-links { display:flex; align-items:stretch; }
.rm-nav-link { display:flex; align-items:center; padding:0 13px; height:52px; font-size:14px; font-weight:600;
  color:#2a2f3a; cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.rm-body a.rm-nav-link { color:#2a2f3a; }
.rm-nav-link:hover { color: var(--rm-primary); border-bottom-color: var(--rm-primary); }
.rm-nav-more { font-weight:700; gap:6px; }

.rm-nav-sale { margin-left:auto; display:flex; align-items:center; gap:8px; color: var(--rm-red);
  font-weight:700; font-size:13.5px; white-space:nowrap; }

/* vertical panel (opens on hover of the trigger) */
.rm-catpanel { display:none; position:absolute; left:0; top:100%; z-index:50; }
.rm-cat-wrap:hover .rm-catpanel { display:block; }
.rm-catpanel-list { position:absolute; top:0; left:0; width:252px; background:#fff; border:1px solid var(--rm-line);
  border-top:none; border-radius:0 0 12px 12px; box-shadow: var(--rm-shadow-pop); padding:8px; }
.rm-catpanel-item { position:relative; }
.rm-catpanel-link { display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:8px;
  font-size:13.5px; font-weight:600; color:#2a2f3a; }
.rm-body a.rm-catpanel-link { color:#2a2f3a; }
.rm-catpanel-item:hover > .rm-catpanel-link { background: var(--rm-tint); color: var(--rm-primary); }
.rm-cp-ic { width:20px; text-align:center; font-size:15px; }
.rm-cp-n { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rm-cp-arr { color:#c2c8d4; font-size:11px; }

/* flyout with subcategories */
.rm-flyout { display:none; position:absolute; top:-1px; left:264px; width:calc(100vw - 40px); max-width:720px;
  background:#fff; border:1px solid var(--rm-line); border-radius:12px; box-shadow: var(--rm-shadow-pop);
  padding:26px; grid-template-columns:1fr 240px; gap:28px; min-height:280px; z-index:55; }
.rm-catpanel-item:hover > .rm-flyout { display:grid; }
.rm-flyout-head { display:flex; align-items:center; gap:10px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--rm-line-3); }
.rm-fh-ic { font-size:20px; }
.rm-fh-n { font-weight:800; font-size:17px; }
.rm-fh-all { margin-left:auto; font-size:12.5px; font-weight:700; color: var(--rm-primary); }
.rm-flyout-subs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px 22px; }
.rm-flyout-sub { font-size:13.5px; color: var(--rm-text-3); padding:6px 0; line-height:1.4; }
.rm-flyout-sub:hover { color: var(--rm-primary); }
.rm-flyout-promo { background:linear-gradient(150deg,var(--rm-primary),var(--rm-primary-800)); border-radius:12px;
  padding:22px; color:#fff; display:flex; flex-direction:column; justify-content:flex-end; position:relative; overflow:hidden; }
.rm-body a.rm-flyout-promo, .rm-body a.rm-flyout-promo:hover { color:#fff; }
.rm-fp-tag { position:absolute; top:14px; right:14px; background:rgba(255,255,255,.18); font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:20px; }
.rm-fp-eye { font-size:11px; letter-spacing:.16em; opacity:.8; font-weight:600; }
.rm-fp-title { font-size:21px; font-weight:800; line-height:1.1; margin:6px 0 12px; }
.rm-fp-btn { align-self:flex-start; background:#fff; color: var(--rm-primary); font-weight:700; font-size:12.5px; padding:9px 16px; border-radius:8px; }

/* "Mai multe" overflow panel */
.rm-morepanel { display:none; position:absolute; left:0; right:0; top:100%; background:#fff; border-top:1px solid var(--rm-line);
  box-shadow: var(--rm-shadow-pop); z-index:45; }
.rm-nav-more:hover > .rm-morepanel { display:block; }
.rm-morepanel .rm-wrap { display:block; padding-top:26px; padding-bottom:26px; }
.rm-morepanel-t { font-size:12px; font-weight:700; color: var(--rm-muted-2); letter-spacing:.09em; margin-bottom:16px; }
.rm-morepanel-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:4px 16px; }
.rm-morepanel-item { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px;
  font-size:13.5px; font-weight:600; color:#2a2f3a; }
.rm-body a.rm-morepanel-item { color:#2a2f3a; }
.rm-morepanel-item:hover { background: var(--rm-tint); color: var(--rm-primary); }
.rm-mp-ic { width:18px; text-align:center; font-size:14px; }
.rm-mp-n { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ============ MOBILE CATEGORY DRAWER ============ */
.rm-drawer-ov { display:none; position:fixed; inset:0; background:rgba(15,20,32,.5); z-index:400; }
.rm-drawer { position:fixed; top:0; left:0; bottom:0; width:min(320px,86vw); background:#fff; z-index:401;
  display:flex; flex-direction:column; box-shadow:14px 0 40px -12px rgba(15,20,32,.4);
  transform:translateX(-100%); transition:transform .28s cubic-bezier(.4,0,.2,1); }
.rm-drawer-open .rm-drawer-ov { display:block; }
.rm-drawer-open .rm-drawer { transform:translateX(0); }
.rm-drawer-head { background: var(--rm-primary); color:#fff; padding:20px; display:flex; align-items:center;
  justify-content:space-between; flex-shrink:0; }
.rm-drawer-title { font-weight:800; font-size:16px; margin-right:auto; }
.rm-drawer-mark { width:48px; height:32px; border-radius:7px; display:block; flex-shrink:0; margin-right:12px;
  box-shadow:0 0 0 1px rgba(255,255,255,.18); }
.rm-drawer-x { width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,.18); border:none; color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; }
.rm-drawer-body { flex:1; overflow-y:auto; padding:10px; }
.rm-drawer-row { display:flex; align-items:center; border-radius:10px; }
.rm-drawer-catlink { flex:1; display:flex; align-items:center; gap:10px; padding:12px 14px; font-size:14px; font-weight:700; color:#2a2f3a; }
.rm-body a.rm-drawer-catlink { color:#2a2f3a; }
.rm-dc-ic { width:22px; text-align:center; font-size:15px; }
.rm-drawer-toggle { width:40px; height:40px; border:none; background:none; color: var(--rm-muted-2); font-size:20px; cursor:pointer; flex-shrink:0; }
.rm-drawer-subs { display:none; flex-direction:column; padding:2px 0 10px 14px; }
.rm-drawer-cat.rm-open .rm-drawer-subs { display:flex; }
.rm-drawer-sub { padding:10px 14px; font-size:13.5px; color: var(--rm-text-2); border-left:2px solid var(--rm-line); }
.rm-drawer-sub:hover { color: var(--rm-primary); }
.rm-drawer-extra { border-top:1px solid var(--rm-line-3); margin:10px 0; padding-top:10px; }
.rm-drawer-extra-link { display:block; padding:13px 14px; border-radius:10px; font-size:14.5px; font-weight:700; color:#2a2f3a; }
.rm-body a.rm-drawer-extra-link { color:#2a2f3a; }
.rm-drawer-extra-link.rm-red, .rm-body a.rm-drawer-extra-link.rm-red { color: var(--rm-red); }
.rm-drawer-foot { padding:16px 20px; border-top:1px solid var(--rm-line); font-size:12.5px; color: var(--rm-muted);
  flex-shrink:0; display:flex; flex-direction:column; gap:6px; }

/* ============ HERO SLIDER ============ */
.rm-hero { position:relative; border-radius:16px; overflow:hidden; background: var(--rm-primary-800); }
.rm-hero-track { display:flex; height:clamp(320px,42vw,420px); transition: transform .6s cubic-bezier(.7,0,.2,1); }
.rm-slide { min-width:100%; height:clamp(320px,42vw,420px); position:relative; display:flex; align-items:center; }
.rm-slide::before { content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(115deg,rgba(255,255,255,.04) 0 2px,transparent 2px 26px); }
.rm-slide::after { content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.06) 45%, transparent 70%); }
.rm-slide-in { position:relative; z-index:2; padding:0 clamp(22px,5vw,56px); max-width:560px; color:#fff; }
.rm-slide-tag { display:inline-block; background:rgba(255,255,255,.16); backdrop-filter:blur(4px);
  font-size:12px; font-weight:700; letter-spacing:.14em; padding:7px 14px; border-radius:20px; margin-bottom:18px; color:#fff; }
.rm-slide-in h2 { font-size:clamp(27px,4.6vw,46px); font-weight:800; line-height:1.04; margin:0 0 14px; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.18); }
.rm-slide-in p { font-size:clamp(13.5px,1.6vw,16px); opacity:.92; margin:0 0 26px; line-height:1.5; color:#fff; }
.rm-slide-cta { display:flex; gap:12px; align-items:center; }
.rm-slide-price { color:#fff; font-weight:700; font-size:22px; }
.rm-hero-dots { position:absolute; bottom:20px; left:clamp(22px,5vw,56px); display:flex; gap:9px; z-index:5; }
.rm-dot { width:8px; height:8px; border-radius:6px; background:rgba(255,255,255,.45); cursor:pointer; transition:all .3s; border:none; padding:0; }
.rm-dot.rm-on { width:26px; background:#fff; }
.rm-hero-arrow { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.2); backdrop-filter:blur(4px); color:#fff; display:flex; align-items:center;
  justify-content:center; cursor:pointer; font-size:20px; z-index:5; border:none; }
.rm-hero-prev { left:16px; } .rm-hero-next { right:16px; }

/* ============ USP STRIP ============ */
.rm-usp { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:16px; }
.rm-usp-item { background:#fff; border:1px solid var(--rm-line); border-radius:12px; padding:18px 20px;
  display:flex; align-items:center; gap:14px; }
.rm-usp-ic { width:44px; height:44px; border-radius:10px; background: var(--rm-tint); color: var(--rm-primary);
  display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.rm-usp-t { font-weight:700; font-size:14px; }
.rm-usp-s { font-size:12.5px; color: var(--rm-muted); }

/* ============ POPULAR CATEGORIES ============ */
.rm-catcard { background:#fff; border:1px solid var(--rm-line); border-radius: var(--rm-radius);
  padding:20px 12px; text-align:center; cursor:pointer; transition:all .2s; display:block; color:inherit; }
.rm-catcard:hover { border-color: var(--rm-primary); transform: translateY(-3px);
  box-shadow:0 12px 24px -12px rgba(20,73,201,.3); color:inherit; }
.rm-catcard-img { height:96px; border-radius:10px; margin-bottom:12px; background: var(--rm-tint);
  display:flex; align-items:center; justify-content:center; font-size:34px; overflow:hidden; }
.rm-catcard-img img { width:100%; height:100%; object-fit:cover; }
.rm-catcard-n { font-weight:700; font-size:14px; }
.rm-catcard-c { font-size:12px; color: var(--rm-muted-2); margin-top:3px; }

/* ============ DEAL OF THE DAY ============ */
.rm-deal { margin-top:44px; background:linear-gradient(120deg,var(--rm-primary-800),var(--rm-primary));
  border-radius:18px; padding:30px; color:#fff; display:grid; grid-template-columns:280px 1fr; gap:30px; align-items:center; }
.rm-deal h3 { font-size:30px; font-weight:800; margin:8px 0 6px; line-height:1.05; }
.rm-deal p { font-size:14px; opacity:.85; margin:0 0 18px; }
.rm-countdown { display:flex; gap:10px; }
.rm-cd { background:rgba(255,255,255,.14); border-radius:10px; padding:10px 4px; text-align:center; min-width:62px; }
.rm-cd b { font-size:26px; font-weight:800; font-variant-numeric: tabular-nums; display:block; }
.rm-cd span { font-size:10.5px; opacity:.75; letter-spacing:.1em; }

/* ============ WIDE PROMO BANNERS ============ */
.rm-promos { margin-top:44px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.rm-promo { border-radius:16px; padding:34px; min-height:180px; display:flex; flex-direction:column; justify-content:center; }
.rm-promo-dark { background:linear-gradient(120deg,#1b2233,#2c3650); color:#fff; }
.rm-promo-light { background:linear-gradient(120deg,var(--rm-tint),#dbe6ff); color: var(--rm-ink); }
.rm-promo-eye { font-size:12px; letter-spacing:.16em; font-weight:600; opacity:.75; }
.rm-promo h3 { font-size:28px; font-weight:800; margin:8px 0 4px; line-height:1.05; }
.rm-promo-sub { font-size:14px; margin-bottom:18px; opacity:.85; }

/* ============ BRANDS MARQUEE ============ */
.rm-brands { margin-top:44px; background:#fff; border:1px solid var(--rm-line); border-radius:16px;
  padding:28px 20px; overflow:hidden; }
.rm-brands-t { display:block; text-align:center; font-size:13px; font-weight:700; letter-spacing:.1em; margin-bottom:22px; }
.rm-body a.rm-brands-t { color: var(--rm-muted-2); }
.rm-body a.rm-brands-t:hover { color: var(--rm-primary); }
.rm-brands-track { display:flex; align-items:center; gap:52px; width:max-content; animation: rm-marq 60s linear infinite; }
.rm-brands:hover .rm-brands-track { animation-play-state: paused; }
.rm-brand { display:flex; align-items:center; justify-content:center; height:54px; width:118px; flex-shrink:0; }
.rm-brand img { max-height:54px; max-width:118px; width:auto; object-fit:contain;
  filter:grayscale(1); opacity:.8; transition:filter .2s, opacity .2s; }
.rm-brand:hover img { filter:none; opacity:1; }
.rm-brand-txt { font-size:20px; font-weight:800; color:#c2c8d4; white-space:nowrap; }

/* no marquee for visitors who asked for reduced motion — show a static wall instead */
@media (prefers-reduced-motion: reduce) {
  .rm-brands-track { animation:none; width:auto; flex-wrap:wrap; justify-content:center; gap:34px 40px; }
}

/* ============ BRANDS PAGE (manufacturer list) ============ */
.rm-brandpage-title { margin:6px 0 22px; }
.rm-brandpage-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:44px; }
.rm-brandpage-card { display:block; background:#fff; border:1px solid var(--rm-line); border-radius:14px;
  padding:18px; text-align:center; transition:border-color .15s, box-shadow .15s, transform .15s; }
.rm-brandpage-card:hover { border-color:var(--rm-primary); box-shadow:0 8px 22px rgba(20,73,201,.10); transform:translateY(-2px); }
.rm-brandpage-logo { height:110px; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.rm-brandpage-logo img { max-width:100%; max-height:100%; object-fit:contain; }
.rm-brandpage-noimg { font-size:20px; font-weight:800; color:#c2c8d4; }
.rm-brandpage-name { font-size:14.5px; font-weight:700; color:var(--rm-ink); }
.rm-brandpage-empty { font-size:14.5px; color:var(--rm-muted); }
@media (max-width:900px){ .rm-brandpage-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:620px){ .rm-brandpage-grid { grid-template-columns:repeat(2,1fr); gap:12px; } .rm-brandpage-logo { height:88px; } }

/* ============ BREADCRUMB ============ */
.rm-crumb { font-size:13px; color: var(--rm-muted); margin-bottom:18px; }
.rm-crumb a { color: var(--rm-muted); } .rm-crumb a:hover { color: var(--rm-primary); }
.rm-crumb .rm-sep { color:#c2c8d4; margin:0 6px; }
.rm-crumb .rm-cur { color: var(--rm-ink); font-weight:600; }

/* ============ CATEGORY / LISTING ============ */
.rm-shop { display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:start; }
.rm-aside { display:flex; flex-direction:column; gap:16px; }
.rm-filter { background:#fff; border:1px solid var(--rm-line); border-radius:var(--rm-radius); padding:20px; }
.rm-filter-h { font-weight:700; font-size:15px; margin-bottom:14px; }
.rm-filter-row { display:flex; justify-content:space-between; font-size:13.5px; color: var(--rm-text-3); padding:7px 0; }
.rm-filter-row a { color: var(--rm-text-3); } .rm-filter-row a:hover { color: var(--rm-primary); }
.rm-filter-row .rm-c { color:#b0b7c3; }
.rm-checkrow { display:flex; align-items:center; gap:9px; font-size:13.5px; color: var(--rm-text-3); padding:5px 0; cursor:pointer; }
.rm-checkrow input { accent-color: var(--rm-primary); width:16px; height:16px; margin:0; cursor:pointer; flex-shrink:0; }

/* functional category filters */
.rm-filters { display:flex; flex-direction:column; gap:16px; }
.rm-price-inputs { display:flex; align-items:center; gap:8px; }
.rm-price-inputs .rm-input { padding:10px 12px; text-align:center; -moz-appearance:textfield; }
.rm-price-inputs .rm-input::-webkit-outer-spin-button,
.rm-price-inputs .rm-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.rm-price-dash { color: var(--rm-muted-2); font-weight:600; }
.rm-price-hint { font-size:12px; color: var(--rm-muted-2); margin-top:10px; }
.rm-filter-actions { display:flex; flex-direction:column; gap:12px; }
.rm-filter-reset { text-align:center; font-size:13px; font-weight:600; color: var(--rm-muted-3); }
.rm-filter-reset:hover { color: var(--rm-red); }
.rm-toolbar { background:#fff; border:1px solid var(--rm-line); border-radius:12px; padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; flex-wrap:wrap; }
.rm-toolbar .rm-found b { color: var(--rm-ink); }
.rm-toolbar .rm-found { font-size:13.5px; color: var(--rm-muted-3); }
.rm-select { border:1px solid var(--rm-line-2); border-radius:8px; padding:8px 14px; font-size:13.5px;
  font-weight:600; background:#fff; color: var(--rm-ink); }
.rm-pagination { display:flex; justify-content:center; gap:8px; margin-top:28px; flex-wrap:wrap; }
.rm-pagination a, .rm-pagination span { min-width:40px; height:40px; border-radius:9px; background:#fff;
  border:1px solid var(--rm-line-2); color: var(--rm-text-3); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; padding:0 10px; }
.rm-pagination .active span, .rm-pagination .active { background: var(--rm-primary); color:#fff; border-color: var(--rm-primary); }
/* OpenCart renders pagination as ul.pagination > li.page-item > a.page-link */
.rm-pagination { list-style:none; padding:0; }
.rm-pagination .pagination { display:flex; gap:8px; list-style:none; padding:0; margin:0; flex-wrap:wrap; }
.rm-pagination .page-item { list-style:none; }
.rm-pagination .page-link { min-width:40px; height:40px; border-radius:9px; background:#fff; border:1px solid var(--rm-line-2);
  color: var(--rm-text-3); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; padding:0 10px; }
.rm-pagination .page-item.active .page-link { background: var(--rm-primary); color:#fff; border-color: var(--rm-primary); }
.rm-pagination .page-item.disabled .page-link { opacity:.45; }
.rm-add .rm-add-txt { white-space:nowrap; }

/* ============ PRODUCT PAGE ============ */
.rm-pd { background:#fff; border:1px solid var(--rm-line); border-radius:16px; padding:28px;
  display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.rm-pd-main { height:440px; border-radius:14px; background: var(--rm-tint); position:relative; overflow:hidden; }
.rm-pd-main img { width:100%; height:100%; object-fit:cover; }
.rm-pd-thumbs { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-top:14px; }
.rm-pd-thumb { height:88px; border-radius:10px; border:2px solid var(--rm-line-2); overflow:hidden; background:var(--rm-tint); cursor:pointer; transition:border-color .15s; }
.rm-pd-thumb:hover { border-color: var(--rm-primary); }
.rm-pd-thumb.rm-on { border-color: var(--rm-primary); }
.rm-pd-thumb img { width:100%; height:100%; object-fit:cover; }
.rm-pd-cat { font-size:12.5px; color: var(--rm-primary); font-weight:700; letter-spacing:.05em; }
.rm-pd h1 { font-size:30px; font-weight:800; margin:8px 0 12px; line-height:1.1; }
.rm-pd-meta { display:flex; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.rm-pd-meta .rm-instock { font-size:13.5px; color: var(--rm-green); font-weight:600; }
.rm-pd-price { display:flex; align-items:baseline; gap:12px; padding:18px 0; flex-wrap:wrap;
  border-top:1px solid var(--rm-line); border-bottom:1px solid var(--rm-line); }
.rm-pd-price .rm-now { font-size:34px; font-weight:800; color: var(--rm-primary); }
.rm-pd-price .rm-old { font-size:18px; color:#b0b7c3; text-decoration: line-through; }
.rm-pd-desc { font-size:14.5px; color: var(--rm-text-2); line-height:1.6; margin:18px 0; }
.rm-qty { display:flex; align-items:center; border:1px solid var(--rm-line-2); border-radius:10px; overflow:hidden; }
.rm-qty button { width:44px; height:52px; display:flex; align-items:center; justify-content:center; font-size:20px;
  cursor:pointer; color: var(--rm-muted-3); background:#fff; border:none; }
.rm-qty input { width:44px; text-align:center; font-weight:700; font-size:16px; border:none; outline:none; }
.rm-pd-buy { display:flex; gap:12px; align-items:center; margin-top:22px; flex-wrap:wrap; }
.rm-icon-btn { width:52px; height:52px; border:1px solid var(--rm-line-2); border-radius:10px; display:flex;
  align-items:center; justify-content:center; cursor:pointer; color: var(--rm-muted); font-size:20px; background:#fff; }
.rm-pd-assure { display:flex; gap:24px; margin-top:24px; padding-top:22px; border-top:1px solid var(--rm-line);
  font-size:13px; color: var(--rm-muted-3); flex-wrap:wrap; }

/* tabs */
.rm-tabs { background:#fff; border:1px solid var(--rm-line); border-radius:16px; padding:0 28px 28px; margin-top:16px; }
.rm-tabs-nav { display:flex; gap:28px; border-bottom:1px solid var(--rm-line); }
.rm-tab { padding:18px 0; font-weight:700; font-size:14.5px; cursor:pointer; border-bottom:2px solid transparent;
  color: var(--rm-muted); background:none; border-top:none; border-left:none; border-right:none; }
.rm-tab.rm-on { border-bottom-color: var(--rm-primary); color: var(--rm-primary); }
.rm-tab-pane { padding-top:22px; display:none; }
.rm-tab-pane.rm-on { display:block; }
/* bootstrap-tab flavour used on the product page */
#product-tabs .nav-tabs { border-bottom:1px solid var(--rm-line); }
#product-tabs .nav-link.rm-tab { border:none; border-bottom:2px solid transparent; margin-bottom:-1px; background:none;
  color: var(--rm-muted); border-radius:0; }
#product-tabs .nav-link.rm-tab.active { color: var(--rm-primary); border-bottom-color: var(--rm-primary); background:none; }
#product-tabs .nav-link.rm-tab:hover { color: var(--rm-primary); }
.rm-spec-row { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--rm-line-3); font-size:14px; }
.rm-spec-row .rm-k { color: var(--rm-muted); }
.rm-review { display:flex; gap:14px; }
.rm-review-av { width:44px; height:44px; border-radius:50%; background: var(--rm-tint); color: var(--rm-primary);
  display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; }

/* ============ CART ============ */
.rm-cart-grid { display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start; }
.rm-cart-box { background:#fff; border:1px solid var(--rm-line); border-radius:16px; overflow:hidden; }
.rm-cart-head, .rm-cart-line { display:grid; grid-template-columns:1fr 130px 120px 40px; gap:16px; align-items:center; }
.rm-cart-head { padding:16px 22px; background:#f8f9fb; font-size:12.5px; font-weight:700; color: var(--rm-muted); letter-spacing:.03em; }
.rm-cart-line { padding:18px 22px; border-top:1px solid var(--rm-line-3); }
.rm-cart-prod { display:flex; gap:14px; align-items:center; }
.rm-cart-thumb { width:74px; height:74px; border-radius:10px; flex-shrink:0; background: var(--rm-tint); overflow:hidden; }
.rm-cart-thumb img { width:100%; height:100%; object-fit:cover; }
.rm-cart-remove { color:#c2c8d4; cursor:pointer; font-size:18px; text-align:center; background:none; border:none; }
.rm-cart-remove:hover { color: var(--rm-red); }
.rm-summary { align-self:start; background:#fff; border:1px solid var(--rm-line); border-radius:16px; padding:24px; position:sticky; top:20px; }
.rm-summary h3 { font-weight:800; font-size:18px; margin:0 0 18px; }
.rm-sum-row { display:flex; justify-content:space-between; font-size:14px; color: var(--rm-text-2); padding:8px 0; }
.rm-sum-row .rm-v { font-weight:600; color: var(--rm-ink); }
.rm-sum-total { display:flex; justify-content:space-between; align-items:baseline; padding:16px 0;
  border-top:2px solid var(--rm-line); margin-top:6px; }
.rm-sum-total .rm-tl { font-weight:800; font-size:17px; }
.rm-sum-total .rm-tv { font-weight:800; font-size:24px; color: var(--rm-primary); }
.rm-empty { background:#fff; border:1px solid var(--rm-line); border-radius:16px; padding:70px; text-align:center; }
.rm-empty-ic { font-size:48px; margin-bottom:14px; }

/* ============ FORMS ============ */
.rm-field { margin-bottom:16px; }
.rm-label { font-size:12.5px; font-weight:600; color: var(--rm-muted-3); display:block; margin-bottom:6px; }
.rm-input, .rm-textarea, select.rm-input { width:100%; border:1px solid var(--rm-line-2); border-radius:9px;
  padding:12px 14px; font:inherit; font-size:14px; outline:none; background:#fff; color: var(--rm-ink); }
.rm-input:focus, .rm-textarea:focus { border-color: var(--rm-primary); }
.rm-form-card { background:#fff; border:1px solid var(--rm-line); border-radius:16px; padding:24px; }
.rm-form-card h3 { font-weight:800; font-size:16px; margin:0 0 18px; }
.rm-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ============ ACCOUNT ============ */
.rm-acc { display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:start; }
.rm-acc-side { background:#fff; border:1px solid var(--rm-line); border-radius:16px; overflow:hidden; }
.rm-acc-side-head { padding:24px; background:linear-gradient(150deg,var(--rm-primary),var(--rm-primary-800));
  color:#fff; display:flex; align-items:center; gap:14px; }
.rm-acc-av { width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800; }
.rm-acc-menu { padding:10px; }
.rm-acc-link { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px;
  font-size:14px; font-weight:600; color: var(--rm-text-3); }
.rm-acc-link:hover, .rm-acc-link.rm-on { color: var(--rm-primary); background: var(--rm-tint); }
.rm-acc-link.rm-danger { color: var(--rm-red); border-top:1px solid var(--rm-line-3); margin-top:6px; }
.rm-stat { background:#fff; border:1px solid var(--rm-line); border-radius:var(--rm-radius); padding:20px; }
.rm-stat-ic { width:44px; height:44px; border-radius:11px; background: var(--rm-tint); color: var(--rm-primary);
  display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:12px; }
.rm-stat-v { font-size:26px; font-weight:800; }
.rm-stat-l { font-size:13px; color: var(--rm-muted); }
.rm-status { font-size:12px; font-weight:700; padding:5px 11px; border-radius:20px; display:inline-block; }

/* ============ CHECKOUT ============ */
.rm-checkout-grid { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }
.rm-checkout-main, .rm-checkout-side { display:flex; flex-direction:column; gap:16px; }
.rm-checkout-side { position:sticky; top:20px; }
#checkout-checkout .form-control, #checkout-checkout .form-select,
#checkout-cart .form-control, #checkout-cart .form-select {
  border-radius:9px; padding:11px 14px; border:1px solid var(--rm-line-2); font-size:14px; }
#checkout-checkout h1, #checkout-checkout h2, #checkout-checkout h3 { font-weight:800; }
#checkout-checkout .btn-primary, #checkout-cart .btn-primary { background: var(--rm-primary); border-color: var(--rm-primary); border-radius:10px; }
#checkout-checkout .accordion-button, #checkout-cart .accordion-button { font-weight:600; }
@media (max-width: 900px) { .rm-checkout-grid { grid-template-columns:1fr; } .rm-checkout-side { position:static; } }

/* ============ CONTACT ============ */
.rm-contact-hero { background:linear-gradient(120deg,var(--rm-primary-800),var(--rm-primary)); border-radius:18px;
  padding:44px; color:#fff; margin-bottom:16px; }
.rm-contact-hero h1 { font-size:34px; font-weight:800; margin:0 0 8px; }
.rm-contact-hero p { font-size:15px; opacity:.85; margin:0; max-width:520px; }
.rm-contact-grid { display:grid; grid-template-columns:340px 1fr; gap:16px; align-items:start; }
.rm-contact-card { background:#fff; border:1px solid var(--rm-line); border-radius:var(--rm-radius); padding:22px;
  display:flex; gap:16px; align-items:flex-start; }
.rm-contact-ic { width:46px; height:46px; border-radius:11px; background: var(--rm-tint); color: var(--rm-primary);
  display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }

/* ============ NEWSLETTER + FOOTER ============ */
/* OpenCart's stylesheet.css sets `footer { position:absolute; bottom:-1px }`
   on the bare element, which pulls our footer out of flow. Reset it. */
.rm-foot { position:static; bottom:auto; width:auto; border:none;
  background:#0f1420; color:#aab2c0; margin-top:56px; }
.rm-foot .rm-wrap { padding-top:44px; }
.rm-news { background:linear-gradient(120deg,var(--rm-primary),var(--rm-primary-800)); border-radius:18px;
  padding:34px; display:grid; grid-template-columns:1fr 420px; gap:30px; align-items:center;
  transform: translateY(-72px); margin-bottom:-52px; }
.rm-news-t { color:#fff; font-size:24px; font-weight:800; margin-bottom:6px; }
.rm-news-s { color:rgba(255,255,255,.8); font-size:14px; }
.rm-news-form { display:flex; gap:10px; background:#fff; border-radius:11px; padding:6px; }
.rm-news-form input { flex:1; border:none; outline:none; padding:0 14px; font:inherit; font-size:14px; }
.rm-foot-cols { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; padding-bottom:40px; }
.rm-foot-cols h5 { color:#fff; font-weight:700; font-size:14px; margin:0 0 14px; }
.rm-foot-brand { display:inline-flex; align-items:center; gap:11px; color:#fff; font-weight:800;
  font-size:20px; margin-bottom:14px; }
.rm-foot-brand img { width:63px; height:42px; border-radius:9px; display:block; flex-shrink:0;
  box-shadow:0 0 0 1px rgba(230,195,119,.22); }
.rm-body a.rm-foot-brand:hover img { box-shadow:0 0 0 1px rgba(230,195,119,.5); }
.rm-foot-brand-txt span { color: var(--rm-gold-light); }
.rm-foot p { font-size:13.5px; line-height:1.7; margin:0 0 18px; max-width:300px; }
.rm-foot a { color:#aab2c0; font-size:13.5px; }
.rm-foot a:hover { color:#fff; }
.rm-foot-links { list-style:none; padding:0; margin:0; }
.rm-foot-links li { padding:6px 0; }
.rm-foot-bar { border-top:1px solid rgba(255,255,255,.08); padding:20px 0; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:14px; font-size:12.5px; color:#7a8494; }
.rm-pay { background:#fff; color: var(--rm-ink); padding:4px 10px; border-radius:5px; font-weight:700; font-size:11px; }

/* ============ COOKIE BAR ============ */
.rm-cookie { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); width:calc(100% - 36px);
  max-width:1080px; background:#fff; border:1px solid var(--rm-line-2); border-radius:16px; padding:20px 24px;
  display:flex; align-items:center; gap:22px; z-index:300; box-shadow:0 20px 50px -14px rgba(15,20,32,.35); flex-wrap:wrap; }
.rm-cookie-ic { width:46px; height:46px; border-radius:12px; background: var(--rm-tint); display:flex;
  align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.rm-cookie-body { flex:1; min-width:280px; }
.rm-cookie-body b { font-size:15px; }
.rm-cookie-body p { font-size:13px; color: var(--rm-text-2); line-height:1.55; margin:4px 0 0; }

/* ---- GDPR / cookie consent (self-contained theme module) ---- */
.rm-cc[hidden], .rm-cc-reopen[hidden], .rm-cc-bar[hidden], .rm-cc-settings[hidden] { display:none; }

/* consent bar */
.rm-cc-bar { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); width:calc(100% - 36px);
  max-width:1080px; background:#fff; border:1px solid var(--rm-line-2); border-radius:16px; padding:20px 24px;
  display:flex; align-items:center; gap:22px; z-index:1200; box-shadow:0 20px 50px -14px rgba(15,20,32,.35); flex-wrap:wrap;
  animation: rm-toast-in .3s ease; }
.rm-cc-ic { width:46px; height:46px; border-radius:12px; background: var(--rm-tint); display:flex;
  align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.rm-cc-body { flex:1; min-width:260px; }
.rm-cc-body b { font-size:15px; }
.rm-cc-body p { font-size:13px; color: var(--rm-text-2); line-height:1.55; margin:4px 0 0; }
.rm-cc-actions { display:flex; gap:10px; flex-shrink:0; flex-wrap:wrap; }
.rm-cc-actions .rm-btn { font-size:13.5px; padding:12px 20px; }

/* settings modal (uses a huge spread shadow as backdrop — no extra element) */
.rm-cc-settings { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1300;
  width:calc(100% - 36px); max-width:460px; max-height:86vh; overflow-y:auto; background:#fff; border-radius:16px; padding:24px;
  box-shadow:0 30px 60px -20px rgba(15,20,32,.5), 0 0 0 100vmax rgba(15,20,32,.55); animation: rm-fadeup .25s ease; }
.rm-cc-set-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.rm-cc-set-head b { font-size:17px; font-weight:800; }
.rm-cc-x { width:32px; height:32px; border:none; background: var(--rm-line-3); border-radius:8px; cursor:pointer; font-size:14px; color: var(--rm-muted-3); }
.rm-cc-x:hover { background: var(--rm-line-2); }
.rm-cc-cat { display:flex; align-items:flex-start; gap:16px; padding:14px 0; border-top:1px solid var(--rm-line-3); }
.rm-cc-cat:first-of-type { border-top:none; }
.rm-cc-cat-t { flex:1; }
.rm-cc-cat-t b { font-size:14px; font-weight:700; display:block; margin-bottom:3px; }
.rm-cc-cat-t span { font-size:12.5px; color: var(--rm-muted); line-height:1.5; }
/* toggle switch */
.rm-cc-sw { position:relative; width:44px; height:26px; flex-shrink:0; margin-top:2px; }
.rm-cc-sw input { position:absolute; opacity:0; width:0; height:0; }
.rm-cc-sw span { position:absolute; inset:0; background: var(--rm-line-2); border-radius:20px; transition:.2s; cursor:pointer; }
.rm-cc-sw span::before { content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.rm-cc-sw input:checked + span { background: var(--rm-primary); }
.rm-cc-sw input:checked + span::before { transform:translateX(18px); }
.rm-cc-sw-locked span { background: var(--rm-primary); opacity:.5; cursor:not-allowed; }
/* detected cookies */
.rm-cc-detected { margin:8px 0 4px; padding:14px; background: var(--rm-bg); border-radius:10px; }
.rm-cc-detected:empty { display:none; }
.rm-cc-det-h { font-size:12px; font-weight:700; color: var(--rm-muted-3); margin-bottom:8px; }
.rm-cc-det-row { display:flex; gap:10px; font-size:12px; padding:3px 0; }
.rm-cc-det-cat { font-weight:700; color: var(--rm-primary); min-width:70px; flex-shrink:0; }
.rm-cc-det-list { color: var(--rm-text-2); word-break:break-all; }
.rm-cc-set-actions { display:flex; gap:10px; margin-top:18px; }
.rm-cc-set-actions .rm-btn { flex:1; padding:13px; font-size:13.5px; }
/* reopen button */
.rm-cc-reopen { position:fixed; left:18px; bottom:18px; width:46px; height:46px; border-radius:50%; border:1px solid var(--rm-line-2);
  background:#fff; box-shadow:0 8px 24px -8px rgba(15,20,32,.3); cursor:pointer; font-size:22px; z-index:1100; line-height:1; }
.rm-cc-reopen:hover { transform:translateY(-2px); box-shadow:0 12px 28px -8px rgba(15,20,32,.4); }

@media (max-width: 760px) {
  .rm-cc-bar { flex-direction:column; align-items:flex-start; gap:14px; padding:18px; bottom:10px; }
  .rm-cc-actions { width:100%; }
  .rm-cc-actions .rm-btn { flex:1; }
  .rm-cc-reopen { width:42px; height:42px; font-size:20px; }
}

/* ============ MISC HELPERS ============ */
.rm-mt-44 { margin-top:44px; }
.rm-mt-16 { margin-top:16px; }
.rm-alert { background: var(--rm-tint); border:1px solid #dbe6ff; border-radius:12px; padding:14px 18px;
  font-size:14px; color: var(--rm-text-2); margin-bottom:16px; }
.rm-alert-danger { background:#fdecea; border-color:#f7c9c6; color:#a3271f; }
.rm-alert-success { background:#e7f6ee; border-color:#bfe6cf; color:#1c7a4a; }

/* ============ BOOTSTRAP-IN-CONTENT (account, generic pages) ============
   Non-overridden inner templates render Bootstrap markup inside the themed
   header/footer. These rules bring that markup onto the brand. */
.rm-body #container > .container,
.rm-body [id^="account-"].container,
.rm-body [id^="information-"].container,
.rm-body .container.rm-generic { padding-top:24px; }

/* breadcrumb (bootstrap) -> flat crumb everywhere */
.rm-body .breadcrumb { font-size:13px; color:var(--rm-muted); background:none; border:none; padding:0; margin:16px 0 18px; list-style:none; display:flex; flex-wrap:wrap; gap:2px; box-shadow:none; }
.rm-body .breadcrumb .breadcrumb-item { color:var(--rm-muted); }
.rm-body .breadcrumb .breadcrumb-item + .breadcrumb-item { padding-left:.5rem; }
.rm-body .breadcrumb .breadcrumb-item + .breadcrumb-item::before { content:"/"; color:#c2c8d4; padding-right:.5rem; float:none; }
.rm-body .breadcrumb .breadcrumb-item a { color:var(--rm-muted); }
.rm-body .breadcrumb .breadcrumb-item a:hover { color:var(--rm-primary); }
.rm-body .breadcrumb .breadcrumb-item.active { color:var(--rm-ink); font-weight:600; }

/* account + generic content area */
.rm-body [id^="account-"], .rm-body [id^="information-"], .rm-body #product-search, .rm-body #product-special, .rm-body #product-manufacturer { padding-bottom:40px; }
.rm-body [id^="account-"] h1, .rm-body [id^="information-"] h1 { font-size:26px; font-weight:800; margin:0 0 18px; }
.rm-body [id^="account-"] h2, .rm-body [id^="account-"] legend { font-size:17px; font-weight:800; border:none; margin:6px 0 14px; }
.rm-body [id^="account-"] .form-control, .rm-body [id^="account-"] .form-select,
.rm-body [id^="information-"] .form-control, .rm-body [id^="information-"] .form-select {
  border:1px solid var(--rm-line-2); border-radius:9px; padding:11px 14px; font-size:14px; }
.rm-body [id^="account-"] .form-control:focus, .rm-body [id^="account-"] .form-select:focus { border-color:var(--rm-primary); box-shadow:none; }
.rm-body [id^="account-"] .col-form-label { font-weight:600; font-size:13px; color:var(--rm-muted-3); }

/* buttons in content */
.rm-body [id^="account-"] .btn-primary, .rm-body [id^="information-"] .btn-primary,
.rm-body #product-search .btn-primary, .rm-body #product-special .btn-primary {
  background:var(--rm-primary); border-color:var(--rm-primary); border-radius:10px; font-weight:700; padding:10px 22px; }
.rm-body [id^="account-"] .btn-primary:hover { filter:brightness(1.08); background:var(--rm-primary); }
.rm-body [id^="account-"] .btn-light, .rm-body [id^="account-"] .btn-secondary { border-radius:10px; font-weight:700; }

/* cards / bordered boxes */
.rm-body [id^="account-"] .card, .rm-body [id^="account-"] .border {
  border:1px solid var(--rm-line) !important; border-radius:var(--rm-radius); background:#fff; }
.rm-body [id^="account-"] .card-header { background:#fff; border-bottom:1px solid var(--rm-line); font-weight:700; }

/* account menu (column_left list-group) -> designed sidebar */
.rm-body .list-group { border-radius:var(--rm-radius); overflow:hidden; border:1px solid var(--rm-line); }
.rm-body .list-group-item { border:none; border-bottom:1px solid var(--rm-line-3); font-size:14px; font-weight:600; padding:12px 16px; color:var(--rm-text-3); }
.rm-body .list-group-item:hover { background:var(--rm-tint); color:var(--rm-primary); }
.rm-body .list-group-item.active { background:var(--rm-tint); color:var(--rm-primary); border-color:var(--rm-line-3); }
.rm-body .list-group-item h4, .rm-body .list-group-item h5 { font-size:15px; font-weight:800; }

/* tables in content (orders, etc.) */
.rm-body [id^="account-"] .table { background:#fff; border-radius:var(--rm-radius); overflow:hidden; }
.rm-body [id^="account-"] .table > :not(caption) > * > * { padding:14px 16px; }
.rm-body [id^="account-"] .table thead th { background:#f8f9fb; color:var(--rm-muted); font-size:12.5px; font-weight:700; letter-spacing:.03em; border:none; }
.rm-body [id^="account-"] .table td { border-color:var(--rm-line-3); vertical-align:middle; }

/* ============ RESPONSIVE ============ */

/* --- nav intermediate breakpoints (760–1240px) --- */
@media (max-width: 1240px) {
  .rm-nav-all { width:214px; }
  .rm-flyout { grid-template-columns:1fr 220px; gap:22px; }
}
@media (max-width: 1150px) {
  .rm-flyout { grid-template-columns:1fr; }
  .rm-flyout-promo { display:none; }
  .rm-flyout-subs { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .rm-nav-sale { display:none; }
  .rm-nav-links a.rm-nav-link:nth-of-type(n+5) { display:none; }
  .rm-nav-all { width:auto; min-width:186px; flex-shrink:1; margin-right:8px; }
}
@media (max-width: 940px) {
  .rm-nav-links a.rm-nav-link:nth-of-type(n+3) { display:none; }
  .rm-nav-all { min-width:0; padding:0 14px; }
  .rm-flyout-subs { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1080px) {
  .rm-grid-6 { grid-template-columns: repeat(4,1fr); }
  .rm-usp { grid-template-columns: repeat(2,1fr); }
  .rm-deal { grid-template-columns:1fr; }
  .rm-news { grid-template-columns:1fr; }
  .rm-foot-cols { grid-template-columns:1fr 1fr; }
}
@media (max-width: 900px) {
  .rm-shop, .rm-acc, .rm-cart-grid, .rm-pd, .rm-contact-grid { grid-template-columns:1fr; }
  .rm-grid-4 { grid-template-columns: repeat(3,1fr); }
  .rm-header .rm-wrap { flex-wrap:wrap; }
  .rm-search { order:3; flex-basis:100%; max-width:none; }
}

/* --- mobile (≤760px): drawer nav, stacked layouts, compact footer --- */
@media (max-width: 760px) {
  .rm-grid-6, .rm-grid-4, .rm-grid-3, .rm-grid-2, .rm-promos { grid-template-columns: repeat(2,1fr); }
  .rm-usp { grid-template-columns:1fr; }

  /* product card: price above a full-width add-to-cart button */
  .rm-prod-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .rm-prod-foot .rm-price { justify-content: flex-start; }
  .rm-prod-foot .rm-add { width: 100%; }
  .rm-announce-l span:nth-child(3), .rm-announce-l .rm-sep, .rm-announce-r { display:none; }
  .rm-hactions { gap:16px; }
  .rm-haction .rm-ha-txt { display:none; }

  /* header: compact brand lockup */
  .rm-logo { gap:9px; }
  .rm-logo-mark { width:57px; height:38px; border-radius:8px; }
  .rm-logo .rm-logo-1 { font-size:19px; }
  .rm-logo .rm-logo-2 { font-size:8.5px; letter-spacing:.28em; margin-top:3px; }

  /* header: search hidden on mobile (search lives in the drawer flow) */
  .rm-search { display:none; }

  /* nav: only the full-width "Toate categoriile" trigger remains */
  .rm-nav-links { display:none; }
  .rm-nav-sale { display:none; }
  .rm-catpanel { display:none !important; }
  .rm-nav .rm-wrap { padding-top:8px; padding-bottom:8px; }
  .rm-cat-wrap { flex:1; }
  .rm-nav-all { width:auto; flex:1; margin-right:0; justify-content:center; }

  /* cart: restructure rows to 2 columns, hide table head, summary below */
  .rm-cart-grid { grid-template-columns:1fr; }
  .rm-cart-head { display:none; }
  .rm-cart-line { grid-template-columns:1fr auto; gap:12px; row-gap:14px; }
  .rm-summary { position:static; }

  /* cookie bar: stack vertically, full-width buttons */
  .rm-cookie { flex-direction:column; align-items:flex-start; gap:14px; padding:18px; bottom:10px; }
  .rm-cookie > div:last-child { width:100%; }
  .rm-cookie > div:last-child > .rm-btn { flex:1; }

  /* brands marquee: smaller logos */
  .rm-brands { padding:20px 14px; }
  .rm-brands-track { gap:34px; }
  .rm-brand { height:40px; width:86px; }
  .rm-brand img { max-height:40px; max-width:86px; }

  /* footer: compact */
  .rm-foot { margin-top:32px; }
  .rm-foot .rm-wrap { padding-top:26px; }
  .rm-news { display:none; }
  .rm-foot-cols { grid-template-columns:repeat(3,1fr); gap:14px 12px; padding-bottom:22px; }
  .rm-foot-cols > div:first-child { grid-column:1 / -1; margin-bottom:4px; }
  .rm-foot-brand { font-size:17px; margin-bottom:8px; }
  .rm-foot-brand img { width:54px; height:36px; border-radius:8px; }
  .rm-foot-cols > div:first-child p { display:none; }
  .rm-foot-cols h5 { font-size:12.5px; margin-bottom:7px; }
  .rm-foot-links li { font-size:12px; padding:4px 0; line-height:1.35; }
  .rm-foot-links li a { font-size:12px; }
  .rm-foot-bar { padding:14px 0; font-size:11.5px; gap:10px; flex-direction:column; align-items:flex-start; }
  .rm-pay { font-size:10px; padding:3px 8px; }
}
