/* ═══════════════════════════════════════════════════════════
   NAJIHA — Design System v3.0  |  Fully Responsive
   Mobile-first. Fluid typography. Touch-optimised.
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --rose:        #e8647a;
  --rose-dark:   #c94d63;
  --rose-light:  #fde8ec;
  --cream:       #fdf8f5;
  --ink:         #1c1c1e;
  --ink-soft:    #3a3a3c;
  --mist:        #f4f0eb;
  --border:      rgba(0,0,0,0.09);
  --white:       #ffffff;
  --gold:        #c9a156;
  --gray-mid:    #8a8a8e;
  --gray-light:  #ebebed;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.11);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.16);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 9999px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fluid spacing */
  --pad-x: clamp(16px, 5vw, 60px);
  --section-y: clamp(48px, 7vw, 96px);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }

/* ─── Typography ─────────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
.label   { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); display: block; }

/* ─── Navbar ─────────────────────────────────────────────── */
.nav-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  gap: 12px;
  background: rgba(253,248,245,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.nav-shell.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.nav-logo em { color: var(--rose); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); border-bottom-color: var(--rose); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.nav-search {
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 14px;
  font-size: 13px;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, width 0.35s var(--ease);
  width: 140px;
  font-family: var(--font-body);
}
.nav-search:focus { border-color: var(--rose); width: 200px; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-pill-rose    { background: var(--rose); color: var(--white); border-color: var(--rose); }
.btn-pill-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-pill-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-pill-outline:hover { border-color: var(--rose); color: var(--rose); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink);
  padding: 6px;
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile Drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 880;
  background: var(--white);
  flex-direction: column;
  padding: 2rem var(--pad-x);
  gap: 0;
  overflow-y: auto;
  animation: drawer-in 0.28s var(--ease) both;
}
@keyframes drawer-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.nav-mobile-drawer.open { display: flex; }

.nav-mobile-drawer a {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: color 0.2s;
}
.nav-mobile-drawer a:hover { color: var(--rose); }
.nav-mobile-drawer a:last-child { border-bottom: none; }

/* Mobile search */
.drawer-search-wrap {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.drawer-search {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: var(--cream);
}
.drawer-search:focus { border-color: var(--rose); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rose);
  color: var(--white);
  border: 2px solid var(--rose);
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,100,122,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--rose); color: var(--white); transform: translateY(-2px); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.btn-dark:hover { background: var(--rose); border-color: var(--rose); }

/* ─── Product Cards ──────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 3/4;
}
.product-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}
.badge-new  { background: var(--ink); color: var(--white); }
.badge-sale { background: var(--rose); color: var(--white); }
.badge-hot  { background: var(--gold); color: var(--white); }

.card-wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--gray-mid);
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
}
.card-wish:hover { color: var(--rose); transform: scale(1.1); }
.card-wish.liked { color: var(--rose); }

.card-info { padding: 0.9rem 1rem 1rem; }
.card-brand { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); margin-bottom: 3px; }
.card-name  { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 5px; line-height: 1.35; }
.card-stars { color: var(--gold); font-size: 11px; margin-bottom: 8px; }
.card-stars span { color: var(--gray-mid); font-size: 10px; margin-left: 3px; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.card-price del { font-size: 11px; color: #aaa; font-weight: 400; margin-left: 4px; }
.btn-cart {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cart:hover { background: var(--rose); }

/* ─── Section Layout ─────────────────────────────────────── */
.section    { padding: var(--section-y) var(--pad-x); }
.section-sm { padding: calc(var(--section-y) * 0.6) var(--pad-x); }
.section-dark { background: var(--ink); color: var(--white); }
.section-mist { background: var(--mist); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head .left .label { margin-bottom: 6px; }
.section-head .left h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--ink);
  line-height: 1.1;
}
.section-dark .section-head .left h2 { color: var(--white); }

.view-all {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose);
  border-bottom: 1px solid var(--rose);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.view-all:hover { opacity: 0.7; }

/* Products Grid — fluid columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

/* Category Pills */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}
.cat-pill {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  color: var(--gray-mid);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.cat-pill:hover { border-color: var(--rose); color: var(--rose); }
.cat-pill.active { background: var(--rose); color: var(--white); border-color: var(--rose); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: clamp(40px,6vw,64px) var(--pad-x) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 0.9rem;
}
.footer-brand em { color: var(--rose); font-style: normal; }
.footer-desc { font-size: 13px; line-height: 1.9; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--rose); }
.footer-socials { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
}
.social-icon:hover { border-color: var(--rose); color: var(--rose); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── Social Float ───────────────────────────────────────── */
.social-float-btn {
  position: fixed;
  bottom: 20px; right: 16px;
  width: 44px; height: 44px;
  background: var(--rose);
  border-radius: 50%;
  border: none;
  color: var(--white);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(232,100,122,0.4);
  z-index: 800;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.social-float-btn:hover   { transform: scale(1.1); }
.social-float-btn.active  { background: var(--ink); transform: rotate(45deg); }

.social-float-bar {
  position: fixed;
  bottom: 74px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 799;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s var(--ease);
}
.social-float-bar.active  { pointer-events: all; opacity: 1; transform: translateY(0); }
.social-float-bar a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.social-float-bar a:hover { transform: scale(1.12); }
.s-wa { background: #25d366; }
.s-fb { background: #1877f2; }
.s-ig { background: linear-gradient(135deg, #833ab4, #e1306c, #fd1d1d); }
.s-yt { background: #ff0000; }
.s-tt { background: #000; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 2rem);
}
.toast {
  background: var(--ink);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  border-left: 3px solid var(--rose);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.35s var(--ease-bounce) both,
             toast-out 0.3s var(--ease) 2.5s both;
  text-align: center;
}
@keyframes toast-in  { from { opacity:0; transform:translateY(12px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes toast-out { from { opacity:1; } to { opacity:0; transform:translateY(-6px); } }

/* ─── Scrollspy Dots ─────────────────────────────────────── */
.spy-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 700;
}
.spy-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,0.18);
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}
.spy-dot.active { background: var(--rose); height: 22px; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:none; }
}
.fade-up { animation: fade-up 0.5s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ─── Breakpoints ────────────────────────────────────────── */

/* Large tablets / small desktops (≤1100px) */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tablets (≤900px) */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-search { display: none; }
  .nav-hamburger { display: block; }
  .nav-actions .btn-pill-rose { padding: 0 12px; font-size: 12px; }

  .section { padding: clamp(40px,6vw,60px) var(--pad-x); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
}

/* Phones (≤640px) */
@media (max-width: 640px) {
  .nav-actions .btn-pill-rose span { display: none; } /* hide label, keep icon */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .footer-grid   { grid-template-columns: 1fr; gap: 1.8rem; }
  .spy-rail      { display: none; }

  .btn-primary, .btn-ghost { padding: 11px 20px; font-size: 13px; }
  .card-info { padding: 0.75rem 0.75rem 0.85rem; }
  .card-name { font-size: 13px; }
  .card-price { font-size: 14px; }
  .btn-cart { padding: 6px 10px; font-size: 10px; }
}

/* Small phones (≤380px) */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .cat-pill { font-size: 11px; padding: 6px 12px; }
}
