:root {
  --bg: #060708;
  --bg-soft: #0b0d0f;
  --panel: #101214;
  --panel-2: #151719;
  --text: #f5f6f7;
  --muted: #aeb1b6;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 35, 42, 0.55);
  --red: #f2161f;
  --red-dark: #8f050b;
  --red-bright: #ff3038;
  --shadow-red: 0 0 28px rgba(242, 22, 31, 0.2);
  --max: 1480px;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Chakra Petch", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 22, 31, 0.11), transparent 34rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
  font-family: var(--font-body);
  min-width: 320px;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 7, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 22, 31, .55);
  box-shadow: 0 12px 35px rgba(0,0,0,.48);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  filter: blur(.5px);
}
.header-shell {
  width: min(var(--max), calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
}
.brand-logo {
  width: 115px;
  height: 64px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
/* Keep the full RF Gaming wordmark clear of the angled right edge. */
.brand-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform: translateX(-6%);
}
.brand-copy { display: grid; line-height: .88; font-family: var(--font-display); letter-spacing: .06em; }
.brand-copy strong { font-size: 1.18rem; }
.brand-copy em { font-size: 1.32rem; color: var(--red-bright); font-style: normal; font-weight: 700; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 2.1vw, 34px); }
.main-nav a {
  position: relative;
  padding: 30px 0 27px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #e2e3e5;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 50%; right: 50%; bottom: 17px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  transition: left .2s ease, right .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--red-bright); }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.server-link, .cart-button {
  height: 46px;
  border: 1px solid rgba(255,255,255,.17);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.server-link:hover, .cart-button:hover { border-color: var(--red); background: rgba(242,22,31,.1); transform: translateY(-1px); }
.server-link svg, .cart-button svg { width: 20px; fill: var(--red); }
.cart-button b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--red); font-size: .75rem; }
.menu-toggle { display: none; width: 46px; height: 44px; padding: 10px; border: 1px solid var(--line); background: #0e1012; border-radius: 4px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .25s ease, opacity .25s ease; }

.hero {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  min-height: min(720px, 52vw);
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(242,22,31,.35);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), transparent 55%, rgba(0,0,0,.78) 94%),
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 35%, transparent 65%, rgba(0,0,0,.18));
}

