/* ======================
   ReliableStore - main CSS
   Clean / optimized
   Brand: #FE9900
   ====================== */

/* Fix for modal auto-show */
.hidden {
  display: none !important;
}

/* ===== Modal FIXES (added) ===== */

/* Ensure modal overlay always centers its child */
#rs-auth-modal {
  position: fixed !important;
  inset: 0 !important;
  display: none; /* JS will toggle flex */
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.45);  /* soft backdrop */
}

/* Guarantee the panel is visible */
#rs-auth-modal .rs-modal-panel {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 420px;

  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Prevent animation collapse */
#rs-auth-modal[aria-hidden="true"] .rs-modal-panel {
  display: none !important;
}

/* ====================== */

:root{
  --brand:#FE9900;
  --brand-dark:#d97f00;
  --dark:#0f1720;
  --muted:#6b7280;
  --maxw:1180px;
  --page-bg:#f6f8fb;
}

/* reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial, sans-serif;
  background:var(--page-bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
}

/* container helper */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 18px;}

/* Header */
.site-topbar{
  background:var(--dark);
  color:#fff;
  padding:12px 0;
  position:sticky;
  top:0;
  z-index:9999;
  transition:box-shadow .18s ease;
}
.site-topbar.scrolled{box-shadow:0 6px 18px rgba(0,0,0,0.16)}
.topbar-inner{display:flex;align-items:center;gap:18px}
.logo{height:36px}
.site-nav{display:flex;gap:18px;margin-left:12px}
.site-nav a{color:#d2dae6;text-decoration:none;font-size:14px}
.header-actions{margin-left:auto;display:flex;gap:12px;align-items:center}
.header-actions .cart{background:#111827;padding:6px 10px;border-radius:8px;color:#fff;text-decoration:none;border:0 !important;}
.btn-link{color:var(--brand);text-decoration:none}
.login-link{color:var(--brand);}

/* Hero */
.hero-full{
  width:100%;
  background-size:cover;
  background-position:center;
  min-height:260px;
  display:flex;
  align-items:center;
  position:relative;
}
.hero-overlay{position:absolute;inset:0;background:rgba(255,255,255,0.55);z-index:1}
.hero-inner{max-width:var(--maxw);margin:0 auto;padding:56px 18px;text-align:center;position:relative;z-index:2}
.hero-inner h1{font-size:40px;margin:0}
.hero-inner p{color:var(--muted);max-width:900px;margin:8px auto 0}

/* Buttons */
.btn{display:inline-block;padding:8px 12px;border-radius:6px;border:0;background:#eee;color:#111;text-decoration:none}
.btn-primary{background:var(--brand);color:#fff;border:0}
.w-100{width:100%}

/* full-bleed sections */
.full-bleed, .features-band, .site-footer {width:100%;margin:0;padding:0}
.full-bleed-inner, .features-wrap, .site-footer .wrap {max-width:1600px;margin:0 auto;padding:32px 24px}

/* features grid */
.features-wrap{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:28px;
  padding:40px 24px;
}
.feature{
  background:#fff;padding:22px;border-radius:14px;box-shadow:0 2px 8px rgba(0,0,0,0.05);min-height:150px;text-align:center;
}

/* featured product visuals (cards) */
.feature img{max-width:100%;height:160px;object-fit:contain;margin-bottom:12px}
.feature h3{font-size:16px;margin:6px 0 8px}
.feature p{margin:0 0 12px;font-weight:700}

/* footer */
.site-footer{background:var(--dark);color:#d1d5db;padding:50px 0}
.site-footer .wrap{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
.site-footer a{display:block;color:#c7ceda;margin-bottom:8px;text-decoration:none}

/* small screens */
@media (max-width:1000px){
  .features-wrap{grid-template-columns:repeat(2,1fr)}
  .hero-inner h1{font-size:32px}
}
@media (max-width:760px){
  .topbar-inner{flex-direction:column;align-items:stretch}
  .site-nav{overflow-x:auto;white-space:nowrap;padding-bottom:6px;margin-left:0}
  .features-wrap{grid-template-columns:1fr;padding:24px 12px}
  .hero-inner{padding:24px 12px;text-align:left}
  .hero-inner h1{font-size:22px}
  .header-actions{justify-content:flex-start}
}

/* Accessibility focus */
a:focus, button:focus, input:focus {outline:2px solid var(--brand);outline-offset:2px}

/* ---------- Header / Topbar ---------- */

/* Basic topbar container */
.site-topbar {
  background: #0f1720; /* dark header background */
  color: #fff;
  position: relative;
  z-index: 50;
  font-family: inherit;
}

/* inner wrapper uses flex to align brand, nav and actions */
.wrap.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0 !important; /* remove white line */
  box-shadow: none !important;
}

/* Logo */
.site-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hide any big textual site-title if present elsewhere */
.site-title,
.brand strong,
.brand .site-name,
.header-logo .site-title {
  display: none !important;
}

/* NAV */
.main-nav .nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* nav links */
.main-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 4px;
  border-radius: 6px;
}

/* subtle hover on nav links */
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255,255,255,0.03);
  color: #fff;
}

/* Header actions (login & cart) */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Login pill */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #f6c25a; /* accent color similar to buttons on page */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Cart pill (consistent square-ish pill) */
.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  /* background: #ffffff;        /* white pill contrasted against dark header */ */
  /* color: #111 !important; */
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  border: 0;
}

/* If you prefer dark pill instead, change these two lines:*/
.cart-btn { background: #111; color: #fff; }

/* cart icon sizing */
.cart-btn .cart-icon,
.cart-btn img {
  width: 20px;
  height: 20px;
  line-height: 20px;
  display: inline-block;
}

/* cart count */
.cart-count {
  margin-left: 4px;
  font-size: 13px;
  color: inherit;
}

/* Remove any stray border under header from other rules */
.wrap.topbar-inner,
.site-topbar,
header.site-topbar {
  border-bottom: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* Responsive: collapse nav into simple layout on small screens */
@media (max-width: 880px) {
  .main-nav { display: none; } /* if you have a mobile menu, replace this */
  .wrap.topbar-inner { padding: 10px; }
  .site-logo { height: 36px; }
}

/* ---------- End header styles ---------- */

<style>
/* PWA update sheet styles — paste into global CSS */
#pwa-update-sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  z-index: 999999;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .2s;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}
#pwa-update-sheet.pwa-sheet-show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.pwa-sheet-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(8,12,20,0.18);
  overflow: hidden;
  border: 1px solid rgba(31,41,51,0.06);
}

/* header */
.pwa-sheet-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background: linear-gradient(90deg, #1f2933, #293343);
  color: #fff;
}
.pwa-sheet-title { font-size:14px; font-weight:600; letter-spacing:0.1px; }
#pwa-close-x {
  background:transparent;
  color: rgba(255,255,255,0.9);
  font-size:20px;
  border:0;
  cursor:pointer;
  padding:4px 6px;
  line-height:1;
}

/* body */
.pwa-sheet-body { padding:12px 14px; background: #fafafa; }
.pwa-sheet-changelog { font-size:13px; color: #222; line-height:1.35; white-space:pre-wrap; }

/* actions */
.pwa-sheet-actions {
  display:flex;
  gap:10px;
  padding:12px;
  justify-content:flex-end;
  background: #fff;
}
.pwa-btn-primary {
  background: #1f2933;
  color: #fff;
  border: none;
  padding:10px 14px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 6px 14px rgba(31,41,51,0.12);
}
.pwa-btn-ghost {
  background: transparent;
  border: 1px solid rgba(31,41,51,0.08);
  color: #1f2933;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
}

/* focus visible for accessibility */
#pwa-update-sheet button:focus { outline: 3px solid rgba(31,41,51,0.12); outline-offset: 2px; }

/* responsive tweaks */
@media (min-width:900px) {
  #pwa-update-sheet { right: 24px; left: auto; max-width:420px; bottom:24px; }
  .pwa-sheet-body { padding:14px; }
  .pwa-sheet-actions { padding:14px; }
}
</style>

/* ---- Contact page & header alignment tweaks ---- */
.hero-full { padding: 18px 0; }
.hero-inner, .full-bleed-inner, .site-header .container, .site-footer .container {
  max-width: 1180px; margin:0 auto; padding:0 16px;
}
.hero-inner h1 { margin:6px 0; font-size:34px; }
.hero-inner p { margin:6px 0 0; color:#666; }

.full-bleed { padding: 18px 0; background: #f6f8fa; }
.full-bleed-inner { max-width: 980px; margin:0 auto; padding:20px; }

/* Form note */
.form-wrapper { position:relative; }
.form-note {
  position:absolute; right:12px; bottom:8px;
  font-size:12px; color:#6b6b6b; pointer-events:none;
}
@media (max-width:600px) {
  .form-note { position:static; margin-top:6px; text-align:right; }
}

/* Cart icon color */
.site-header .cart-icon, .site-header .cart-icon svg {
  color: #ff8c00;  /* change to your login text colour if different */
  fill: currentColor;
}

/* small tweaks */
.full-bleed-inner h2 { margin-top:0; }

/* Compact version for policy pages */
.hero-compact {
  min-height: auto !important;   /* Remove the fixed 260px height */
  padding: 20px 0 !important;    /* Small clean spacing */
}

/* Make the inner area compact */
.hero-inner-compact {
  padding: 20px 18px !important; /* Previously 56px → now 20px */
}

/* Optional: reduce gap between heading and paragraph */
.hero-inner-compact h1 {
  margin: 0 0 6px 0;              /* small gap */
}

.hero-inner-compact p {
  margin: 0;
}
