/*
 * REHOBOTH THREADS — Mobile CSS
 * ================================
 * Built mobile-first. Not compressed desktop.
 * Reference: Jumia, ASOS, Zara app experience.
 *
 * Rule: if it doesn't exist on a 390px phone screen,
 *       it doesn't exist in this file.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */

html {
  background: #fff;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.mobile-only { display: none; }

/* Prevent iOS zoom on inputs */
input, select, textarea {
  font-size: 16px;
}


/* ============================================================
   HAMBURGER BUTTON (hidden on desktop, shown via @media below)
   ============================================================ */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #8B5CF6;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   NAV DRAWER (right side panel)
   ============================================================ */

.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.mobile-nav-drawer.open {
  pointer-events: all;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-drawer.open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: -100%;
  width: 76%;
  max-width: 300px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(139, 92, 246, 0.15);
}

.mobile-nav-drawer.open .mobile-nav-panel {
  left: 0;
}

/* Header strip — purple gradient */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  flex-shrink: 0;
}

.mobile-nav-logo {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 300;
}

.mobile-nav-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  min-height: 0;
  transition: background 0.2s;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Nav links — white background, purple accents */
.mobile-nav-links {
  flex: 1;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-family: var(--font-body, 'Tenor Sans', sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  min-height: 52px;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: #8B5CF6;
  background: #F5F3FF;
  border-left-color: #8B5CF6;
}

.mobile-nav-links a::after {
  content: '›';
  font-size: 1.2rem;
  color: #8B5CF6;
  opacity: 0;
  transition: opacity 0.2s;
}

.mobile-nav-links a.active::after,
.mobile-nav-links a:hover::after {
  opacity: 1;
}

/* Filter drawer overlay */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 8999;
}

.filter-drawer-overlay.active { display: block; }
.mobile-filter-bar { display: none; }


/* ============================================================
   @media (max-width: 768px) — THE WHOLE MOBILE EXPERIENCE
   ============================================================ */

