@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --primary-pink: #ffc0cb;
  --dark-pink: #ff69b4;
  --text-color: #333;
  --bg-color: #fff0f5; /* LavenderBlush */
  --card-bg: #ffffff;
  --lace-color: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar for WebKit & Firefox */
:root {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-pink) #ffe6ea;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--dark-pink);
  border-radius: 20px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #d14782;
}

body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  /* Sticky Footer Setup */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Parallax Background (SVG Pattern) */
  background-color: var(--bg-color);
  background-image: url("../images/flower_bg.svg");
  background-size: 100px 100px; /* Adjust size */
  background-repeat: repeat;
  /* Diagonal Animation */
  animation: diagonalMove 10s linear infinite;
  position: relative;
}

/* Semi-transparent overlay to reduce background brightness */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 240, 245, 0.6); /* LavenderBlush at 60% opacity */
  pointer-events: none;
  z-index: -1;
}

@keyframes diagonalMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.content-wrapper {
  flex: 1;
  width: 100%; /* Ensure it takes full width */
}

header {
  background-color: var(--dark-pink);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  border-bottom: 5px solid var(--lace-color);
  z-index: 100; /* Keep it high */
}

.header-character {
  position: absolute;
  /* 👇 AJUSTA ESTOS DOS VALORES PARA MOVER A SALLY MANUALMENTE 👇 */
  left: 170px;   /* Usamos left para anclarla siempre junto al logo */
  right: auto;   /* Borramos el right que tenía antes */
  bottom: -72px; /* Esta altura está perfecta */
  /* 👆 ======================================================= 👆 */
  height: 200px;
  pointer-events: auto;
  z-index: 105;
  display: block;
  cursor: pointer;
  animation: breathe 3s ease-in-out infinite;
  transform-origin: bottom center;
  /* Promote to its own compositor layer so the infinite breathe
     animation doesn't repaint the header's siblings every frame. */
  will-change: transform;
}

@keyframes breathe {
  0%,
  100% {
    transform: scaleY(1) translateY(0);
  }
  50% {
    transform: scaleY(1.02) translateY(-2px);
  }
}

.header-character:hover {
  animation-play-state: paused;
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 10px 15px rgba(255, 105, 180, 0.4));
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.3s ease;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* Crucial so absolute nav and character anchor correctly */
  min-height: 50px;
}

header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  z-index: 110;
}

/* Helper for exact centering: make left and right columns equal width */
header .logo-container {
  display: flex;
  justify-content: flex-start;
}

header .social-container {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  header nav {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .header-character {
    height: 160px;
    bottom: -65px;
    left: 150px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .header-character {
    height: 130px;
    bottom: -53px;
    left: 120px;
    right: auto;
  }
}

@media (max-width: 576px) {
  .header-character {
    /* En celulares muy pequeños (donde el logo se centra) la volvemos a la derecha mini */
    left: auto;
    right: 0px;
    bottom: -45px;
    height: 100px;
  }
}

/* --- Slanted Hero Carousel --- */
.slanted-hero-wrapper {
  position: relative;
  width: 100%;
  flex: 1; /* Automatically expands to push the footer down */
  overflow: hidden;
  background-color: transparent; /* Lets the cute flower background shine through */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid var(--primary-pink);
}

.slanted-carousel-container {
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 250%; /* Make it extra tall to cover corners when rotated */
  transform: rotate(-15deg);
  display: flex;
  justify-content: center;
  align-items: center; /* This centers the tracks vertically */
  gap: 20px;
  pointer-events: none; /* Let clicks pass through if needed */
}

/* Infinite Scroll Keyframes */
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* Scrolls exactly half its duplicated height */
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.hero-track {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center items within track */
  gap: 20px;
  will-change: transform; /* Hint to browser for GPU accel */
}

#track1 { animation: scrollUp 45s linear infinite; }
#track2 { animation: scrollDown 55s linear infinite; margin-top: -150px; }
#track3 { animation: scrollUp 50s linear infinite; margin-top: -50px; }

.hero-item {
  width: 25vw;
  max-width: 350px;
  min-width: 200px;
  height: 35vh;
  min-height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  flex-shrink: 0; 
}

.hero-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cta-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.75);
  padding: 40px;
  border-radius: 20px;
  /* Backdrop blur is GPU-expensive when redrawn every frame. 8px reads
     visually similar to 12px on the white-pink palette and roughly halves
     the compositor cost on lower-end devices. */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 192, 203, 0.6);
  box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
  max-width: 90%;
  /* Isolate this element so its blur doesn't force repaint of the
     whole stacking context. */
  isolation: isolate;
}

