/* ============================================================
   Affhaat Mockup v40.2 — force layout + mobile header cleanup
   Load LAST. Orange brand.
   ============================================================ */
:root {
  --af-orange: #f47721;
  --af-orange-dark: #d95c0b;
  --af-orange-soft: #fff1e6;
  --af-ink: #1e293b;
  --af-muted: #64748b;
  --af-radius: 16px;
}

/* Kill old 2-col grid so hero + categories stack correctly */
.nx-home-banner {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- HERO ---------- */
.af-hero-mock {
  display: grid !important;
  grid-template-columns: 1.55fr 0.9fr !important;
  gap: 16px !important;
  margin: 12px 0 20px !important;
  width: 100% !important;
  align-items: stretch !important;
}
.af-hero-main {
  position: relative;
  border-radius: var(--af-radius) !important;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fed7aa 100%) !important;
  min-height: 320px;
  display: flex !important;
  align-items: center;
  box-shadow: 0 8px 28px rgba(244, 119, 33, .12);
}
.af-hero-main-inner {
  display: grid !important;
  grid-template-columns: 1.15fr 0.95fr !important;
  gap: 12px;
  width: 100%;
  padding: 28px 24px;
  align-items: center;
}
.af-hero-copy .af-badge {
  display: inline-block;
  background: var(--af-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.af-hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--af-ink) !important;
  margin: 0 0 10px !important;
}
.af-hero-copy h1 span { color: var(--af-orange) !important; }
.af-hero-copy p {
  color: var(--af-muted) !important;
  font-size: 0.95rem !important;
  margin: 0 0 16px !important;
  max-width: 38ch;
  line-height: 1.5;
}
.af-hero-copy .btn-shop {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--af-orange) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(244, 119, 33, .35);
}
.af-hero-copy .btn-shop:hover { background: var(--af-orange-dark) !important; color: #fff !important; }
.af-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}
.af-hero-trust span {
  font-size: 0.75rem;
  color: var(--af-muted);
  font-weight: 600;
}
.af-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.af-hero-visual img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(15,23,42,.12));
}
.af-hero-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.af-side-card {
  flex: 1;
  border-radius: var(--af-radius) !important;
  padding: 18px 16px !important;
  color: #fff !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
}
.af-side-card:hover { color: #fff !important; transform: translateY(-2px); }
.af-side-card.offers { background: linear-gradient(135deg,#0f766e,#134e4a) !important; }
.af-side-card.arrivals { background: linear-gradient(135deg,#7c3aed,#5b21b6) !important; }
.af-side-card .sc-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  width: fit-content;
}
.af-side-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; color: #fff !important; }
.af-side-card p { font-size: 0.85rem; opacity: .92; margin: 0 0 12px; color: #fff !important; }
.af-side-card .sc-cta {
  display: inline-flex;
  background: #fff;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
  width: fit-content;
}
.af-side-card.arrivals .sc-cta { color: #6d28d9; }
.af-side-card img.sc-img {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  pointer-events: none;
}

/* ---------- CATEGORY STRIP (full width BELOW hero) ---------- */
.af-cat-strip {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 28px !important;
  padding: 0 4px !important;
  clear: both !important;
  float: none !important;
}
.af-cat-item {
  background: #fff !important;
  border: 1px solid #e7eaf0 !important;
  border-radius: 14px !important;
  padding: 16px 10px !important;
  text-align: center !important;
  text-decoration: none !important;
  color: var(--af-ink) !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.af-cat-item:hover {
  border-color: var(--af-orange) !important;
  color: var(--af-orange-dark) !important;
  box-shadow: 0 8px 18px rgba(244,119,33,.12);
}
.af-cat-item .af-cat-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: var(--af-orange-soft);
  color: var(--af-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.af-cat-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: inherit;
}
.af-cat-item small {
  font-size: 0.7rem;
  color: var(--af-muted);
}

/* ---------- MOBILE HEADER: hide extra icons ---------- */
@media (max-width: 900px) {
  /* Exact links from header.php */
  a.nx-action[href*="/product/recent"],
  a.nx-action[href*="product/recent"],
  a.nx-action[href*="/product/compare"],
  a.nx-action[href*="product/compare"],
  a.nx-action[title="Recently viewed"],
  a.nx-action[title="Compare"],
  button.nx-action.af-theme-toggle,
  button#afThemeToggle,
  .af-theme-toggle,
  a.nx-logout-desktop,
  a.nx-action[title="Logout"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  .nx-action-label { display: none !important; }

  /* Currency dropdown on mobile — hide to save space */
  .nx-currency,
  .currency-switch,
  select[name="currency"],
  .nx-mainbar .nx-currency-wrap {
    display: none !important;
  }

  .nx-catbar {
    display: none !important;
  }

  .af-hero-mock {
    grid-template-columns: 1fr !important;
  }
  .af-hero-main-inner {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
  }
  .af-hero-visual { order: -1; }
  .af-hero-visual img { max-height: 160px; }
  .af-hero-main { min-height: auto; }

  .af-cat-strip {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
  }
  .af-cat-item {
    flex: 0 0 108px !important;
    width: 108px !important;
  }
}

/* Bottom nav polish */
@media (max-width: 900px) {
  .af-bottom-nav {
    display: flex !important;
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    background: #fff !important;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15,23,42,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .af-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
  }
  .af-bottom-nav a.active,
  .af-bottom-nav a.is-active { color: var(--af-orange) !important; }
  .af-bottom-nav a svg { width: 22px; height: 22px; stroke-width: 1.8; }
  .af-bottom-nav .af-nav-badge {
    position: absolute;
    top: 0; right: 50%;
    transform: translate(12px, -2px);
    background: var(--af-orange);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body { padding-bottom: 68px !important; }
}

@media (min-width: 901px) {
  .af-bottom-nav { display: none !important; }
}
