/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Clean Product Loop Layout */
.selectpro-loop {
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.sp-archive-prices {
    display: block !important;
    width: 100% !important;
    text-align: center;
}

/* 1. Price on one line */
.sp-archive-price--onetime {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

/* 2. One-time form: Quantity and Add to Cart button on next line */
.sp-loop-onetime-form {
    width: 100% !important;
    display: block !important;
    margin: 0.75rem 0 !important;
    clear: both;
}

.sp-loop-onetime-form .sp-loop-cart {
    display: flex !important;

    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0 !important;
}

/* 3. "or" separator */
.sp-archive-price-sep {
    font-size: 0.9em !important;
    color: #666 !important;
    margin: 0 !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    text-align: center !important;
}

/* 4. Per month price on following line */
.sp-archive-price--subscription {
    font-size: 1.1em !important;
    font-weight: 500 !important;
    color: #333 !important;
    display: block !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.sp-archive-price--subscription .sp-archive-price-was {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 0.25rem;
}

/* 5. Subscription form */
.sp-loop-subscription-form {
    width: 100% !important;
    display: block !important;
    margin-top: 0.75rem !important;
    clear: both !important;
}

/* 6. Deliver label and select on next line */
.sp-loop-subscription-dropdown {
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
    text-align: center !important;
}

.sp-loop-subscription-dropdown label {
    display: block !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    color: #555 !important;
    text-align: center !important;
}

.sp-loop-subscription-select {
    width: 100% !important;
    max-width: 280px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    font-size: 0.7em !important;
    color: #333 !important;
    margin: 0 auto !important;
    display: block !important;
}

/* 7. Subscribe quantity and button on last line */
.sp-loop-subscription-form .sp-loop-cart {
    display: flex !important;

    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    width: 100% !important;
    clear: both !important;
}

/* Quantity Controls */
.sp-loop-quantity-wrapper {
    display: flex;
    align-items: center;
}

.sp-loop-quantity-wrapper .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.sp-loop-quantity-wrapper .quantity .minus,
.sp-loop-quantity-wrapper .quantity .plus {
    width: 32px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: background-color 0.2s ease;
}

.sp-loop-quantity-wrapper .quantity .minus:hover,
.sp-loop-quantity-wrapper .quantity .plus:hover {
    background: #e9ecef;
}

.sp-loop-quantity-wrapper .quantity .minus {
    border-right: 1px solid #ddd;
}

.sp-loop-quantity-wrapper .quantity .plus {
    border-left: 1px solid #ddd;
}

.sp-loop-qty {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    background: #fff;
    font-size: 14px;
    outline: none;
}

/* Remove browser spinners */
.sp-loop-qty::-webkit-outer-spin-button,
.sp-loop-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sp-loop-qty {
    -moz-appearance: textfield;
}

/* Buttons */
.sp-loop-add-to-cart-button {
    height: 40px;
    padding: 0 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    width: 100% !important;
    display: block !important;
    flex: 1 1 auto !important;
}

.sp-loop-add-to-cart-button:hover {
    background: #555;
    transform: translateY(-1px);
}

.sp-loop-add-to-cart-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.sp-loop-add-to-cart-button.added {
    background: #28a745;
}

/* Ensure consistent layout across all WooCommerce pages */
.woocommerce .sp-archive-prices,
.woocommerce-page .sp-archive-prices {
    width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    overflow: visible;
}

.woocommerce .sp-loop-subscription-dropdown,
.woocommerce-page .sp-loop-subscription-dropdown {
    width: 100%;
}

.woocommerce .sp-loop-cart,
.woocommerce-page .sp-loop-cart {
    display: grid !important;

    gap: 0.5rem;
}

.sp-loop-cart-wrapper {
    width: 100% !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

/* Ensure full-width buttons inside WooCommerce product cards. */
.woocommerce ul.products li.product .sp-loop-add-to-cart-button,
.woocommerce-page ul.products li.product .sp-loop-add-to-cart-button {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
}