.hero-cta-overlay .hero-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--dark-pink);
  text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

.hero-cta-overlay .hero-sub {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 500;
  color: var(--text-color);
}

.hero-btn {
  font-size: 1.2rem;
  padding: 12px 35px;
  display: inline-block;
  text-decoration: none;
  pointer-events: auto; /* Re-enable clicks on button */
}

@media (max-width: 768px) {
  .slanted-hero-wrapper {
    height: 50vh;
  }
  .hero-cta-overlay {
    padding: 25px 20px;
  }
  .hero-cta-overlay .hero-title {
    font-size: 2.2rem;
  }
  .slanted-carousel-container {
    transform: rotate(-10deg); /* Less slant on mobile looks better */
  }
}

/* Responsive Grid */
.container {
  width: 95%; /* Increased from 90% for less side space */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Wide Screen Scaling */
@media (min-width: 1440px) {
  .container {
    max-width: 1500px;
  }
}

@media (min-width: 1900px) {
  .container {
    max-width: 1800px;
  }
}

/* App-Like Button */
.btn-pop {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--dark-pink);
  color: white;
}
.btn-pop:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}
.btn-pop:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
}

/* Page Transition System */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.container {
  animation: fadeInUp 0.4s ease-out both;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

body.page-leaving .container,
body.page-leaving .content-wrapper {
  animation: fadeOutDown 0.25s ease-in both;
}

body.page-leaving footer {
  animation: fadeOutDown 0.2s ease-in both;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  /* contain:paint isolates repaint to this element only, so revealing a
     list of cards doesn't repaint the whole page. */
  contain: paint;
}

/* will-change is only applied while the reveal is actually happening
   (via JS toggling .revealing), avoiding the memory cost of keeping
   dozens of elements on their own compositor layers permanently. */
.reveal-on-scroll.revealing {
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Form Loading State */
button.loading-state {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button.loading-state::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed var(--primary-pink);
  border-radius: 20px;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.05);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
  color: var(--dark-pink);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.empty-state p {
  color: #888;
  font-size: 1rem;
}

/* Carousel Drag Indicator */
.carousel-indicator {
  text-align: center;
  color: #b0687a;
  font-size: 0.9rem;
  font-weight: 500;
  margin: -10px auto 10px;
  opacity: 0.7;
  animation: pulse-horizontal 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s;
}

.carousel-indicator.hidden {
  opacity: 0;
}

@keyframes pulse-horizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Hover/Hold Instruction Indicator */
.hover-indicator {
  text-align: center;
  color: #ff69b4;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 auto 25px;
  opacity: 0.8;
  animation: pulse-fade 2.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  pointer-events: none;
}

@keyframes pulse-fade {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}


/* Pink Selection Color */
::selection {
  background: var(--primary-pink);
  color: var(--dark-pink);
}

/* Header Responsiveness */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 60px; /* Space for mascot on mobile */
    align-items: center;
    text-align: center;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  header nav a,
  header nav button,
  header nav form {
    margin: 0 !important;
  }
}

/* Mobile First - Stacked */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--primary-pink);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(255, 105, 180, 0.35),
    0 0 0 3px rgba(255, 105, 180, 0.15);
  border-color: var(--dark-pink);
}

.card h3 {
  margin-top: 15px;
  color: var(--dark-pink);
  font-weight: 800;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 0 10px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center; /* Default */
}

