/* ============================================================
   NOOR ATELIER — styles.css
   Global styles: variables, reset, nav, footer, shared UI
   ============================================================ */


/* ── 1. DESIGN TOKENS ── */
:root {
  --ivory:         #F8F5F0;
  --emerald:       #0E4B43;
  --emerald-light: #155e54;
  --emerald-dark:  #09332d;
  --gold:          #C7A66A;
  --gold-light:    #d9bc8e;
  --beige:         #E8DDCF;
  --charcoal:      #222222;
  --text:          #333333;
  --text-mid:      #666666;
  --text-light:    #999999;
  --border:        #ddd5c8;
  --shadow:        0 4px 24px rgba(34,34,34,0.08);
  --shadow-lg:     0 12px 48px rgba(34,34,34,0.14);
}


/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Poppins', sans-serif; background: var(--ivory); color: var(--charcoal); overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul,ol { list-style: none; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }


/* ── 3. TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 500; line-height: 1.15; }

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--emerald); }


/* ── 4. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary { background: var(--emerald); color: white; }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-outline { background: transparent; color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: white; }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: #b8964e; }
.btn-sm { padding: 10px 22px; font-size: 0.67rem; }


/* ── 5. ANNOUNCEMENT BAR ── */
.nav-announcement {
  background: var(--emerald);
  color: var(--ivory);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.nav-announcement span { color: var(--gold); font-weight: 600; }


/* ── 6. HEADER & NAV ── */
header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--emerald);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald); border-color: var(--gold); }
.nav-icons { display: flex; align-items: center; gap: 20px; }
.nav-icon {
  background: none; border: none; cursor: pointer;
  color: var(--charcoal); font-size: 1.1rem;
  position: relative; transition: color 0.2s; padding: 4px;
}
.nav-icon:hover { color: var(--emerald); }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--emerald); color: white;
  font-size: 0.55rem; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.currency-toggle {
  font-size: 0.68rem; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--border);
  padding: 5px 10px; color: var(--text-mid); border-radius: 2px; transition: all 0.2s;
}
.currency-toggle:hover { border-color: var(--emerald); color: var(--emerald); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); }


/* ── 7. MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; background: var(--ivory);
  z-index: 600; display: none; flex-direction: column;
  padding: 80px 32px 40px; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  color: var(--charcoal); padding: 12px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--emerald); }
.mobile-nav-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--charcoal); }
.mobile-cart {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: var(--emerald); color: white; width: 52px; height: 52px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 1.2rem;
  box-shadow: var(--shadow-lg); display: none; align-items: center; justify-content: center;
}


/* ── 8. SEARCH DRAWER ── */
.search-overlay { position: fixed; inset: 0; background: rgba(34,34,34,0.6); z-index: 700; display: none; backdrop-filter: blur(4px); }
.search-overlay.open { display: block; }
.search-drawer {
  position: fixed; top: 0; left: 0; right: 0;
  background: white; z-index: 750; padding: 40px 80px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-drawer.open { transform: translateY(0); }
.search-drawer-inner { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.search-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.search-input-wrap { width: 100%; display: flex; border-bottom: 2px solid var(--charcoal); padding-bottom: 12px; gap: 12px; align-items: center; }
.search-main-input { flex: 1; border: none; outline: none; font-family: 'Playfair Display', serif; font-size: 1.8rem; font-style: italic; color: var(--charcoal); background: transparent; }
.search-main-input::placeholder { color: var(--border); }
.search-close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-mid); }
.search-hints { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.search-hint { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); border: 1px solid var(--border); padding: 6px 14px; cursor: pointer; background: none; transition: all 0.2s; }
.search-hint:hover { border-color: var(--emerald); color: var(--emerald); }


