/*
Theme Name: PowerFuel Woo Theme
Theme URI: https://example.com/powerfuel-woo-theme
Author: PowerFuel Team
Author URI: https://example.com
Description: Modern, high-conversion WooCommerce theme for supplement and fitness nutrition shops. Bold red/dark aesthetic with hero banners, product grids, and magazine-style blog sections.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerfuel
Tags: e-commerce, woocommerce, custom-menu, featured-images, threaded-comments, translation-ready, blog, footer-widgets

PowerFuel Woo Theme — supplement ecommerce theme.
Placeholder assets live in /assets/images/ — replace with your own brand imagery.
*/

/* Base styles are compiled from assets/scss/main.scss into assets/css/main.css */

/* ==========================================================================
   WooCommerce archive / category — mobile overrides (load last, highest priority)
   ========================================================================== */

@media screen and (max-width: 600px) {
  body,
  html {
    overflow-x: hidden;
  }

  .woocommerce,
  .woocommerce-page,
  .woocommerce.archive,
  .woocommerce-page.archive,
  .site-main,
  main,
  .content-area,
  .shop-page,
  .products-wrap,
  .woocommerce-products-wrapper,
  .shop-archive,
  .shop-layout,
  .shop-content,
  .container.shop-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .shop-layout {
    display: block !important;
    grid-template-columns: none !important;
  }

  .shop-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce-page .woocommerce-result-count,
  .woocommerce .woocommerce-ordering,
  .woocommerce-page .woocommerce-ordering {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 0 16px 0 !important;
    text-align: left !important;
  }

  .woocommerce .woocommerce-ordering select,
  .woocommerce-page .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce.columns-1 ul.products,
  .woocommerce.columns-2 ul.products,
  .woocommerce.columns-3 ul.products,
  .woocommerce.columns-4 ul.products,
  .woocommerce.columns-5 ul.products,
  .woocommerce.columns-6 ul.products,
  .shop-archive ul.products,
  .shop-archive .powerfuel-products-loop {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .woocommerce.columns-1 ul.products li.product,
  .woocommerce.columns-2 ul.products li.product,
  .woocommerce.columns-3 ul.products li.product,
  .woocommerce.columns-4 ul.products li.product,
  .woocommerce.columns-5 ul.products li.product,
  .woocommerce.columns-6 ul.products li.product,
  .shop-archive ul.products li.product.product-card {
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .woocommerce ul.products li.product:hover,
  .shop-archive ul.products li.product.product-card:hover {
    transform: none !important;
  }

  .woocommerce ul.products li.product a,
  .woocommerce-page ul.products li.product a,
  .shop-archive .product-card__link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img,
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img,
  .shop-archive .product-card__image,
  .shop-archive .product-card__image-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 16px auto !important;
  }

  .shop-archive .product-card__image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price,
  .shop-archive .product-card__title,
  .shop-archive .product-card__price,
  .shop-archive .product-card__body,
  .shop-archive .product-card__actions {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .shop-archive .product-card__actions .button,
  .shop-archive .product-card__actions .add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .woocommerce-notices-wrapper,
  .woocommerce .woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
  }

  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem 1.25rem !important;
    box-sizing: border-box !important;
    border-radius: 6px;
  }
}

/* 2-column grid on small tablets / large phones (601px–768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .shop-archive ul.products,
  .shop-archive .powerfuel-products-loop {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }

  .woocommerce ul.products li.product,
  .shop-archive ul.products li.product.product-card {
    width: auto !important;
    float: none !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   Homepage category tiles — 5 per row desktop, up to 10 cards (2 rows)
   ========================================================================== */

.pf-category-grid,
.category-grid,
.fuel-category-grid,
.category-tiles {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.pf-category-grid > .pf-category-card,
.pf-category-grid > .category-tile,
.pf-category-grid > a,
.category-tiles > .category-tile {
  min-width: 0 !important;
  max-width: 100% !important;
}

.pf-category-card,
.category-card,
.fuel-category-card,
.pf-category-grid .category-tile {
  width: 100% !important;
  min-height: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: 1fr !important;
  }
}
