/* ============================================================
   SOLO SPACES
   Full CSS rewrite aligned to the provided reference layout.
   CSS only: no HTML edits, scoped to Zid structure.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --solo-bg: #111111;
  --solo-bg-soft: #171717;
  --solo-surface: #1d1d1d;
  --solo-surface-2: #222222;
  --solo-text: #f6f3ec;
  --solo-text-soft: rgba(246, 243, 236, 0.72);
  --solo-text-muted: rgba(246, 243, 236, 0.56);
  --solo-border: rgba(255, 255, 255, 0.08);
  --solo-border-strong: rgba(255, 255, 255, 0.14);
  --solo-red: #b80f14;
  --solo-red-strong: #d01318;
  --solo-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --solo-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.22);
  --solo-radius: 0;
  --solo-max: 1280px;
  --solo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--solo-bg);
  color: var(--solo-text);
  font-family: 'Inter', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir='rtl'] body,
html[lang='ar'] body {
  font-family: 'Tajawal', sans-serif !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Anton', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4,
[dir='rtl'] h5,
[dir='rtl'] h6 {
  letter-spacing: 0 !important;
}

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

.theme-container {
  width: min(100%, var(--solo-max));
  margin-inline: auto;
}

/* ============================================================
   Global polish
   ============================================================ */

body.solo-menu-open {
  overflow: hidden;
}

.solo-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--solo-ease),
    transform 0.8s var(--solo-ease);
  transition-delay: var(--solo-delay, 0ms);
}

.solo-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.solo-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--solo-red);
}

.solo-section-label-line {
  width: 2rem;
  height: 1px;
  background: var(--solo-red);
  flex: 0 0 2rem;
}

.solo-section-label-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--solo-red);
}

[dir='rtl'] .solo-section-label-text {
  letter-spacing: 0.15em;
}

/* ============================================================
   Header
   ============================================================ */

.sticky.top-0.z-50 {
  position: fixed !important;
  inset-inline: 0;
  top: 0;
  width: 100%;
  z-index: 999;
}

.sticky.top-0.z-50 header.bg-secondary {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.sticky.top-0.z-50.header-scrolled header.bg-secondary,
body .sticky.top-0.z-50.is-scrolled header.bg-secondary,
body:not([data-template='home']) .sticky.top-0.z-50 header.bg-secondary {
  background: rgba(17, 17, 17, 0.84) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom-color: var(--solo-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

header.bg-secondary {
  padding-block: 1rem !important;
}

nav.theme-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  min-height: 3.5rem !important;
}

nav.theme-container > .flex.items-center.gap-8 {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
}

nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'],
nav.theme-container a.solo-home-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-width: 10rem !important;
  min-height: 3rem !important;
}

nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] span,
nav.theme-container a.solo-home-link span {
  display: none !important;
}

nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] .ss-logo-text,
nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] > span,
nav.theme-container a.solo-home-link .ss-logo-text,
nav.theme-container a.solo-home-link > span {
  display: none !important;
}

nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] img.hidden.md\:block,
nav.theme-container a.solo-home-link img.hidden.md\:block {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  width: auto !important;
  max-height: 4rem !important;
}

nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] img.block.md\:hidden,
nav.theme-container a.solo-home-link img.block.md\:hidden {
  display: none !important;
}

nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  white-space: nowrap !important;
}

nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a {
  position: relative !important;
  color: rgba(246, 243, 236, 0.72) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}

nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 1px;
  background: var(--solo-red);
  transition: width 0.3s var(--solo-ease);
}

nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a:hover,
nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a[aria-current='page'] {
  color: var(--solo-text) !important;
}

nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a:hover::after,
nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center a[aria-current='page']::after {
  width: 100%;
}

