/* ════════════════════════════════════════════════════
   Leo's Hair Extensions — Shared Design System
   Brand: leoshairextensionsofficial.com · Moreno Valley, CA
   Built by NB Tech AI Solutions · nbtechai.com
   ════════════════════════════════════════════════════ */

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

:root {
  --bg:        #F7F3EE;
  --bg2:       #EEE9E1;
  --card:      #FFFFFF;
  --card2:     #FBF8F5;
  --border:    rgba(160,138,115,0.22);
  --border-f:  rgba(160,138,115,0.11);
  --rose:      #C4A882;
  --rose2:     #D4B898;
  --rose-dark: #A08860;
  --gold:      #C4A882;
  --gold2:     #B89068;
  --gold-dark: #A08860;
  --plum:      #2A1F14;
  --plum2:     #5C4A38;
  --gray:      #8A7A6A;
  --gray2:     #6A5A4A;
  --sage:      #7A9E7A;
  --white:     #FFFFFF;
  --nav-h:     96px;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--plum);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── LANGUAGE TOGGLE ── */
.t-en { display: none; }
body.lang-en .t-en { display: revert; }
body.lang-en .t-es { display: none; }
.lang-btn {
  background: rgba(196,168,130,0.12); border: 1px solid var(--border-f);
  color: var(--plum2); border-radius: 7px; padding: 0.35rem 0.65rem;
  font-size: 0.78rem; font-weight: 700; cursor: pointer; letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s; font-family: 'DM Sans', sans-serif;
}
.lang-btn:hover { background: rgba(196,168,130,0.22); border-color: var(--border); }

/* ── ICON HELPERS ── */
.icon-inline  { width: 14px; height: 14px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-feature { width: 26px; height: 26px; display: inline-block; flex-shrink: 0; }
.icon-star    { width: 14px; height: 14px; display: inline-block; vertical-align: middle; fill: var(--gold); flex-shrink: 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--plum);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; } .d4 { transition-delay: .38s; } .d5 { transition-delay: .48s; }

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  height: var(--nav-h); padding: 0 2rem;
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(42,31,20,0.08);
}
.nav-inner {
  width: 100%; max-width: 1340px; margin: auto;
  display: flex; align-items: center;
}
.nav-logo {
  font-family: 'Sacramento', cursive;
  font-size: 1.9rem; font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--plum);
  flex-shrink: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 0.55rem;
  line-height: 1;
}
.nav-logo-img {
  height: 34px; width: auto; object-fit: contain; flex-shrink: 0;
  opacity: 0.75;
}
.nav-links { display: flex; gap: 0.15rem; margin-left: 2.5rem; }
.nav-links a {
  color: var(--plum2); font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold2); background: rgba(196,168,130,0.12);
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-icon {
  position: relative; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,168,130,0.08); border: 1px solid var(--border-f);
  border-radius: 9px; cursor: pointer; color: var(--plum2);
  transition: all 0.2s;
}
.nav-icon:hover {
  background: rgba(196,168,130,0.18); color: var(--gold2);
  border-color: var(--border);
}
.cart-count {
  position: absolute; top: -5px; right: -5px;
  width: 17px; height: 17px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%; font-size: 0.62rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.82rem 1.9rem; border-radius: 11px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, opacity 0.22s;
  font-family: 'DM Sans', sans-serif; line-height: 1; letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--plum2), var(--plum));
  color: #fff;
  box-shadow: 0 4px 18px rgba(42,31,20,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(42,31,20,0.5); }
.btn-gold {
  background: linear-gradient(135deg, var(--rose2), var(--gold));
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 18px rgba(160,136,96,0.28);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(160,136,96,0.44); }
.btn-outline {
  background: transparent; color: var(--plum);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: rgba(196,168,130,0.09); border-color: var(--gold); }
.btn-ghost {
  background: rgba(196,168,130,0.1); color: var(--plum2);
  border: 1px solid var(--border-f);
}
.btn-ghost:hover { background: rgba(196,168,130,0.18); color: var(--plum); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; border-radius: 12px; }

