/* =====================
   BLOOM ATELIER – BASE
   Variables, Reset, Typography, Buttons, Animations
   ===================== */

:root {
  --cream: #fdf8f3;
  --blush: #f5e6e0;
  --rose: #e8b4b0;
  --dusty-rose: #c9847c;
  --sage: #a8b89a;
  --sage-dark: #7a9068;
  --charcoal: #2c2c2c;
  --dark-text: var(--charcoal);
  --mid-gray: #6b6b6b;
  --light-gray: #e8e8e8;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
  --radius: 16px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; display: block; }

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-block;
  background: var(--charcoal);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--dusty-rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 132, 124, 0.35);
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: white;
  transform: translateY(-2px);
}

/* ===================== THEME TOGGLE ===================== */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--charcoal);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
}

.dark-icon { display: none; }
[data-theme="dark"] .light-icon { display: none; }
[data-theme="dark"] .dark-icon { display: block; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== UTILITY ===================== */
.auth-error {
  background: #fce4e1;
  color: #c0392b;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid #f5c6c0;
}

.field-error {
  color: #c62828;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ===================== DARK MODE ===================== */
[data-theme="dark"] {
  --cream: #201215; 
  --blush: linear-gradient(145deg, #4d2b30 0%, #301a1d 100%);
  --rose: #f48fb1; 
  --dusty-rose: #ffb4c9; 
  --sage: #708260;
  --sage-dark: #91a881;
  --charcoal: #ffffff; 
  --dark-text: var(--charcoal);
  --mid-gray: #d4c8ca; 
  --light-gray: #5c3b41; 
  --white: #331d20; 
  --shadow: 0 4px 24px rgba(244, 143, 177, 0.12); 
  --shadow-hover: 0 12px 40px rgba(244, 143, 177, 0.3);
}

[data-theme="dark"] .blog-cat-tag,
[data-theme="dark"] .marquee-wrap,
[data-theme="dark"] .product-card,
[data-theme="dark"] .blog-main-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-method,
[data-theme="dark"] .hero-badge,
[data-theme="dark"] .feature,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .package-card,
[data-theme="dark"] .wallet-history-card,
[data-theme="dark"] .edit-card,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .checkout-form-box,
[data-theme="dark"] .order-summary,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .modal-box,
[data-theme="dark"] .m-pm-btn,
[data-theme="dark"] .qty-btn,
[data-theme="dark"] .sort-select,
[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .edit-field input,
[data-theme="dark"] .newsletter-form input,
[data-theme="dark"] .social-btn {
  background: var(--white) !important;
  color: var(--charcoal) !important;
  border-color: var(--light-gray) !important;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .quick-add,
[data-theme="dark"] .quick-wishlist,
[data-theme="dark"] .auth-submit-btn,
[data-theme="dark"] .newsletter-form button,
[data-theme="dark"] .toast,
[data-theme="dark"] .btn-add,
[data-theme="dark"] .btn-save,
[data-theme="dark"] .modal-next,
[data-theme="dark"] .modal-confirm,
[data-theme="dark"] .btn-logout {
  color: var(--white) !important;
}

[data-theme="dark"] .navbar {
  background: rgba(28, 25, 24, 0.92);
  border-bottom: 1px solid var(--light-gray);
}

[data-theme="dark"] .nav-dropdown-menu {
  background: var(--white);
  border-color: var(--light-gray);
}

[data-theme="dark"] .auth-form-section,
[data-theme="dark"] .eta-banner {
  background: var(--cream);
}


[data-theme="dark"] .footer,
[data-theme="dark"] .footer-brand h3,
[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .track-card,
[data-theme="dark"] .order-items-card,
[data-theme="dark"] .delivery-card,
[data-theme="dark"] .delivery-field p,
[data-theme="dark"] .rating-num,
[data-theme="dark"] .reviewer-name,
[data-theme="dark"] .bal-amount {
  color: var(--white);
}

[data-theme="dark"] .about-strip-features .feature,
[data-theme="dark"] .auth-side,
[data-theme="dark"] .story-img,
[data-theme="dark"] .about-hero,
[data-theme="dark"] .newsletter,
[data-theme="dark"] .page-hero,
[data-theme="dark"] .review-write,
[data-theme="dark"] .ordered-item-img{
  background: var(--white);
}

[data-theme="dark"] .reviews-strip .review-item {
  background: var(--blush);
}

[data-theme="dark"] .reviews-strip h2,
[data-theme="dark"] .eta-text h3,
[data-theme="dark"] .ordered-item-info p,
[data-theme="dark"] .delivery-field label{
  color: var(--white);
}