nav.theme-container > ul.flex.items-center {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* Hide search and cart on all viewports */
nav.theme-container [aria-label='Search'],
nav.theme-container a[href*='/cart'] {
  display: none !important;
}

/* Hide account/login on desktop */
@media (min-width: 1024px) {
  nav.theme-container [aria-label='Login'],
  nav.theme-container a[href*='/account'] {
    display: none !important;
  }
}

nav.theme-container li.hidden.lg\:block {
  display: block !important;
}

nav.theme-container li.hidden.lg\:block > button {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--solo-border) !important;
  border-radius: 999px !important;
  color: var(--solo-text) !important;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.ss-lang-pill,
.solo-lang-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
  padding: 0.25rem !important;
  border: 1px solid var(--solo-border) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.ss-lang-pill button,
.solo-lang-pill button {
  border: 0 !important;
  background: transparent !important;
  color: var(--solo-text-soft) !important;
  min-width: 2.35rem !important;
  padding: 0.38rem 0.7rem !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.ss-lang-pill .ss-lang-active,
.solo-lang-pill .ss-lang-active {
  background: var(--solo-red) !important;
  color: #ffffff !important;
}

nav.theme-container svg,
nav.theme-container a,
nav.theme-container button {
  color: var(--solo-text) !important;
}

/* ============================================================
   Mobile header and drawer
   ============================================================ */

@media (max-width: 1023px) {
  header.bg-secondary {
    padding-inline: 1rem !important;
    padding-block: 0.85rem !important;
  }

  nav.theme-container {
    display: grid !important;
    grid-template-columns: 3rem 1fr auto !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  nav.theme-container > el-dialog {
    grid-column: 1;
    justify-self: start;
    position: relative;
    z-index: 3;
  }

  nav.theme-container > .flex.items-center.gap-8 {
    grid-column: 1 / -1;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    justify-self: stretch;
    width: auto !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  nav.theme-container > .flex.items-center.gap-8 > ul.hidden.items-center {
    display: none !important;
  }

  nav.theme-container > ul.flex.items-center {
    grid-column: 3;
    justify-self: end;
    position: relative;
    z-index: 2;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    min-width: auto !important;
  }

  nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'],
  nav.theme-container a.solo-home-link {
    position: relative !important;
        left: -5% !important;
        top: -10% !important;
        transform: translate(50%, 50%) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: 3rem !important;
        line-height: 0 !important;
        min-width: auto !important;
        min-height: auto !important;
        pointer-events: auto !important;
        z-index: 2 !important;
  }

  /* Mobile logo: show the mobile Zid logo variant only */
  nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] img.hidden.md\:block,
  nav.theme-container a.solo-home-link img.hidden.md\:block {
    display: none !important;
  }

  nav.theme-container > .flex.items-center.gap-8 > a[aria-label='Home'] img.block.md\:hidden, nav.theme-container a.solo-home-link img.block.md\:hidden {
    position: relative !important;
    left: 50% !important;
    top: 100% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    height: 4rem !important;
    max-height: 4rem !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

  /* ─── Mobile right-nav: show ONLY language switcher ─── */
  /* Hide all right-nav list items by default */
  nav.theme-container > ul.flex.items-center > li {
    display: none !important;
  }

  /* Show language switcher item (it carries hidden.lg:block class) */
  nav.theme-container > ul.flex.items-center > li.hidden.lg\:block {
    display: inline-flex !important;
    align-items: center !important;
  }

  /* ─── Explicitly hide account/login icons on mobile ─── */
  /* ROOT CAUSE FIX: previously these were shown with display:inline-flex */
  nav.theme-container [aria-label='Login'],
  nav.theme-container a[href*='/account'] {
    display: none !important;
  }

  /* Lang pill mobile style */
  .ss-lang-pill,
  .solo-lang-pill {
    transform: scale(0.96);
    transform-origin: right center;
    border-color: rgba(184, 15, 20, 0.28) !important;
    background: rgba(184, 15, 20, 0.08) !important;
  }

  .ss-lang-pill button,
  .solo-lang-pill button {
    color: var(--solo-red) !important;
  }

  nav.theme-container li.hidden.lg\:block svg {
    color: var(--solo-red) !important;
  }

  /* ─── Mobile drawer ─── */

  #mobile-drawer {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #mobile-drawer el-dialog-backdrop {
    background: rgba(4, 4, 4, 0.72) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    opacity: 0 !important;
    transition: opacity 0.35s var(--solo-ease) !important;
  }

  #mobile-drawer .solo-mobile-panel {
    width: min(88vw, 28rem) !important;
    min-height: 100dvh !important;
    margin-inline-start: 0 !important;
    margin-right: auto !important;
    background: rgba(17, 17, 17, 0.98) !important;
    border-left: 0 !important;
    border-right: 1px solid var(--solo-border) !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35) !important;
    transform: translate3d(-100%, 0, 0) !important;
    transition: transform 0.38s var(--solo-ease) !important;
    will-change: transform;
  }

  #mobile-drawer .solo-mobile-dialog-panel {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    transform: none !important;
    overflow: hidden !important;
  }

  #mobile-drawer .solo-mobile-scroll {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }

  #mobile-drawer .solo-mobile-scroll a,
  #mobile-drawer .solo-mobile-scroll button {
    display: block !important;
    width: 100% !important;
    padding: 0.95rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--solo-text) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
  }

  #mobile-drawer .solo-mobile-scroll a:hover,
  #mobile-drawer .solo-mobile-scroll button:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
  }

  .solo-mobile-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 4 !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid var(--solo-border-strong) !important;
    border-radius: 999px !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .solo-mobile-close span {
    position: absolute;
    width: 1rem;
    height: 1.5px;
    background: #ffffff;
  }

  .solo-mobile-close span:first-child {
    transform: rotate(45deg);
  }

  .solo-mobile-close span:last-child {
    transform: rotate(-45deg);
  }

  #mobile-drawer.solo-drawer-ready.solo-drawer-open el-dialog-backdrop,
  #mobile-drawer-dialog.solo-drawer-open #mobile-drawer el-dialog-backdrop {
    opacity: 1 !important;
  }

  #mobile-drawer.solo-drawer-ready.solo-drawer-open .solo-mobile-panel,
  #mobile-drawer-dialog.solo-drawer-open #mobile-drawer .solo-mobile-panel {
    transform: translate3d(0, 0, 0) !important;
  }

  /* ─── RTL: drawer slides from right ─── */
  [dir='rtl'] #mobile-drawer .solo-mobile-panel {
    margin-inline-start: auto !important;
    margin-right: 0 !important;
    border-right: 0 !important;
    border-left: 1px solid var(--solo-border) !important;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35) !important;
    transform: translate3d(100%, 0, 0) !important;
  }

  [dir='rtl'] #mobile-drawer.solo-drawer-ready.solo-drawer-open .solo-mobile-panel {
    transform: translate3d(0, 0, 0) !important;
  }

  [dir='rtl'] .solo-mobile-close {
    right: auto !important;
    left: 1rem !important;
  }
}

