/* Kids Clothing Store Premium Theme Additions */

:root {
  --color-primary: #B76BFF; /* Purple */
  --color-primary-light: #d8aaff; 
  --color-primary-dark: #8c3bcc;
  --color-accent: #FF7CC1; /* Pink */
  --color-accent-dark: #e55ea3;
  --color-accent-light: #ffb3dd;
  --color-gold: #fdcb6e; /* Yellow */
  --color-success: #B6EAE6; /* Mint/Teal */
}

/* Utility Backgrounds */
.bg-pastel-pink { background-color: var(--color-accent-light); }
.bg-baby-blue { background-color: var(--color-primary-light); }
.bg-mint { background-color: var(--color-success); }
.bg-gray { background-color: #edf2f7; }

/* Rounded Utility Classes */
.btn--rounded { border-radius: var(--radius-pill); font-weight: 600; padding: 12px 28px; }
.input-rounded { border-radius: var(--radius-pill); border: 1px solid var(--color-border); padding: 12px 20px; outline: none; }
.input-rounded:focus { border-color: var(--color-primary); }

/* Hero Enhancements */
.hero-slider__overlay--kids {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: var(--radius-xl);
  padding: 40px !important;
  color: var(--color-primary-dark) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
}
.hero-title {
  color: var(--color-primary-dark) !important;
  font-weight: 800;
  font-size: 2.5rem !important;
  line-height: 1.2;
}
.hero-subtitle {
  color: var(--color-text-secondary) !important;
  font-size: 1.1rem !important;
}
/* Fix Hero Slider Height & Responsiveness */
.hero-slider__slide img {
  height: 60vh !important;
  max-height: 600px !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Collections Grid */
.collections-section { padding: var(--space-3xl) var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.collections-grid {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.collections-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
/* --- Collections Carousel Styles --- */
.collections-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0 40px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s, opacity 0.3s;
}
.carousel-nav:hover {
  background: var(--color-primary-dark);
}
.carousel-nav.prev {
  left: 0;
}
.carousel-nav.next {
  right: 0;
}
@media (max-width: 768px) {
  .collections-carousel-wrapper {
    padding: 0 10px;
  }
  .carousel-nav {
    display: none; /* Rely on native swipe/scroll on mobile */
  }
}
.collections-grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 5px var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.collections-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.collection-card {
  flex: 0 0 260px;
  min-width: 260px;
  max-width: none;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}
.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.collection-card__img-wrap {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 0 0 4px rgba(226, 19, 110, 0.05), inset 0 2px 10px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}
.collection-card:nth-child(even) .collection-card__img-wrap {
  box-shadow: 0 0 0 4px rgba(107, 184, 255, 0.05), inset 0 2px 10px rgba(0,0,0,0.02);
}
.collection-card:hover .collection-card__img-wrap {
  box-shadow: 0 0 0 6px rgba(226, 19, 110, 0.15);
}
.collection-card:nth-child(even):hover .collection-card__img-wrap {
  box-shadow: 0 0 0 6px rgba(107, 184, 255, 0.15);
}
.collection-card__img-wrap img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}
.collection-card:hover .collection-card__img-wrap img {
  transform: scale(1.08);
}
.collection-card h3 {
  color: var(--color-text-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .collection-card {
    flex: 0 0 calc(50% - 6px); /* Exact 50% split like product grid */
    min-width: 0;
    padding: 20px 10px;
  }
  .collection-card__img-wrap {
    width: 120px;
    height: 120px;
  }
  .collection-card h3 {
    font-size: 1.05rem;
  }
}

/* Premium Product Card Overrides */
.product-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
  padding: 15px !important;
  transition: all 0.3s ease !important;
}
.product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 35px rgba(183, 107, 255, 0.15) !important;
}
.product-card__image-link img {
  border-radius: 16px !important;
}
.product-card h3 {
  text-align: center !important;
  font-size: 1.1rem !important;
  margin-top: 12px !important;
}
.product-card__price {
  justify-content: center !important;
  font-size: 1.2rem !important;
  margin-bottom: 8px !important;
}
.product-card__actions {
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
}
.product-card__actions .btn {
  border-radius: 50px !important;
  flex: 1 !important;
}

/* Sale Banner */
.sale-banner-section { padding: var(--space-3xl) var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.sale-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.sale-banner.has-media {
  background: #000;
}
.sale-banner.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* Dark overlay so text is readable over image/video */
  z-index: 1;
}
.sale-banner__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  object-fit: cover;
  opacity: 0.8;
}
.sale-banner__content {
  position: relative;
  z-index: 2;
}
.sale-banner.has-media h2, .sale-banner.has-media p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.sale-banner h2 { font-size: 3rem; font-weight: 800; margin-bottom: var(--space-sm); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sale-banner p { font-size: 1.25rem; margin-bottom: var(--space-lg); color: #fff; }

.hero-slider__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Animated Background for Testimonials */
@keyframes softGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.testimonials-section {
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(-45deg, var(--color-success), var(--color-accent-light), var(--color-primary-light), #ffffff);
  background-size: 400% 400%;
  animation: softGradient 15s ease infinite;
  border-radius: 40px;
  margin: 40px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: var(--space-xl);
  box-shadow: 0 15px 35px rgba(183, 107, 255, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: floatCard 6s ease-in-out infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Stagger animation delay for a dynamic wave effect */
.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 2s; }
.testimonial-card:nth-child(3) { animation-delay: 4s; }

.testimonial-card:hover { transform: translateY(-15px) scale(1.02); animation-play-state: paused; box-shadow: 0 20px 40px rgba(183, 107, 255, 0.2); }
.testimonial-card .stars { font-size: 1.5rem; margin-bottom: var(--space-md); }
.testimonial-card p { font-size: 1.1rem; color: var(--color-text); font-style: italic; margin-bottom: var(--space-md); }
.testimonial-card span { font-weight: 700; color: var(--color-primary); }

/* Instagram Gallery */
.instagram-section { padding: var(--space-3xl) var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.ig-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.ig-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition);
  cursor: pointer;
}
.ig-item:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .ig-gallery { grid-template-columns: repeat(2, 1fr); }
  .ig-item:last-child { display: none; }
  .sale-banner h2 { font-size: 2rem; }
  .hero-slider__overlay--kids { padding: 20px !important; margin: 20px; }
  .hero-slider__slide img { height: 50vh !important; min-height: 400px !important; }
}

/* Newsletter Tweaks */
.newsletter__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.newsletter__form input { flex: 1; }
@media (max-width: 480px) {
  .newsletter__form { flex-direction: column; }
}

/* WHATSAPP FLOATING BUTTON (KIDS THEME) */
.floating-whatsapp {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  box-shadow: 0 8px 24px rgba(255, 124, 193, 0.4) !important;
  border: 2px solid #fff;
  border-radius: 30px !important;
  animation: bounceWa 3s infinite;
}
.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 12px 32px rgba(183, 107, 255, 0.5) !important;
}
@keyframes bounceWa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- Product Page Redesign (from screenshot) --- */
.product-info-redesign {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fafcff;
  padding: 20px;
  border-radius: 12px;
}
.product-title-bold {
  font-size: 2rem;
  font-weight: 900;
  color: #0b1136;
  margin: 0;
  line-height: 1.2;
}
.product-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #8d6e1a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  align-self: flex-start;
}
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-now-blue {
  font-size: 2.5rem;
  font-weight: 900;
  color: #2b4cdd;
}
.price-was-gray {
  font-size: 1.2rem;
  color: #9094a6;
  text-decoration: line-through;
}
.product-fabric-info {
  font-size: 1.1rem;
  color: #2a3356;
  font-weight: 500;
}
.product-size-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.size-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.size-select-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0b1136;
}
.required-pill {
  background: #ffebee;
  color: #d32f2f;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}
.size-guide-btn {
  background: #8b5cf6;
  color: white;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.size-option-label input[type="radio"] {
  display: none;
}
.size-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-weight: bold;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.size-option-label input[type="radio"]:checked + .size-box {
  border-color: #2b4cdd;
  background: #eff6ff;
  color: #2b4cdd;
  box-shadow: 0 0 0 1px #2b4cdd;
}
.view-size-guide-link {
  display: inline-flex;
  background: #e0e7ff;
  color: #4f46e5;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  align-self: flex-start;
  margin-top: 5px;
}
.product-action-row-inline {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.quantity-stepper-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #0b1136;
}
.qty-minus, .qty-plus {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  width: 35px;
  height: 45px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2b4cdd;
  cursor: pointer;
}
#qty-input {
  width: 50px;
  height: 45px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
}
.btn-add-cart-solid {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  height: 45px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(183, 107, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-add-cart-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 107, 255, 0.4);
}
.btn-order-now-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  height: 50px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 124, 193, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-order-now-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 124, 193, 0.4);
}
.contact-actions-row {
  display: flex;
  gap: 15px;
}
.btn-whatsapp-solid, .btn-call-now-solid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
}
.btn-whatsapp-solid { background: #10b981; }
.btn-call-now-solid { background: #f97316; }
.product-share-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 10px;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #374151;
}
.share-btn{
display:flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
border-radius:50%;
text-decoration:none;
color:#fff;
font-size:18px;
transition:.25s;
}

.share-btn.fb{
background:#1877F2;
}

.share-btn.fb:hover{
background:#1664d9;
}

.share-btn.wa{
background:#25D366;
}

.share-btn.wa:hover{
background:#20bd5a;
}

.share-btn.link{
background:#6b7280;
}

.share-btn.link:hover{
background:#4b5563;
}
@media (max-width: 480px) {
  .product-title-bold { font-size: 1.5rem; }
  .price-now-blue { font-size: 2rem; }
  .btn-whatsapp-solid, .btn-call-now-solid { font-size: 0.9rem; }
  /* min-width:200px on .btn-add-cart-solid doesn't fit next to the qty
     stepper on narrow phones — let it shrink to its flex:1 share instead. */
  .btn-add-cart-solid { min-width: 0; }
}
