/* ==========================================================================
   CHERRY ADORN - THE LITTLE JEWELLERY STUDIO
   Mobile Responsive Custom Design System & Theme Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Grand+Hotel&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --bg-blush: #FFF0F4;
  --bg-card: #FFFFFF;
  --cherry-red: #E53855;
  --cherry-dark: #C82338;
  --rose-pink: #F7A8B8;
  --rose-light: #FCE4EC;
  --choco-brown: #4A2429;
  --choco-light: #6E3940;
  --sparkle-gold: #D4A359;
  --gold-light: #FBE6AD;
  --leaf-green: #7BB661;
  --shadow-soft: 0 10px 25px -5px rgba(74, 36, 41, 0.08);
  --shadow-hover: 0 18px 35px -5px rgba(229, 56, 85, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-blush);
  color: var(--choco-brown);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utility */
.font-logo {
  font-family: 'Grand Hotel', cursive;
}
.font-heading {
  font-family: 'Fredoka', sans-serif;
}

/* Instagram Theme Gradient */
.bg-instagram-gradient {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.text-instagram-gradient {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-blush);
}
::-webkit-scrollbar-thumb {
  background: var(--rose-pink);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cherry-red);
}

/* ==================== INSTAGRAM REELS & GALLERY CARDS ==================== */
.reel-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--rose-pink);
  box-shadow: var(--shadow-soft);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #000000;
}

.reel-card:hover {
  transform: translateY(-6px);
  border-color: var(--cherry-red);
  box-shadow: 0 16px 35px rgba(229, 56, 85, 0.25);
}

.reel-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cherry-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.reel-card:hover .reel-play-btn {
  transform: scale(1.18);
  background: var(--cherry-red);
  color: #FFFFFF;
}

/* Vertical 9:16 Aspect Ratio for Reels */
.aspect-reel {
  aspect-ratio: 9 / 16;
}

/* ==================== MOBILE RESPONSIVE SCROLLING POSTER CAROUSEL ==================== */
.poster-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 2.5px solid var(--rose-pink);
  box-shadow: 0 10px 30px rgba(229, 56, 85, 0.12);
  background: var(--bg-card);
}

@media (min-width: 640px) {
  .poster-carousel-container {
    border-radius: 32px;
    border-width: 3.5px;
  }
}

.poster-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.poster-slide {
  min-width: 100%;
  min-height: 280px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 2.5rem 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .poster-slide {
    min-height: 380px;
    padding: 3.5rem 4.5rem;
    flex-direction: row;
    text-align: left;
  }
}

.poster-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--choco-brown);
  border: 1.5px solid var(--rose-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .poster-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    border-width: 2px;
  }
}

.poster-nav-btn:hover {
  background: var(--cherry-red);
  color: #FFFFFF;
  border-color: var(--cherry-red);
  transform: translateY(-50%) scale(1.1);
}

.poster-nav-prev { left: 8px; }
.poster-nav-next { right: 8px; }

@media (min-width: 640px) {
  .poster-nav-prev { left: 20px; }
  .poster-nav-next { right: 20px; }
}

.poster-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.poster-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(74, 36, 41, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.poster-dot.active {
  width: 24px;
  background: var(--cherry-red);
}

/* ==================== MOBILE MENU SLIDE OVER ==================== */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: 10px 0 30px rgba(74, 36, 41, 0.2);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.open {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(74, 36, 41, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Animations */
@keyframes floatSparkle {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-12px) rotate(15deg) scale(1.15);
    opacity: 1;
  }
}

.animate-sparkle {
  animation: floatSparkle 4s ease-in-out infinite;
}
.animate-sparkle-delayed {
  animation: floatSparkle 4s ease-in-out 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 56, 85, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 56, 85, 0);
  }
}

.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

/* Product Card Styling */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid #FCE4EC;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-pink);
  box-shadow: var(--shadow-hover);
}

.product-card .img-wrapper {
  background: radial-gradient(circle, #FFF0F4 0%, #FCE4EC 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #FCE4EC;
}

.product-card .img-wrapper img {
  transition: transform 0.5s ease;
}

.product-card:hover .img-wrapper img {
  transform: scale(1.08);
}

/* Horizontal Scrollable Filter Bar for Mobile */
.filter-bar-scrollable {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar-scrollable::-webkit-scrollbar {
  display: none;
}

/* Buttons */
.btn-cherry {
  background-color: var(--cherry-red);
  color: #FFFFFF;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(229, 56, 85, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cherry:hover, .btn-cherry:active {
  background-color: var(--cherry-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(229, 56, 85, 0.4);
}

.btn-outline-gold {
  border: 2px solid var(--sparkle-gold);
  color: var(--choco-brown);
  background: transparent;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-gold:hover, .btn-outline-gold:active {
  background: var(--gold-light);
  border-color: var(--sparkle-gold);
  color: var(--choco-brown);
}

/* Filter Pills */
.filter-btn {
  background: #FFFFFF;
  color: var(--choco-brown);
  border: 2px solid #FCE4EC;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--cherry-red);
  color: #FFFFFF;
  border-color: var(--cherry-red);
  box-shadow: 0 4px 14px rgba(229, 56, 85, 0.3);
}

/* Safety Badge */
.safety-pill {
  background: #FFF8FA;
  border: 1.5px solid var(--rose-pink);
  color: var(--choco-brown);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Quick View Modal */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(74, 36, 41, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 0.75rem;
}

.modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 3px solid var(--rose-pink);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-wrapper.open .modal-content {
  transform: scale(1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: var(--choco-brown);
  color: #FFFFFF;
  border: 2px solid var(--sparkle-gold);
  border-radius: 9999px;
  padding: 0.75rem 1.4rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  animation: toastPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