/* ============================================================
   Hero
   ============================================================ */

body[data-template='home'] .section-hero {
  position: relative !important;
  min-height: 100svh !important;
  padding-inline: 1rem !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: stretch !important;
}

body[data-template='home'] .section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.22;
  pointer-events: none;
}

body[data-template='home'] .section-hero > .absolute {
  z-index: 0 !important;
}

body[data-template='home'] .section-hero > .absolute img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0.6 !important;
}

body[data-template='home'] .section-hero > .absolute .bg-primary {
  opacity: 1 !important;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.4) 0%, rgba(17, 17, 17, 0.62) 54%, rgba(17, 17, 17, 0.98) 100%) !important;
}

body[data-template='home'] .section-hero > .theme-container {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  width: min(100%, var(--solo-max)) !important;
  max-width: var(--solo-max) !important;
  min-height: 100svh !important;
  padding: 8rem 2.5rem 7rem !important;
}

body[data-template='home'] .section-hero > .theme-container > div {
  max-width: 48rem !important;
  width: 100% !important;
  margin-right: auto !important;
  text-align: left !important;
}

body[data-template='home'] .section-hero > .theme-container > div > .flex.flex-col {
  gap: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body[data-template='home'] .section-hero > .theme-container > div > .flex.flex-col > * {
  align-self: flex-start !important;
  text-align: left !important;
}

body[data-template='home'] .section-hero span.text-foreground.text-xs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.9rem !important;
  margin-bottom: 2rem !important;
  color: var(--solo-text-soft) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
}

body[data-template='home'] .section-hero span.text-foreground.text-xs::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--solo-red);
  flex: 0 0 3rem;
}

body[data-template='home'] .section-hero h1 {
  margin: 0 !important;
  color: var(--solo-text) !important;
  font-size: clamp(3rem, 11vw, 11rem) !important;
  line-height: 0.85 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.025em !important;
}

body[data-template='home'] .section-hero h1 .solo-hero-red {
  display: block !important;
  color: var(--solo-red) !important;
  font-style: italic !important;
}

body[data-template='home'] .section-hero p.text-foreground {
  max-width: 38rem !important;
  margin-top: 2rem !important;
  color: var(--solo-text-soft) !important;
  font-size: clamp(1.02rem, 1.55vw, 1.25rem) !important;
  line-height: 1.75 !important;
}

body[data-template='home'] .section-hero .solo-hero-actions,
body[data-template='home'] .section-hero .flex.gap-4 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  margin-top: 2.5rem !important;
}

