/* =====================
   BLOOM ATELIER – LAYOUT
   Navbar, Footer, Hero, Sections, Marquee, Responsive
   ===================== */

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  border-bottom: 1px solid rgba(232, 180, 176, 0.3);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--dusty-rose);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.cart-icon { font-size: 1rem !important; position: relative; }
.cart-count {
  background: var(--dusty-rose);
  color: white;
  font-size: 0.65rem;
  border-radius: 50%;
  padding: 1px 5px;
  margin-left: 2px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

.user-greeting {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a4f48;
  letter-spacing: 0.03em;
}

a.wishlist-icon {
  font-size: 19px;
  line-height: 1;
  display: inline-block;
  color: #8a4f48;
  transition: transform 0.2s ease;
}

a.wishlist-icon:hover { transform: scale(1.2); }

/* Nav Dropdown */
.nav-dropdown { position: relative; list-style: none; }

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover {
  background: rgba(201, 132, 124, 0.1);
  color: var(--charcoal);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  border: 1px solid #f0e6e4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  min-width: 180px;
  padding: 0.4rem 0;
  list-style: none;
  z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  color: var(--dark-text);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: #fdf5f3; }

.nav-dropdown-divider {
  height: 1px;
  background: #f0e6e4;
  margin: 0.3rem 0;
}

/* Loyalty Nav Badge */
.loyalty-nav-badge {
  background: linear-gradient(135deg, #f5c6c0, #d4b0e8);
  color: var(--dark-text);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  gap: 4rem;
  background: linear-gradient(135deg, var(--cream) 60%, var(--blush) 100%);
}

.hero-text {
  flex: 1;
  animation: fadeInUp 0.9s ease both;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a4f48;
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.4rem 1rem;
  background: var(--blush);
  border-radius: 50px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero-text h1 em { font-style: italic; color: #8a4f48; }

.hero-text p {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1.2s ease both;
}

.hero-img-placeholder {
  width: clamp(280px, 40vw, 480px);
  height: clamp(350px, 55vw, 600px);
  background: linear-gradient(145deg, var(--blush), var(--rose));
  border-radius: 200px 200px 160px 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
}

.hero-img-inner { text-align: center; color: white; }
.hero-img-inner span { font-size: 4rem; display: block; margin-bottom: 0.5rem; }
.hero-img-inner p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: white;
}

.hero-badge {
  position: absolute;
  bottom: 2rem; right: 1rem;
  background: white;
  border-radius: 50%;
  width: 90px; height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  letter-spacing: 0.05em;
}

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--blush), var(--cream));
  padding: 10rem 5% 5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
}

.page-hero p {color: #444444; margin-top: 0.8rem; font-size: 1rem; }

/* ===================== MARQUEE ===================== */
.marquee-wrap {
  background: var(--charcoal);
  color: white;
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ===================== SECTIONS ===================== */
.section { padding: 6rem 5%; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.section-header p { color: var(--mid-gray); font-size: 0.95rem; }

.view-all {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #8a4f48;
  transition: gap var(--transition);
}

.view-all:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 5rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.2rem;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links ul li a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--rose); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  text-align: center;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { flex-direction: column; padding-top: 7rem; text-align: center; }
  .hero-buttons { justify-content: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}