/* ─── LENSIFY SHARED STYLES ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:         #fee7f1;
  --bg2:        #fdf0f6;
  --bg3:        #fff5f9;
  --rose:       #e8a0bb;
  --rose-deep:  #c4687f;
  --rose-light: #f7c5d8;
  --blush:      #f2b8cc;
  --text:       #3d2330;
  --text-soft:  #7a4d5e;
  --text-muted: #b07d8f;
  --white:      #fffafd;
  --border:     rgba(232,160,187,0.3);
  --shadow:     rgba(196,104,127,0.12);
  --shadow-md:  rgba(196,104,127,0.2);
  --accent:     #c4687f;
  --nav-h:      64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BLOBS ── */
.bg-blob-1, .bg-blob-2 {
  position: fixed; pointer-events: none; z-index: 0; border-radius: 50%;
}
.bg-blob-1 {
  top: -180px; right: -180px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(247,197,216,0.4) 0%, transparent 70%);
}
.bg-blob-2 {
  bottom: -120px; left: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,160,187,0.25) 0%, transparent 70%);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(254,231,241,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo span { color: var(--rose-deep); font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); text-decoration: none; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--rose-deep); }

.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.nav-cart-btn {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-soft); cursor: pointer;
  background: none; border: none; font-family: inherit; font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--border); border-radius: 100px;
  transition: all 0.2s; position: relative;
}
.nav-cart-btn:hover { border-color: var(--rose); color: var(--text); }
.cart-badge {
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose-deep); color: white;
  font-size: 0.6rem; font-weight: 600; line-height: 1;
}

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-soft); border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); z-index: 199;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  padding: 1.5rem;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  display: block; transform: translateY(0); opacity: 1; pointer-events: all;
}
.mobile-menu a {
  display: block; padding: 0.75rem 0;
  font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--rose-deep); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(61,35,48,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(400px, 100vw);
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
}
.cart-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(196,104,127,0.1); border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--rose-deep); line-height: 1;
  transition: background 0.2s;
}
.cart-close:hover { background: rgba(196,104,127,0.2); }

#cartBody {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); font-size: 0.85rem; }
.cart-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 14px;
  position: relative;
}
.cart-item-img { font-size: 1.8rem; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.cart-item-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; line-height: 1.5; }
.cart-item-price { font-size: 0.88rem; font-weight: 600; color: var(--rose-deep); }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-muted); line-height: 1;
  padding: 0.2rem; transition: color 0.2s; flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--rose-deep); }

#cartFooter {
  padding: 1.5rem; border-top: 1px solid var(--border);
  display: none;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.cart-total-label { font-size: 0.8rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.cart-total-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 500; color: var(--rose-deep);
}
.cart-checkout-note {
  font-size: 0.72rem; color: var(--text-muted); text-align: center;
  margin-top: 0.75rem; line-height: 1.6;
}
.cart-checkout-note strong { color: var(--text-soft); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.95rem 1.5rem;
  background: var(--rose-deep); color: white;
  border: none; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.btn-primary:hover {
  background: #b05570; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196,104,127,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  background: transparent; color: var(--rose-deep);
  border: 1.5px solid var(--rose-deep); border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(196,104,127,0.08); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 999;
  background: var(--white); border: 1.5px solid var(--rose-light);
  border-radius: 16px; padding: 1rem 1.4rem;
  box-shadow: 0 8px 32px var(--shadow-md);
  display: flex; align-items: center; gap: 0.75rem;
  transform: translateY(120px) scale(0.92); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none; max-width: 300px;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-text strong { display: block; font-size: 0.82rem; color: var(--text); font-weight: 600; }
.toast-text span { font-size: 0.72rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .nav-logo { color: white; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 220px; }
.footer-col h5 {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem; font-weight: 600;
}
.footer-col a {
  display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--rose-light); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-payment { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-chip {
  padding: 0.2rem 0.6rem; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toast { right: 1rem; left: 1rem; max-width: none; bottom: 1.5rem; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 10px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up   { opacity: 0; animation: fadeUp 0.55s ease forwards; }
.delay-1   { animation-delay: 0.1s; }
.delay-2   { animation-delay: 0.2s; }
.delay-3   { animation-delay: 0.3s; }
.delay-4   { animation-delay: 0.4s; }
