/* ============================================================
   LOFINGO — Fashion Design System
   Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

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

.cursor-dot, .cursor-ring { display: none !important; }

:root {
  --black: #080808;
  --white: #ffffff;
  --cream: #f7f4ef;
  --warm-white: #faf8f4;
  --gold: #b8935a;
  --gold-dark: #9a7a46;
  --text-dark: #151515;
  --text-body: #424242;
  --text-muted: #808080;
  --text-faint: #b0b0b0;
  --border: #d5d1cb;
  --border-lt: #eceae5;
  --border-dk: #2a2a2a;
  --bg-section: #f2ede6;
  --bg-cream: #faf7f2;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 70px;
  --max-w: 1340px;
  --pad: 52px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); color: var(--text-dark); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: var(--font-sans); font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-body { padding-top: var(--nav-h); }

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  z-index: 900;
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.nav-logo em { font-style: normal; color: var(--gold); }

.nav-menu { display: flex; gap: 38px; }

.nav-menu a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.nav-menu a.is-active {
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 1px;
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1002;
  position: relative;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
}

.nav-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }

.nav-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--black);
  color: var(--white);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-divider { width: 1px; height: 18px; background: var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  line-height: 1;
  white-space: nowrap;
  border-radius: 8px;
}

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-sm { padding: 10px 22px; font-size: 0.68rem; }
.btn-lg { padding: 16px 44px; font-size: 0.76rem; }
.btn-full { width: 100%; padding-left: 0; padding-right: 0; }

.product-card { position: relative; }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-new { background: var(--black); color: var(--white); }
.badge-sale { background: #b83232; color: var(--white); }
.badge-limited { background: var(--gold); color: var(--white); }

.product-wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-wish-btn svg { width: 15px; height: 15px; stroke: var(--text-dark); stroke-width: 1.5; fill: none; }
.product-wish-btn.is-wished svg { fill: var(--black); }

.product-data { padding: 14px 0 0; }
.product-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.product-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--text-dark); line-height: 1.3; margin-bottom: 9px; }
.product-price-row { display: flex; align-items: baseline; gap: 9px; }
.price-now { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.price-was { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 0.72rem; color: #b83232; font-weight: 500; }

.sec-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.sec-title { font-size: 2.4rem; font-weight: 600; line-height: 1.18; }
.sec-subtitle { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-top: 14px; max-width: 500px; }

.ticker-bar {
  background: var(--black);
  padding: 11px 0;
  overflow: hidden;
}
.ticker-track {
  display: inline-flex;
  gap: 72px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.ticker-dot { color: var(--gold); font-size: 0.9rem; line-height: 0.7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.qty-ctrl { display: inline-flex; align-items: stretch; border: 1px solid var(--border); }
.qty-btn {
  width: 36px;
  height: 38px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-val {
  width: 42px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  background: none;
  outline: none;
}

.site-footer { background: var(--black); color: var(--white); margin-top: 120px; }
.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 64px;
  padding: 80px 0 64px;
}
.foot-logo {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-logo em { font-style: normal; color: var(--gold); }
.foot-desc { font-size: 0.84rem; color: #888; line-height: 1.8; max-width: 265px; margin-bottom: 28px; }
.foot-socials { display: flex; gap: 10px; }
.foot-soc {
  width: 34px;
  height: 34px;
  border: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a { font-size: 0.84rem; color: #888; line-height: 1.4; }
.footer-sep { height: 1px; background: #1c1c1c; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-copy { font-size: 0.78rem; color: #555; }
.foot-btm-links { display: flex; gap: 22px; }
.foot-btm-links a { font-size: 0.78rem; color: #555; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ── Notification Panel ──────────────────────────────────── */
.notification-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}
.notification-overlay.active { display: block; }

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}
.notification-panel.active { transform: translateX(0); }

.notification-header {
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border-lt);
  flex-shrink: 0;
}
.notification-header .header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.notification-header .header-top h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}
.notification-header .see-all-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.2s;
}
.notification-header .see-all-btn:hover { opacity: 0.75; }
.notification-header .close-notification {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border-lt);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.notification-header .close-notification:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.notification-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-lt);
}
.notification-tabs .tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.notification-tabs .tab-btn.active {
  color: var(--text-dark);
  border-bottom-color: var(--gold);
}

