/* ============================================================
   Mee Mee Beauty — meemeebeauty.net
   Korean & Japanese Beauty Products
   Rancho Cordova, CA
   ============================================================ */

/* ─── CSS Variables ─── */
:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-alt: #F3EFEA;
  --bg-dark: #1C1917;
  --bg-hero: linear-gradient(165deg, #FAF8F5 0%, #F0EBE4 35%, #E4DCD0 100%);
  --text: #1C1917;
  --text-soft: #78716C;
  --text-muted: #A8A29E;
  --accent: #B8977E;
  --accent-hover: #A07D62;
  --border: #E7E5E4;
  --success: #3D8B5F;
  --font: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
  --max-width: 1280px;
  --transition: 0.35s cubic-bezier(.22,1,.36,1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
::selection { background: rgba(184, 151, 126, 0.25); }

/* ─── Typography ─── */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text);
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}
.label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.body-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ─── Layout ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ─── Navbar ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0,0,0,0.06);
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; color: var(--text);
}
.navbar-logo-sub {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 3px;
}
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-link {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 500;
  padding: 4px 0; position: relative; transition: color 0.3s;
}
.navbar-link:hover, .navbar-link.active { color: var(--text); font-weight: 600; }
.navbar-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--text); border-radius: 1px;
}
.cart-btn {
  position: relative; padding: 4px; transition: transform 0.2s;
}
.cart-btn:hover { transform: scale(1.08); }
.cart-count {
  position: absolute; top: -4px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Mobile Menu ─── */
.mobile-menu-btn { display: none; padding: 8px; }
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 32px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-hero);
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,151,126,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-orb-1 { width: 380px; height: 380px; top: 8%; right: 6%; }
.hero-orb-2 { width: 260px; height: 260px; bottom: 12%; left: 4%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; width: 100%;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-wrap {
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-image {
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-stat {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow-md);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; color: var(--text);
}
.hero-stat-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--bg-dark); color: #fff; }
.btn-primary:hover { background: #2d2823; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent-hover); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* ─── Philosophy Section ─── */
.philosophy { padding: 100px 0; background: var(--bg); }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 768px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-card {
  text-align: center; padding: 44px 28px; border-radius: 20px;
  background: var(--bg-alt);
  transition: transform var(--transition), box-shadow var(--transition);
}
.philosophy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.philosophy-icon { font-size: 34px; margin-bottom: 20px; }
.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500; margin-bottom: 12px;
}
.philosophy-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ─── Product Grid ─── */
.products-section { padding: 100px 0; }
.products-section.alt-bg { background: var(--bg-alt); }
.products-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card { position: relative; cursor: pointer; }
.product-image-wrap {
  position: relative; overflow: hidden; border-radius: 16px;
  aspect-ratio: 4/5; background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover .product-image-wrap {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 13px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.product-badge.bestseller { background: rgba(255,255,255,0.9); color: var(--text); }
.product-badge.new { background: var(--bg-dark); color: #fff; }
.product-badge.popular { background: rgba(255,255,255,0.9); color: var(--text); }
.product-badge.luxe { background: var(--accent-hover); color: #fff; }
.product-add-btn {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.35s ease;
}
.product-card:hover .product-add-btn { opacity: 1; transform: translateY(0); }
.product-add-btn button {
  width: 100%; padding: 13px 0; border-radius: 10px;
  background: rgba(28,25,23,0.88); backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s;
}
.product-add-btn button:hover { background: rgba(28,25,23,0.95); }
.product-info { padding: 14px 4px 0; }
.product-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.product-brand {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.product-origin { font-size: 10px; letter-spacing: 0.1em; color: var(--text-muted); }
.product-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.product-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500; color: var(--text);
  line-height: 1.35; margin-bottom: 6px;
}
.product-price {
  font-size: 15px; font-weight: 700; color: var(--accent);
}

/* ─── Filters (Shop Page) ─── */
.filters-bar {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 28px;
}
.filter-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filter-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 600; margin-right: 6px;
}
.filter-pill {
  padding: 7px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
  transition: all 0.25s;
}
.filter-pill.inactive { background: transparent; border: 1px solid var(--border); color: var(--text-soft); }
.filter-pill.inactive:hover { border-color: var(--text-muted); color: var(--text); }
.filter-pill.active { background: var(--bg-dark); border: 1px solid var(--bg-dark); color: #fff; }
.sort-select {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; font-family: var(--font);
  font-size: 12px; color: var(--text); cursor: pointer;
  outline: none; margin-left: auto;
}
.sort-select:focus { border-color: var(--accent); }
.results-count { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ─── CTA / Newsletter ─── */
.cta-section {
  background: linear-gradient(135deg, #1C1917 0%, #2d2823 100%);
  padding: 80px 32px; position: relative; overflow: hidden;
}
.cta-dots {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-inner { max-width: 560px; margin: 0 auto; text-align: center; position: relative; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 400;
  color: #FAF8F5; margin-bottom: 14px;
}
.cta-inner p { font-size: 14px; color: rgba(250,248,245,0.55); line-height: 1.7; margin-bottom: 32px; }
.cta-form { display: flex; gap: 12px; max-width: 420px; margin: 0 auto; }
.cta-input {
  flex: 1; padding: 14px 20px;
  border: 1px solid rgba(250,248,245,0.14); border-radius: 10px;
  background: rgba(250,248,245,0.06); color: #FAF8F5;
  font-family: var(--font); font-size: 13px; outline: none;
  transition: border-color 0.3s;
}
.cta-input::placeholder { color: rgba(250,248,245,0.3); }
.cta-input:focus { border-color: var(--accent); }
.cta-submit {
  padding: 14px 28px; border: none; border-radius: 10px;
  background: var(--accent); color: var(--bg-dark);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; transition: background 0.3s;
}
.cta-submit:hover { background: var(--accent-hover); color: #fff; }

/* ─── Footer ─── */
.footer {
  background: var(--bg-dark); padding: 48px 32px 32px;
  border-top: 1px solid rgba(250,248,245,0.06);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #FAF8F5; }
.footer-logo-sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,248,245,0.35); }
.footer-copy { font-size: 11px; color: rgba(250,248,245,0.25); }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 12px; color: rgba(250,248,245,0.4); transition: color 0.3s; }
.footer-link:hover { color: rgba(250,248,245,0.8); }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  background: rgba(28,25,23,0.92); backdrop-filter: blur(12px);
  color: #fff; padding: 14px 24px; border-radius: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px); opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.toast.visible { transform: translateY(0); opacity: 1; }

/* ─── Scroll Reveal Animation ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── No Image Placeholder ─── */
.no-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: var(--bg-alt);
}

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 80px 0; }
.empty-state-icon { font-size: 44px; margin-bottom: 16px; }
.empty-state p {
  font-family: var(--font-display);
  font-size: 20px; color: var(--text-soft);
}

/* ─── 404 Page ─── */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
