/*
Theme Name:   Xstore child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

.xstore-brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 -15px;
    justify-content: center;
}

.xstore-brand-card {
    width: calc(33.333% - 30px);
    max-width: 320px;
    padding: 28px 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xstore-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.xstore-brand-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.xstore-brand-thumb {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.xstore-brand-logo {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.xstore-brand-fallback {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    color: #333;
    font-weight: 600;
}

.xstore-brand-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .xstore-brand-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 640px) {
    .xstore-brand-card {
        width: 100%;
    }
}

.xstore-promo-pagination {
    margin-top: 2rem;
    text-align: center;
}

.xstore-promo-pagination .page-numbers {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    background: #fff;
}

.xstore-promo-pagination .page-numbers.current {
    background: #222;
    color: #fff;
    border-color: #222;
}

.xstore-promo-empty {
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

/* Mobile: force one product per line for product listings */
@media (max-width: 767px) {
    .woocommerce ul.products,
    ul.products,
    .products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product,
    .products .product {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        display: block !important;
    }

    .products .product > .woocommerce-LoopProduct-link,
    .product .woocommerce-LoopProduct-link {
        width: 100% !important;
        display: block !important;
    }
}
