:root {
  --rmm-bg: #f5f7fa;
  --rmm-surface: #ffffff;
  --rmm-ink: #14161b;
  --rmm-muted: #68707c;
  --rmm-line: #dfe5ec;
  --rmm-red: #b70f2f;
  --rmm-red-dark: #830922;
  --rmm-blue: #174b8f;
  --rmm-gold: #d7a640;
  --rmm-shadow: 0 16px 38px rgba(20, 24, 31, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--rmm-bg);
  color: var(--rmm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.rmm-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.rmm-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 6px;
}

.rmm-skip-link:focus {
  top: 12px;
}

.rmm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(13, 15, 20, 0.94);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.rmm-logo {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 900;
}

.rmm-logo span {
  color: #ff375f;
}

.rmm-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.rmm-nav ul,
.rmm-nav li {
  display: contents;
  list-style: none;
}

.rmm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rmm-header select,
.rmm-cart {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #171a20;
  color: #fff;
  padding: 0 10px;
}

.rmm-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rmm-red);
  border-color: var(--rmm-red);
  font-weight: 900;
}

.rmm-cart strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
}

.rmm-hero {
  position: relative;
  min-height: 360px;
  aspect-ratio: 1916 / 821;
  overflow: hidden;
  background: #eef1f5;
}

.rmm-hero-image,
.rmm-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rmm-hero-image {
  object-fit: cover;
}

.rmm-hero-shade {
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.54) 0%, rgba(5, 6, 10, 0.04) 45%, rgba(5, 6, 10, 0) 100%);
}

.rmm-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: auto;
  padding-block: 0 26px;
  color: #fff;
}

.rmm-eyebrow {
  margin: 0 0 12px;
  color: #ff3d63;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rmm-hero h1 {
  max-width: 560px;
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 3.2rem);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.rmm-hero p:not(.rmm-eyebrow) {
  max-width: 560px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.92rem, 1.5vw, 1rem);
}

.rmm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rmm-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--rmm-red) !important;
  color: #fff !important;
  padding: 0 18px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(183, 15, 47, 0.24);
  cursor: pointer;
}

.rmm-button-light {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none;
}

.rmm-button-wide {
  width: 100%;
}

.rmm-section {
  padding-block: clamp(42px, 7vw, 78px);
}

.rmm-section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.rmm-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.rmm-section-head p:not(.rmm-eyebrow) {
  margin: 0;
  color: var(--rmm-muted);
}

.rmm-configurator {
  background: var(--rmm-surface);
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--rmm-shadow);
}

.rmm-order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: start;
}

.rmm-flow {
  display: grid;
  gap: 14px;
}

.rmm-panel,
.rmm-preview-card,
.rmm-content,
.rmm-shop-intro,
.rmm-message {
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
}

.rmm-panel {
  padding: 18px;
}

.rmm-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.rmm-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rmm-step-head > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--rmm-red);
  color: #fff;
  font-weight: 900;
}

.rmm-step-head h3 {
  margin: 0 0 3px;
}

.rmm-step-head p {
  margin: 0;
  color: var(--rmm-muted);
  font-size: 0.92rem;
}

.rmm-disabled-step {
  opacity: 0.48;
}

.rmm-disabled-step > *:not(.rmm-step-head) {
  pointer-events: none;
}

.rmm-search-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.rmm-search-field span,
.rmm-choice-group > strong {
  color: var(--rmm-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rmm-search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  padding: 0 12px;
}

.rmm-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.rmm-brand-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 24, 31, 0.06);
}

.rmm-brand-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  background: #eef2f6;
}

.rmm-brand-card-title {
  padding: 12px 12px 6px;
  font-size: 1.05rem;
  font-weight: 900;
}

.rmm-model-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 12px 12px;
}

.rmm-model-preview em {
  border-radius: 6px;
  background: #f1f4f8;
  color: var(--rmm-muted);
  padding: 3px 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.rmm-brand-card.is-active,
.rmm-pill.is-active,
.rmm-generation-card.is-active,
.rmm-finish-card:has(input:checked) {
  border-color: var(--rmm-red);
  box-shadow: 0 0 0 3px rgba(183, 15, 47, 0.13);
}

.rmm-choice-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rmm-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rmm-pill,
.rmm-generation-card {
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rmm-ink);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.rmm-generation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.rmm-generation-card {
  display: grid;
  gap: 3px;
  text-align: left;
}

.rmm-generation-card span,
.rmm-muted-text {
  color: var(--rmm-muted);
  font-size: 0.84rem;
}

.rmm-finish-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.rmm-finish-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.rmm-finish-card input {
  accent-color: var(--rmm-red);
}

.rmm-finish-card span {
  font-weight: 900;
}

.rmm-finish-card small {
  color: var(--rmm-muted);
  line-height: 1.35;
}

.rmm-logo-fields.is-collapsed {
  display: none;
}

.rmm-conditional-colour[hidden] {
  display: none;
}

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

.rmm-field {
  display: grid;
  gap: 6px;
}

.rmm-field span,
.rmm-swatches legend {
  color: var(--rmm-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rmm-field select,
.rmm-field input[type="text"],
.rmm-field input[type="file"],
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rmm-ink);
  padding: 0 12px;
}

.rmm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.rmm-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 800;
}

