/* ============= MOBILE STYLES (≤899px) ============= */

/* Mobile Header */
.site-header {
    padding: 8px 12px;
}

.header-container {
    gap: 12px;
    justify-content: space-between;
    flex-direction: row;
}

.logo-section {
    flex: 1;
    justify-content: left;
    /*justify-content: center;*/
    gap: 0;
}

.logo-icon {
    width: 140px;
    height: 75px;
}

.logo-text {
    display: none !important;
}

/* Mobile Hamburger Menu - Show on mobile */
.hamburger-menu {
    display: flex !important;
    background: none;
    border: none;
    color: #234d2c;
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hamburger-menu:hover {
    color: #51a325;
}

.hamburger-menu.active {
    color: #51a325;
}

/* Mobile Navigation Menu - Hidden by default */
.nav-menu {
    display: none !important;
    position: absolute !important;
    top: 55px;
    left: 0;
    right: 0;
    width: 100% !important;
    flex-direction: column !important;
    gap: 0 !important;
    background-color: #f8faf6 !important;
    border-bottom: 2px solid #51a325 !important;
    z-index: 998 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.nav-menu.show {
    display: flex !important;
}

.nav-menu li {
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    font-size: 15px;
    padding: 12px 16px;
    border: none !important;
    display: block;
    gap: 3px;
}

/* Mobile Hero Section */
.hero-section {
    padding: 25px 16px 50px !important;
    margin-bottom: 100px !important;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 100%;
    width: 100%;
}

.hero-title-slide {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-description-fade {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
}

.cta-button {
    padding: 10px 24px;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 45px;
}

/* Mobile Stats - After CTA, small and centered */
/* .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 20px auto !important;
    justify-items: center !important;
    text-align: center !important;
} */

/* REPLACE WITH */
.hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 80px auto 0 auto !important;
    justify-items: center !important;
    text-align: center !important;
    clear: both !important;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.hero-stat-number {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #C0FC9E;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem !important;
    color: #fff;
    margin-top: 4px !important;
    font-weight: 500;
}

/* Mobile Footer */
.footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.footer-right {
    justify-content: center;
    gap: 16px;
}

.scroll-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
}
  

  .pet-value-list {
    grid-template-columns: 1fr;
  }

  .wfl-grid {
    grid-template-columns: 1fr;
  }

  .faq-header {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .faq-content {
    font-size: 0.9rem;
  }
  
  .scroll-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    border: 3px solid #C0FC9E !important;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-6px);
    }
  }
  
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }


.category-wrapper {
  height: 275px;
  overflow-y: auto;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(81,163,37,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
  }
  

  .fruit-button.active {
     box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #bdfc9a;
 
}
  

  .fruit-button span {
    font-size: 9px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .fruit-button img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 5px;
  opacity: 1;
  border:none;
/* Card style for plant and modifier buttons on mobile */
.fruit-button, .modifier-button {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(81,163,37,0.08);
  padding: 8px;
  margin: 2px;
  transition: box-shadow 0.2s;
  min-width: 100px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fruit-button.active, .modifier-button.active {
  box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #51a325;
}
  }

   .category-toggle-button {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
  }
  .category-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

.input-block input[type="number"],
  .input-block input[type="range"] {
    max-width: 100% !important;  
    width: 100% !important;
    box-sizing: border-box;     
margin: 0 ;
padding: 6px 8px;	
  }

   .input-group {
     flex-direction: column;
    flex-wrap: wrap;
	 gap: 0px;
	margin: 0;
	padding: 0;
	
  }
  

  .input-block {
    min-width: auto;
    width: 100%;    
  gap:2px; 
  }
    #sliderValueLabel {
    margin: 2px 0 0 0;
    font-size: 14px;
 
  }
  .result {
    font-size: 36px;
    margin-top: 5px; 
  }
  button {
    margin-top: 2px !important;  
  }



   .form-ad-container {
    margin-top: 40px !important;
  }

  #mainCalculator > .form-ad-container {
    order: 9999; /* push it to the end */
  }

  .section-title {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 6px;
  }

  .result {
    font-size: 36px;
  }



  #layoutToggleBtn {
    display: none;
  }

.desktop-only-ad {
    display: none !important;
  }






@media (max-width: 900px) {
  

  

  @media (max-width: 500px) {
    
  }
}


.category-content {
  display: none;
}

.category-content.active {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}



.fruit-button {
  flex: 1 1 calc(33.33% - 10px);
  max-width: calc(33.33% - 10px);
  min-width: 100px;
  box-sizing: border-box;
}


  .top-controls {
    position: static !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
  }

  .info-btn {
    order: 2;
    font-size: 16px;
    background: #2e2e2e;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
  }

 #modifiers {
    max-height: 260px;
    overflow-y: auto;
  }

  .modifier-button {
    flex: 1 1 calc(30.00% - 10px);
    max-width: calc(35.00% - 10px);
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    padding: 6px 4px;
  }

  #categoryButtons {
    display: none !important;
  }

  #mobileCategorySelect {
    display: block !important;
  }

.fruit-button img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 5px;
}

.fruit-button span {
  font-size: 12px;
  color: #333;
  margin-top: 2px;
  text-align: center;
}

#mobileCategorySelect {
  background-color: #2e2e2e;
  color: #e0e0e0;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  box-shadow: 0 0 6px rgba(189, 252, 154, 0.2); /* soft green glow */
  appearance: none; /* clean style across browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23bdfc9a' d='M1.41 0L6 4.58 10.59 0 12 1.41 6 7.41 0 1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

#mobileCategorySelect:focus {
  outline: none;
  border-color: #bdfc9a;
  box-shadow: 0 0 8px 2px #bdfc9a;
}

@media (max-width: 900px) {
  .category-toggle {
    display: none !important;
  }

  .mobile-only-category {
    display: block !important;
  }
#petAgeWeightContainer {
  height: auto; /* Allow height to adjust based on content */
  max-height: 100vh; /* Limit the maximum height to the viewport height */
  overflow-y: auto; /* Enable scrolling */
}

}


@media (max-width: 899px) {
  select#mobileCategorySelect {
    max-height: 80vh;
    overflow-y: auto;
  }
}


.custom-mobile-dropdown {
  display: block;
  position: relative;
  max-width: 100%;
  margin: 10px auto;
}

#openMobileDropdownBtn {
  width: 100%;
  padding: 10px;
  background-color: #2e2e2e;
  color: #eee;
  font-size: 16px;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
}

#customDropdownContent {
  display: none;
  background: #f0f0f0;
  border: 1px solid #444;
  border-radius: 8px;
  margin-top: 8px;
  padding: 10px;
  z-index: 999;
}

#customDropdownContent.show {
  display: block;
}

.dropdown-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dropdown-column {
  flex: 1;
}

.dropdown-column ul {
  list-style: none;
  padding-left: 0;
}

.dropdown-column li {
  margin: 6px 0;
  padding: 6px;
  background-color: #f0f0f0;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
  color: #1e1e1e ;
  text-align: center;
}

.dropdown-column li:hover {
  background-color: #f0f0f0;
  color: #333;
}

@media (max-width: 900px) {
  /* Shift Pet Ability container down */
  .category-content.active:has(#petAbilityButtons) {
    margin-top: 20px;
  }

  /* Limit pet ability grid */
  #petAbilityButtons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-auto-rows: 100px;
    gap: 10px;
    max-height: calc(100px * 2.5 + 20px); /* ~2.5 rows */
    overflow-y: auto;
    padding-right: 8px;
  }

  #petAbilityButtons::after {
    content: "⬇ Scroll for more pets ⬇";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-top: 8px;
  }
}