/* ── 9. NEWSLETTER POPUP ── */
.popup-overlay { position: fixed; inset: 0; background: rgba(34,34,34,0.7); z-index: 800; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.popup-overlay.open { display: flex; }
.popup-box { background: var(--ivory); max-width: 500px; width: 90%; position: relative; animation: popIn 0.4s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.popup-img { height: 200px; background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-light)); display: flex; align-items: center; justify-content: center; text-align: center; }
.popup-img-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-style: italic; color: white; margin-bottom: 4px; }
.popup-img-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.popup-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.2); border: none; color: white; font-size: 1.1rem; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.popup-body { padding: 36px 40px; }
.popup-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.popup-sub { font-size: 0.83rem; color: var(--text-mid); margin-bottom: 24px; line-height: 1.6; }
.popup-form { display: flex; }
.popup-form input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--border); font-family: 'Poppins', sans-serif; font-size: 0.82rem; outline: none; }
.popup-form button { padding: 13px 20px; background: var(--emerald); color: white; border: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.popup-skip { text-align: center; margin-top: 16px; font-size: 0.73rem; color: var(--text-light); cursor: pointer; text-decoration: underline; }


/* ── 10. SIZE GUIDE POPUP ── */
.size-guide-overlay { position: fixed; inset: 0; background: rgba(34,34,34,0.7); z-index: 800; display: none; align-items: center; justify-content: center; }
.size-guide-overlay.open { display: flex; }
.size-guide-box { background: white; max-width: 640px; width: 90%; padding: 48px; max-height: 90vh; overflow-y: auto; position: relative; }
.size-guide-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-mid); }
.size-guide-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 24px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.size-table th { background: var(--emerald); color: white; padding: 10px 14px; text-align: left; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.size-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.size-table tr:nth-child(even) td { background: var(--ivory); }


/* ── 11. TOAST ── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--charcoal); color: white;
  padding: 14px 28px; font-size: 0.8rem; z-index: 900;
  transition: transform 0.4s ease;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { color: var(--gold); }


/* ── 12. MARQUEE ── */
.marquee-strip { background: var(--emerald); padding: 14px 0; overflow: hidden; }
.marquee-inner { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.marquee-item { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); padding: 0 48px; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.marquee-item::before { content: '✦'; color: var(--gold); font-size: 0.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ── 13. SHARED PRODUCT CARD ── */
.product-card { background: white; cursor: pointer; transition: box-shadow 0.3s; position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.product-img-bg { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card:hover .product-img-bg { transform: scale(1.05); }
.product-wish { position: absolute; top: 14px; right: 14px; background: white; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 2; }
.product-wish.active { color: #c0392b; }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; font-weight: 600; }
.badge-new  { background: var(--emerald); color: white; }
.badge-sale { background: var(--gold); color: white; }
.product-quick { position: absolute; bottom: 0; left: 0; right: 0; background: var(--emerald); color: white; border: none; padding: 12px; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; cursor: pointer; transform: translateY(100%); transition: transform 0.3s; z-index: 2; }
.product-card:hover .product-quick { transform: translateY(0); }
.product-info { padding: 16px 18px 20px; }
.product-fabric { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.product-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }
.product-price-row { display: flex; align-items: center; gap: 10px; }
.product-price { font-size: 0.88rem; font-weight: 600; color: var(--emerald); }
.product-price-orig { font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; }
.prod-bg-1 { background: linear-gradient(145deg,#3d1a3a,#5c2858 40%,#7a3d75); }
.prod-bg-2 { background: linear-gradient(145deg,#0e3830,#165c4e 40%,#1e7a69); }
.prod-bg-3 { background: linear-gradient(145deg,#2d1f05,#4a3510 40%,#6b5020); }
.prod-bg-4 { background: linear-gradient(145deg,#1a1a3d,#28285c 40%,#3d3d7a); }
.prod-bg-5 { background: linear-gradient(145deg,#8b2020,#c0392b); }
.prod-bg-6 { background: linear-gradient(145deg,#1a3d2a,#2d6b4a); }


/* ── 14. FOOTER ── */
footer { background: var(--charcoal); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 72px 80px 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 56px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: white; margin-bottom: 8px; }
.footer-brand-tagline { font-size: 0.78rem; color: rgba(248,245,240,0.45); line-height: 1.7; margin-bottom: 24px; max-width: 260px; }
.footer-social { display: flex; gap: 12px; }
.footer-social-btn { width: 36px; height: 36px; border: 1px solid rgba(248,245,240,0.15); display: flex; align-items: center; justify-content: center; color: rgba(248,245,240,0.5); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: none; }
.footer-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.8rem; color: rgba(248,245,240,0.5); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.72rem; color: rgba(248,245,240,0.3); letter-spacing: 0.05em; }
.footer-payments { display: flex; gap: 8px; }
.payment-chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 5px 12px; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(248,245,240,0.4); border-radius: 2px; }


/* ── 15. NEWSLETTER SECTION ── */
.newsletter { padding: 80px; background: var(--charcoal); text-align: center; }
.newsletter-inner { max-width: 540px; margin: 0 auto; }
.newsletter .section-eyebrow { color: var(--gold); margin-bottom: 16px; }
.newsletter-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3vw,2.4rem); color: white; margin-bottom: 12px; }
.newsletter-sub { font-size: 0.85rem; color: rgba(248,245,240,0.55); line-height: 1.7; margin-bottom: 36px; }
.newsletter-form { display: flex; max-width: 440px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 14px 20px; border: 1px solid rgba(248,245,240,0.15); background: rgba(255,255,255,0.06); color: white; font-family: 'Poppins', sans-serif; font-size: 0.82rem; outline: none; }
.newsletter-input::placeholder { color: rgba(248,245,240,0.35); }
.newsletter-btn { background: var(--gold); color: white; border: none; padding: 14px 24px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; cursor: pointer; white-space: nowrap; }
.newsletter-btn:hover { background: #b8964e; }


/* ── 16. RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .mobile-cart { display: flex; }
  .footer-top  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-inner   { padding: 0 28px; }
  .footer-inner{ padding: 56px 28px 36px; }
  .newsletter  { padding: 56px 28px; }
}
@media (max-width: 600px) {
  .footer-top      { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner    { padding: 40px 20px 24px; }
  .nav-inner       { padding: 0 20px; }
  .newsletter      { padding: 56px 20px; }
  .newsletter-form { flex-direction: column; }
}