/* Ensure left-aligned titles scale from the left so they don't "break out" */
[style*="text-align: left"] h3 {
  transform-origin: left center;
}

.card:hover h3 {
  transform: scale(1.08); /* Slightly smaller scale for better fit */
  color: #ff1493;
}

/* Disable full-card scaling for forms or areas with lots of inputs to prevent layout shifts */
.card:has(form):hover,
.card[style*="cursor: default"]:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
}

.card img {
  max-width: 100%;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px dashed var(--dark-pink);
  transition: opacity 0.3s ease-in-out;
}

/* Sold Out Styling */
.sold-out {
  opacity: 0.6;
  filter: grayscale(100%);
  position: relative;
}

.sold-out::after {
  content: "SOLD OUT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  border-radius: 5px;
}
.catalog-title,
.category-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark-pink);
  letter-spacing: 3px;
  text-shadow:
    -3px -3px 0 #fff,
    3px -3px 0 #fff,
    -3px 3px 0 #fff,
    3px 3px 0 #fff,
    0 0 15px rgba(255, 255, 255, 1);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  position: relative;
  animation: floatIn 1s ease-out;
}

.catalog-title:hover,
.category-title:hover {
  transform: translateY(-5px) scale(1.05);
  text-shadow:
    2px 2px 0 var(--lace-color),
    0 0 15px rgba(255, 105, 180, 0.5);
}

.catalog-title::after,
.category-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--dark-pink);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.catalog-title:hover::after,
.category-title:hover::after {
  width: 80%;
  left: 10%;
}

.btn-pop,
.back-button,
.nav-button {
  background: white;
  color: var(--dark-pink);
  padding: 8px 18px;
  border-radius: 25px;
  border: 2px solid var(--primary-pink);
  box-shadow: 3px 3px 0 var(--primary-pink);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px; /* Adjust for nav flow */
}

.btn-pop:hover,
.back-button:hover,
.nav-button:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 5px 5px 0 var(--dark-pink);
  color: var(--dark-pink);
  background-color: var(--bg-color);
}

.back-button {
  margin-bottom: 20px;
}

.nav-button {
  margin-left: 10px;
  padding: 5px 15px; /* Slightly smaller for header */
  font-size: 0.85rem;
}

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

.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* Image viewer must appear above edit modals */
.image-viewer-modal {
  z-index: 1100;
}

.modal-content {
  background: var(--bg-color);
  padding: 40px;
  border-radius: 25px;
  border: 4px solid var(--primary-pink);
  box-shadow: 0 15px 50px rgba(255, 105, 180, 0.4);
  text-align: center;
  max-width: 450px;
  width: 90%;
  position: relative;
  animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h3 {
  color: #ff1493; /* Stronger dark pink */
  margin-bottom: 15px;
  font-weight: 900;
  font-size: 1.8rem;
}

.modal-content p {
  color: #444; /* Darker grey for legibility */
  font-size: 1.2rem;
  font-weight: 600;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: var(--dark-pink);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.2);
}

header nav {
  position: relative;
  z-index: 120;
  margin-right: 210px; /* Balanced space */
}

@media (max-width: 768px) {
  header nav {
    margin-right: 0;
  }

  /* Admin Product Cards - compact list already */
  .admin-product-card {
    transition:
      background 0.15s,
      box-shadow 0.15s;
  }
  .admin-product-card:hover {
    background: #fff5f8;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
  }
}

@media (max-width: 992px) {
  header nav {
    margin-right: 0;
    display: flex;
    align-items: center;
  }
}