body[data-template='home'] .section-hero a.btn-filled,
body[data-template='home'] .section-hero .solo-hero-btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.5rem !important;
  padding: 1rem 2rem !important;
  border-radius: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition:
    transform 0.25s var(--solo-ease),
    box-shadow 0.25s var(--solo-ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease !important;
}

body[data-template='home'] .section-hero a.btn-filled {
  background: var(--solo-red) !important;
  border: 1px solid var(--solo-red) !important;
  color: #ffffff !important;
}

body[data-template='home'] .section-hero a.btn-filled:hover {
  background: var(--solo-red-strong) !important;
  border-color: var(--solo-red-strong) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 40px rgba(184, 15, 20, 0.28) !important;
}

body[data-template='home'] .section-hero .solo-hero-btn-outline {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: var(--solo-text) !important;
}

body[data-template='home'] .section-hero .solo-hero-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-2px) !important;
}

body[data-template='home'] .solo-hero-side-text {
  position: absolute !important;
  right: 1.5rem !important;
  bottom: 2rem !important;
  z-index: 2 !important;
  color: rgba(246, 243, 236, 0.34) !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
}

/* ============================================================
   Marquee
   ============================================================ */

body[data-template='home'] .section-partners {
  position: relative !important;
  padding: 2rem 0 !important;
  background: var(--solo-bg-soft) !important;
  border-top: 1px solid var(--solo-border) !important;
  border-bottom: 1px solid var(--solo-border) !important;
  overflow: hidden !important;
}

body[data-template='home'] .section-partners > .theme-container,
body[data-template='home'] .section-partners > style {
  display: none !important;
}

.solo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.solo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: soloMarquee 40s linear infinite;
  will-change: transform;
}

.solo-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-inline: 1.5rem;
  flex: 0 0 auto;
}

.solo-marquee-text {
  color: var(--solo-text);
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.solo-marquee-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--solo-red);
  flex: 0 0 0.5rem;
}

@keyframes soloMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   About section
   ============================================================ */

body[data-template='home'] .solo-about-section {
  padding: 8rem 0 !important;
  background: var(--solo-bg) !important;
}

body[data-template='home'] .solo-about-section > .theme-container {
  max-width: var(--solo-max) !important;
  padding-inline: 2.5rem !important;
}

body[data-template='home'] .solo-about-section .grid.grid-cols-2 {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
  gap: 4rem !important;
  align-items: start !important;
}

body[data-template='home'] .solo-about-section .group {
  border-radius: 0 !important;
}

body[data-template='home'] .solo-about-section .group:first-child {
  min-height: 38rem !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

body[data-template='home'] .solo-about-section .group:first-child > *,
body[data-template='home'] .solo-about-section .group:first-child .media-wrap,
body[data-template='home'] .solo-about-section .group:first-child .media-wrap picture,
body[data-template='home'] .solo-about-section .group:first-child .media-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body[data-template='home'] .solo-about-section .group:first-child .media-wrap {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
}

body[data-template='home'] .solo-about-section .group:first-child .media-wrap picture,
body[data-template='home'] .solo-about-section .group:first-child .media-wrap img {
  position: absolute !important;
  inset: 0 !important;
}

body[data-template='home'] .solo-about-section .group:first-child img {
  transition: transform 1.2s var(--solo-ease) !important;
}

body[data-template='home'] .solo-about-section .group:first-child:hover img {
  transform: scale(1.045) !important;
}

body[data-template='home'] .solo-about-section .solo-about-text-group .solo-about-broken-media {
  display: none !important;
}

body[data-template='home'] .solo-about-section .solo-about-panel {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 38rem !important;
  padding: 4.75rem 4rem !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)) !important;
  border: 1px solid var(--solo-border) !important;
  box-shadow: var(--solo-shadow-soft) !important;
}

body[data-template='home'] .solo-about-section .solo-about-heading {
  margin: 0 !important;
  color: var(--solo-text) !important;
  font-size: clamp(3rem, 5vw, 4.5rem) !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
  max-width: 32rem !important;
  text-align: left !important;
}

body[data-template='home'] .solo-about-section .solo-about-body {
  margin: 1.75rem 0 0 !important;
  max-width: 34rem !important;
  color: var(--solo-text-soft) !important;
  font-size: 1.03rem !important;
  line-height: 1.9 !important;
}

body[data-template='home'] .solo-about-section .solo-about-link {
  margin-top: 2rem !important;
  color: var(--solo-red) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: color 0.25s ease, transform 0.25s var(--solo-ease) !important;
}

