/*
Theme Name:  Flashy Bits
Theme URI:   https://flashybits.com.au
Version:     1.0
Description: A child theme of Divi. This is a custom child theme created for our site Flashy Bits.
Author:      Luke O\'Hehir
Author URI:  https://elegantlogic.com.au
Template:    Divi
*/

/*- Add any CSS custom code for this child theme below this line -*/

/* Search Modal */
/* Make the search container act like a fullscreen modal */
.et_pb_menu__search-container--visible {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Clear out inherited layout problems */
.et_pb_menu__search {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

/* Center and style the input field */
.et_pb_menu__search-form input[type="search"] {
  width: 100%;
  font-size: 22px;
  padding: 16px 20px;
  border: 2px solid #fff;
  border-radius: 10px;
  background-color: #fff;
  color: #000;
  outline: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Focus effect for UX */
.et_pb_menu__search-form input[type="search"]:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

/* Close button styling */
.et_pb_menu__close-search-button {
  position: fixed;
  top: 30px;
  right: 30px;
  font-size: 32px;
  background: none;
  color: white;
  z-index: 100000;
  cursor: pointer;
}

/* Optional: Placeholder text style */
.et_pb_menu__search-form input::placeholder {
  color: #666;
  font-size: 18px;
}



/* Add "Search" label next to the icon */
.custom-search-label .et_pb_menu__search-button::before {
  content: " Search";
  font-size: 16px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Optional: better spacing on hover/focus */
.custom-search-label .et_pb_menu__search-button {
  padding: 0 10px;
}

/* Position search box above keyboard on mobile */

@media (max-width: 768px) {
  .et_pb_menu__search-container--visible {
    align-items: flex-start !important;
    padding-top: 80px !important; /* push it down from top if needed */
  }
}

/* END Search Modal */

/* sticky header stuff */

.delayed-sticky-header {
  position: relative;
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease;
}

.delayed-sticky-header.stuck {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff; /* Optional: change background for visibility */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.delayed-sticky-header.stuck img {
  max-width: 100px;
  transition: all 0.3s ease;
}

.delayed-sticky-header,
.delayed-sticky-header img {
  transition: all 0.3s ease;
}

/* END sticky header stuff */



/*  Categroy grid layout styles */
.custom-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.custom-category-grid .category-item {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.custom-category-grid .category-item:hover {
  transform: translateY(-5px);
}

.custom-category-grid img {
  max-width: 100%;
  height: auto;
  display: block;
}

.custom-category-grid h3 {
  padding: 15px;
  font-size: 1.2em;
}

/* END Categroy grid layout styles */

/* Categroy POST grid layout styles */

.custom-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.custom-post-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.custom-post-item:hover {
  transform: translateY(-5px);
}

.custom-post-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
}

.custom-post-item h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.custom-price {
  font-weight: bold;
  color: #2c3e50;
  margin-top: 5px;
}

/* END Categroy POST grid layout styles */