/* Custom Styles for Shri Shyam Educational Aids & Play Equipments */

@layer utilities {
  .hero-pattern {
    background: linear-gradient(135deg, rgba(0,86,179,0.06) 0%, rgba(255,107,0,0.06) 100%),
                radial-gradient(circle at 50% 20%, rgba(245,158,11,0.14) 0%, transparent 65%);
  }

  .custom-shadow {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  }

  .card-hover-effect {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .card-hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 86, 179, 0.12), 0 8px 16px -4px rgba(255, 107, 0, 0.08);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

/* =========================================================================
   1. HERO NON-REGULAR / NON-GEOMETRIC CONTIGUOUS IMAGE BANNER SCROLL
   ========================================================================= */
@keyframes organicHeroScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes blobMorph {
  0%, 100% {
    border-radius: 62% 38% 52% 48% / 54% 46% 54% 46%;
  }
  50% {
    border-radius: 44% 56% 62% 38% / 48% 58% 42% 52%;
  }
}

.organic-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.organic-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: organicHeroScroll 36s linear infinite;
  padding: 14px 0 20px 0;
}

.organic-marquee-wrapper:hover .organic-marquee-track,
.organic-marquee-wrapper:active .organic-marquee-track {
  animation-play-state: paused;
}

/* Contiguous non-geometric organic shapes with slight overlap for ribbon flow */
.organic-item {
  position: relative;
  flex-shrink: 0;
  margin-right: -12px; /* Contiguous overlapping flow */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.2s;
  z-index: 1;
}

.organic-item:hover {
  transform: scale(1.08) translateY(-4px) rotate(0deg) !important;
  z-index: 20;
}

.organic-blob-1 {
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  transform: translateY(-6px) rotate(-2deg);
}

.organic-blob-2 {
  border-radius: 42% 58% 45% 55% / 60% 38% 62% 40%;
  transform: translateY(7px) rotate(2deg);
}

.organic-blob-3 {
  border-radius: 56% 44% 64% 36% / 43% 62% 38% 57%;
  transform: translateY(-4px) rotate(-1.5deg);
}

.organic-blob-4 {
  border-radius: 46% 54% 38% 62% / 58% 44% 56% 42%;
  transform: translateY(6px) rotate(1.8deg);
}

.organic-blob-5 {
  border-radius: 60% 40% 52% 48% / 48% 58% 42% 52%;
  transform: translateY(-5px) rotate(-2.2deg);
}

/* =========================================================================
   2. OUR PRODUCT RANGE — HORIZONTAL SCROLLING SECTION
   ========================================================================= */
@keyframes rangeAutoScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.range-scroll-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.range-scroll-container::-webkit-scrollbar {
  display: none;
}

.range-card-arch {
  border-radius: 52% 48% 30% 30% / 40% 40% 18% 18%;
}

/* =========================================================================
   3. OUR CLIENTS — CONTINUOUS MARQUEE SCROLL
   ========================================================================= */
@keyframes clientMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.client-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.client-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: clientMarquee 24s linear infinite;
}

.client-marquee-wrapper:hover .client-marquee-track,
.client-marquee-wrapper:active .client-marquee-track {
  animation-play-state: paused;
}

/* =========================================================================
   ORDER LIST SLIDE-OVER DRAWER (TOYSZONE STYLE)
   ========================================================================= */
.cart-drawer-panel {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-panel.open {
  transform: translateX(0);
}

.cart-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Attention Pulse for Order List & Checkout Buttons */
@keyframes pulseAttention {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0);
  }
}

.pulse-attn {
  animation: pulseAttention 2s infinite;
}

/* Lightbox Animation */
.lightbox-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Styles */
@media print {
  header, footer, .no-print, button, nav, #order-list-drawer, #order-list-overlay {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