body[data-template='home'] .solo-about-section .solo-about-link:hover {
  color: #ffffff !important;
  transform: translateX(4px) !important;
}

/* ============================================================
   Collections section
   ============================================================ */

body[data-template='home'] .solo-collections-section {
  padding: 8rem 0 !important;
  background: var(--solo-bg-soft) !important;
}

body[data-template='home'] .solo-collections-section > .theme-container {
  max-width: var(--solo-max) !important;
  padding-inline: 2.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4rem !important;
}

.solo-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.solo-heading-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 42rem;
}

.solo-section-count {
  color: var(--solo-text-muted);
  font-family: 'Anton', sans-serif !important;
  font-size: 1.65rem;
  line-height: 1;
}

body[data-template='home'] .solo-collections-section .solo-section-count {
  display: none !important;
}

body[data-template='home'] .solo-collections-section h2,
body[data-template='home'] .solo-portfolio-section h2,
body[data-template='home'] .solo-why-heading {
  margin: 0 !important;
  color: var(--solo-text) !important;
  font-size: clamp(3rem, 5vw, 4.5rem) !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
}

body[data-template='home'] .solo-collections-section .embla-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

body[data-template='home'] .solo-collections-section .embla-wrapper > .flex.items-center.gap-2 {
  display: none !important;
}

body[data-template='home'] .solo-collections-section .embla {
  overflow: visible !important;
}

body[data-template='home'] .solo-collections-section .embla__viewport {
  overflow: hidden !important;
}

body[data-template='home'] .solo-collections-section .embla__container {
  display: flex;
}

body[data-template='home'] .solo-collections-section .embla__slide {
  position: relative;
}

body[data-template='home'] .solo-collections-section .solo-collection-card {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  background: var(--solo-bg) !important;
  text-decoration: none !important;
  box-shadow: var(--solo-shadow-soft) !important;
}

body[data-template='home'] .solo-collections-section .solo-collection-image-wrap {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

body[data-template='home'] .solo-collections-section .solo-collection-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 1s var(--solo-ease) !important;
}

body[data-template='home'] .solo-collections-section .solo-collection-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08) 0%, rgba(17, 17, 17, 0.14) 30%, rgba(17, 17, 17, 0.93) 100%);
}

body[data-template='home'] .solo-collections-section .solo-collection-content {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 1.65rem;
}

body[data-template='home'] .solo-collections-section .solo-collection-card h3 {
  position: static !important;
  margin: 0 0 0.65rem !important;
  color: var(--solo-text) !important;
  font-size: 2rem !important;
  line-height: 0.95 !important;
  text-align: left !important;
  text-transform: uppercase !important;
}

body[data-template='home'] .solo-collections-section .solo-category-description {
  margin: 0 !important;
  color: var(--solo-text-soft) !important;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  max-width: 18rem !important;
}

body[data-template='home'] .solo-collections-section .solo-collection-card:hover img {
  transform: scale(1.08) !important;
}

/* ============================================================
   Portfolio section
   ============================================================ */

body[data-template='home'] .solo-portfolio-section {
  padding: 8rem 0 !important;
  background: var(--solo-bg) !important;
}

body[data-template='home'] .solo-portfolio-section > .theme-container {
  max-width: var(--solo-max) !important;
  padding-inline: 2.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4rem !important;
}

body[data-template='home'] .solo-portfolio-section .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  grid-auto-rows: 22rem !important;
  align-items: stretch !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: var(--solo-surface) !important;
  box-shadow: var(--solo-shadow-soft) !important;
  height: 100% !important;
  min-height: 22rem !important;
  min-width: 0 !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.02) 30%, rgba(17, 17, 17, 0.68) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card .media-wrap,
body[data-template='home'] .solo-portfolio-section .solo-portfolio-card .media-wrap picture,
body[data-template='home'] .solo-portfolio-section .solo-portfolio-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card > *,
body[data-template='home'] .solo-portfolio-section .solo-portfolio-card .media-wrap {
  height: 100% !important;
}

