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

@layer base {
  html {
    scroll-behavior: smooth;
  }
  body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #111827;
    background-color: #FFFFFF;
    overflow-x: clip;
  }
}

/* Sticky Header lock */
#main-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0A66FF;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1E88FF;
}

/* Smooth Fade Mask for Category Horizontal Slider (Zero Harsh Lines) */
.category-mask-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* Scrollbar Hide Utility for Horizontal Mobile Scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Marquee Animations */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 22s linear infinite;
  will-change: transform;
}

.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marquee-right 24s linear infinite;
  will-change: transform;
}

.marquee-track:hover,
.marquee-track-reverse:hover {
  animation-play-state: paused;
}

/* Wavy Liquid Marquee Floating Animations */
@keyframes liquid-wave-1 {
  0%, 100% {
    transform: translateX(0) translateY(0px) scaleY(1);
  }
  50% {
    transform: translateX(-2%) translateY(-6px) scaleY(1.08);
  }
}

@keyframes liquid-wave-2 {
  0%, 100% {
    transform: translateX(0) translateY(0px) scaleY(1);
  }
  50% {
    transform: translateX(2%) translateY(6px) scaleY(0.96);
  }
}

@keyframes liquid-wave-translucent {
  0%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 0.45;
  }
  50% {
    transform: translateX(-3%) scaleY(1.15);
    opacity: 0.65;
  }
}

@keyframes wave-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-wave-float-1 {
  animation: liquid-wave-1 6s ease-in-out infinite;
}

.animate-wave-float-2 {
  animation: liquid-wave-2 7s ease-in-out infinite;
}

.animate-wave-translucent {
  animation: liquid-wave-translucent 5s ease-in-out infinite;
}

.animate-wave-container {
  animation: wave-float 6s ease-in-out infinite;
}

/* Hero Slider Container (1920x690 Proportional Aspect Ratio) */
#hero-slider-container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1920 / 690;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

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

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Dynamic Ring Glow Effect for Category Cards */
.category-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-image-wrap {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 14px 30px -5px rgba(10, 102, 255, 0.45);
}

.category-card:hover .category-title {
  color: #0A66FF;
}

/* Subtle Shimmer for Badges */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 2.5s infinite;
}

/* Shopify Trending Modern Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(10, 102, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(10, 102, 255, 0.7); }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Gradient Text Effect */
.gradient-text-blue {
  background: linear-gradient(135deg, #0A66FF 0%, #003893 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* High-Converting Shopify CRO Modals & Elements */
.cro-modal-overlay {
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cro-modal-content {
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.coupon-dashed-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  border: 2px dashed #0A66FF;
  position: relative;
}

.coupon-dashed-box::before,
.coupon-dashed-box::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
}
.coupon-dashed-box::before { left: -9px; }
.coupon-dashed-box::after { right: -9px; }

/* Floating WhatsApp CRO Widget */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -3px rgba(37, 211, 102, 0.5), 0 4px 6px -2px rgba(37, 211, 102, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-floating-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px -3px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 9999px;
  background: #25D366;
  opacity: 0.6;
  animation: pulseWhatsapp 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

@keyframes pulseWhatsapp {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Responsive Modern Product Card & CRO Actions */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}

.product-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .product-card-actions {
    gap: 8px !important;
  }
}

.product-action-btn {
  width: 100% !important;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .product-action-btn {
    min-height: 36px;
  }
}

.product-action-btn:active {
  transform: scale(0.96);
}

/* Ensure price text wraps neatly on small mobile screens */
.product-price-wrapper {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* Multi-line title clamp utility with bulletproof fallback */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* Mobile Image Fallback Container */
.primary-img, .secondary-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Floating WhatsApp CRO Widget Mobile Optimization */
@media (max-width: 640px) {
  .whatsapp-floating-btn {
    bottom: 18px;
    right: 18px;
    padding: 10px 14px;
    font-size: 12px;
    gap: 7px;
  }
}