.rmm-radio input {
  accent-color: var(--rmm-red);
}

.rmm-swatches {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.rmm-swatches label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 5px 6px 5px 0;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  cursor: pointer;
}

.rmm-swatches input {
  position: absolute;
  opacity: 0;
}

.rmm-swatches span {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: var(--swatch);
}

.rmm-swatches input:checked + span {
  outline: 3px solid rgba(183, 15, 47, 0.22);
  border-color: #fff;
}

.rmm-swatches em {
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.rmm-preview-wrap {
  position: sticky;
  top: 86px;
}

.rmm-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #101218;
  color: #fff;
  box-shadow: var(--rmm-shadow);
}

.rmm-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #aeb5c0;
}

.rmm-preview-head strong {
  color: #fff;
}

.rmm-live-preview-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #f4f6f8;
}

.rmm-mat-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 310px;
}

.mat-base {
  fill: #080808;
  transition: fill 180ms ease;
}

.carpet-grain {
  fill: url(#rmm-carpet-texture);
  opacity: 0.9;
  pointer-events: none;
}

.mat-edge {
  fill: none;
  stroke: #080808;
  stroke-width: 14;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke 180ms ease;
}

.leather-panel {
  fill: #9b6438;
  opacity: 0;
  transition: fill 180ms ease, opacity 180ms ease;
}

.side-stitch,
.stripe {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
  opacity: 0;
  transition: stroke 180ms ease, opacity 180ms ease;
}

.heel-pad {
  fill: #17191d;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 4;
  opacity: 0;
  transition: opacity 180ms ease;
}

.heel-pad-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 18;
  opacity: 0;
  transition: opacity 180ms ease;
}

.preview-brand,
.preview-model {
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.42);
  stroke-width: 4;
  stroke-linejoin: round;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  transition: fill 180ms ease;
}

.preview-brand {
  font-size: 28px;
}

.preview-model {
  font-size: 24px;
}

.preview-brand-secondary,
.preview-model-secondary {
  opacity: 0.88;
}

.rmm-summary {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfd5df;
  font-size: 0.86rem;
}

.rmm-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rmm-summary b {
  color: #fff;
}

.rmm-note {
  margin: 0;
  color: #aeb5c0;
  font-size: 0.82rem;
}

.rmm-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rmm-gallery-item {
  overflow: hidden;
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.08);
}

.rmm-gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.rmm-gallery-item div {
  padding: 14px;
}

.rmm-gallery-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.rmm-gallery-item p {
  margin: 0;
  color: var(--rmm-muted);
}

.rmm-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rmm-proof div {
  border: 1px solid var(--rmm-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.rmm-proof strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.rmm-proof span {
  color: var(--rmm-muted);
}

.rmm-content,
.rmm-message {
  margin-block: 32px;
  padding: clamp(18px, 3vw, 28px);
}

.rmm-content h1 {
  margin-top: 0;
}

.rmm-shop-intro {
  margin: 0 0 24px;
  padding: 28px;
  background: #101218;
  color: #fff;
}

.rmm-shop-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.rmm-shop-intro p:not(.rmm-eyebrow) {
  margin: 0;
  color: #c5cbd6;
}

.rmm-woo {
  padding-block: 36px;
}

.woocommerce table.shop_table,
.woocommerce-checkout-review-order,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-radius: 8px !important;
  background: #fff;
}

.woocommerce ul.products li.product,
.woocommerce div.product {
  color: var(--rmm-ink);
}

.rmm-footer {
  margin-top: 54px;
  padding: 52px 0;
  background: #090b0f;
  color: #fff;
}

.rmm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.rmm-footer h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.rmm-footer p {
  margin: 0;
  color: #b9c0cb;
}

[dir="rtl"] .rmm-hero-shade {
  transform: scaleX(-1);
}

@media (max-width: 980px) {
  .rmm-header {
    position: static;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .rmm-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .rmm-order-form,
  .rmm-proof,
  .rmm-footer-grid {
    grid-template-columns: 1fr;
  }

  .rmm-preview-wrap {
    position: static;
  }

  .rmm-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rmm-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }

  .rmm-grid-2,
  .rmm-finish-cards,
  .rmm-gallery {
    grid-template-columns: 1fr;
  }

  .rmm-hero,
  .rmm-hero-content {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .rmm-hero h1 {
    font-size: 1.8rem;
  }
}