body[data-template='home'] .solo-portfolio-section .grid > * {
  min-width: 0 !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card img {
  transition: transform 1s var(--solo-ease) !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card:hover img {
  transform: scale(1.06) !important;
}

body[data-template='home'] .solo-portfolio-section .solo-portfolio-card:hover::after {
  opacity: 1;
}

/* ============================================================
   Why choose solo
   ============================================================ */

body[data-template='home'] .solo-why-section {
  position: relative !important;
  padding: 8rem 0 !important;
  background: var(--solo-bg-soft) !important;
  overflow: hidden !important;
}

body[data-template='home'] .solo-why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
}

body[data-template='home'] .solo-why-section > .theme-container {
  position: relative !important;
  z-index: 1 !important;
  max-width: var(--solo-max) !important;
  padding-inline: 2.5rem !important;
}

.solo-why-heading-block {
  margin-bottom: 3.75rem;
  max-width: 44rem;
}

body[data-template='home'] .solo-why-section .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  background: transparent !important;
}

body[data-template='home'] .solo-why-section .solo-why-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 2.5rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--solo-border) !important;
  text-align: left !important;
  transition:
    transform 0.35s var(--solo-ease),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease !important;
}

body[data-template='home'] .solo-why-section .solo-why-card:hover {
  transform: translateY(-4px) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(184, 15, 20, 0.34) !important;
  box-shadow: var(--solo-shadow-soft) !important;
}

.solo-why-number {
  margin-bottom: 1.35rem;
  color: var(--solo-red);
  font-family: 'Anton', sans-serif !important;
  font-size: 0.95rem;
  line-height: 1;
}

body[data-template='home'] .solo-why-section .solo-why-card h3 {
  margin: 0 !important;
  color: var(--solo-text) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body[data-template='home'] .solo-why-section .solo-why-card p {
  margin-top: 1rem !important;
  color: var(--solo-text-soft) !important;
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  max-width: 22rem !important;
}

body[data-template='home'] .solo-why-section .solo-why-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--solo-red);
  transition: width 0.6s var(--solo-ease);
}

body[data-template='home'] .solo-why-section .solo-why-card:hover::after {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */

#footer {
  background: var(--solo-bg-soft) !important;
  border-top: 1px solid var(--solo-border) !important;
  padding-block: 4.5rem 2.2rem !important;
}

#footer > .theme-container {
  max-width: var(--solo-max) !important;
  padding-inline: 2.5rem !important;
}

#footer .grid[data-solo-footer-structured='true'] {
  display: grid !important;
  grid-template-columns: minmax(15rem, 1.45fr) minmax(10rem, 0.85fr) minmax(10rem, 0.95fr) minmax(10rem, 0.85fr) !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

#footer .solo-footer-logo-column,
#footer .solo-footer-social-column,
#footer .grid[data-solo-footer-structured='true'] > div {
  min-width: 0;
}

#footer .solo-footer-logo-column img.hidden.md\:block {
  display: block !important;
  width: auto !important;
  max-height: 5.5rem !important;
}

#footer .solo-footer-logo-column img.block.md\:hidden {
  display: none !important;
}

#footer a,
#footer button,
#footer svg {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

#footer h3 {
  margin: 0 !important;
  color: var(--solo-red) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

#footer ul {
  margin-top: 1rem !important;
  padding: 0 !important;
  list-style: none !important;
}

#footer li {
  padding-block: 0.5rem !important;
}

#footer a {
  color: var(--solo-text-soft) !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}

#footer a:hover {
  color: var(--solo-text) !important;
}

#footer .solo-footer-social-column .flex.gap-3 {
  margin-top: 1rem !important;
}

#footer .solo-footer-social-column .flex.gap-3 a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border: 1px solid var(--solo-border) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

#footer .solo-footer-social-column .flex.gap-3 a:hover {
  border-color: rgba(184, 15, 20, 0.34) !important;
  color: #ffffff !important;
}

#footer .border-border-light {
  margin-top: 2.5rem !important;
  padding-top: 1.6rem !important;
  border-top-color: var(--solo-border) !important;
}

#footer .border-border-light > .flex {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

#footer .border-border-light > .flex > div:last-child {
  display: none !important;
}

#footer .border-border-light .text-foreground.text-sm {
  color: var(--solo-text-muted) !important;
  font-size: 0.82rem !important;
}

/* ============================================================
   Inner pages — general container constraints
   ============================================================ */

body:not([data-template='home']) #footer > .theme-container,
body:not([data-template='home']) main > section > .theme-container {
  width: min(100%, 1120px) !important;
  padding-inline: clamp(1rem, 2vw, 1.5rem) !important;
}

body:not([data-template='home']) main {
  overflow-x: hidden !important;
}

/* ─── Extra page section classes — target directly (no body wrapper needed) ─── */
/* These classes (.rhero, .rsec, etc.) only appear in our extra-page HTML,     */
/* never in Zid's theme or the homepage, so direct targeting is safe.           */

