/* FlexioLife Brand Theme */

:root {
  --color-primary: #0284c7;        /* Electric Ocean Blue from Flexio */
  --color-primary-light: #38bdf8;  /* Vibrant Sky / Cyan Blue */
  --color-primary-dark: #0369a1;   /* Deep Royal Blue */
  --color-primary-navy: #042149;   /* Deep Ocean Navy */
  --color-accent: #00b4d8;         /* Turquoise / Cyan from Life */
  --color-accent-dark: #059669;    /* Rich Emerald Green */
  --color-accent-light: #99f6e4;   /* Soft Mint */
  --color-gold: #f59e0b;           /* Amber / Star ratings */
  --color-success: #10b981;        /* Leaf Green from Logo */
}

/* 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); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }

/* Hero Enhancements */
.hero-slider__overlay--kids {
  background: rgba(255, 255, 255, 0.90) !important;
  border-radius: var(--radius-xl);
  padding: 40px !important;
  color: var(--color-primary-navy) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
}
.hero-title {
  color: var(--color-primary-navy) !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;
  }
}

/* Product card styles moved to flexio-theme.css */

/* 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, #042149 0%, #0284c7 60%, #00b4d8 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  color: #ffffff;
  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, #f0fdfa, #e0f2fe, #d1fae5, #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(4, 33, 73, 0.08);
  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(2, 132, 199, 0.16); }
.testimonial-card .stars { font-size: 1.5rem; margin-bottom: var(--space-md); color: var(--color-gold); }
.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 */
.floating-whatsapp {
  border-radius: 50% !important;
  animation: none !important;
}

/* --- 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: var(--color-primary);
}
.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: var(--color-primary);
  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: var(--color-primary);
  background: #f0f9ff;
  color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.view-size-guide-link {
  display: inline-flex;
  background: #e0f2fe;
  color: var(--color-primary-dark);
  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: var(--color-primary);
  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-navy) 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(2, 132, 199, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-add-cart-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}
.btn-order-now-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b4d8 0%, #10b981 100%);
  color: white;
  height: 50px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-order-now-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
.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; }
}

/* =====================================================================
   MODERN GLASSMORPHISM UI & DUAL COUNTRY TOGGLE
   ===================================================================== */
.glass-country-toggle-wrapper,
.glass-country-toggle,
.glass-toggle-floating {
  display: none !important;
}

.glass-country-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-country-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  color: #475569;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.glass-toggle-btn .flag-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.glass-toggle-btn .currency-tag {
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.85;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.glass-toggle-btn:hover:not(.is-active) {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.glass-toggle-btn.is-active.is-bd {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.glass-toggle-btn.is-active.is-bd .currency-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.glass-toggle-btn.is-active.is-us {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.glass-toggle-btn.is-active.is-us .currency-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Floating Glassmorphic Country Toggle (for landing pages) */
.glass-toggle-floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
}
.glass-toggle-floating .glass-country-toggle {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Mobile optimizations for toggle */
@media (max-width: 768px) {
  .glass-toggle-floating {
    top: 12px;
    right: 12px;
  }
  .glass-toggle-btn {
    padding: 4px 9px;
    font-size: 0.78rem;
  }
  .glass-toggle-btn .country-text {
    display: inline;
  }
}

/* Glassmorphism Cards & Badges */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  border-radius: 16px;
}

/* Consistent Footer Logo Sizing Across All Pages */
.site-footer .footer-brand__logo,
.footer-brand__logo {
  max-height: 48px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 768px) {
  .site-footer .footer-brand__logo,
  .footer-brand__logo {
    max-height: 42px !important;
    max-width: 160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
