/* ============================================================
   NAHR COSMETICS — Brand CSS  (Mobile-first, fully fixed)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Custom Brand Font (Transcity) ───────────────────────
   Upload your font files to: assets/fonts/
   Accepted formats: .woff2  .woff  .ttf
   ────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Transcity';
  src: url('../fonts/Transcity.woff2') format('woff2'),
       url('../fonts/Transcity.woff')  format('woff'),
       url('../fonts/Transcity.ttf')   format('truetype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose:       #7a0d34;
  --rose-dark:  #5a0926;
  --rose-light: #f9f0f4;
  --rose-mid:   #c4698a;
  --gold:       #c9a96e;
  --white:      #ffffff;
  --text:       #1a0a10;
  --muted:      #7a5c65;
  --border:     #e8d5db;
  --bg:         #fdf8f9;
  --radius:     2px;
  --radius-lg:  6px;
  --trans:      all 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Promo bar ───────────────────────────────────────── */
.promo-bar {
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.07em;
  padding: 7px 0;
  overflow: hidden;
  text-align: center;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  width: 100%;
}

.mobile-menu-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--rose);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  text-decoration: none;
}
.site-logo-img {
  height: 56px;
  max-height: 56px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
/* Fallback text — hidden, only shows if SVG fails to load */
.site-logo-text {
  font-family: 'Transcity', 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--rose);
  text-transform: uppercase;
  white-space: nowrap;
  display: none !important; /* always hidden */
}

.header-search {
  display: none;
}

.cart-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--trans);
}
.cart-icon-btn:hover { background: var(--rose-dark); }
.cart-icon-btn svg { display: none; }

.cart-badge {
  background: var(--gold);
  color: var(--text);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

/* Search bar below header row on mobile */
.mobile-search {
  padding: 0 14px 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-search form {
  display: flex;
  background: var(--rose-light);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.mobile-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.mobile-search input::placeholder { color: var(--muted); }
.mobile-search button {
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Category Nav ────────────────────────────────────── */
.cat-nav {
  border-top: 1px solid var(--border);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 8px;
}
.cat-nav-inner a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--trans);
  font-weight: 500;
  flex-shrink: 0;
}
.cat-nav-inner a:hover,
.cat-nav-inner a.active { color: var(--rose); border-bottom-color: var(--rose); }
.cat-nav-inner a.all-link { color: var(--rose); }

/* ── Desktop ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .site-header {
    border-bottom: none;
    box-shadow: 0 1px 12px rgba(122,13,52,.06);
  }
  .header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    gap: 24px;
  }
  .site-logo {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 180px;
  }
  .site-logo-img {
    height: 64px;
    max-height: 64px;
    max-width: 220px;
  }
  .header-search {
    display: block;
    flex: 1;
    max-width: 480px;
    position: relative;
    margin: 0 auto;
  }
  .header-search form {
    display: flex;
    position: relative;
  }
  .header-search input {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    padding: 11px 48px 11px 22px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: var(--trans);
  }
  .header-search input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(122,13,52,.08);
    background: #fff;
  }
  .header-search input::placeholder { color: var(--muted); }
  .header-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--rose);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    transition: var(--trans);
  }
  .header-search .search-btn:hover {
    background: var(--rose-dark);
  }
  .header-actions {
    flex-shrink: 0;
  }
  .cart-icon-btn {
    padding: 10px 20px;
    font-size: 13.5px;
    gap: 8px;
    border-radius: 99px;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
  .cart-icon-btn svg { display: block; }
  .cart-badge {
    font-size: 11px;
    padding: 2px 8px;
  }
  .mobile-search { display: none; }

  /* ── Desktop Category Nav ──────── */
  .cat-nav {
    background: var(--rose-dark);
    border-top: none;
  }
  .cat-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    justify-content: center;
    gap: 4px;
  }
  .cat-nav-inner a {
    padding: 13px 20px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,.75);
    border-bottom: 2px solid transparent;
    transition: var(--trans);
  }
  .cat-nav-inner a:hover {
    color: #fff;
    border-bottom-color: var(--gold);
  }
  .cat-nav-inner a.active {
    color: #fff;
    border-bottom-color: var(--gold);
  }
  .cat-nav-inner a.all-link {
    color: rgba(255,255,255,.9);
  }
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
  .header-top {
    padding: 20px 40px;
    gap: 32px;
  }
  .site-logo-img {
    height: 72px;
    max-height: 72px;
    max-width: 240px;
  }
  .header-search {
    max-width: 520px;
  }
  .cat-nav-inner a {
    padding: 14px 24px;
    font-size: 12px;
  }
}