.rhero > div,
.rsec > div,
.rsec-sm > div,
.rsec-lg > div,
.rpad > div {
  max-width: min(1120px, calc(100% - 2rem)) !important;
  margin-inline: auto !important;
}

.rg2,
.rg3,
.rg3s,
.rg4 {
  min-width: 0 !important;
}

.rg2 > *,
.rg3 > *,
.rg3s > *,
.rg4 > * {
  min-width: 0 !important;
}

/* ============================================================
   Tablet (768 – 1023 px)
   ============================================================ */

@media (max-width: 1023px) {
  body[data-template='home'] .section-hero > .theme-container,
  body[data-template='home'] .solo-about-section > .theme-container,
  body[data-template='home'] .solo-collections-section > .theme-container,
  body[data-template='home'] .solo-portfolio-section > .theme-container,
  body[data-template='home'] .solo-why-section > .theme-container,
  #footer > .theme-container {
    padding-inline: 1.5rem !important;
  }

  body[data-template='home'] .solo-collections-section .embla__viewport {
    overflow: hidden !important;
  }

  body[data-template='home'] .solo-collections-section .embla__slide {
    flex: 0 0 82% !important;
    padding-inline-start: 1rem !important;
  }

  body[data-template='home'] .solo-collections-section .embla__container {
    margin-inline-start: -1rem !important;
  }

  body[data-template='home'] .solo-portfolio-section .grid,
  body[data-template='home'] .solo-why-section .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Extra pages: collapse 3-col and 4-col grids to 2-col at tablet */
  .rg3,
  .rg3s,
  .rg4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

/* ============================================================
   Mobile (≤ 767 px)
   ============================================================ */