.merchandise-art img { object-fit: contain; padding: 32px; background: #030303; }

.hero-actions {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 2;
}
.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(180deg, #f82831, #b50810); border-color: #ff3c44; box-shadow: 0 9px 26px rgba(211,0,11,.24); }
.button-primary:hover { box-shadow: 0 11px 32px rgba(242,22,31,.38); }
.button-ghost { background: rgba(3,4,5,.76); border-color: rgba(242,22,31,.8); }
.button-ghost:hover { background: rgba(242,22,31,.12); }
.trust-bar {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  width: min(1240px, calc(100% - 50px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8,9,10,.92);
  border: 1px solid rgba(255,255,255,.15);
  border-bottom: 0;
  clip-path: polygon(2% 0, 98% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
  backdrop-filter: blur(10px);
}
.trust-item { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 19px; position: relative; }
.trust-item:not(:last-child)::after { content: ""; position: absolute; right: 0; height: 42%; width: 1px; background: var(--line); }
.trust-item svg { width: 28px; flex: 0 0 28px; fill: var(--red); filter: drop-shadow(0 0 8px rgba(242,22,31,.55)); }
.trust-item span { display: grid; }
.trust-item strong { font-family: var(--font-display); font-size: .95rem; text-transform: uppercase; }
.trust-item small { color: var(--muted); margin-top: 2px; }

.section { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 78px 0; }
.section-heading { text-align: center; margin: 0 auto 34px; max-width: 780px; }
.section-heading p { margin: 0 0 4px; color: var(--red-bright); text-transform: uppercase; letter-spacing: .35em; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.section-heading h1, .section-heading h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: .95; text-transform: uppercase; letter-spacing: .035em; text-shadow: 0 3px 0 #25282b; }
.section-heading span { display: block; margin-top: 14px; color: var(--muted); line-height: 1.65; }
.section-heading.compact { margin-bottom: 30px; }

.why-section { padding-top: 72px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242,22,31,.42);
  background: #050505;
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  clip-path: polygon(2.5% 0, 97.5% 0, 100% 7%, 100% 93%, 97.5% 100%, 2.5% 100%, 0 93%, 0 7%);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.benefit-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 35px rgba(242,22,31,.08); }
.benefit-card:hover { transform: translateY(-5px); border-color: var(--red-bright); box-shadow: var(--shadow-red), 0 18px 40px rgba(0,0,0,.5); }
.benefit-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.categories-section { position: relative; }
.categories-section::before, .assets-section::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 70px;
  background: linear-gradient(90deg, transparent, rgba(242,22,31,.6), transparent);
}
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 25px;
  border: 1px solid rgba(242,22,31,.55);
  background:
    linear-gradient(145deg, rgba(242,22,31,.12), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 5px),
    #0d0f11;
  box-shadow: 0 15px 36px rgba(0,0,0,.35);
  clip-path: polygon(4% 0, 96% 0, 100% 5%, 100% 95%, 96% 100%, 4% 100%, 0 95%, 0 5%);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.category-card:hover { transform: translateY(-5px); border-color: var(--red-bright); background-color: #121416; }
.category-icon { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(242,22,31,.65); border-radius: 50%; background: radial-gradient(circle, rgba(242,22,31,.22), rgba(0,0,0,.65)); box-shadow: 0 0 24px rgba(242,22,31,.18); }
.category-icon svg { width: 34px; fill: #fff; }
.category-card span { color: var(--red-bright); text-transform: uppercase; font-size: .74rem; letter-spacing: .12em; }
.category-card h3 { margin: 3px 0 8px; font-family: var(--font-display); text-transform: uppercase; font-size: 1.55rem; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .9rem; }
.category-card strong { display: inline-block; margin-top: 18px; color: var(--red-bright); text-transform: uppercase; font-size: .8rem; }

.assets-section { padding-top: 34px; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; }
.filter-button { border: 1px solid var(--line); background: #0e1012; padding: 10px 16px; border-radius: 3px; cursor: pointer; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: border-color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button.active { border-color: var(--red); background: rgba(242,22,31,.13); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; background: #0d0f11; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 15px 35px rgba(0,0,0,.35); transition: transform .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(242,22,31,.72); }
.product-card.is-hidden { display: none; }
.product-art { height: 205px; position: relative; overflow: hidden; background: radial-gradient(circle, #2c0205 0, #08090a 68%); border-bottom: 1px solid rgba(242,22,31,.45); }
.product-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.8)); }
.product-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; transform: scale(.88); transition: transform .3s ease; }
.product-art.alternate img { object-fit: cover; transform: scale(1.03); opacity: .75; }
.product-card:hover .product-art img { transform: scale(.94); }
.product-card:hover .product-art.alternate img { transform: scale(1.08); }
.product-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 9px; background: rgba(5,5,5,.86); border: 1px solid rgba(242,22,31,.75); color: #fff; text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }
.product-content { padding: 21px; }
.product-type { margin: 0 0 3px; color: var(--red-bright); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.product-content h3 { margin: 0 0 9px; font-family: var(--font-display); text-transform: uppercase; font-size: 1.75rem; }
.product-content > p:not(.product-type) { min-height: 78px; margin: 0; color: var(--muted); line-height: 1.55; font-size: .88rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.product-meta span { padding: 5px 7px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); color: #c8cbd0; font-size: .68rem; }
.product-footer { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-footer strong { color: #fff; font-family: var(--font-display); text-transform: uppercase; }
.add-to-cart { min-height: 39px; padding: 0 12px; border: 1px solid var(--red); background: rgba(242,22,31,.1); cursor: pointer; text-transform: uppercase; font-size: .73rem; font-weight: 700; transition: background .2s ease; }
.add-to-cart:hover { background: var(--red); }

.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 30px; }
.cta-panel { min-height: 270px; padding: 26px; display: grid; grid-template-columns: 175px 1fr; grid-template-rows: 1fr auto; gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(242,22,31,.08), transparent 48%), #0d0f11; border: 1px solid rgba(255,255,255,.12); }
.cta-icon { grid-row: 1 / 3; overflow: hidden; border: 1px solid rgba(242,22,31,.45); }
.cta-icon img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: left center; }
.cta-panel p { margin: 0; color: var(--red-bright); text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; }
.cta-panel h2 { margin: 3px 0 8px; font-family: var(--font-display); text-transform: uppercase; font-size: 1.8rem; }
.cta-panel span { color: var(--muted); line-height: 1.55; font-size: .88rem; }
.cta-panel .button { justify-self: start; }

.site-footer { border-top: 1px solid rgba(242,22,31,.4); background: #050607; padding: 58px max(22px, calc((100vw - var(--max)) / 2)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(242,22,31,.6); }
.footer-brand strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; }
.footer-brand p { max-width: 430px; color: var(--muted); line-height: 1.55; }
.footer-grid h3 { margin: 0 0 15px; font-family: var(--font-display); color: var(--red-bright); text-transform: uppercase; letter-spacing: .08em; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #c7c9cd; font-size: .88rem; }
.footer-grid a:hover { color: var(--red-bright); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 25px; color: #82868c; font-size: .76rem; }
.footer-bottom p { margin: 0; }
.disclaimer { text-align: right; }

.drawer-backdrop { position: fixed; z-index: 1090; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 1100; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: #0a0c0e; border-left: 1px solid rgba(242,22,31,.65); transform: translateX(105%); transition: transform .28s ease; box-shadow: -20px 0 50px rgba(0,0,0,.5); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-header p { margin: 0; color: var(--red-bright); text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; }
.cart-header h2 { margin: 2px 0 0; font-family: var(--font-display); text-transform: uppercase; }
.cart-close { border: 1px solid var(--line); background: #101214; width: 42px; height: 42px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart-items { overflow-y: auto; padding: 18px 24px; }
.empty-cart { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-cart span { width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(242,22,31,.5); color: var(--red-bright); font-family: var(--font-display); font-size: 1.5rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { margin: 0 0 4px; font-family: var(--font-display); text-transform: uppercase; }
.cart-line p { margin: 0; color: var(--muted); font-size: .76rem; }
.remove-item { align-self: center; border: 1px solid rgba(242,22,31,.55); background: transparent; color: var(--red-bright); padding: 7px 9px; cursor: pointer; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-footer p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; font-size: .78rem; }
.checkout-button { width: 100%; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 30px; max-width: min(520px, calc(100% - 30px)); transform: translate(-50%, 20px); padding: 13px 18px; background: #151719; border: 1px solid rgba(242,22,31,.7); box-shadow: var(--shadow-red); opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s ease; text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1240px) {
  .header-shell { grid-template-columns: auto 1fr auto; gap: 15px; }
  .brand { min-width: 175px; }
  .brand-logo { width: 84px; height: 52px; }
  .brand-copy strong { font-size: .96rem; }
  .brand-copy em { font-size: 1.05rem; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .78rem; }
  .server-link span, .cart-button span { display: none; }
  .server-link, .cart-button { width: 46px; padding: 0; }
  .cart-button b { position: absolute; transform: translate(15px,-15px); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .split-cta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header { position: sticky; }
  .header-shell { min-height: 72px; grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; order: 2; }
  .brand { order: 1; }
  .header-actions { order: 3; justify-content: flex-end; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    display: grid;
    gap: 0;
    padding: 10px 22px 18px;
    background: rgba(6,7,8,.98);
    border-bottom: 1px solid rgba(242,22,31,.5);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 5px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a::after { display: none; }
  .hero { min-height: 575px; }
  .hero-image { object-position: center; }
  
  .hero-actions { bottom: 105px; }
  .trust-bar { width: calc(100% - 26px); grid-template-columns: repeat(2, 1fr); clip-path: none; }
  .trust-item { min-height: 63px; }
  .trust-item:nth-child(2)::after { display: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 640px) {
  .header-shell { width: calc(100% - 20px); min-height: 66px; gap: 8px; }
  .brand { min-width: 0; }
  .brand-logo { width: 68px; height: 43px; }
  .brand-copy { display: none; }
  .server-link { display: none; }
  .hero { min-height: 490px; }
  .hero-image { object-position: 50% center; }
  
  .hero-actions { width: calc(100% - 28px); bottom: 142px; flex-direction: column; gap: 8px; }
  .hero-actions .button { width: 100%; min-height: 46px; }
  .trust-bar { bottom: 0; grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 66px; justify-content: flex-start; padding: 10px; gap: 8px; }
  .trust-item svg { width: 22px; flex-basis: 22px; }
  .trust-item strong { font-size: .72rem; }
  .trust-item small { font-size: .64rem; }
  .section { width: calc(100% - 24px); padding: 58px 0; }
  .section-heading h1, .section-heading h2 { font-size: 2.1rem; }
  .section-heading p { font-size: .75rem; letter-spacing: .24em; }
  .benefit-grid, .category-grid, .product-grid, .homepage-featured-grid { grid-template-columns: 1fr; }
  .categories-section::before, .assets-section::before { margin-bottom: 55px; }
  .category-card { min-height: 225px; }
  .product-art { height: 230px; }
  .split-cta { width: calc(100% - 24px); }
  .cta-panel { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cta-icon { grid-row: auto; height: 170px; }
  .cta-icon img { aspect-ratio: auto; object-position: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .disclaimer { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Dedicated store pages */
.page-masthead {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 130px 24px 70px;
  background: linear-gradient(rgba(3,3,4,.45), rgba(3,3,4,.95)), url("images/background2.jpg?v=8") center 42% / cover no-repeat;
  border-bottom: 1px solid rgba(230, 22, 34, .35);
}
.page-masthead-inner { max-width: 850px; }
.page-masthead p { margin: 0 0 6px; color: var(--red-bright); font-family: "Rajdhani", sans-serif; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-masthead h1 { margin: 0; font-family: "Rajdhani", sans-serif; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .95; text-transform: uppercase; }
.page-masthead span { display: block; max-width: 720px; margin: 18px auto 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 700px) {
  .page-masthead { min-height: 280px; padding-top: 110px; }
}


/* Store hub, subsite categories, and standalone information pages */
.home-featured-section { padding-top: 44px; }
.home-featured-section + .home-featured-section { padding-top: 22px; }
.home-featured-section + .home-featured-section::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 70px;
  background: linear-gradient(90deg, transparent, rgba(242,22,31,.6), transparent);
}
.homepage-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}
.merchandise-featured-grid {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}
.section-action { margin-top: 28px; text-align: center; }
.card-link {
  min-height: 39px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--red);
  background: rgba(242,22,31,.1);
  color: #fff;
  text-transform: uppercase;
  font-size: .73rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.card-link:hover { background: var(--red); transform: translateY(-1px); }
.subsite-categories { padding-top:60px; padding-bottom:32px; }
.subsite-categories::before { display:none; }
.subsite-categories .category-icon { font-size:2rem; font-family:var(--font-display); font-weight:700; color:var(--red-bright); }
.info-page { min-height:520px; }
.info-card-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.info-card { overflow:hidden; border:1px solid rgba(242,22,31,.4); background:var(--panel); }
.info-card img { width:100%; aspect-ratio:16/8; object-fit:cover; }
.info-card > div { padding:28px; }
.info-card h3,.support-option h3 { margin:0 0 10px; font-family:var(--font-display); font-size:1.75rem; text-transform:uppercase; }
.info-card p,.support-option p { color:var(--muted); line-height:1.7; }
.status-pill { display:inline-flex; margin-top:12px; padding:10px 14px; border:1px solid rgba(242,22,31,.5); color:var(--red-bright); text-transform:uppercase; font-family:var(--font-display); font-weight:700; }
.support-option-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.support-option { padding:30px; border:1px solid rgba(242,22,31,.38); background:linear-gradient(145deg,#111315,#090a0b); }
.support-option .button { margin-top:12px; }
.support-note { margin:28px auto 0; max-width:850px; color:var(--muted); text-align:center; }
@media (max-width: 980px){ .info-card-grid,.support-option-grid{grid-template-columns:1fr;} }


/* Clickable product cards and product detail pages */
.product-card[data-product-url] { cursor: pointer; }
.product-card[data-product-url]:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
  border-color: var(--red-bright);
}
.product-card[data-product-url] .add-to-cart,
.product-card[data-product-url] .card-link { position: relative; z-index: 2; }

.product-detail-page { background: radial-gradient(circle at 70% 8%, rgba(242,22,31,.09), transparent 31rem); }
.product-detail {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 72px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb span[aria-current="page"] { color: #fff; }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.product-gallery { min-width: 0; }
.product-main-image {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: grid;
  place-items: center;
  background: #050607;
  border: 1px solid rgba(242,22,31,.48);
  box-shadow: 0 22px 55px rgba(0,0,0,.44);
}
.product-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0,0,0,.72), inset 0 -2px 0 rgba(242,22,31,.45);
}
.product-main-image img { width: 100%; height: 100%; max-height: 610px; object-fit: contain; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-gallery-thumb {
  min-width: 0;
  height: 112px;
  padding: 0;
  overflow: hidden;
  background: #090a0b;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active { border-color: var(--red-bright); transform: translateY(-2px); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-media-note { margin: 13px 0 0; color: #81858b; font-size: .75rem; line-height: 1.55; }
.product-summary { padding-top: 8px; }
.product-kicker,
.detail-eyebrow {
  margin: 0 0 8px;
  color: var(--red-bright);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.product-summary h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: .84;
  text-transform: uppercase;
  letter-spacing: -.02em;
  text-shadow: 0 4px 0 #24272a;
}
.product-status {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(242,22,31,.55);
  background: rgba(242,22,31,.08);
  color: var(--red-bright);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
.product-lead { margin: 22px 0 0; color: #d5d7da; line-height: 1.75; font-size: 1.02rem; }
.product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.product-fact { min-width: 0; padding: 15px 16px; background: #0b0d0f; }
.product-fact span { display: block; color: #81858b; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.product-fact strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.08rem; text-transform: uppercase; }
.product-purchase-panel {
  margin-top: 26px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(242,22,31,.5);
  background: linear-gradient(145deg, rgba(242,22,31,.11), #0a0b0c 46%);
}
.product-purchase-panel > div { display: grid; }
.product-purchase-panel span { color: #858990; font-size: .72rem; text-transform: uppercase; }
.product-purchase-panel strong { margin-top: 3px; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.product-purchase-note { color: #7d8187; font-size: .72rem; line-height: 1.55; }
.product-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 18px; }
.detail-panel {
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid rgba(242,22,31,.32);
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 43%), #0b0d0f;
  box-shadow: 0 18px 42px rgba(0,0,0,.25);
}
.detail-panel:first-child { grid-column: 1 / 3; }
.detail-panel h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.75rem); text-transform: uppercase; }
.detail-panel > p:not(.detail-eyebrow):not(.detail-note) { margin: 0; color: var(--muted); line-height: 1.8; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 24px; color: #c9ccd0; line-height: 1.55; }
.feature-list li::before { content: "›"; position: absolute; left: 2px; top: -.08em; color: var(--red-bright); font-size: 1.35rem; font-weight: 700; }
.compatibility-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.compatibility-tags span { padding: 9px 12px; border: 1px solid rgba(242,22,31,.42); background: rgba(242,22,31,.07); font-size: .76rem; text-transform: uppercase; }
.detail-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #858990; line-height: 1.65; font-size: .8rem; }
.product-back-cta {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto 78px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid rgba(242,22,31,.42);
  background: #0b0d0f;
}
.product-back-cta p { margin: 0; color: var(--red-bright); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.product-back-cta h2 { margin: 3px 0 0; font-family: var(--font-display); text-transform: uppercase; }

@media (max-width: 980px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-summary { padding-top: 0; }
  .product-main-image { min-height: 360px; }
}
@media (max-width: 700px) {
  .product-detail { width: calc(100% - 24px); padding-top: 28px; }
  .product-main-image { min-height: 260px; }
  .product-gallery-thumb { height: 78px; }
  .product-summary h1 { font-size: 3.25rem; }
  .product-facts { grid-template-columns: 1fr; }
  .product-purchase-panel { align-items: stretch; flex-direction: column; }
  .product-purchase-panel .button { width: 100%; }
  .product-sections { grid-template-columns: 1fr; }
  .detail-panel:first-child { grid-column: auto; }
  .product-back-cta { width: calc(100% - 24px); flex-direction: column; align-items: stretch; }
  .product-back-cta .button { width: 100%; }
}

/* Version 9: merchandise listing and mixed image/video product galleries */
.merchandise-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 330px));
  justify-content: center;
}
.merchandise-product-grid .product-card {
  width: 100%;
}
.listing-note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 18px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(242, 22, 31, .35);
  background: #0d0f11;
}
.product-main-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.product-main-media img,
.product-main-video {
  width: 100%;
  height: 100%;
}
.product-main-video {
  position: relative;
  z-index: 1;
  border: 0;
  background: #000;
}
.product-main-video[hidden] { display: none; }
.product-gallery-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
}
.gamelad-gallery-thumbs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.product-gallery-thumb {
  position: relative;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.8));
  pointer-events: none;
}
.video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 45%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 22px rgba(242,22,31,.7);
  font-size: 1rem;
}
.video-label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 7px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .68rem;
}
@media (max-width: 700px) {
  .merchandise-product-grid { grid-template-columns: minmax(0, 1fr); }
  .gamelad-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-main-media { aspect-ratio: 16 / 10; }
}

/* Product-card images synchronized from each product detail page. */
.product-art.product-art-synced {
  background: #070809;
}
.product-art.product-art-synced img,
.product-art.alternate.product-art-synced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
  transform: scale(1);
}
.product-card:hover .product-art.product-art-synced img,
.product-card:hover .product-art.alternate.product-art-synced img {
  transform: scale(1.035);
}

/* Version 11: reliable mixed image/video product gallery stage */
.product-main-media {
  position: relative;
  isolation: isolate;
}
.product-main-media > #product-main-image {
  position: relative;
  z-index: 1;
  display: block;
}
.product-main-media > #product-main-image.is-hidden {
  display: none;
}
.product-video-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  background: #000;
}
.product-video-stage.is-active {
  display: block;
}
.product-video-stage .product-main-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}


/* RF Store Manager v1.0.3: status-aware purchasing */
.availability-button {
  min-height: 39px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
  color: #8f949b;
  text-transform: uppercase;
  font-size: .73rem;
  font-weight: 700;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}
.product-purchase-panel.not-purchasable {
  border-color: rgba(255,255,255,.15);
  background: linear-gradient(145deg, rgba(255,255,255,.035), #0a0b0c 46%);
}
.detail-availability {
  min-width: 150px;
  opacity: .82;
}
.release-date {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: rgba(242,22,31,.07);
  color: #d7d9dc;
}
.product-card[data-product-url] .availability-button {
  position: relative;
  z-index: 2;
}

/* RF Store Manager 1.1: dynamic storefront, accounts, checkout, and mobile fixes */
.public-products {
  width: min(1380px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0;
}
.public-products + .public-products { border-top: 1px solid rgba(242,22,31,.25); }
.public-products .product-grid { margin-top: 28px; }
.empty-products {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(242,22,31,.28);
  background: #0c0e10;
}
.page-hero {
  position: relative;
  min-height: clamp(300px, 36vw, 560px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(242,22,31,.4);
  background: #000;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .7; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.78)); }
.page-hero-content { position: relative; z-index: 1; text-align: center; padding: 40px 20px; }
.page-hero-content p { margin: 0 0 8px; color: var(--red-bright); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .32em; }
.page-hero-content h1 { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.4rem); line-height: .88; text-transform: uppercase; text-shadow: 0 4px 0 #25282b; }
.filter-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-row .button { min-height: 43px; padding: 0 16px; }
.filter-row .button.active { background: rgba(242,22,31,.18); border-color: var(--red-bright); color: #fff; box-shadow: 0 0 18px rgba(242,22,31,.2); }
.product-card .choose-options { text-decoration: none; }
.cart-line h3 small { color: var(--muted); font-size: .72em; }
.cart-account-link { display: block; margin-top: 12px; text-align: center; color: var(--muted); font-size: .78rem; text-decoration: underline; }
.purchase-options { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.purchase-options label { display: grid; gap: 7px; color: #d8dadd; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.purchase-options select,
.purchase-options input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; color: #fff; background: #0a0c0e; border: 1px solid rgba(255,255,255,.17); font: inherit; }
.account-shell { width: min(720px, calc(100% - 28px)); margin: 0 auto; padding: 82px 0; }
.account-card { padding: clamp(24px, 5vw, 46px); border: 1px solid rgba(242,22,31,.4); background: linear-gradient(145deg, rgba(242,22,31,.07), transparent 42%), #0c0e10; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.account-card h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .9; text-transform: uppercase; }
.account-card > p { color: var(--muted); line-height: 1.65; }
.account-card form { display: grid; gap: 14px; margin-top: 24px; }
.account-card label { display: grid; gap: 7px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.account-card input { width: 100%; min-height: 48px; padding: 11px 13px; color: #fff; background: #07090b; border: 1px solid rgba(255,255,255,.17); font: inherit; }
.account-notice { margin: 18px 0; padding: 13px 15px; border: 1px solid #6d5720; background: #30270f; color: #f5d878; }
.account-switch { margin-top: 20px !important; }
.account-switch a { color: var(--red-bright); text-decoration: underline; }
.account-dashboard { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.account-dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.account-dashboard-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.7rem, 6vw, 5rem); line-height: .9; text-transform: uppercase; }
.account-order-list { display: grid; gap: 18px; }
.account-order-card { padding: 24px; border: 1px solid rgba(255,255,255,.13); background: #0c0e10; }
.account-order-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.account-order-head > div { display: grid; gap: 4px; }
.account-order-head strong { font-family: var(--font-display); font-size: 1.35rem; }
.account-order-head span { color: var(--muted); }
.account-order-card > ul { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 9px; }
.account-order-card > ul li { display: flex; justify-content: space-between; gap: 14px; color: #d8dadd; }
.account-order-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.license-list { display: grid; gap: 12px; margin-top: 20px; }
.license-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(242,22,31,.35); background: #080a0c; }
.license-card > div:first-child { display: grid; gap: 5px; }
.license-card p { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.license-card code { color: #ff737a; overflow-wrap: anywhere; }
.license-card span { color: var(--muted); font-size: .78rem; }
.activation-list { grid-column: 1 / -1; display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.activation-list form { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activation-list button { border: 1px solid rgba(242,22,31,.45); background: transparent; color: #fff; padding: 6px 10px; cursor: pointer; }
.checkout-success { text-align: center; }
.checkout-success .button { margin-top: 14px; }

@media (max-width: 700px) {
  .hero { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #030405; }
  .hero-image { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1774 / 887; object-fit: contain; object-position: center; flex: 0 0 auto; background: #000; }
  .hero-shade { display: none; }
  .hero-actions { position: relative; left: auto; bottom: auto; transform: none; width: auto; padding: 14px 12px 18px; flex-direction: column; gap: 9px; background: #050607; }
  .hero-actions .button { width: 100%; min-height: 48px; }
  .public-products { width: calc(100% - 24px); padding: 54px 0; }
  .page-hero { min-height: 250px; }
  .page-hero-content h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-row .button { width: 100%; padding: 0 8px; font-size: .78rem; text-align: center; }
  .product-content > p:not(.product-type) { min-height: 0; }
  .product-footer { flex-wrap: wrap; }
  .purchase-options { grid-template-columns: 1fr; }
  .account-dashboard-head { align-items: stretch; flex-direction: column; }
  .account-order-card { padding: 16px; }
  .account-order-head { align-items: flex-start; flex-direction: column; }
  .license-card { grid-template-columns: 1fr; }
  .license-card .button { width: 100%; }
  .activation-list { grid-column: auto; }
}

@media (max-width: 460px) {
  .header-shell { width: calc(100% - 14px); }
  .brand-logo { width: 64px; height: 41px; }
  .brand-copy { display: none; }
  .menu-toggle, .cart-button { width: 44px; height: 44px; }
  .server-link { display: none; }
  .section-heading h1, .section-heading h2 { font-size: 1.88rem; }
  .filter-row { grid-template-columns: 1fr; }
  .product-footer { align-items: stretch; flex-direction: column; }
  .product-footer .add-to-cart,
  .product-footer .availability-button { width: 100%; justify-content: center; }
  .account-shell { width: calc(100% - 20px); padding: 42px 0; }
  .account-card { padding: 20px 16px; }
  .account-dashboard { width: calc(100% - 20px); padding: 42px 0; }
  .account-order-card > ul li,
  .account-order-total { align-items: flex-start; flex-direction: column; }
}

/* RF Store Manager homepage parity and mobile hero correction */
.home-featured-section { border-top: 1px solid rgba(242,22,31,.22); }
.home-featured-merchandise { padding-top: 70px; }
.section-action { display: flex; justify-content: center; margin-top: 28px; }

@media (max-width: 700px) {
  .hero .trust-bar {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% - 24px);
    margin: 0 auto 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    clip-path: none;
  }
  .hero .trust-item { min-width: 0; min-height: 74px; justify-content: flex-start; padding: 10px 12px; }
  .hero .trust-item:nth-child(2)::after { display: none; }
  .hero .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero .trust-item strong { font-size: .76rem; }
  .hero .trust-item small { font-size: .68rem; }
  .why-section { padding-top: 54px; }
  .section-action .button { width: 100%; }
}

@media (max-width: 380px) {
  .hero .trust-bar { grid-template-columns: 1fr; }
  .hero .trust-item:not(:last-child) { border-bottom: 1px solid var(--line); }
  .hero .trust-item::after { display: none; }
}

/* RF Store Manager 1.2: dedicated mobile return-to-site action */
.mobile-home-link {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
}
.mobile-home-link svg { width: 21px; fill: var(--red); }
.mobile-home-link:hover { border-color: var(--red); background: rgba(242,22,31,.1); }
@media (max-width: 460px) {
  .mobile-home-link { display: inline-flex; }
  .header-actions { gap: 7px; }
  .header-actions .cart-button { padding: 0; }
}


/* RF Store Manager 2.2: rich descriptions and non-stretched product media */
.product-main-media {
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
}
.product-main-media > img {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.product-main-media > img.product-image-fit {
  object-fit: contain;
}
.product-main-media > img.product-image-crop {
  object-fit: cover;
}

.product-art.product-art-synced {
  display: grid;
  place-items: center;
  background: #000;
}
.product-art.product-art-synced img {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: normal;
  opacity: 1;
}
.product-art.product-art-synced img.product-image-fit {
  object-fit: contain !important;
  transform: scale(1);
}
.product-art.product-art-synced img.product-image-crop {
  object-fit: cover !important;
  transform: scale(1);
}
.product-card:hover .product-art.product-art-synced img.product-image-fit,
.product-card:hover .product-art.product-art-synced img.product-image-crop {
  transform: scale(1.025);
}

.rich-content {
  color: inherit;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.rich-content > :first-child {
  margin-top: 0;
}
.rich-content > :last-child {
  margin-bottom: 0;
}
.rich-content p,
.rich-content div {
  margin: 0 0 1em;
}
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 1.15em 0 .45em;
  font-family: var(--font-display);
  line-height: 1.05;
}
.rich-content ul,
.rich-content ol {
  margin: .7em 0 1em 1.4em;
  padding: 0;
}
.rich-content blockquote {
  margin: 1em 0;
  padding: .75em 1em;
  border-left: 3px solid var(--red);
  background: rgba(242, 22, 31, .06);
}
.rich-content a {
  color: var(--red-bright);
  text-decoration: underline;
}
.rich-content pre,
.rich-content code {
  font-family: Consolas, "Courier New", monospace;
}
.rich-content pre {
  overflow-x: auto;
  padding: 1em;
  background: #070809;
  border: 1px solid var(--line);
}
.rich-content-card {
  min-height: 78px;
  max-height: 124px;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.rich-content-card p,
.rich-content-card div {
  margin-bottom: .55em;
}
.rich-content-short {
  color: var(--muted);
}

@media (max-width: 700px) {
  .rich-content-card {
    max-height: 132px;
  }
}


/* RF Store Manager 2.2.1: force correct non-distorted gallery media modes */
.product-main-media {
  background: #000 !important;
}
.product-main-media > img.product-image-fit,
.product-main-media > #product-main-image.product-image-fit {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
  transform: none !important;
}
.product-main-media > img.product-image-crop,
.product-main-media > #product-main-image.product-image-crop {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  background: #000 !important;
}


/* RF Store Manager 2.2.4: constrain the image box to the gallery stage.
   object-fit only works as intended when the replaced element itself has a
   definite width and height. Percentage height was resolving as auto in this
   layout, so portrait images expanded by width and were clipped by the stage. */
.product-main-media {
  position: relative !important;
  display: block !important;
  aspect-ratio: 16 / 9;
  overflow: hidden !important;
  background: #000 !important;
  min-width: 0;
  min-height: 0;
}

.product-main-media > #product-main-image,
.product-main-media > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  transform: none !important;
}

.product-main-media > #product-main-image.product-image-fit,
.product-main-media > img.product-image-fit {
  object-fit: contain !important;
}

.product-main-media > #product-main-image.product-image-crop,
.product-main-media > img.product-image-crop {
  object-fit: cover !important;
}

.product-main-media > .product-main-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}


/* RF Store Manager 2.2.6: keep product thumbnails small and square.
   auto-fit/minmax caused one or two thumbnails to expand across the row. */
.product-gallery-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 112px) !important;
  grid-auto-rows: 112px;
  justify-content: start;
  align-items: start;
  gap: 12px !important;
}

.product-gallery-thumb {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}

.product-gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
}

@media (max-width: 640px) {
  .product-gallery-thumbs {
    grid-template-columns: repeat(auto-fill, 94px) !important;
    grid-auto-rows: 94px;
    gap: 10px !important;
  }

  .product-gallery-thumb {
    width: 94px !important;
    height: 94px !important;
    min-width: 94px !important;
    min-height: 94px !important;
    max-width: 94px !important;
    max-height: 94px !important;
  }
}


/* RF Store Manager 2.3.0: merchandise is hosted and fulfilled by Spring. */
.external-merch-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 0 86px;
}
.external-merch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(242,22,31,.48);
  background:
    radial-gradient(circle at 92% 8%, rgba(242,22,31,.18), transparent 22rem),
    linear-gradient(145deg, #121416, #08090a);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.external-merch-copy h2 {
  max-width: 760px;
  margin: 5px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: .98;
  text-transform: uppercase;
}
.external-merch-copy > p:not(.detail-eyebrow) {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}
.external-merch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.external-merch-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.external-merch-provider {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.36);
}
.external-merch-provider span {
  color: var(--red-bright);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.external-merch-provider strong {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.external-merch-provider p {
  color: var(--muted);
  line-height: 1.6;
}
.external-merch-provider a {
  margin-top: auto;
  color: #fff;
  overflow-wrap: anywhere;
}
.home-external-merch-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(242,22,31,.42);
  background:
    radial-gradient(circle at 90% 10%, rgba(242,22,31,.14), transparent 18rem),
    #0d0f11;
}
.home-external-merch-card h3 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}
.home-external-merch-card p:not(.detail-eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 820px) {
  .external-merch-panel { grid-template-columns: 1fr; }
  .external-merch-provider { min-height: 230px; }
  .home-external-merch-card { align-items: stretch; flex-direction: column; }
  .home-external-merch-card .button { width: 100%; }
}
