/*
Theme Name: Float Store Child - Optimized
Theme URI: https://floatchoc.com
Template: twentytwentyfour
Version: 1.0.14
*/

/* Essential Theme Overrides */
body {
  font-family: 'Aileron', sans-serif;
  background-color: #FAF9F6;
  color: #333;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Almaz', serif;
  color: #192a56;
}

/* Buttons */
.wp-block-button__link {
  background-color: #192a56;
  border-radius: 50px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  background-color: #2c3e6a;
  transform: translateY(-2px);
}

/* Product Cards */

/* Testimonials */
.testimonials-section {
  background-color: #FAF9F6;
  padding: 60px 20px;
}

.testimonial-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gradient-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* FAQ Section */
.faq-section {
  background-color: #FAF9F6;
  padding: 60px 20px;
}

.faq-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
}

.faq-item:hover {
  border-color: #192a56;
}

/* Footer */
footer {
  background-color: #FAF9F6;
  padding: 40px 20px;
  border-top: 1px solid #e0e0e0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Global mobile fixes */
  html, body {
    overflow-x: hidden;
  }
  
  .wp-site-blocks {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Mobile navigation */
  .wp-block-button__link {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  /* Hero section mobile */
  .wp-block-cover {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  
  .wp-block-cover h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  
  /* Columns mobile */
  .wp-block-columns {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .wp-block-column {
    width: 100% !important;
    margin-bottom: 20px;
  }
  
  /* Products mobile */
  .product-card {
    width: 100%;
    margin: 0 0 20px 0;
  }
  
  /* Testimonials mobile */
  .testimonials-grid {
    flex-direction: column;
  }
  
  /* Footer mobile */
  footer .wp-block-columns {
    flex-direction: column;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* FAQ Section - Essential Styles */
.faq-section {
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #FAF9F6;
}

.faq-wrapper {
  max-width: 35%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item-wrapper {
  background: white;
  border: 2px solid #c7b1cf;
  border-radius: 50px;
  overflow: visible;
  transition: all 0.3s ease;
}

.faq-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  background: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}

.faq-item:hover {
  background: rgba(199, 177, 207, 0.05);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e1e1e;
  font-family: 'Aileron', sans-serif;
  flex: 1;
  text-align: left;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.faq-item.faq-item-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 2rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: #1e1e1e;
  line-height: 1.5;
  font-family: 'Aileron', sans-serif;
}

.faq-item-open .faq-answer {
  display: block;
}

/* Product Cards - Essential Styles */
.wp-block-group .wp-block-columns .product-card.wp-block-column {
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  background: #ffffff;
  transition: all 0.3s ease;
}

.wp-block-group .wp-block-columns .product-card.wp-block-column:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: #c7b1cf;
}

.product-card .wp-block-image {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card .wp-block-image img {
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

.product-card:hover .wp-block-image img {
  transform: scale(1.02);
}

.product-card .wp-block-heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

.product-card s {
  color: #999;
  font-weight: 400;
  font-size: 0.85em;
}

/* Mobile Responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-wrapper {
    max-width: 80%;
  }
  
  /* Shop Float heading mobile */
  .wp-block-heading.has-custom-background-background-color {
    font-size: 2rem !important;
    padding: 2rem 1rem 1rem !important;
  }

  /* Product cards mobile - force vertical stacking */
  .product-card.wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2rem 0 !important;
  }

  /* Product cards parent columns mobile */
  .wp-block-columns:has(.product-card) {
    flex-direction: column !important;
    padding: 1rem !important;
    align-items: center !important;
  }

  /* Product card images mobile */
  .product-card .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Product card buttons mobile */
  .product-card .wp-block-button__link {
    min-height: 48px !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
  }

  /* Product card headings mobile */
  .product-card h3 {
    font-size: 1.5rem !important;
  }
}


/* Product Card Proper Styling */
.wp-block-column.product-card.has-light-background-color {
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  background: #ffffff;
  transition: all 0.3s ease;
}

.wp-block-column.product-card.has-light-background-color:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: #c7b1cf;
}

/* Fix for product cards with light background class */
.wp-block-columns .wp-block-column.product-card.has-light-background-color.has-background {
  background-color: #ffffff;
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.wp-block-columns .wp-block-column.product-card.has-light-background-color.has-background:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: #c7b1cf;
  background-color: #ffffff;
}