@media (max-width: 767px) {
  .theme-container {
    width: min(100%, 100vw);
  }

  /* ─── Hero ─── */
  body[data-template='home'] .section-hero {
    min-height: 88svh !important;
    padding-inline: 0 !important;
  }

  body[data-template='home'] .section-hero > .absolute img {
    object-position: center center !important;
  }

  body[data-template='home'] .section-hero > .theme-container {
    min-height: 88svh !important;
    padding: 6.5rem 1.25rem 2rem !important;
    align-items: flex-end !important;
  }

  body[data-template='home'] .section-hero > .theme-container > div {
    max-width: 21rem !important;
  }

  body[data-template='home'] .section-hero span.text-foreground.text-xs {
    margin-bottom: 1.25rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.18em !important;
  }

  body[data-template='home'] .section-hero span.text-foreground.text-xs::before {
    width: 2.25rem;
    flex-basis: 2.25rem;
  }

  body[data-template='home'] .section-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem) !important;
    line-height: 0.88 !important;
  }

  body[data-template='home'] .section-hero p.text-foreground {
    max-width: 19rem !important;
    margin-top: 1.35rem !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }

  body[data-template='home'] .section-hero .solo-hero-actions,
  body[data-template='home'] .section-hero .flex.gap-4 {
    margin-top: 1.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body[data-template='home'] .section-hero a.btn-filled,
  body[data-template='home'] .section-hero .solo-hero-btn-outline {
    width: 100% !important;
  }

  body[data-template='home'] .solo-hero-side-text {
    display: none !important;
  }

  /* ─── Marquee ─── */
  body[data-template='home'] .section-partners {
    padding-block: 1.4rem !important;
  }

  .solo-marquee-item {
    gap: 1.5rem;
    padding-inline: 0.9rem;
  }

  .solo-marquee-text {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  /* ─── Section vertical padding ─── */
  body[data-template='home'] .solo-about-section,
  body[data-template='home'] .solo-collections-section,
  body[data-template='home'] .solo-portfolio-section,
  body[data-template='home'] .solo-why-section {
    padding: 4rem 0 !important;
  }

  /* ─── About ─── */
  body[data-template='home'] .solo-about-section .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  body[data-template='home'] .solo-about-section .group:first-child {
    min-height: 20rem !important;
  }

  body[data-template='home'] .solo-about-section .group:first-child .media-wrap {
    position: absolute !important;
    inset: 0 !important;
  }

  body[data-template='home'] .solo-about-section .solo-about-panel {
    min-height: auto !important;
    padding: 2rem 1.5rem !important;
  }

  body[data-template='home'] .solo-about-section .solo-about-heading,
  body[data-template='home'] .solo-collections-section h2,
  body[data-template='home'] .solo-portfolio-section h2,
  body[data-template='home'] .solo-why-heading {
    font-size: clamp(2.2rem, 12vw, 3rem) !important;
  }

  body[data-template='home'] .solo-about-section .solo-about-body {
    font-size: 0.96rem !important;
    line-height: 1.75 !important;
  }

  /* ─── Collections ─── */
  .solo-section-heading {
    align-items: flex-start;
    gap: 1rem;
  }

  .solo-section-count {
    display: none;
  }

  body[data-template='home'] .solo-collections-section .embla__viewport {
    overflow: visible !important;
  }

  body[data-template='home'] .solo-collections-section .embla__container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-inline-start: 0 !important;
    transform: none !important;
  }

  body[data-template='home'] .solo-collections-section .embla__slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-inline-start: 0 !important;
  }

  body[data-template='home'] .solo-collections-section .solo-collection-content {
    left: 1.35rem;
    right: 1.35rem;
    bottom: 1.35rem;
  }

  body[data-template='home'] .solo-collections-section .solo-collection-card h3 {
    font-size: 1.8rem !important;
  }

  body[data-template='home'] .solo-collections-section .solo-category-description {
    max-width: none !important;
    font-size: 0.86rem !important;
  }

  /* ─── Portfolio — ROOT CAUSE FIX ─── */
  /*
   * Force single-column flex layout on portfolio grid.
   * Previous approach only set grid-template-columns:1fr but the
   * display:grid was still active, so cards stayed in a grid.
   * We also force children to full width to eliminate any flex-basis
   * leftover from desktop grid sizing.
   */
  body[data-template='home'] .solo-portfolio-section .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    /* grid-auto-rows does not apply to flex — clear it */
    grid-auto-rows: auto !important;
    grid-template-columns: unset !important;
  }

  body[data-template='home'] .solo-portfolio-section .grid > * {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-template='home'] .solo-portfolio-section .solo-portfolio-card {
    /* Explicit height so height:100% on children resolves correctly */
    height: 16rem !important;
    min-height: 16rem !important;
  }

  /* ─── Why ─── */
  body[data-template='home'] .solo-why-section .grid {
    grid-template-columns: 1fr !important;
  }

  body[data-template='home'] .solo-why-section .solo-why-card {
    padding: 1.75rem !important;
  }

  body[data-template='home'] .solo-why-section .solo-why-card h3 {
    font-size: 1.65rem !important;
  }

  /* ─── Footer ─── */
  #footer {
    padding-block: 3rem 1.6rem !important;
  }

  #footer .grid[data-solo-footer-structured='true'] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #footer .solo-footer-logo-column img.hidden.md\:block {
    display: none !important;
  }

  #footer .solo-footer-logo-column img.block.md\:hidden {
    display: block !important;
    width: auto !important;
    max-height: 4.25rem !important;
  }

  #footer .grid[data-solo-footer-structured='true'] > div {
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  #footer .grid[data-solo-footer-structured='true'] > div:last-child {
    border-bottom: 0 !important;
  }

  #footer h3.solo-footer-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer;
  }

  #footer .solo-footer-trigger-icon {
    color: var(--solo-text-muted);
    font-size: 1rem;
  }

  #footer .solo-footer-open ul {
    display: block !important;
  }

  #footer .grid[data-solo-footer-structured='true'] > div ul {
    display: none;
  }

  #footer .solo-footer-static ul,
  #footer .solo-footer-social-column .flex.gap-3 {
    display: flex !important;
  }

  /* ─── Inner pages — container padding ─── */
  body:not([data-template='home']) #footer > .theme-container,
  body:not([data-template='home']) main > section > .theme-container {
    padding-inline: 1rem !important;
  }

  /* ─── Extra pages — vertical padding reduction (direct targeting) ─── */
  /*
   * ROOT CAUSE FIX: inline styles like padding:120px 24px 96px were not
   * being overridden because the previous rule used body:not([data-template])
   * which may be unreliable. Targeting .rhero/.rsec directly is safe since
   * these classes ONLY appear in our extra-page HTML content.
   */
  .rhero {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    overflow: hidden !important;
  }

  .rsec,
  .rsec-sm,
  .rsec-lg,
  .rpad {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    overflow: hidden !important;
  }

  .rhero > div,
  .rsec > div,
  .rsec-sm > div,
  .rsec-lg > div,
  .rpad > div {
    max-width: 100% !important;
  }

  /* Extra pages: all grids collapse to single column on mobile */
  .rg2,
  .rg3,
  .rg3s,
  .rg4 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}