/* ── Mobile menu drawer ──────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
}
.mobile-overlay.show { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #fff;
  z-index: 400;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 20px rgba(0,0,0,0.12);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--rose);
}
.mobile-menu-header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 4px;
}
.mobile-menu a {
  display: block;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--rose);
  background: var(--rose-light);
  padding-left: 24px;
}

/* ── Hero Banner ─────────────────────────────────────── */
.hero-slider { position: relative; overflow: hidden; background: var(--rose-light); }
.hero-track  { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.hero-slide  { min-width: 100%; position: relative; aspect-ratio: 4/3; overflow: hidden; }
@media (min-width: 600px) { .hero-slide { aspect-ratio: 16/6; } }
.hero-slide img   { width: 100%; height: 100%; object-fit: cover; }
.hero-no-img      { width: 100%; height: 100%; background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%); }
.hero-overlay     { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(122,13,52,.65) 0%,transparent 65%); display: flex; align-items: center; padding: clamp(16px,5vw,80px); }
.hero-content     { color: #fff; max-width: 460px; }
.hero-content h2  { font-family: 'Cormorant Garamond',serif; font-size: clamp(22px,5vw,56px); font-weight: 300; line-height: 1.15; margin-bottom: 10px; }
.hero-content p   { font-size: clamp(12px,1.5vw,15px); opacity: .9; margin-bottom: 18px; font-weight: 300; }
.hero-btn         { display: inline-block; background: #fff; color: var(--rose); padding: 10px 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; border-radius: var(--radius); transition: var(--trans); }
.hero-btn:hover   { background: var(--gold); color: #fff; }
.hero-dots        { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-dot         { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; transition: var(--trans); }
.hero-dot.active  { background: #fff; width: 20px; border-radius: 3px; }

/* ── Section ─────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 768px) { .section { padding: 48px 20px; } }
.section-header  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-subtitle { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.section-title   { font-family: 'Cormorant Garamond',serif; font-size: clamp(22px,4vw,36px); font-weight: 400; color: var(--rose); }
.view-all-link   { font-size: 12px; color: var(--rose); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--rose); padding-bottom: 2px; white-space: nowrap; }

/* ── Product Grid ────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3,1fr); gap: 16px; } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4,1fr); gap: 20px; } }

.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--trans); cursor: pointer; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 6px 24px rgba(122,13,52,.12); transform: translateY(-2px); }
.product-card .img-wrap { aspect-ratio: 3/4; overflow: hidden; background: var(--rose-light); position: relative; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond',serif; font-size: 40px; font-style: italic; color: var(--rose-mid); }
.disc-badge { position: absolute; top: 8px; left: 8px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 500; letter-spacing: .05em; border-radius: 2px; padding: 2px 7px; }
.product-card .body { padding: 10px 10px 12px; flex: 1; display: flex; flex-direction: column; align-items: center; }
.product-card .cat-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.product-card .name { font-family: 'Cormorant Garamond',serif; font-size: 15px; font-weight: 400; line-height: 1.3; margin-bottom: 6px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 600px) { .product-card .name { font-size: 17px; } .product-card .body { padding: 12px 14px 16px; } }
.price-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.price { font-size: 14px; font-weight: 500; color: var(--rose); }
.mrp   { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.add-btn { width: 100%; background: #fff; color: var(--rose); border: 1px solid var(--rose); border-radius: var(--radius); padding: 7px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; transition: var(--trans); margin-top: auto; }
.add-btn:hover { background: var(--rose); color: #fff; }

/* ── Toast ───────────────────────────────────────────── */
.toast { position: fixed; bottom: 20px; right: 16px; z-index: 9999; background: var(--rose); color: #fff; border-radius: var(--radius-lg); padding: 12px 18px; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .28s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--rose-dark); color: rgba(255,255,255,.85); margin-top: 48px; }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 16px 28px; }
@media (min-width: 600px)  { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 20px; } }
@media (min-width: 960px)  { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 20px 48px; } }
.footer-brand .logo { font-family: 'Cormorant Garamond',serif; font-size: 22px; font-weight: 300; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,.8); transition: var(--trans); }
.social-link:hover { background: var(--rose); border-color: var(--rose); }
.footer-col h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: var(--trans); }
.footer-col ul li a:hover { color: #fff; }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 16px; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }

/* ── Utility ─────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px 48px; }
@media (min-width: 768px) { .page-wrap { padding: 40px 20px 64px; } }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--rose); }
.breadcrumb span { margin: 0 6px; }