/* Modal Content legibility fixes */
.modal-content {
  background: white; /* Force white for maximum contrast */
  padding: 40px;
  border-radius: 25px;
  border: 5px solid var(--primary-pink);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 480px;
  width: 90%;
  position: relative;
  animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h3 {
  color: #ff1493;
  margin-bottom: 12px;
  font-weight: 950;
  font-size: 1.9rem;
  letter-spacing: -0.5px;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 0 10px rgba(255, 255, 255, 0.5);
}

.modal-content p {
  color: #2c3e50; /* Much darker blue-grey for perfect reading */
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Image Viewer Override */
.image-modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 90% !important;
  width: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-content .close-modal {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  text-shadow: 0 0 10px black;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px; /* Visual center fix */
}

@media (max-width: 500px) {
  .modal-content {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .category-title,
  .catalog-title {
    font-size: 1.5rem; /* Smaller font for mobile */
    letter-spacing: 1px;
    text-shadow:
      -2px -2px 0 #fff,
      2px -2px 0 #fff,
      -2px 2px 0 #fff,
      2px 2px 0 #fff,
      0 0 5px rgba(255, 255, 255, 1);
  }
}

/* Admin Split Layout */
.admin-split-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .admin-split-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-left-col {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    z-index: 10;
  }

  .admin-right-col {
    flex-grow: 1;
  }
}

.admin-product-card {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

.admin-product-card:hover {
  background: #fff5f8;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
}

.admin-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-pink);
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  margin: 10px 0 20px 0;
  display: inline-block;
}

.admin-subtitle::before,
.admin-subtitle::after {
  content: " ~ ";
  color: var(--primary-pink);
}

/* Wishlist Floating Button & Glow */
#wishlistFloatingBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: white;
  color: #ff69b4;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #ff69b4;
}

#wishlistFloatingBtn:hover,
#wishlistFloatingBtn.active {
  transform: scale(1.1) translateY(-5px);
  background: #ff69b4;
  color: white;
  box-shadow:
    0 0 25px rgba(255, 105, 180, 0.8),
    0 0 10px rgba(255, 105, 180, 0.4);
  border-color: white;
}

#wishlistCount {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff1493;
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  padding: 30px 20px 15px;
  position: relative;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-tagline {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-pink);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 0 15px rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.7s ease-out both;
}

.hero-subtitle {
  font-size: 1rem;
  color: #b0687a;
  font-weight: 500;
  opacity: 0.85;
  animation: fadeInUp 0.9s ease-out both;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--dark-pink),
    transparent
  );
  margin: 15px auto 0;
  border-radius: 2px;
  animation: fadeInUp 1.1s ease-out both;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 20px 15px 10px;
  }
  .hero-tagline {
    font-size: 1.2rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
}

/* ===== Sakura Petals ===== */
.sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  /* will-change toggled via JS only during the petal's animation
     lifetime; once the petal is removed the layer is freed. */
  will-change: transform, opacity;
  /* Skip the drop-shadow filter entirely — it was re-evaluated every
     frame which is the most expensive part of the sakura animation. */
}

.sakura-petal svg {
  /* (drop-shadow removed — too costly when multiplied by 10 petals
     animating simultaneously) */
}

@keyframes sakuraFall {
  0% {
    opacity: 0;
    transform: translateY(-5vh) translateX(0px) rotate(0deg) scale(1);
  }
  8% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.6;
    transform: translateY(50vh) translateX(var(--drift)) rotate(180deg)
      scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) translateX(var(--drift-end))
      rotate(var(--end-rotation)) scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-petal {
    display: none !important;
  }
  body.page-leaving .container,
  body.page-leaving .content-wrapper,
  body.page-leaving footer {
    animation: none !important;
  }
  .container {
    animation: none !important;
  }
  /* Pause every infinite-running decorative animation so the page
     remains calm (and cheap) for users who opted out of motion.
     Reveal-on-scroll still plays once because it's user-driven,
     not decorative. */
  .header-character,
  .hero-track,
  .pulse-horizontal,
  .pulse-fade,
  .float-anim {
    animation: none !important;
  }
  /* Replace transform-based transitions with plain opacity transitions
     to avoid expensive compositor work for users who don't want motion. */
  * {
    transition-property: opacity !important;
    transition-duration: 0.01ms !important;
  }
}
