/*
 Theme Name:   Shopire Child
 Theme URI:    https://wpfable.com/themes/shopire-free/
 Description:  Child theme for the Shopire theme
 Author:       WPFable
 Author URI:   https://wpfable.com/
 Template:     shopire
 Version:      1.0.0
 License:      GPLv3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  shopire-child
*/

/* Add your custom styles below this line */

.single-product .wf_pagetitle,
.archive.tax-product_cat .wf_pagetitle{
    display: none;
}

/* Installment banner on single product page */
.installment-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e8f8f2 0%, #d4f0e7 100%);
    border: 1px solid #a3ddc8;
    border-left: 4px solid #60c2a1;
    border-radius: 6px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.installment-banner:hover {
    box-shadow: 0 2px 8px rgba(96, 194, 161, 0.3);
    border-color: #60c2a1;
    text-decoration: none;
}

.installment-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #60c2a1;
    color: #fff;
    border-radius: 50%;
}

.installment-banner__icon svg {
    width: 20px;
    height: 20px;
}

.installment-banner__text {
    font-size: 15px;
    color: #174a67;
    line-height: 1.4;
}

.installment-banner__text strong {
    font-size: 17px;
    color: #60c2a1;
}

.site--logo img {
    max-height: 7rem;
}

.wp-block-button__link {
    height: auto;
    align-content: center;
}

/* Hide the entire archive title on all category pages */
.category .page-header,
.category .archive-header,
.category .entry-title,
.category h1 {
    display: none !important;
}


@media (max-width: 767px) {
    .feature-block {
        flex-direction: column !important;
    }

    .feature-text {
        order: 1 !important;
    }

    .feature-image {
        order: 2 !important;
    }
}


.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(1) {
    max-height: 100%;
    overflow: hidden;
}

.wf_header-widget .widget--right {
    display: none !important;
}

@media (min-width: 992px) {
    #wf-main {
        max-width: 100%;
        flex-basis: 100%;
    }
}

.af-spec-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.af-spec-title {
    font-size: 1.75rem;
    color: #222;
    margin-bottom: 25px;
    text-align: center;
}

.af-spec-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.af-spec-section-header {
    background: #fe4322;
    color: #fff;
    padding: 14px 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.af-spec-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 25px 30px;
}

.af-spec-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.af-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.af-spec-item:last-child {
    border-bottom: none;
}

.af-spec-label {
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 15px;
}

.af-spec-value {
    color: #fe4322;
    font-weight: 500;
    text-align: right;
    min-width: 140px;
}

/* Responsive */
@media (max-width: 768px) {
    .af-spec-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .af-spec-column {
        min-width: 100%;
    }
}


/* Container text */
.cp-description {
    margin: 0;
}

/* Feature block wrapper */
.cp-feature-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    padding: 15px;
}

/* Frontpage product grid (no carousel) */
.front-popular-product ul.products.columns-4,
.front-most-ordered ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.front-popular-product ul.products.columns-4::before,
.front-popular-product ul.products.columns-4::after,
.front-most-ordered ul.products.columns-4::before,
.front-most-ordered ul.products.columns-4::after {
    display: none !important;
    content: none !important;
}

.front-popular-product ul.products.columns-4 li.product,
.front-most-ordered ul.products.columns-4 li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Tablet: 2 products per row */
@media (min-width: 576px) and (max-width: 991px) {
    .front-popular-product ul.products.columns-4,
    .front-most-ordered ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile: 1 product per row */
@media (max-width: 575px) {
    .front-popular-product ul.products.columns-4,
    .front-most-ordered ul.products.columns-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Text & image columns */
.cp-col {
    flex: 1;
    min-width: 300px;
}

.cp-text {}

.cp-image {
    text-align: center;
}

/* Order helpers */
.cp-order-1 {
    order: 1;
}

.cp-order-2 {
    order: 2;
}

/* Headings */
.cp-feature-block h6 {
    margin-top: 0;
    color: #333;
}

/* Images */
.cp-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .cp-order-1,
    .cp-order-2 {
        order: unset;
    }
}