/* ── LUXURY BADGE ── */
.lux-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  background: rgba(196,168,130,0.12);
  border: 1px solid rgba(196,168,130,0.35);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em;
  color: var(--gold2); text-transform: uppercase;
}

/* ── SECTION HEADER ── */
.sec-head { text-align: center; margin-bottom: 3.5rem; }
.sec-head .lux-badge { margin-bottom: 1rem; }
.sec-head h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 0.9rem; }
.sec-head p { font-size: 1.02rem; color: var(--plum2); max-width: 540px; margin: 0 auto; line-height: 1.75; }

/* ── PRODUCT PHOTO ── */
.p-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.45s ease;
}
.p-card:hover .p-photo { transform: scale(1.06); }

/* ── PRODUCT CARD ── */
.p-card {
  background: var(--card); border: 1px solid var(--border-f);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block; color: var(--plum);
  box-shadow: 0 2px 16px rgba(42,31,20,0.07);
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(42,31,20,0.12), 0 0 0 1px rgba(196,168,130,0.3);
  border-color: rgba(196,168,130,0.3);
}
.p-img {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.p-img-bg { position: absolute; inset: 0; transition: transform 0.45s ease; }
.p-card:hover .p-img-bg { transform: scale(1.06); }
.p-emoji { position: relative; z-index: 1; font-size: 4.5rem; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.15)); }
.p-badge-wrap { position: absolute; top: 11px; left: 11px; display: flex; gap: 0.4rem; z-index: 2; }
.p-b {
  padding: 0.26rem 0.65rem; border-radius: 7px;
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.b-new  { background: var(--sage); color: #fff; }
.b-sale { background: var(--gold); color: #fff; }
.b-hot  { background: var(--plum2); color: #fff; }
.b-best { background: rgba(196,168,130,0.18); color: var(--gold2); border: 1px solid rgba(196,168,130,0.4); }
.p-wish {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(247,243,238,0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--border-f); border-radius: 8px;
  color: var(--gray); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-size: 1rem; font-family: serif;
}
.p-wish:hover { color: var(--gold2); border-color: rgba(196,168,130,0.4); }
.p-body { padding: 1.15rem 1.2rem 1.2rem; }
.p-cat { font-size: 0.69rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.3rem; }
.p-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.45rem; }
.p-stars { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.7rem; }
.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 1.5px; }
.rcnt { font-size: 0.74rem; color: var(--gray); }
.p-foot { display: flex; align-items: center; justify-content: space-between; }
.p-price { font-size: 1.08rem; font-weight: 700; color: var(--plum); }
.p-old { font-size: 0.8rem; color: var(--gray); text-decoration: line-through; margin-left: 0.32rem; font-weight: 400; }
.p-add {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 9px;
  cursor: pointer; color: #fff; font-size: 1.1rem; line-height: 1;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(160,136,96,0.3);
}
.p-add:hover { opacity: 0.88; transform: scale(1.1); }

/* ── DIVIDER ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.divider-thin { height: 1px; background: var(--border-f); margin: 1.2rem 0; }

/* ── FOOTER ── */
footer { background: #2A1F14; border-top: 1px solid rgba(196,168,130,0.18); padding: 5rem 0 2rem; }
footer h4, footer h5 { color: rgba(255,255,255,0.9); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.f-logo {
  font-family: 'Sacramento', cursive;
  font-size: 2rem; font-weight: 400;
  color: rgba(255,255,255,0.92);
  display: inline-block; margin-bottom: 0.75rem;
}
.f-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); max-width: 260px; line-height: 1.8; margin-bottom: 1.5rem; }
.f-socials { display: flex; gap: 0.55rem; }
.f-soc {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(196,168,130,0.1); border: 1px solid rgba(196,168,130,0.22);
  border-radius: 8px; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 0.78rem; font-style: normal;
  transition: all 0.2s;
}
.f-soc:hover { background: rgba(196,168,130,0.25); color: #fff; border-color: rgba(196,168,130,0.5); }
.f-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 1.15rem; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 0.65rem; }
.f-col a { color: rgba(255,255,255,0.45); font-size: 0.875rem; transition: color 0.2s; }
.f-col a:hover { color: var(--rose2); }
.f-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.65rem; }
.f-contact-item span:first-child { font-size: 0.85rem; flex-shrink: 0; margin-top: 0.1rem; }
.f-contact-item span:last-child { color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.5; }
.f-contact-item svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.f-bottom {
  padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.f-copy { font-size: 0.82rem; color: rgba(255,255,255,0.25); }
.f-badges { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.f-pay {
  padding: 0.3rem 0.7rem; background: rgba(196,168,130,0.08);
  border: 1px solid rgba(196,168,130,0.16); border-radius: 6px;
  font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.04em;
}

/* ── CHAT WIDGET ── */
.chat-btn {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 1000;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(160,136,96,0.4);
  color: #fff; font-size: 1.4rem;
  transition: transform 0.22s, box-shadow 0.22s;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(160,136,96,0.55); }
.chat-panel {
  position: fixed; bottom: 5.5rem; right: 1.75rem; z-index: 999;
  width: 316px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(42,31,20,0.18);
  display: none; animation: slide-up 0.25s ease;
}
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chat-panel.open { display: block; }
.chat-head {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(196,168,130,0.12), rgba(212,184,152,0.06));
  border-bottom: 1px solid var(--border-f);
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-av {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.chat-info h5 { font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--plum); }
.chat-info small { font-size: 0.72rem; color: var(--sage); font-weight: 500; }
.chat-close { margin-left: auto; background: none; border: none; color: var(--gray); cursor: pointer; font-size: 1rem; }
.chat-body { padding: 1rem; max-height: 220px; overflow-y: auto; }
.chat-msg {
  background: rgba(196,168,130,0.08); border-left: 2.5px solid rgba(196,168,130,0.45);
  border-radius: 0 12px 12px 12px; padding: 0.75rem 0.9rem;
  font-size: 0.84rem; color: var(--plum2); line-height: 1.55; margin-bottom: 0.75rem;
}
.chat-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chat-chip {
  padding: 0.28rem 0.7rem; background: var(--bg);
  border: 1px solid var(--border-f); border-radius: 999px;
  font-size: 0.73rem; color: var(--gold2); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chat-chip:hover { background: rgba(196,168,130,0.1); border-color: var(--border); }
.chat-input-row { display: flex; gap: 0.45rem; padding: 0.7rem; border-top: 1px solid var(--border-f); }
.chat-input-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border-f); border-radius: 9px;
  padding: 0.48rem 0.75rem; color: var(--plum);
  font-family: 'DM Sans', sans-serif; font-size: 0.83rem; outline: none;
}
.chat-input-row input:focus { border-color: var(--gold); }
.chat-send {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none; border-radius: 9px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.85; }

/* ── TRUST BADGES ── */
.trust-bar {
  background: var(--bg2); border-top: 1px solid var(--border-f); border-bottom: 1px solid var(--border-f);
  padding: 1rem 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--plum2); font-weight: 500; }
.trust-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }

/* ── HAMBURGER / MOBILE NAV ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(253,248,244,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.4rem 1.2rem;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 498;
  box-shadow: 0 8px 32px rgba(42,31,20,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--plum2);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--gold2); background: rgba(196,168,130,0.12);
}
.mn-cta {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-f);
}
.mn-cta a {
  background: linear-gradient(135deg, #C4A882, #B89068) !important;
  color: #fff !important;
  font-weight: 600 !important;
  justify-content: center;
  border-radius: 11px;
  padding: 0.9rem 1rem !important;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #2A1F14 0%, #3A2A18 100%);
  border-top: 1px solid rgba(196,168,130,0.3);
  padding: 0.85rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  z-index: 490;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .mobile-cta-bar { display: flex; }
  .nav-links { display: none; }
  .container { padding: 0 1.1rem; }
  .section { padding: 3.5rem 0; }
  .f-grid { grid-template-columns: 1fr; gap: 2rem; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
  .trust-inner { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 2rem); right: 1rem; }
}
