/* ============================================================
   pages.css — Mannat Shared Styles for Inner Pages
   Include in: faq.php, contact.php, about.php, etc.
   ============================================================ */

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

/* ─── CSS VARIABLES ─── */
:root {
  --rose:        #c9626a;
  --rose-light:  #e8a0a5;
  --rose-pale:   #fdf0f1;
  --gold:        #c9a96e;
  --gold-light:  #e8d5b0;
  --cream:       #faf6f0;
  --ink:         #2a1f1f;
  --ink-soft:    #5c4848;
  --white:       #ffffff;
  --border:      rgba(201,98,106,0.18);
  --shadow:      0 8px 40px rgba(42,31,31,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

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

/* ─── ANNOUNCEMENT BAR ─── */
.announcement {
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

/* ─── NAVBAR ─── */
nav#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,246,240,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: box-shadow .3s;
}
nav#navbar.scrolled { box-shadow: 0 4px 30px rgba(42,31,31,0.08); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600; letter-spacing: 3px;
  color: var(--rose); text-decoration: none;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  position: relative; padding-bottom: 3px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--rose);
  transition: width .3s;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }

.nav-icons { display: flex; gap: 20px; align-items: center; }
.nav-icons a {
  color: var(--ink-soft); font-size: 17px;
  text-decoration: none; transition: color .2s;
  position: relative;
}
.nav-icons a:hover { color: var(--rose); }

.cart-badge {
  position: absolute; top: -7px; right: -9px;
  background: var(--rose); color: #fff;
  font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ─── HAMBURGER ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ─── MOBILE DRAWER ─── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(42,31,31,.5);
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.mobile-drawer {
  position: fixed; top: 0; left: -100%;
  width: 80vw; max-width: 320px;
  height: 100vh;
  background: var(--cream);
  z-index: 9000;
  display: flex; flex-direction: column;
  transition: left .35s cubic-bezier(.77,0,.18,1);
  box-shadow: 4px 0 30px rgba(42,31,31,.15);
}
.mobile-drawer.open { left: 0; }

.drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.drawer-header img { height: 36px; object-fit: contain; }
.drawer-header i {
  font-size: 18px; color: var(--ink-soft);
  cursor: pointer; padding: 4px;
  transition: color .2s;
}
.drawer-header i:hover { color: var(--rose); }

.drawer-body { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 10px; }

.drawer-user { padding: 18px 20px; }
.drawer-login-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--rose); color: #fff;
  padding: 12px 18px; border-radius: 6px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.drawer-login-btn:hover { background: #b8555d; }
.drawer-login-btn i { font-size: 20px; }

.drawer-profile-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); padding: 10px 0;
}
.drawer-profile-link i { font-size: 32px; color: var(--rose); }
.drawer-profile-link strong { display: block; font-size: 15px; color: var(--ink); }
.drawer-profile-link small { font-size: 12px; color: var(--ink-soft); }

.drawer-divider { height: 1px; background: var(--border); margin: 4px 0; }

.mobile-drawer .drawer-links { list-style: none; padding: 8px 0; }
.mobile-drawer .drawer-links li a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  font-size: 14px; color: var(--ink-soft);
  text-decoration: none; font-weight: 400;
  transition: background .2s, color .2s;
}
.mobile-drawer .drawer-links li a i {
  width: 18px; text-align: center;
  font-size: 14px; color: var(--rose);
}
.mobile-drawer .drawer-links li a:hover { background: var(--rose-pale); color: var(--rose); }

.drawer-extra { padding: 8px 0; }
.drawer-extra a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  font-size: 13px; color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.drawer-extra a i { width: 18px; text-align: center; font-size: 13px; color: var(--rose-light); }
.drawer-extra a:hover { background: var(--rose-pale); color: var(--rose); }
.drawer-extra a.logout-link { color: #c0392b; }
.drawer-extra a.logout-link i { color: #c0392b; }

/* userSection / loginSection hide on mobile */
@media (max-width: 768px) {
  #userSection, #loginSection { display: none !important; }
}

/* ─── SEARCH BAR ─── */
.search-tag {
  display: inline-block; padding: 6px 14px;
  background: var(--rose-pale); color: var(--rose);
  border: 1px solid var(--rose-light); border-radius: 100px;
  font-size: 12px; cursor: pointer;
  transition: background .2s, color .2s;
  font-family: 'DM Sans', sans-serif;
}
.search-tag:hover { background: var(--rose); color: #fff; }

.search-suggestion-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 5vw; cursor: pointer;
  transition: background .2s; text-decoration: none;
}
.search-suggestion-item:hover { background: var(--rose-pale); }
.search-suggestion-item img {
  width: 44px; height: 54px; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--border); flex-shrink: 0;
}
.search-suggestion-item .sug-name { font-size: 14px; color: var(--ink); font-family: 'Cormorant Garamond', serif; }
.search-suggestion-item .sug-price { font-size: 12px; color: var(--rose); margin-top: 2px; }
.search-suggestion-item .sug-cat { font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }

/* ─── FOOTER ─── */
footer {
  background: #1a1212;
  padding: 70px 8vw 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; letter-spacing: 3px;
  color: var(--rose); margin-bottom: 14px; display: block;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 22px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 14px;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.social-links a:hover { border-color: var(--rose); color: var(--rose); }

.footer-col h5 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 20px; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .2s;
}
.footer-col ul a:hover { color: var(--rose-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3);
}

/* ─── TOAST ─── */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff;
  padding: 12px 28px; border-radius: 100px;
  font-size: 13px; z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  border-left: 3px solid var(--rose);
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── COMMON BUTTONS ─── */
.btn-primary {
  background: var(--rose); color: #fff;
  padding: 14px 34px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: #b8555d; transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--ink);
  padding: 13px 34px;
  border: 1.5px solid var(--ink); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .25s, color .25s, transform .2s;
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }

/* ─── SECTION COMMON ─── */
.section { padding: 90px 8vw; }
.section-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--rose); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; max-width: 40px; height: 1px; background: var(--rose-light); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 54px); font-weight: 400;
  line-height: 1.2; color: var(--ink); margin-bottom: 50px;
}
.section-title em { font-style: italic; color: var(--rose); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}