/* ========================================================= */
/* MAMASLOVE — LUXURY BOUTIQUE BAKERY STYLES                */
/* Palette: Subtle Light Pink, Rose Gold, Deep Brown, Gold, Deep Ruby */
/* ========================================================= */

:root {
  --color-bg-lightpink: #FAF0F3;
  --color-bg-card: #FFFFFF;
  --color-bg-cream: #F8E8EC;
  --color-blush-primary: #F5C1D1;
  --color-blush-darker: #D99AAA;
  --color-blush-light: #FDEEF2;
  --color-deep-brown: #3A2525;
  --color-near-black: #241718;
  --color-muted-gold: #C9A46A;
  --color-gold-light: #E8D0AB;
  --color-deep-ruby: #8B263E;
  --color-ruby-subtle: rgba(139, 38, 62, 0.12);
  --color-pure-white: #FFFFFF;
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-lightpink);
  color: var(--color-near-black);
}

body {
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg-lightpink);
  color: var(--color-near-black);
  position: relative;
}

/* Hide OS Cursor on Desktop for Custom Luxury Cursor */
@media (min-width: 768px) {
  *, *::before, *::after, body, html, a, button, input, select, textarea, label, [role="button"],
  #privacyGate, #privacyGate *, .gate-card, .gate-card *, .gate-btn, .gate-view-link, .reader-btn, .reader-back-btn,
  #cart-drawer, #cart-drawer *, #product-modal, #product-modal *, #cart-backdrop,
  #privacy-consent-wrapper, #privacy-policy-modal, .privacy-card, .policy-content,
  .luxury-card, .product-card, .editorial-img-container, .btn-primary, .btn-whatsapp, .btn-outline {
    cursor: none !important;
  }
}

/* Custom Luxury Cursor Elements */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-deep-ruby);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000005 !important;
  will-change: transform;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(217, 154, 170, 0.75);
  background-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000004 !important;
  will-change: transform;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Expanding hover state */
#cursor-follower.cursor-hover {
  border-color: #8B263E !important;
  background-color: rgba(245, 193, 209, 0.3) !important;
  box-shadow: 0 0 16px rgba(139, 38, 62, 0.2) !important;
}

/* Mousedown click compression state */
#cursor-follower.cursor-down {
  border-color: #3A2525 !important;
  background-color: rgba(139, 38, 62, 0.25) !important;
}

#custom-cursor.cursor-down {
  background-color: #3A2525 !important;
}

/* Click Ripple Ring Effect */
.cursor-ripple {
  position: fixed;
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #8B263E;
  background: rgba(245, 193, 209, 0.3);
  transform: translate(-50%, -50%) scale(0.4);
  animation: cursorRippleAnim 0.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
  z-index: 10000003 !important;
}

@keyframes cursorRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

/* Product Modal Scroll & Viewport Lock */
body.modal-open {
  overflow: hidden !important;
}

#product-modal-dialog {
  display: flex !important;
  flex-direction: column !important;
  max-height: calc(100dvh - 28px) !important;
  max-height: calc(100vh - 28px) !important;
  box-sizing: border-box !important;
}

#product-modal-content {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  scrollbar-width: thin;
  scrollbar-color: var(--color-blush-darker) var(--color-bg-lightpink);
}

/* Custom Rose-Gold Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-lightpink);
}
::-webkit-scrollbar-thumb {
  background: var(--color-blush-darker);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-deep-ruby);
}

/* Typography Utility Classes */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Garamond, serif;
}

.font-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-clean {
  font-family: 'Montserrat', sans-serif;
}

/* Editorial Spacing & Tracking */
.tracking-luxury {
  letter-spacing: 0.22em;
}

.tracking-ultra {
  letter-spacing: 0.35em;
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #8B263E 0%, #C9A46A 60%, #D99AAA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 3D Perspective Container for Hero Tilt */
.perspective-1000 {
  perspective: 1200px;
}

/* Luxury Card & Surfaces */
.luxury-card {
  background-color: var(--color-pure-white);
  border: 1px solid rgba(217, 154, 170, 0.28);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(58, 37, 37, 0.03);
}

.luxury-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blush-darker);
  box-shadow: 0 16px 35px rgba(58, 37, 37, 0.08), 0 0 25px rgba(245, 193, 209, 0.35);
}

/* Luxury Primary Button */
.btn-primary {
  background-color: var(--color-blush-primary);
  color: var(--color-near-black);
  border: 1px solid var(--color-blush-darker);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(245, 193, 209, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-deep-ruby);
  color: var(--color-pure-white);
  border-color: var(--color-deep-ruby);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 38, 62, 0.35);
}

/* Luxury Secondary Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-deep-brown);
  border: 1px solid var(--color-deep-brown);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--color-deep-brown);
  color: var(--color-pure-white);
  transform: translateY(-2px);
}

/* WhatsApp Brand Button */
.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: 1px solid #1EBE5D;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Subtle Floral Dot Matrix Background */
.bg-floral-pattern {
  background-color: var(--color-bg-lightpink);
  background-image: radial-gradient(rgba(217, 154, 170, 0.35) 0.8px, transparent 0.8px);
  background-size: 28px 28px;
}

/* Soft ambient lighting glow */
.ambient-glow {
  background: radial-gradient(circle at 50% 50%, rgba(245, 193, 209, 0.4) 0%, rgba(201, 164, 106, 0.12) 45%, transparent 75%);
}

/* Filter Pill Active */
.filter-pill.active {
  background-color: var(--color-deep-ruby) !important;
  color: var(--color-pure-white) !important;
  border-color: var(--color-deep-ruby) !important;
}

/* Smooth Drawer Transitions */
#cart-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cart-backdrop {
  transition: opacity 0.3s ease;
}

/* Image Hover Zoom Container */
.editorial-img-container {
  overflow: hidden;
  border-radius: 6px;
}

.editorial-img-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-img-container:hover img {
  transform: scale(1.05);
}

/* Custom Cursor Effects */
#custom-cursor, #cursor-follower {
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ========================================================= */
/* PRIVACY CONSENT & POLICY READER STYLES                    */
/* ========================================================= */
body.website-locked {
  overflow: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
}

#privacy-consent-wrapper,
#privacy-policy-modal {
  pointer-events: auto !important;
  user-select: auto !important;
}

.privacy-card {
  background-color: var(--color-pure-white);
  border: 1px solid rgba(217, 154, 170, 0.45);
  box-shadow: 0 25px 60px -15px rgba(58, 37, 37, 0.25), 0 0 35px rgba(245, 193, 209, 0.35);
}

.policy-content h1, .policy-content h2, .policy-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-deep-brown);
}

.policy-content h2 {
  border-bottom: 1px solid rgba(217, 154, 170, 0.3);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-ruby);
}

.policy-content p, .policy-content li {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #3A2525;
  line-height: 1.75;
}

.policy-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.policy-content strong {
  color: var(--color-deep-brown);
  font-weight: 600;
}

