/**
Theme Name: prolixa-labs
Author: Big Mountain Marketing
Author URI: https://www.bigmtnmarketing.com
Description: Custom Theme for Prolixa Labs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prolixa-labs
Template: astra
*/

/* Main Container */
.custom-shop-container {
    max-width: 1350px;
    margin: 0px auto;
    padding: 0 20px;
}

/* Remove WooCommerce Default Layout */
.custom-products-grid ul.products,
.custom-products-grid li.product {
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* Product Grid */
.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

/* Product Card */
.custom-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    position: relative;
}

.custom-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Image Area */
.custom-product-image {
    display: block;
}

.custom-product-image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
}

/* Product Content */
.custom-product-content {
    padding: 20px;
    text-align: center;
}

/* Title */
.custom-product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.custom-product-title a {
    color: #111;
    text-decoration: none;
}

/* Price */
.custom-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #5B8E4C;
    margin-bottom: 18px;
}

/* Button */
.custom-product-button .button {
    width: 100%;
    border: none;
    background: #5B8E4C;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.custom-product-button .button:hover {
    background: #476f3b;
}

/* Sale Badge */
.custom-product-card .onsale {
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    background: #5B8E4C;
    border-radius: 50px;
    padding: 6px 12px;
    min-height: auto;
    min-width: auto;
    line-height: normal;
}

/* Toolbar */
.custom-shop-toolbar {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Remove Weird Astra Styles */
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .custom-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .custom-product-image img {
        height: 180px;
    }

    .custom-product-content {
        padding: 5px 5px 15px;
    }

    .custom-product-title {
        font-size: 14px;
    }

    .custom-product-price {
        font-size: 16px;
    }

    .custom-product-button .button {
        padding: 11px;
        font-size: 14px;
    }
}
/* =========================================
   FULL WIDTH SHOP HEADER
========================================= */

.woocommerce-products-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #d5ead8;
    padding: 10px 20px;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 50px;
}

.woocommerce-products-header__title.page-title {
    font-size: 30px;
    font-weight: 500;
    margin: 0;
    color: #111;
}

/* Remove Astra top spacing */
.ast-woo-shop-page .site-content,
.woocommerce-page .site-content {
    padding-top: 0 !important;
}

/* =========================================
   TOOLBAR FIX
========================================= */

.custom-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Product Count */
.woocommerce-result-count {
    margin: 0 !important;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* Sorting Dropdown */
.woocommerce-ordering {
    margin: 0 !important;
}

.woocommerce-ordering select {
    height: 40px;
    border-radius: 10px;
     border: 1px solid grey !important;
    padding: 0 15px;
    background: #fff;
}

/* =========================================
   PAGINATION CENTER
========================================= */

nav.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

nav.woocommerce-pagination ul {
    border: none !important;
    display: inline-flex !important;
    gap: 10px;
    padding: 0;
}

nav.woocommerce-pagination ul li {
    border: none !important;
}

nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f5f5f5;
    color: #111;
    font-weight: 600;
    transition: 0.3s;
}

nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li a:hover {
    background: #5B8E4C;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {

    .woocommerce-products-header {
        padding: 15px 20px;
    }

    .woocommerce-products-header__title.page-title {
        font-size: 34px;
    }

    .custom-shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-ordering {
        width: 100%;
    }

    .woocommerce-ordering select {
        width: 100%;
    }
}