/* ==========================================
   KidShop Pro - animations.css
   Extra animations and mobile drawer styles
========================================== */

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100vh;
  background: #fff;
  z-index: 10000;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.mobile-drawer.open { left: 0; }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; background: linear-gradient(135deg,#FF4D8D,#9B59B6); color: #fff;
}
.mobile-drawer-close {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.mobile-nav { padding: 12px 0; }
.mobile-menu-list li a {
  display: block; padding: 13px 24px;
  font-family: 'Nunito',sans-serif; font-weight: 700; font-size: 14px;
  color: #2C1A2E; border-bottom: 1px solid #F0D6E8; transition: all 0.2s;
}
.mobile-menu-list li a:hover { background: #FFF0F6; color: #FF4D8D; padding-left: 32px; }
.mobile-menu-list .sub-menu { display: none; background: #FFF9FC; }
.mobile-menu-list .sub-menu li a { padding-left: 36px; font-size: 13px; }
.mobile-overlay, .sidebar-overlay {
  position: fixed; inset: 0; background: rgba(44,26,46,0.6);
  z-index: 9999; display: none; backdrop-filter: blur(3px);
}
.mobile-overlay.active, .sidebar-overlay.active { display: block; }

/* All Categories Sidebar */
.categories-sidebar {
  position: fixed; top: 0; left: -320px; width: 300px; height: 100vh;
  background: #fff; z-index: 10000; overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.categories-sidebar.open { left: 0; }
.cat-sidebar-inner { padding: 24px 0; }
.cat-sidebar-inner h3 {
  padding: 0 24px 16px; font-size: 18px;
  border-bottom: 2px solid #F0D6E8; margin-bottom: 8px;
  color: #FF4D8D;
}
.cat-sidebar-inner ul li a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px; font-family: 'Nunito',sans-serif; font-weight: 700; font-size: 14px;
  color: #2C1A2E; border-bottom: 1px solid #F0D6E8; transition: all 0.2s; cursor: pointer;
}
.cat-sidebar-inner ul li a:hover { background: #FFF0F6; color: #FF4D8D; padding-left: 32px; }
.cat-icon { font-size: 20px; flex-shrink: 0; }
.cat-arrow { margin-left: auto; color: #FF4D8D; font-size: 18px; }

/* Search Suggestions */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 500;
  background: #fff; border: 1.5px solid #F0D6E8; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(255,77,141,0.18); overflow: hidden;
  display: none; margin-top: 4px;
}
.suggestion-item {
  padding: 12px 20px; font-size: 13px; color: #5A3D5C; cursor: pointer;
  font-family: 'Poppins',sans-serif; transition: all 0.2s;
  border-bottom: 1px solid #F0D6E8;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #FFF0F6; color: #FF4D8D; padding-left: 28px; }

/* Promo Three Grid Responsive */
@media (max-width: 768px) {
  .promo-three { grid-template-columns: 1fr !important; }
  .categories-sidebar, .mobile-drawer { width: 280px; }
}

/* Page Loader */
.page-loader {
  position: fixed; inset: 0; background: linear-gradient(135deg,#FF4D8D,#9B59B6);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-emoji { font-size: 60px; animation: bounce 0.8s ease infinite alternate; }
.loader-text { color: #fff; font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 18px; }
.loader-dots { display: flex; gap: 8px; }
.loader-dots span {
  width: 10px; height: 10px; background: rgba(255,255,255,0.7); border-radius: 50%;
  animation: loader-dot 1.2s ease infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-20px); } }
@keyframes loader-dot {
  0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Confetti */
.confetti-piece {
  position: fixed; width: 10px; height: 14px; border-radius: 3px;
  top: -20px; animation: confetti-fall linear forwards;
  pointer-events: none; z-index: 99998;
}

/* Sticky Add to Cart */
.sticky-add-to-cart {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 2px solid #F0D6E8;
  padding: 12px 20px; display: none; align-items: center;
  justify-content: space-between; gap: 16px; box-shadow: 0 -4px 20px rgba(255,77,141,0.1);
}

/* WooCommerce overrides */
.woocommerce .products { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.woocommerce ul.products li.product {
  background: #fff; border-radius: 16px; overflow: hidden; border: 2px solid transparent;
  transition: all 0.3s ease;
}
.woocommerce ul.products li.product:hover { border-color: #FFB3CF; box-shadow: 0 8px 32px rgba(255,77,141,0.18); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Nunito',sans-serif; font-weight: 700; font-size: 14px; padding: 0 16px;
}
.woocommerce ul.products li.product .price {
  font-family: 'Nunito',sans-serif; font-weight: 900; color: #FF4D8D; padding: 0 16px; font-size: 16px;
}
.woocommerce ul.products li.product .button {
  margin: 12px 16px 16px; background: #FF4D8D; color: #fff; border-radius: 100px;
  font-family: 'Nunito',sans-serif; font-weight: 700; width: calc(100% - 32px);
  padding: 10px; transition: all 0.3s;
}
.woocommerce ul.products li.product .button:hover { background: #E0366F; }
.woocommerce-breadcrumb { font-size: 13px; color: #9B7EA0; margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: #FF4D8D; }
.woocommerce div.product div.images { border-radius: 20px; overflow: hidden; }
.woocommerce div.product p.price { font-family: 'Nunito',sans-serif; font-size: 28px; font-weight: 900; color: #FF4D8D; }
.woocommerce div.product .single_add_to_cart_button {
  background: linear-gradient(135deg,#FF4D8D,#E0366F);
  font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 16px;
  padding: 16px 36px; border-radius: 100px;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: linear-gradient(135deg,#E0366F,#C0255C); }
.woocommerce-tabs .tabs li a { font-family: 'Nunito',sans-serif; font-weight: 700; }
.woocommerce-tabs .tabs li.active a { color: #FF4D8D; border-color: #FF4D8D; }
.woocommerce .star-rating { color: #FFD700; }
.woocommerce .woocommerce-message { border-top-color: #FF4D8D; }
.woocommerce .woocommerce-message::before { color: #FF4D8D; }

/* Elementor widget area overrides */
.elementor-widget-container { transition: none; }

/* Page hero section */
.page-hero { padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 12px; }

/* Shop sidebar */
.widget_price_filter .ui-slider-handle { background: #FF4D8D; }
.widget_price_filter .ui-slider-range { background: linear-gradient(135deg,#FF4D8D,#FF8C42); }
.widget.widget_layered_nav ul li a { color: #5A3D5C; font-size: 13px; }
.widget.widget_layered_nav ul li a:hover { color: #FF4D8D; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .woocommerce .products { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .woocommerce .products { grid-template-columns: 1fr; }
}