@media (max-width: 768px) {

  /* ── Reset everything for mobile ── */

  html, body {
    background: #ffffff !important;
    width: 100%;
    min-height: 100%;
  }

  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  /* Safe tap targets everywhere */
  button, a, [role="button"] {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Kill all desktop layout decisions */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }


  /* ──────────────────────────────────────────────────────────
     HEADER
     Jumia pattern: [☰] [LOGO] [👤][🛒]
     Full width, white, 56px tall, no gap to content
     ────────────────────────────────────────────────────────── */

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  /* Hide desktop nav links */
  header nav,
  .header-content nav {
    display: none !important;
  }

  .mobile-menu-btn { display: flex; }
  .mobile-nav-drawer { display: block; }

  .header-content {
    height: 56px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    margin: 0;
  }

  /* Logo: centred between hamburger and icons, ellipsis if still too tight */
  .logo {
    position: static !important;
    left: auto !important;
    transform: none !important;
    font-family: var(--font-display, 'Cormorant Garamond', serif) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.13em !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111 !important;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    text-align: center !important;
    z-index: auto;
    max-width: none !important;
  }

  .mobile-menu-btn {
    flex-shrink: 0;
    order: -1; /* stays left of logo */
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
  }

  /* Icon buttons: slimmer width to free up space for the logo */
  .icon-btn {
    width: 34px !important;
    height: 44px !important;
    min-width: 34px !important;
    min-height: 0 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s;
  }

  .icon-btn:active { background: rgba(0,0,0,0.05); }

  /* Badges */
  .cart-count, .wishlist-count {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 0.58rem !important;
    padding: 0 3px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    background: #8B5CF6 !important;
    color: #fff !important;
    font-weight: 700 !important;
    pointer-events: none;
  }


  /* ──────────────────────────────────────────────────────────
     MOBILE SEARCH BAR
     Injected below header by mobile-nav.js
     Stays pinned below header, full width
     ────────────────────────────────────────────────────────── */

  .rh-mobile-search {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #ebebeb;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rh-mobile-search-inner {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    gap: 8px;
    border: 1px solid #ebebeb;
  }

  .rh-mobile-search-inner span {
    font-size: 0.9rem;
    color: #999;
    flex-shrink: 0;
  }

  .rh-mobile-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body, 'Tenor Sans', sans-serif);
    font-size: 0.8rem !important;
    color: #333;
    height: 100%;
    padding: 0;
    min-height: 0;
  }

  .rh-mobile-search input::placeholder {
    color: #aaa;
    font-size: 0.8rem;
  }


  /* ──────────────────────────────────────────────────────────
     PAGE OFFSET
     Header = 56px + search bar = 56px → total 112px
     Pages without search bar just need 56px
     ────────────────────────────────────────────────────────── */

  /* Pages that get the search bar */
  body.has-mobile-search .hero,
  body.has-mobile-search .shop-hero,
  body.has-mobile-search .page-hero,
  body.has-mobile-search .main-content,
  body.has-mobile-search .dashboard-wrapper,
  body.has-mobile-search .auth-page,
  body.has-mobile-search .checkout-steps {
    margin-top: 112px !important;
  }

  body.has-mobile-search .category-nav-section {
    top: 112px !important;
  }

  /* All pages: minimum 56px offset */
  .hero,
  .shop-hero,
  .page-hero,
  .main-content,
  .dashboard-wrapper,
  .auth-page,
  .checkout-steps,
  .breadcrumb,
  section.hero {
    margin-top: 56px !important;
  }

  .category-nav-section { top: 56px !important; }
  .steps-container      { top: 56px !important; }

  /* Backgrounds: white everywhere */
  .dashboard-wrapper,
  .account-container,
  .rh-page-content,
  .main-content,
  .auth-page {
    background: #fff !important;
  }


  /* ──────────────────────────────────────────────────────────
     AUTH HEADER (login/signup pages — no hamburger)
     ────────────────────────────────────────────────────────── */

  .auth-header { padding: 0 !important; height: 56px !important; }

  .auth-header-content {
    height: 56px !important;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
  }

  .auth-header .logo {
    flex: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
    font-weight: 600 !important;
  }

  .back-to-home {
    font-size: 0.75rem !important;
    white-space: nowrap;
    color: #666;
    text-decoration: none;
  }


  /* ──────────────────────────────────────────────────────────
     HOMEPAGE
     ────────────────────────────────────────────────────────── */

  .hero {
    height: calc(100svh - 56px) !important;
    min-height: 480px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-content {
    padding: 0 24px !important;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.8rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }

  .hero-content p {
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    line-height: 2 !important;
    opacity: 0.8;
    margin-bottom: 32px !important;
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px !important;
    padding: 0 36px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.2em !important;
    border-radius: 0 !important;
  }

  /* Section headings */
  .page-title, .section-heading {
    font-size: 1.1rem !important;
    letter-spacing: 0.12em !important;
    text-align: left !important;
    padding: 20px 16px 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .page-subtitle {
    font-size: 0.82rem !important;
    padding: 0 16px 16px !important;
    margin: 0 !important;
    color: #888;
    text-align: left !important;
  }

  /* Collections grid: horizontal scroll strip */
  .collections-grid {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f0f0f0;
  }

  .collections-grid::-webkit-scrollbar { display: none; }

  .collection-card {
    flex-shrink: 0 !important;
    width: 72vw !important;
    max-width: 280px !important;
  }

  .collection-image {
    padding-bottom: 100% !important;
    width: 100%;
  }

  .collection-name {
    font-size: 1.2rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 12px !important;
  }

  .collection-link {
    font-size: 0.68rem !important;
    padding: 8px 20px !important;
    letter-spacing: 0.1em !important;
  }

  /* About preview */
  .about-preview {
    padding: 40px 16px !important;
    text-align: left !important;
    border-top: 1px solid #f0f0f0;
  }

  .about-preview__heading {
    font-size: 1.5rem !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 12px !important;
    line-height: 1.2;
  }

  .about-preview__body {
    font-size: 0.88rem !important;
    line-height: 1.8 !important;
    color: #555;
    margin-bottom: 24px !important;
  }

  /* Features: 2×2 tile grid, flush */
  .features-section {
    padding: 0 !important;
    background: #fff !important;
  }

  .features-section .container {
    padding: 0 !important;
  }

  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
    background: #e8e8e8 !important;
    border-top: 1px solid #e8e8e8;
  }

  .feature-card {
    padding: 24px 16px !important;
    text-align: left !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .feature-icon  { font-size: 1.8rem !important; margin: 0 !important; }
  .feature-title { font-size: 0.78rem !important; letter-spacing: 0.06em !important; line-height: 1.3; }
  .feature-body  { font-size: 0.76rem !important; line-height: 1.65 !important; color: #666; margin: 0 !important; }

  /* Stats: horizontal scroll strip */
  .stats-section {
    padding: 0 !important;
    border-top: 1px solid #f0f0f0;
  }

  .stats-section .container { padding: 0 !important; }

  .stats-grid {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
    background: #ebebeb;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
  }

  .stats-grid::-webkit-scrollbar { display: none; }

  .stat-item {
    flex-shrink: 0;
    width: 40vw;
    max-width: 160px;
    padding: 24px 16px !important;
    text-align: center;
    background: #fff;
    border-right: 1px solid #ebebeb;
  }

  .stat-number { font-size: 2rem !important; margin-bottom: 4px !important; }
  .stat-label  { font-size: 0.65rem !important; letter-spacing: 0.08em !important; color: #888; }

  /* Testimonials: horizontal scroll cards */
  .testimonials-section {
    padding: 0 !important;
  }

  .testimonials-section .container { padding: 0 !important; }

  .testimonials-section .section-heading {
    color: #fff !important;
    padding: 24px 16px 16px !important;
  }

  .testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 12px !important;
    padding: 0 16px 24px !important;
  }

  .testimonials-grid::-webkit-scrollbar { display: none; }

  .testimonial-card {
    flex-shrink: 0;
    width: 78vw;
    max-width: 300px;
    padding: 20px !important;
    border-radius: 8px !important;
  }

  .testimonial-stars  { font-size: 0.9rem !important; margin-bottom: 10px !important; }
  .testimonial-text   { font-size: 0.82rem !important; line-height: 1.75 !important; margin-bottom: 12px !important; }
  .testimonial-author { font-size: 0.72rem !important; }

  /* Instagram grid: 2×2 flush */
  .instagram-section { padding: 0 !important; }
  .instagram-section .container { padding: 0 !important; }

  .instagram-section .section-heading {
    padding: 20px 16px 12px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .instagram-sub { padding: 8px 16px 16px !important; margin: 0 !important; font-size: 0.8rem !important; color: #888; text-align: left !important; }

  .instagram-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px !important;
    background: #ddd;
  }

  .instagram-cell { aspect-ratio: 1; }

  /* CTA section */
  .cta-section {
    padding: 48px 16px !important;
    text-align: center;
  }

  .cta-section__heading {
    font-size: 1.6rem !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2;
    margin-bottom: 12px !important;
  }

  .cta-section__sub {
    font-size: 0.85rem !important;
    margin-bottom: 28px !important;
    opacity: 0.9;
  }

  .cta-section__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .cta-btn--white, .cta-btn--outline {
    height: 52px !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.18em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    width: 100%;
  }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; height: 52px; padding: 0 16px; font-size: 16px !important; border-radius: 0 !important; border-bottom: none; }
  .newsletter-btn   { width: 100%; height: 52px; font-size: 0.72rem; letter-spacing: 0.2em; border-radius: 0 !important; }

  /* Footer */
  footer { padding: 0; border-top: 6px solid #f0f0f0; background: #fff !important; }

  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #fafafa;
    border-bottom: 1px solid #ebebeb;
  }

  .footer-section {
    padding: 24px 16px !important;
    border-right: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
  }

  .footer-section:nth-child(even) { border-right: none; }

  .footer-section h4 { font-size: 0.65rem !important; letter-spacing: 0.2em; margin-bottom: 12px !important; color: #333; }
  .footer-section a  { font-size: 0.8rem !important; line-height: 2.1 !important; display: block; color: #666; text-decoration: none; }
  .footer-section a:hover { color: #8B5CF6; }
  .footer-about, .footer-newsletter-text { font-size: 0.8rem !important; color: #666; line-height: 1.7; }
  .footer-newsletter-text { margin-bottom: 12px !important; }

  .footer-bottom { padding: 16px; font-size: 0.7rem !important; text-align: center; color: #aaa; background: #fff; }


  /* ──────────────────────────────────────────────────────────
     SHOP PAGE
     ────────────────────────────────────────────────────────── */

  .shop-hero {
    padding: 40px 16px 32px !important;
    text-align: center;
    min-height: auto !important;
  }

  .shop-hero-content h1 { font-size: 1.8rem !important; letter-spacing: 0.06em; margin-bottom: 8px; }
  .shop-hero-content p  { font-size: 0.82rem !important; opacity: 0.8; }

  /* Category strip: scrollable, pill buttons */
  .category-nav-section {
    background: #fff;
    position: sticky;
    z-index: 99;
    border-bottom: 1px solid #ebebeb;
    padding: 0 !important;
  }

  .category-nav-section .container { padding: 0 !important; }

  .category-nav {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .category-nav::-webkit-scrollbar { display: none; }

  .category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 36px !important;
    min-height: 0 !important;
    padding: 0 16px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.06em !important;
    border-radius: 18px !important;
    border: 1.5px solid #ddd !important;
    background: #fff !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: all 0.18s !important;
    font-family: var(--font-body, 'Tenor Sans', sans-serif) !important;
  }

  .category-btn.active {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  /* Shop layout: collapse sidebar */
  .shop-container  { padding: 0 !important; }
  .container-wide  { padding: 0 !important; max-width: 100% !important; }
  .shop-layout     { display: block !important; padding: 0 !important; }

  /* Filter sidebar → off-canvas drawer */
  .shop-filters {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 82%;
    max-width: 310px;
    height: 100%;
    background: #fff;
    z-index: 9000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    box-shadow: 4px 0 32px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .shop-filters.mobile-open { left: 0; }

  /* Filter/sort bar injected by mobile-nav.js */
  .mobile-filter-bar {
    display: flex !important;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
    gap: 8px;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 0 14px;
    height: 38px;
    font-family: var(--font-body, 'Tenor Sans', sans-serif);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: #333;
    transition: all 0.15s;
    min-height: 0;
  }

  .mobile-filter-toggle:active { background: #f5f5f5; }

  .mobile-sort-select {
    flex: 1;
    height: 38px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-family: var(--font-body, 'Tenor Sans', sans-serif);
    font-size: 0.7rem;
    color: #333;
    background: #fff;
    outline: none;
    cursor: pointer;
    min-height: 0;
  }

  /* Product grid: 2-column flush */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    background: #ccc !important;
    padding: 1px 0 0 1px !important;
  }

  /* Product card */
  .product-card {
    background: #fff !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 1px 1px 0 !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
  }

  .product-card:active { opacity: 0.85; }

  /* Image: 3:4 portrait */
  .product-image,
  .product-image-container {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 133% !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background-size: cover !important;
    background-position: center top !important;
    top: auto !important;
    left: auto !important;
  }

  /* Info section below image */
  .product-info {
    padding: 10px 10px 14px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    text-align: left !important;
    position: static !important;
  }

  .product-name {
    font-family: var(--font-body, 'Tenor Sans', sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    line-height: 1.4;
    margin-bottom: 4px !important;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0 !important;
  }

  .product-price,
  .product-price-container {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 4px !important;
    letter-spacing: 0 !important;
  }

  .product-price-original,
  .product-original-price {
    font-size: 0.72rem !important;
    color: #bbb !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
  }

  .product-badge {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    font-size: 0.58rem !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
  }

  .product-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .btn-wishlist {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 0.9rem !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-quick-view {
    flex: 1 !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.08em !important;
    border-radius: 4px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }


  /* ──────────────────────────────────────────────────────────
     PRODUCT DETAIL PAGE
     ────────────────────────────────────────────────────────── */

  .product-page,
  .product-layout,
  .product-wrapper {
    display: block !important;
    padding: 0 !important;
    margin-top: 56px !important;
  }

  .breadcrumb {
    padding: 12px 16px !important;
    font-size: 0.7rem !important;
    color: #999;
    margin: 0 !important;
    border-bottom: 1px solid #f5f5f5;
  }

  .product-gallery { position: static !important; width: 100%; }

  .main-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
  }

  .thumb-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
  }

  .thumb-row::-webkit-scrollbar { display: none; }

  .thumb {
    flex-shrink: 0;
    width: 60px;
    height: 76px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.18s;
    border-radius: 2px;
  }

  .thumb.active { border-color: #8B5CF6; }

  .product-info {
    padding: 20px 16px 80px !important;
    display: block !important;
    background: #fff !important;
    position: static !important;
    flex-grow: 0 !important;
    text-align: left !important;
  }

  .product-category-tag { font-size: 0.65rem !important; letter-spacing: 0.2em !important; color: #8B5CF6; margin-bottom: 8px; }
  .product-title        { font-size: 1.6rem !important; letter-spacing: 0.01em !important; line-height: 1.15 !important; margin-bottom: 12px !important; }
  .product-price        { font-size: 1.35rem !important; font-weight: 700 !important; margin-bottom: 20px !important; }
  .product-description  { font-size: 0.86rem !important; line-height: 1.8 !important; color: #555; margin-bottom: 24px !important; }

  .size-options { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-bottom: 24px !important; }
  .size-opt     { min-width: 48px !important; height: 48px !important; font-size: 0.76rem !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 0 !important; }

  .qty-row {
    display: flex !important;
    gap: 8px;
    margin-top: 24px;
  }

  .qty-btn        { width: 48px !important; height: 54px !important; min-height: 0 !important; }
  .add-to-cart-btn,
  .add-to-bag-btn { flex: 1; height: 54px !important; font-size: 0.72rem !important; letter-spacing: 0.18em !important; border-radius: 0 !important; }
  .wishlist-btn-detail { width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

  .reviews-section { padding: 24px 16px !important; }
  .review-card     { padding: 16px 0 !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; border-bottom: 1px solid #f0f0f0 !important; }
  .review-text     { font-size: 0.84rem !important; line-height: 1.8 !important; color: #555; }


  /* ──────────────────────────────────────────────────────────
     CART SIDEBAR (full-screen on mobile)
     ────────────────────────────────────────────────────────── */

  .cart-sidebar, .wishlist-sidebar {
    width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    top: 0 !important;
  }

  .cart-sidebar.active, .wishlist-sidebar.active { right: 0 !important; }

  .cart-header, .wishlist-header {
    height: 56px;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
  }

  .cart-header h3, .wishlist-header h3 {
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    font-weight: 400;
  }

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

  .close-cart, .close-wishlist {
    width: 36px !important; height: 36px !important; min-height: 0 !important;
    display: flex; align-items: center; justify-content: center;
    background: #f5f5f5; border: none; border-radius: 50%;
    font-size: 0.875rem; color: #555; cursor: pointer;
  }

  .cart-items, .wishlist-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
  }

  .cart-item {
    display: flex !important;
    gap: 12px;
    padding: 16px !important;
    border-bottom: 1px solid #f5f5f5 !important;
  }

  .cart-item-image   { width: 72px !important; height: 90px !important; object-fit: cover; flex-shrink: 0; border-radius: 2px; }
  .cart-item-details { flex: 1; min-width: 0; }
  .cart-item-name    { font-size: 0.88rem !important; font-weight: 500; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cart-item-size    { font-size: 0.68rem !important; color: #999; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .cart-item-price   { font-size: 0.88rem !important; font-weight: 700; }

  .cart-footer {
    padding: 16px !important;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
  }

  .cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .cart-subtotal .amount {
    font-family: var(--font-display, 'Cormorant Garamond', serif) !important;
    font-size: 1.4rem !important;
    font-weight: 400;
  }

  .checkout-btn { width: 100%; height: 54px; font-size: 0.72rem; letter-spacing: 0.2em; border-radius: 0 !important; }

  .cart-empty, .wishlist-empty { padding: 60px 24px; text-align: center; }
  .cart-empty p, .wishlist-empty p { font-size: 0.9rem; color: #888; margin-bottom: 20px; }


  /* ──────────────────────────────────────────────────────────
     CHECKOUT
     ────────────────────────────────────────────────────────── */

  .checkout-steps { margin-top: 56px !important; }

  .steps-container {
    display: flex !important;
    align-items: center;
    height: 56px;
    padding: 0 16px !important;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    z-index: 100;
    gap: 0 !important;
  }

  .step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
  .step::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 1px; background: #e5e7eb; z-index: 0; }
  .step:last-child::after { display: none; }
  .step-number { width: 32px; height: 32px; min-height: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; background: #f3f4f6; color: #aaa; border: 1.5px solid #e5e7eb; z-index: 1; position: relative; transition: all 0.3s; }
  .step.active .step-number    { background: #8B5CF6; color: #fff; border-color: #8B5CF6; }
  .step.completed .step-number { background: #111; color: #fff; border-color: #111; }
  .step-label    { display: block !important; font-size: 0.58rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; white-space: nowrap; }
  .step.active .step-label { color: #8B5CF6; }
  .step-divider  { display: none !important; }

  .checkout-container { padding: 20px 16px 80px !important; display: block !important; }
  .form-row   { grid-template-columns: 1fr !important; gap: 16px; }
  .form-group { margin-bottom: 16px; }
  .form-group label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; }
  .order-summary { position: static !important; margin-top: 24px; border-radius: 8px !important; }
  .payment-methods { grid-template-columns: 1fr !important; }
  .form-actions { flex-direction: column !important; gap: 12px !important; }
  .back-btn     { order: 2; width: 100%; text-align: center; }


  /* ──────────────────────────────────────────────────────────
     AUTH PAGES
     ────────────────────────────────────────────────────────── */

  .auth-page-container { display: block !important; min-height: auto !important; box-shadow: none !important; }
  .auth-page-left      { display: none !important; }
  .auth-page           { padding: 0 !important; min-height: 100svh; align-items: flex-start !important; }
  .auth-page-right     { padding: 40px 20px 60px !important; min-height: 100svh; display: flex; align-items: center; width: 100%; }
  .auth-form-container { width: 100%; max-width: 100% !important; }

  .auth-form-header { text-align: left !important; margin-bottom: 32px !important; }
  .auth-form-header h2 { font-size: 1.8rem !important; line-height: 1.15; margin-bottom: 6px !important; }
  .auth-form-header p  { font-size: 0.86rem; opacity: 0.65; line-height: 1.7; }

  .auth-form .form-row { grid-template-columns: 1fr !important; }
  .social-login { grid-template-columns: 1fr !important; gap: 10px; }
  .form-options { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }

  .btn-primary,
  .btn-primary.btn-large {
    width: 100%;
    height: 54px;
    min-height: 0 !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.18em;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }


  /* ──────────────────────────────────────────────────────────
     ACCOUNT / DASHBOARD
     ────────────────────────────────────────────────────────── */

  .main-content      { margin-top: 56px !important; background: #fff !important; }
  .dashboard-wrapper { margin-top: 56px !important; padding: 0 16px 80px !important; background: #fff !important; }
  .account-container { padding: 0 16px 80px !important; background: #fff !important; }
  .rh-page-content   { padding: 0 16px 80px !important; background: #fff !important; }
  .dashboard-inner   { padding: 0 !important; }

  /* Fix toggle switches being cut off on right edge */
  .preference-item, .pref-item, .notification-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-right: 8px !important;
  }
  .toggle-switch, .switch, [class*="toggle"] {
    flex-shrink: 0 !important;
    margin-left: 12px !important;
  }

  .dash-welcome {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%) !important;
    border-radius: 0 !important;
    padding: 28px 16px !important;
    margin-bottom: 0 !important;
    display: block !important;
    color: #fff;
  }

  .dash-welcome-text h1 { font-size: 1.6rem !important; line-height: 1.2 !important; letter-spacing: 0.02em !important; margin-bottom: 4px !important; }
  .dash-welcome-text p  { font-size: 0.82rem !important; opacity: 0.65; margin-bottom: 16px !important; }
  .dash-welcome-badge   { width: 52px !important; height: 52px !important; font-size: 1.5rem !important; border-radius: 12px !important; margin-top: 16px !important; }

  /* Stats: 4-cell grid, fills edge to edge */
  .dash-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    background: #e0ddf5 !important;
    border-bottom: 1px solid #e0ddf5;
  }

  .dash-stat {
    background: #fff !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-right: 1px solid #e0ddf5 !important;
    border-bottom: 1px solid #e0ddf5 !important;
    padding: 20px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    transform: none !important;
  }

  .dash-stat:nth-child(even) { border-right: none !important; }
  .dash-stat:hover { transform: none !important; box-shadow: none !important; }

  .dash-stat-icon  { width: 40px !important; height: 40px !important; min-width: 40px !important; font-size: 1.1rem !important; border-radius: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
  .dash-stat-value { font-size: 1.4rem !important; font-weight: 600 !important; line-height: 1.1 !important; margin-bottom: 2px !important; letter-spacing: -0.01em; }
  .dash-stat-label { font-size: 0.6rem !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: #999; }

  .dash-cols { display: block !important; gap: 0 !important; margin: 0 !important; }

  .dash-card {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 6px solid #f5f3ff !important;
    box-shadow: none !important;
    padding: 20px 16px !important;
    margin: 0 !important;
    background: #fff;
  }

  .dash-card-title { font-size: 1rem !important; letter-spacing: 0.04em; margin-bottom: 16px !important; padding-bottom: 12px !important; border-bottom: 1px solid #f0f0f0 !important; }

  .quick-link {
    padding: 14px 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f8f6ff !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .quick-link:last-child { border-bottom: none !important; }
  .quick-link-icon { width: 42px !important; height: 42px !important; border-radius: 10px !important; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

  .member-card { border-radius: 0 !important; }

  /* Order filter tabs */
  .order-filter-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .order-filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; padding: 0 16px !important; height: 36px !important; min-height: 0 !important; font-size: 0.68rem !important; border-radius: 18px !important; }

  .order-card   { border-radius: 0 !important; margin: 0 !important; border-bottom: 6px solid #f5f5f5 !important; box-shadow: none !important; }
  .order-header { padding: 14px 16px !important; flex-wrap: wrap !important; gap: 6px; }
  .order-body   { padding: 12px 16px !important; }
  .order-footer { padding: 12px 16px !important; flex-wrap: wrap; gap: 8px; }
  .order-actions { flex-direction: row !important; gap: 8px !important; }
  .order-actions button { width: auto !important; min-height: 0 !important; height: 36px; }
  .btn-small { padding: 0 14px !important; height: 36px !important; min-height: 0 !important; font-size: 0.68rem !important; border-radius: 4px !important; }

  /* Addresses */
  .section-header { padding: 20px 16px; flex-direction: column !important; align-items: flex-start !important; gap: 12px; border-bottom: 1px solid #f0f0f0; }
  .section-header h1 { font-size: 1.2rem !important; letter-spacing: 0.04em; }
  .section-header .btn-primary { width: 100%; text-align: center; }

  #addresses-list, .addresses-grid { display: block !important; }
  .address-card { border-radius: 0 !important; padding: 16px !important; border-bottom: 1px solid #f0f0f0 !important; box-shadow: none !important; }
  .address-actions { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .address-actions button { flex: 1; min-width: 80px; height: 38px !important; min-height: 0 !important; font-size: 0.7rem !important; border-radius: 4px !important; }

  .account-form { max-width: 100% !important; padding: 0 16px; }
  .account-form .form-row { grid-template-columns: 1fr !important; }

  .notification { right: 12px !important; left: 12px !important; min-width: auto !important; width: auto !important; }

  .empty-state      { padding: 60px 24px; text-align: center; }
  .empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
  .empty-state h3   { font-size: 1rem; margin-bottom: 6px; }
  .empty-state p    { font-size: 0.84rem; color: #888; line-height: 1.75; }


  /* ──────────────────────────────────────────────────────────
     STATIC PAGES — About, Contact, Tracking, Legal
     ────────────────────────────────────────────────────────── */

  .page-hero { margin-top: 56px; padding: 60px 16px 40px !important; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
  .page-hero .hero-content h1 { font-size: 2rem !important; letter-spacing: 0.06em; line-height: 1.1; }
  .page-hero .hero-content p  { font-size: 0.8rem; margin-top: 8px; }

  .founder-container, .founder-section > div { display: block !important; padding: 0 !important; }
  .founder-image { width: 100%; }
  .founder-image img { width: 100%; }
  .founder-story { padding: 24px 16px; }

  .values-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1px !important; background: #e8e8e8; }
  .value-card  { padding: 20px 14px !important; border-radius: 0 !important; background: #fff; box-shadow: none !important; }

  .mission-section, .who-we-are-section { padding: 40px 16px !important; }

  .contact-grid      { display: block !important; }
  .contact-container { padding: 0 !important; margin-top: 56px; }
  .contact-form { padding: 24px 16px !important; }
  .contact-info { padding: 24px 16px !important; background: #fafafa; border-top: 6px solid #f0f0f0; }

  .info-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
  .info-item:last-child { border-bottom: none; }
  .info-item h3 { font-size: 0.66rem !important; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
  .info-item p  { font-size: 0.85rem !important; line-height: 1.8; color: #555; }

  .timeline-steps { flex-direction: column !important; gap: 0; }
  .timeline-step  { flex-direction: row !important; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
  .timeline-steps::before, .timeline-progress { display: none !important; }
  .step-dot { flex-shrink: 0; margin-top: 2px; }

  .success-container  { padding: 24px 16px 80px !important; margin-top: 56px; }
  .success-title      { font-size: 1.3rem !important; }
  .order-details-card { border-radius: 0 !important; }

  .legal-container { padding: 24px 16px 80px !important; margin-top: 56px; }
  .legal-container h1 { font-size: 1.4rem !important; margin-bottom: 20px; }
  .legal-container h2 { font-size: 0.95rem !important; margin: 24px 0 10px; letter-spacing: 0.04em; }
  .legal-container p, .legal-container li { font-size: 0.86rem !important; line-height: 1.9; color: #444; }

  /* Search panels */
  .search-panel-content { padding: 20px 16px !important; }
  .search-header h3     { font-size: 1.2rem !important; }
  .search-input { font-size: 16px !important; padding: 12px 14px !important; }
  .search-btn   { padding: 12px 16px !important; min-height: 0 !important; height: 48px; }

  /* WhatsApp button */
  #rh-whatsapp-btn { bottom: 20px !important; right: 16px !important; }

  /* Modals — bottom sheet */
  .modal-overlay { padding: 0 !important; align-items: flex-end !important; }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 28px 20px 40px !important;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal::before { content: ''; display: block; width: 36px; height: 4px; background: #ddd; border-radius: 99px; margin: 0 auto 20px; }
  .modal h2 { font-size: 1.4rem !important; margin-bottom: 20px; }
  .modal-actions { flex-direction: column; gap: 10px; }
  .modal-actions button { width: 100%; height: 52px !important; min-height: 0 !important; border-radius: 0 !important; }

  .product-modal-content { display: block !important; max-height: 90vh; border-radius: 16px 16px 0 0 !important; overflow: hidden; }
  .product-modal-image { height: 280px; }
  .product-modal-info  { padding: 20px; max-height: 50vh; overflow-y: auto; }

} /* end @media 768px */


/* ============================================================
   480px — Small phones (iPhone SE, small Androids)
   ============================================================ */

@media (max-width: 480px) {
  .hero-content h1     { font-size: 2.2rem !important; }
  .footer-content      { grid-template-columns: 1fr !important; }
  .footer-section      { border-right: none !important; }
  .values-grid         { grid-template-columns: 1fr !important; }
  .features-grid       { grid-template-columns: 1fr !important; }
  .dash-stats          { grid-template-columns: 1fr !important; }
  .dash-stat           { border-right: none !important; }
  .auth-page-right     { padding: 32px 16px 48px !important; }
}


/* ============================================================
   360px — Edge (very small Androids)
   ============================================================ */

@media (max-width: 360px) {
  .logo            { font-size: 0.68rem !important; letter-spacing: 0.08em !important; }
  .hero-content h1 { font-size: 2rem !important; }
  .product-info    { padding: 8px 8px 60px !important; }
  .product-name    { font-size: 0.74rem !important; }

  /* ── Preferences page: keep toggle rows inline, prevent right overflow ── */
  .preference-item {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0 !important;
    gap: 1rem !important;
    overflow: visible !important;
  }
  .preference-content { flex: 1; min-width: 0; }
  .preference-content p { max-width: 100% !important; }
  .toggle-switch { flex-shrink: 0 !important; }

}

/* ── Mobile nav: user block + account links ─────────────────────── */
.rh-mnav-user-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  border-bottom: 3px solid #8B5CF6;
  flex-shrink: 0;
}

.rh-mnav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.rh-mnav-user-name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.rh-mnav-user-email {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

.rh-mnav-icon {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.rh-mnav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.3rem 0;
}

.rh-mnav-logout {
  color: #F87171 !important;
}

.rh-mnav-logout:hover {
  background: rgba(239,68,68,0.12) !important;
  color: #FCA5A5 !important;
}

/* ── Marketing pages (index, about, contact) — hide header icons on mobile ── */
@media (max-width: 768px) {
  body.page-index .header-icons,
  body.page-about .header-icons,
  body.page-contact .header-icons {
    display: none !important;
  }
}


/* ── About page founder section — mobile ── */
@media (max-width: 768px) {
  .founder-section { padding: 2rem 1.25rem; }
  .founder-container { grid-template-columns: 1fr; gap: 2rem; }
  .founder-image img { height: 400px; }
  .founder-story h2 { font-size: 1.4rem; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .value-card { padding: 1.25rem; }
  .who-we-are-section { padding: 3rem 1.25rem; }
  .mission-section { padding: 3rem 1.25rem; }
  .cta-section { padding: 3rem 1.25rem; }
  .cta-content h2 { font-size: 1.8rem; }
}
