/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* Hide fluff only on mobile */
@media (max-width: 767px) {
  .woocommerce-breadcrumb,
  h1.display-5,
  .woocommerce-ordering {
    display: none !important;
  }

  /* Products layout: image left, text right */
  ul.products li.product {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #eee;
    border-radius: 10px;
    gap: 1rem;
  }

  ul.products li.product img {
    width: 80px !important;
    height: auto;
    border-radius: 8px;
  }

  ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
  }

  ul.products li.product .price {
    font-size: 0.9rem;
    color: #555;
  }

  ul.products li.product .button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
  }

  ul.products.columns-4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

/* === Final Badge, Layout, and Admin Bar Fixes === */

/* Prevent horizontal wiggle */
.woocommerce .site-content,
.woocommerce .products {
  overflow-x: hidden;
}

/* Fix admin bar offset */
@media (min-width: 601px) {
  body.admin-bar #masthead.sticky-top {
    top: 32px !important;
  }
}
@media (max-width: 600px) {
  body.admin-bar #masthead.sticky-top {
    top: 46px !important;
  }
}

/* Fix badge clipping */
.cart-toggler {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

/* Perfect circular badge styling */
.cart-content-count {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  z-index: 1000;

  width: 1.25rem;
  height: 1.25rem;
  background-color: #dc3545;
  color: white;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
}

@media (max-width: 767px) {
  .shop-breadcrumb-fix {
    display: none !important;
  }
}



/* Boost dropdown above sticky sidebar ads */
.dropdown-menu {
  z-index: 1070 !important; /* higher than sticky or default navbar */
}

/* Lower sticky sidebar if needed */
.col-lg-3 .sticky-top {
  z-index: 100 !important;
}

.guide-left .sticky-top {
  z-index: 1;
}

.dropdown-menu {
  z-index: 1070 !important;
}



/* woocommerce.php */

nav[aria-label="breadcrumb"] {
  margin-top: 0 !important;
}
  
.shop-hero {
  background: url('https://webehigh.org/wp-content/uploads/2025/06/shop_bg.png') center center / cover no-repeat;
  padding: 5rem 2rem;
  color: #fff;
  text-align: center;
  position: relative;
}
.shop-hero h1 {
  font-family: 'Fugaz One', cursive;
  font-size: 3.5rem;
  z-index: 2;
  position: relative;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.shop-hero::after {
  content: '';
  position: absolute;
  inset: 0;

  z-index: 1;
}

body.post-type-archive-product .shop-breadcrumb-fix .woocommerce-breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
}


.shop-title {
  font-family: 'Fugaz One', cursive;
}

/* blog.php */


.blog-header h1 {
  font-family: 'Shrikhand', cursive;
  font-size: 4.5rem;
}

.blog-header p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: #666;
}

.blog-wrapper {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}
.blog-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.blog-header h1 {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
}

.blog-header p {
  font-size: 1.1rem;
  color: #666;
}

.blog-categories {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-categories a {
  display: inline-block;
  margin: 0 0.5rem 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #e0f0ff;
  color: #0073aa;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

.blog-categories a:hover {
  background: #c6e4ff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  transition: all 0.2s ease-in-out;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-content a {
  color: #0073aa;
  text-decoration: none;
}

.blog-card-content p {
  flex-grow: 1;
  color: #444;
}

.blog-meta {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: #888;
}
.category-tag {
  background: #f0f8ff;
  color: #0073aa;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.ad-banner {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0;
}

.pagination {
  grid-column: 1 / -1;
  text-align: center;
  margin: 3rem 0 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #0073aa;
  padding: 0.5rem 0.75rem;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.2;
}

.pagination .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}



.navbar-brand img {
  max-height: 50px;
  height: auto;
  width: auto;
}







  @media (min-width: 992px) {
    .sidebar {
      position: sticky;
      top: 100px;
      align-self: flex-start;
    }

    .row {
      align-items: flex-start;
    }
    .sidebar > div[data-mantis-zone]:nth-of-type(2),
    .sidebar > div[data-mantis-zone]:nth-of-type(3) {
      margin-top: 25px;
    }
  }


.coming-soon-wrapper {
  position: relative;
  opacity: 0.4;
  pointer-events: none;
}

.coming-soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-size: 2rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  pointer-events: none;
}

.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product .card,
.woocommerce ul.products li.product .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product .card-body {
  flex: 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title {
  min-height: 3.9em;                  /* for 3 lines of text */
  line-height: 1.3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;              /* allow 3 lines */
  -webkit-box-orient: vertical;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price-placeholder {
  display: block;
  min-height: 2.5em;
}

.woocommerce ul.products li.product .button {
  margin-top: auto;
}

