/**
 * Theme Name:     Go Child
 * Author:         GhariBaaz
 * Template:       go
 * Text Domain:	   go-child
 * Description:    Go is an innovative, Gutenberg-first WordPress theme, hyper-focused on empowering makers to build beautifully rich websites with WordPress.
 */

body,
input,
optgroup,
select,
textarea {
  color: #000 !important;
}

/* All WooCommerce Pages - Full Width Container */
.content-area--woocommerce-wrapper {
  width: 100%;
  padding: 0 3rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-area--woocommerce-wrapper {
    display: block;
    padding: 0 1rem;
  }
}

/* Activate sidebar grid on shop/category/tag pages */
.woocommerce.archive .content-area--woocommerce-wrapper,
.woocommerce.tax-product_cat .content-area--woocommerce-wrapper,
.woocommerce.tax-product_tag .content-area--woocommerce-wrapper {
  grid-template-columns: 300px 1fr;
}
.woocommerce.archive .woocommerce-content-main,
.woocommerce.tax-product_cat .woocommerce-content-main,
.woocommerce.tax-product_tag .woocommerce-content-main {
  grid-column: 2;
}
.shop-sidebar-wrapper {
  grid-column: 1;
  grid-row: 1;
}

/* Make cart and checkout pages full width */
.woocommerce-cart .content-area__wrapper,
.woocommerce-checkout .content-area__wrapper {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.content-area--woocommerce {
  grid-column: 2;
  grid-row: 1;
}
.shop-sidebar-wrapper .widget {
  margin-bottom: 2rem;
  padding: 0 3rem 0 0;
}
.shop-sidebar-wrapper .widget-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.shop-sidebar-wrapper .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-sidebar-wrapper .widget ul li {
  margin-bottom: 0.5rem;
}
.shop-sidebar-wrapper .widget ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}
.shop-sidebar-wrapper .widget ul li a:hover {
  color: #0073e6;
}
.header .site-search .search-input__button .search-input__arrow-icon {
  fill: #ffffff !important;
}
.search-modal.active .search-modal-inner {
  background-color: #ffffff;
}
.shop-sidebar-wrapper .widget_block p,
.wpfFilterWrapper {
  margin: 0 !important;
}
.content-area--woocommerce-wrapper {
  margin-bottom: 5rem;
}
.single-product .entry-summary {
  text-align: left !important;
}

/* Responsive design - Mobile and Tablet */
@media (max-width: 1024px) {
  .content-area--woocommerce-with-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .shop-sidebar-wrapper {
    grid-column: 1;
    order: 2;
  }

  .content-area--woocommerce {
    grid-column: 1;
    order: 1;
  }
}

.shop-sidebar .widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.shop-sidebar .widget-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.shop-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-sidebar .widget ul li {
  margin-bottom: 0.5rem;
}

.shop-sidebar .widget ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.shop-sidebar .widget ul li a:hover {
  color: #0073e6;
}

/* Close button for sidebar - hidden on desktop */
.shop-sidebar-close {
  display: none;
}

/* Toggle button to open filters on mobile */
.shop-filter-toggle {
  display: none; /* controlled by JS */
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 30px 0;
}

.wfpTitle.wfpClickable {
  color: #000 !important;
  font-weight: 600;
}
.wpfTitleToggle {
  margin-top: 0.5rem;
}
.discl {
  background: yellow;
  padding: 10px;
  color: #000;
  margin-top: 40px;
}
.woocommerce-Price-amount.amount {
  font-weight: 700;
  color: #000;
}
.summary.entry-summary .woocommerce-Price-amount.amount {
  font-size: 2rem !important;
}
.woocommerce-mini-cart-item.mini_cart_item .woocommerce-Price-amount.amount {
  color: #000 !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000 !important;
}

/* Responsive design - Mobile and Tablet */
@media (max-width: 1024px) {
  /* Hide sidebar by default on mobile and tablet */
  .shop-sidebar-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Show sidebar when active */
  .shop-sidebar-wrapper.active {
    display: block;
  }

  /* Close button visible on mobile */
  .shop-sidebar-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
  }

  .shop-sidebar-close:hover {
    color: #007cba;
  }

  /* Adjust grid for mobile - full width products */
  .woocommerce.archive .content-area--woocommerce-wrapper,
  .woocommerce.tax-product_cat .content-area--woocommerce-wrapper,
  .woocommerce.tax-product_tag .content-area--woocommerce-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .woocommerce.archive .woocommerce-content-main,
  .woocommerce.tax-product_cat .woocommerce-content-main,
  .woocommerce.tax-product_tag .woocommerce-content-main {
    grid-column: 1;
    width: 100%;
  }

  .shop-content-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .shop-sidebar {
    width: 100%;
  }

  .shop-main-content {
    order: 1;
  }

  .shop-sidebar {
    order: 2;
  }
  .menu-is-open .header__navigation {
    background-color: #ffffff !important;
  }
  .menu-is-open .header__navigation a {
    font-size: 2rem !important;
  }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #000;
  color: white;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 99;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  border: 1px solid #353535;
  padding: 0;
}

#back-to-top:hover {
  background-color: #fff;
  color: #000;
}

#back-to-top.show {
  display: block;
}

@media (max-width: 1024px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Product Stock Badges */
.product-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-stock-badge.sold-out-badge {
  background-color: var(--wc-red);
  color: white;
}

.product-stock-badge.out-of-stock-badge {
  background-color: var(--wc-red);
  color: white;
}

/* For product loop - make parent relative so badge positions correctly */
.products .product {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-stock-badge {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.onsale {
  border-radius: 0 !important;
  padding: 8px 12px !important;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 2 !important;
  left: 10px !important;
  top: 10px !important;
}
.stock.out-of-stock {
  font-size: 2rem !important;
  font-weight: 700;
}
.sku_wrapper {
  display: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  width: 10% !important;
}
.woocommerce
  div.product
  .woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n + 1) {
  clear: unset !important;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .woocommerce div.product div.images .flex-control-thumbs li {
    width: 20% !important;
  }
}

/* Loader */
.la-spinner,
.wpfIconPreview .spinner,
.wpfLoaderIconTemplate .spinner,
.woobewoo-filter-loader.spinner {
  background: url(../go-child/GB-logo-icon.png) no-repeat center center !important;
  height: 90px !important;
}
/* Loader */

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  z-index: 1;
}

/* Removing details on cart page */
.wc-block-components-product-metadata {
  display: none !important;
}

#shipping-country,
#billing-country {
  margin-top: 30px;
}

/* Contact Us page */
.wpcf7-submit {
  color: #fff !important;
}

/*Remove Category Title*/
.woocommerce-products-header__title {
    display: none;
}

/*Filter Button*/
.wpfFilterButtons {
  margin-top: 1rem;
}

.nav-toggle{
    margin-right: -.7rem !important
    ;
}