.notification-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notification-body.fade-out { opacity: 0; transition: opacity 0.25s ease; }

.notification-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.notification-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.notification-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.notification-empty p { font-size: 0.85rem; }

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-lt);
  text-decoration: none;
  color: var(--text-body);
  transition: border-color 0.2s, background 0.2s;
}
.notification-item:hover { border-color: var(--gold); background: #fdf9f4; }

.anno-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.anno-general .anno-icon { background: #f4f4f4; color: var(--text-muted); }
.anno-welcome .anno-icon { background: #fdf6ec; color: var(--gold); }
.anno-product .anno-icon  { background: #f0f4ff; color: #4a6cf7; }
.anno-category .anno-icon { background: #f0fbf5; color: #27ae60; }

.anno-content { flex: 1; min-width: 0; }
.anno-content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.anno-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.anno-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.anno-title-wrap h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anno-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.anno-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 2px;
  z-index: 1001;
  margin-left: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-hamburger { display: none; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 950;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-active { display: block; opacity: 1; z-index: 9997; }

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
}

.nav-panel.is-active { transform: translateX(0); }
.nav-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.nav-panel-close { background: none; border: none; font-size: 1.5rem; color: var(--text-dark); padding: 4px; }
.nav-panel .nav-menu { display: flex; flex-direction: column; gap: 0; }
.nav-panel .nav-menu li { border-bottom: 1px solid var(--border-lt); }
.nav-panel .nav-menu a { display: block; padding: 16px 0; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text-dark); }
.nav-panel .nav-menu a.is-active { border-bottom: none; color: var(--gold); }
.nav-panel-utils { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border-lt); }
.nav-panel-utils .nav-icon-btn { justify-content: flex-start; padding: 12px 0; font-size: 0.85rem; color: var(--text-dark); }
.nav-panel-utils .nav-icon-btn svg { width: 18px; height: 18px; }
.nav-panel-utils .nav-icon-btn span { margin-left: 12px; }

/* ── Search Bar ──────────────────────────────────────────── */
.header-search-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  z-index: 898;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.header-search-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
}

.search-bar-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}

.search-bar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.search-bar-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-dark);
  min-width: 0;
}

.search-bar-input::placeholder { color: var(--text-faint); }

.search-bar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.search-bar-close svg { width: 18px; height: 18px; }
.search-bar-close:hover { background: var(--border-lt); color: var(--black); }

/* ── Search Suggestions Dropdown ─────────────────────────── */
#search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 12px;
  z-index: 910;
  overflow: hidden;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-lt);
  transition: background 0.15s;
}

.search-suggestion-item:last-of-type { border-bottom: none; }
.search-suggestion-item:hover { background: var(--bg-section); }

.search-suggestion-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-suggestion-meta { min-width: 0; flex: 1; }
.search-suggestion-title { color: var(--text-dark); font-size: 0.87rem; font-weight: 500; }
.search-suggestion-price { color: var(--gold); font-size: 0.78rem; margin-top: 2px; }

.search-suggestion-footer {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--gold);
  text-align: center;
  cursor: pointer;
  border-top: 1px solid var(--border-lt);
  font-weight: 500;
  transition: background 0.15s;
}

.search-suggestion-footer:hover { background: var(--bg-section); }

.search-suggestion-empty {
  padding: 20px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .header-search-bar { z-index: 1999; }
  .search-bar-inner { height: 52px; }
  .search-bar-input { font-size: 0.95rem; }
  #search-suggestions { min-width: unset; border-radius: 10px; }
}

@media (max-width: 1024px) {
  :root { --pad: 32px; --nav-h: 64px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .mobile-hamburger { display: flex; }
  .nav-utils { gap: 10px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 48px; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --nav-h: 60px; }
  body { font-size: 15px; }
  .page-body { padding-top: var(--nav-h); }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
  .foot-logo { font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .foot-btm-links { flex-wrap: wrap; justify-content: center; }
  .site-nav { z-index: 2000; }
  .nav-utils { z-index: 2001; }
  .nav-icon-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav-utils #user-btn,
  .nav-utils a[aria-label="Wishlist"],
  .nav-utils .nav-divider { display: none; }
}
