/* =========================================================
   M&ZCollection - Main Stylesheet
   Theme: Modern Luxury Fashion (Pink + White + Gold)
   ========================================================= */

:root {
  --mz-pink: #d94f7a;
  --mz-pink-light: #fdf0f5;
  --mz-pink-dark: #b13b60;
  --mz-gold: #c9a24b;
  --mz-gold-light: #f4e9d1;
  --mz-dark: #2b2230;
  --mz-white: #ffffff;
  --mz-text: #4a4048;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--mz-text);
  background: var(--mz-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display { font-family: var(--font-display); color: var(--mz-dark); }

a { text-decoration: none; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--mz-dark);
  color: #eee;
  font-size: 13px;
  padding: 6px 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--mz-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  z-index: 1030;
}
.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--mz-dark) !important;
}
.brand-logo span { color: var(--mz-pink); }

.main-menu .nav-link {
  color: var(--mz-dark);
  font-weight: 500;
  font-size: .95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.main-menu .nav-link:hover,
.main-menu .nav-link.active { color: var(--mz-pink); }
.main-menu .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0;
  height: 2px; background: var(--mz-gold);
  transform: scaleX(0); transition: transform .25s ease;
}
.main-menu .nav-link:hover::after { transform: scaleX(1); }

.mega-menu { border: none; border-top: 2px solid var(--mz-gold); border-radius: 0 0 10px 10px; min-width: 220px; }

.header-icons .icon-link { color: var(--mz-dark); font-size: 1.15rem; position: relative; }
.header-icons .icon-link:hover { color: var(--mz-pink); }
.badge-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--mz-pink); color: #fff;
  border-radius: 50%; font-size: 10px;
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
}

.live-search-wrap { position: relative; width: 190px; }
.live-search-results {
  position: absolute; top: 40px; left: 0; right: 0;
  background: #fff; border-radius: 8px; max-height: 340px; overflow-y: auto;
  z-index: 1050; display: none;
}
.live-search-results.show { display: block; }
.live-search-item { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #f2f2f2; align-items: center; }
.live-search-item img { width: 42px; height: 52px; object-fit: cover; border-radius: 4px; }
.live-search-item:hover { background: var(--mz-pink-light); }

/* ---------- Buttons ---------- */
.btn-pink {
  background: var(--mz-pink); color: #fff; border: none;
  padding: .6rem 1.6rem; border-radius: 30px; font-weight: 500;
  transition: all .25s ease;
}
.btn-pink:hover { background: var(--mz-pink-dark); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--mz-gold); color: #fff; border: none; border-radius: 30px; }
.btn-gold:hover { background: #b28d3a; color: #fff; }
.btn-outline-pink {
  border: 1.5px solid var(--mz-pink); color: var(--mz-pink); border-radius: 30px; background: transparent;
}
.btn-outline-pink:hover { background: var(--mz-pink); color: #fff; }

/* ---------- Hero Slider ---------- */
.hero-slide {
  height: 520px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  position: relative;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,34,48,.65) 0%, rgba(43,34,48,.15) 60%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 560px; }
.hero-content .eyebrow { color: var(--mz-gold); letter-spacing: 3px; font-size: .8rem; text-transform: uppercase; }
.hero-content h1 { font-size: 3rem; font-weight: 700; color: #fff; }
@media (max-width: 767px) {
  .hero-slide { height: 420px; }
  .hero-content h1 { font-size: 2rem; }
}

/* ---------- Section titles ---------- */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow { color: var(--mz-pink); letter-spacing: 3px; font-size: .8rem; text-transform: uppercase; font-weight: 600; }
.section-title h2 { font-size: 2.1rem; margin-top: .3rem; }
.section-title .divider { width: 60px; height: 3px; background: var(--mz-gold); margin: .8rem auto 0; border-radius: 3px; }

/* ---------- Product Card ---------- */
.product-card {
  border: none; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: all .3s ease; height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(217,79,122,.18); }
.product-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--mz-pink-light); }
.product-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb-wrap img { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 10px; left: 10px; background: var(--mz-pink); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .5px;
}
.product-badge.gold { background: var(--mz-gold); }
.product-quick-actions {
  position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px); transition: all .3s ease;
}
.product-card:hover .product-quick-actions { opacity: 1; transform: translateX(0); }
.product-quick-actions button {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: var(--mz-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.product-quick-actions button:hover { background: var(--mz-pink); color: #fff; }
.product-info { padding: 14px 16px; }
.product-info .cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--mz-gold); }
.product-info h3 { font-size: .98rem; margin: 4px 0; font-family: var(--font-body); font-weight: 600; color: var(--mz-dark); }
.product-info h3 a { color: inherit; }
.price-final { color: var(--mz-pink); font-weight: 700; }
.price-original { color: #aaa; text-decoration: line-through; font-size: .85rem; margin-left: 6px; }
.rating-stars { color: var(--mz-gold); font-size: .8rem; }

/* ---------- Flash Sale Timer ---------- */
.flash-sale-section { background: linear-gradient(135deg, var(--mz-pink-light), #fff); padding: 3rem 0; }
.countdown-box { display: flex; gap: 10px; justify-content: center; }
.countdown-box .num-box { background: var(--mz-dark); color: #fff; border-radius: 8px; padding: 10px 14px; min-width: 60px; text-align: center; }
.countdown-box .num-box .num { font-size: 1.4rem; font-weight: 700; }
.countdown-box .num-box .lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Category card ---------- */
.category-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,34,48,.75), transparent 60%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
}
.category-card .overlay span { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mz-dark); color: #ddd; }
.footer-logo { font-family: var(--font-display); color: #fff; font-size: 1.5rem; }
.footer-logo span { color: var(--mz-pink); }
.text-light-50 { color: rgba(255,255,255,.55); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--mz-gold); }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-right: 8px;
}
.social-icons a:hover { background: var(--mz-pink); }

/* ---------- WhatsApp float + back to top ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 1040;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--mz-pink); color: #fff;
  display: none; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
#backToTop.show { display: block; }

/* ---------- Loader ---------- */
#pageLoader {
  position: fixed; inset: 0; background: #fff; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease;
}
.loader-ring { width: 54px; height: 54px; border: 4px solid var(--mz-pink-light); border-top-color: var(--mz-pink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Misc utility ---------- */
.breadcrumb-wrap { background: var(--mz-pink-light); padding: 14px 0; }
.card-elevated { border: none; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.form-control:focus, .form-select:focus { border-color: var(--mz-pink); box-shadow: 0 0 0 .2rem rgba(217,79,122,.15); }
.qty-input { width: 60px; text-align: center; }

/* Order tracking timeline */
.tracking-timeline { list-style: none; padding: 0; margin: 0; }
.tracking-timeline li {
  position: relative; padding-left: 40px; padding-bottom: 30px; border-left: 2px solid #eee; margin-left: 14px;
}
.tracking-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.tracking-timeline li .dot {
  position: absolute; left: -13px; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #eee; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.tracking-timeline li.done .dot { background: var(--mz-pink); }
.tracking-timeline li.active .dot { background: var(--mz-gold); }

@media (max-width: 991px) {
  .live-search-wrap { display: none; }
}
