/* =========================
   RCHBMM styles.css (FRESH)
   - Mobile: nav vs cart overlap fixed
   - Mobile: about clears logo
   - Mobile: cart overlay pinned (WebView-safe)
   - Cart page: clear button fixed (no white box)
   - Mobile: contact clears logo (NEW FIX)
========================= */

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  background: #0a0a0a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

[hidden]{ display: none !important; }
html { scroll-behavior: smooth; }

/* =========================
   HOME / ENTRY
========================= */
.home{
  position: fixed;
  inset: 0;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity .25s ease;
}
.home.isHidden{ opacity: 0; pointer-events: none; }

.homeGif{
  position: absolute;
  width: min(800px, 90vw);
  opacity: 0.18;
  filter: blur(4px);
  pointer-events: none;
}

.homeMenu{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  animation: fadeIn 4s ease forwards;
}

@keyframes fadeIn{
  from { opacity: 0; }
  to { opacity: 1; }
}

.homeMenu a{
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
}
.homeMenu a:hover{ opacity: 0.6; }

/* =========================
   SITE / LAYOUT
========================= */
.site{
  min-height: 100vh;
  background: #000;
  color: #fff;
}

.shopLayout{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.shopSide{
  padding: 0 18px;
  display: flex;
  align-items: center;
  height: 100vh;
}

.sideMenu{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sideMenu a{
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
}
.sideMenu a:hover{ opacity: 0.6; }

.shopMain{
  height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 22px 18px 60px;
}

/* =========================
   PAGE SWITCHING
========================= */
.page{
  display: none;
  height: 100vh;
  position: relative;
}
.page.isActive{ display: block; }

/* =========================
   SHARED PAGE LOGO
========================= */
.pageTopLogo{
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none; /* logo never blocks clicks */
}

.pageLogoImg{
  width: min(420px, 70vw);
  height: auto;
  filter: invert(1);
  opacity: 0.95;
  transform: translateX(-60px);
}

/* =========================
   SHOP PAGE
========================= */
#page-shop .shopCats{ padding-top: 120px; }

.shopCats{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  transform: translateX(-60px);
}

.shopCats a{
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 20px;
  font-weight: 700;
  transition: opacity .15s ease, transform .15s ease;
}

.shopCats a:hover{
  opacity: 0.6;
  transform: translateY(-1px);
}

/* Shop category panels */
.shopCatsWrap{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Stop category list from consuming whole screen */
#page-shop .shopCats{
  min-height: auto;
  justify-content: center;
  margin: 0;
}

/* Panel container */
.shopPanel{
  width: 100%;
  margin-top: 28px;
  transform: translateX(-60px);
}

/* Hide/show panels */
#page-shop .shopPanelSection{ display: none !important; }
#page-shop .shopPanelSection.isActive{ display: block !important; }

.shopItemBar{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 92px;
  display: grid;
  place-items: center;
  background: #000;

  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;

  border: none;
  box-shadow: none;
}

.shopCatLink.isActive{ opacity: 0.65; }

/* =========================
   ABOUT PAGE
========================= */
.aboutWrap{
  height: 100vh;
  display: grid;
  place-items: center;
  transform: translateX(-60px);
}

.aboutBox{
  width: min(680px, 86vw);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 16px;
  padding: 22px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

.aboutHeading{
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.aboutText{
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================
   CONTACT PAGE
========================= */
.contactWrap{
  height: 100vh;
  display: grid;
  place-items: end center;
  padding-bottom: 42px;
  transform: translateX(-60px);
}

.contactForm{ width: min(760px, 90vw); }

.contactGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  margin-top: 140px;
}

.field{ display: flex; flex-direction: column; gap: 8px; }
.fieldFull{ grid-column: 1 / -1; }

.field label{
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.field input,
.field textarea{
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(0,0,0,0.20);
  color: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
}
.field textarea{ resize: none; }

.field input:focus,
.field textarea:focus{
  border-color: rgba(255,255,255,0.65);
}

.sendBtn{
  margin-top: 16px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.sendBtn:hover{
  opacity: 0.75;
  transform: translateY(-1px);
}

.formNote{
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  min-height: 14px;
}

/* =========================
   MAILING LIST PAGE
========================= */
.mailWrap{
  height: 100vh;
  display: grid;
  place-items: center;
  transform: translateX(-60px);
}

.mailForm{ width: min(640px, 90vw); }

.mailBox{
  margin-top: 140px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.mailHeading{
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mailText{
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.mailField{ display: flex; flex-direction: column; gap: 8px; }

.mailField label{
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.mailField input{
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(0,0,0,0.20);
  color: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
}

.mailField input:focus{ border-color: rgba(255,255,255,0.65); }

/* =========================
   LOOKBOOK PAGE TITLE
========================= */
.pageCenterTitle{
  height: 100vh;
  display: grid;
  place-items: center;
  transform: translateX(-60px);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 22px;
  font-weight: 700;
}

/* =========================
   CART UI (button + bubble)
========================= */
.cart-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  margin-left:6px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#fff;
  color:#000;
  line-height:1;
}

/* Base cart button (desktop baseline) */
.cartButton{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
}

.cartButton:hover{ opacity: 0.85; }

/* =========================
   CART PAGE (cart.html)
========================= */
.cartPage{ max-width: 900px; margin: 0 auto; padding: 20px; }
.cartPage, .cartPage *{ color:#fff !important; }

.cartHeader{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 10px; }
.cartBack{ text-decoration:none; color:#fff; opacity:.85; }
.cartBack:hover{ opacity: .65; }

.cartClear{
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.30) !important;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  box-shadow: none !important;
}
.cartClear:hover{ opacity: .75; }
.cartClear:focus,
.cartClear:active{
  outline: none !important;
  box-shadow: none !important;
}

.cartEmpty{ opacity:.7; margin:10px 0; }
.cartItems{ display:flex; flex-direction:column; gap:10px; }
.cartSummary{ margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.15); display:grid; gap:10px; }
.cartSummaryRow{ display:flex; justify-content:space-between; }

.cartRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.cartRowLeft{ flex:1; min-width:0; }
.cartRowName{ font-weight:800; }
.cartRowMeta{ font-size:12px; opacity:.7; margin-top:4px; }

.cartRowRight{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cartQty{ display:flex; gap:6px; align-items:center; }

.cartQtyBtn{
  width:32px;
  height:32px;
  cursor:pointer;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
  color:#fff;
  -webkit-appearance: none;
  appearance: none;
}
.cartQtyBtn:hover{ opacity:.8; }

.cartQtyInput{
  width:70px;
  padding:8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.25);
  color:#fff;
  outline:none;
}

.cartRowTotal{ font-weight:800; }

.cartRemove{
  background:none;
  border:none;
  text-decoration:underline;
  cursor:pointer;
  opacity:.8;
  color:#fff;
}
.cartRemove:hover{ opacity:.6; }

/* =========================
   RESPONSIVE + MOBILE FIXES
========================= */
@media (max-width: 820px){
  .shopLayout{ grid-template-columns: 1fr; }

  /* NAV: leave room for cart overlay */
  .shopSide{
    height: auto;
    padding: 78px 18px 0;
    align-items: flex-start;
  }

  .sideMenu{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    position: relative;
    z-index: 20;
  }

  .shopMain{
    height: auto;
    overflow: visible;
    padding: 18px 16px 60px;
  }

  .shopCats{ transform: none; min-height: 70vh; }

  /* remove offsets on mobile */
  .pageLogoImg,
  .aboutWrap,
  .contactWrap,
  .mailWrap,
  .pageCenterTitle,
  .shopPanel{
    transform: none;
  }

  /* ABOUT: clear logo */
  .aboutWrap{
    height: auto;
    min-height: 100vh;
    place-items: start center;
    padding-top: 240px;
    padding-bottom: 40px;
  }
  .aboutBox{ margin-top: 20px; }

  /* CONTACT: clear logo (NEW FIX) */
  .contactWrap{
    height: auto;
    min-height: 100vh;
    place-items: start center;     /* stop anchoring to bottom */
    padding-top: 240px;            /* clears logo */
    padding-bottom: 40px;
  }

  /* remove the old "push down" because padding now handles it */
  .contactGrid{
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .mailBox{ margin-top: 120px; }

  .pageLogoImg{ width: min(340px, 82vw); }

  /* -------- Cart overlay (mobile) -------- */
  .cartOverlay{
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    right: 12px;
    z-index: 999999;
    pointer-events: none;
  }

  .cartOverlay .cartButton{
    pointer-events: auto;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
}

/* SAFETY: when Home is hidden, remove it completely so it can’t overlay pages */
.home.isHidden{
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================
   MOBILE FIX: make logo position feel identical across pages
   - Consistent top logo + consistent content clearance
========================= */
@media (max-width: 820px){

  /* keep logo in one exact spot */
  .pageTopLogo{
    top: calc(env(safe-area-inset-top) + 18px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* one shared clearance value for ALL pages */
  .page{
    padding-top: 220px !important;  /* tweak 200–260 if you want */
    height: auto !important;
    min-height: 100vh !important;
  }

  /* remove per-page pushes that cause mismatch */
  .aboutWrap,
  .contactWrap,
  .mailWrap{
    padding-top: 0 !important;
    margin-top: 0 !important;
    place-items: center !important;
  }

  /* contact/mail boxes were using big top margins */
  .mailBox{ margin-top: 0 !important; }

  /* contact grid had margin-top for desktop; on mobile we already zero it, keep it */
  .contactGrid{ margin-top: 0 !important; }
}

@media (max-width: 820px){
  .pageTopLogo{
    top: calc(env(safe-area-inset-top) + 26px);
  }
}


