/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.4.1753312641
Updated: 2025-07-23 23:17:21

*/

    .custom-archive-wrapper {
        max-width: 1280px;
        margin: auto;
        padding: 40px 20px;
        background: #fff;
    }

    /* Search Bar */
    .custom-search-bar {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .custom-search-form {
        display: flex;
        max-width: 768px;
        width: 100%;
    }

    .custom-search-input {
        flex: 1;
        padding: 10px;
        background: #FAFAFA;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    .custom-search-button {
        background: #000;
        color: #fff;
        padding: 11px 25px;
        font-size: 14px;
        border: none;
        cursor: pointer;
        margin-left: 10px;
    }

    /* Brand Filter */
    .custom-brand-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 40px;
    }

    .custom-brand-list a {
        font-size: 14px;
        text-decoration: none;
        color: #000;
        padding: 6px 12px;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }

    .custom-brand-list a:hover,
    .custom-brand-list a.active {
        border-bottom: 2px solid #000;
    }

    /* Specials Heading */
    .custom-specials-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .custom-specials-heading h2 {
        font-size: 22px;
        font-family: Georgia, serif;
        margin: 0;
    }

    .custom-specials-heading span {
        font-size: 14px;
    }

    /* Product Grid */
    .custom-product-grid ul.products {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .custom-product-grid ul.products li.product {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        text-align: center;
        background: #fff;
        padding: 20px;
        border: 1px solid #eee;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
    }

    /* Push Add to Cart to bottom */
    .custom-product-grid ul.products li.product .button {
        margin-top: auto;
        align-self: center;
    }

    /* Product image styling */
    .custom-product-grid  img {
        max-height: 220px !important;
        min-height: 220px !important;
        object-fit: contain;
        width: 100%;
        margin-bottom: 15px;
    }

    .custom-product-grid.loading {
        opacity: 0.5;
        pointer-events: none;
        position: relative;
    }

    /* Pagination */

    .custom-pagination {
        margin-top: 30px;
        text-align: center;
    }

    .custom-pagination ul.page-numbers {
        display: inline-flex;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .custom-pagination .page-numbers {
        display: inline-block;
        padding: 8px 14px;
        font-size: 14px;
        color: #000;
        border-radius: 4px;
        text-decoration: none;
        transition: background-color 0.3s, color 0.3s;
    }

    .custom-pagination .page-numbers.current,
    .custom-pagination .page-numbers.current:hover {
        background-color: #000;
        color: #fff !important;
        font-weight: bold;
        cursor: default;
        pointer-events: none;
    }

    .custom-pagination .page-numbers.next,
    .custom-pagination .page-numbers.prev {
        font-weight: 600;
    }

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

    @media (max-width: 768px) {
        .custom-product-grid ul.products {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .custom-product-grid ul.products {
            grid-template-columns: 1fr;
        }
    }

    /** Additional CSS */

    .attachment-woocommerce_thumbnail {
        max-height: 240px;
        object-fit: contain;
    }

    .woocommerce-loop-product__title {
        font-size: 1.7rem;
        color: #000;
        font-weight: 600;
        min-height: 60px !important;
    }

    .custom-product-grid .products::before {
        display: none !important;
    }

    .custom-product-grid ul.products li.product {
        float: none !important;
        width: 100% !important;
    }

    .product-part-number {
        color: #000;
        font-family: "Roboto", sans-serif;
    }

    .custom-product-grid .price {
        margin-top: 20px;
    }

    .custom-product-grid .woocommerce-Price-amount {
        font-size: 1.25rem;
        font-weight: bold;
        font-family: "Roboto", sans-serif;
    }

    /** Brands */
    .custom-brand-list {
        text-align: center;
        margin: 30px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .custom-brand-list .brand-filter-btn {
        background: none;
        border: none;
        color: #000;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        padding: 5px 10px;
        transition: color 0.3s;
    }

    .custom-brand-list .brand-filter-btn:hover {
        text-decoration: underline;
    }

    .not-found-msg {
        text-align: center;
    }

    .product-loading {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.6);
        /* semi-transparent background */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .product-loading.active {
        opacity: 1;
        pointer-events: auto;
    }

    .custom-product-grid.loading {
        opacity: 0.3;
        transition: opacity 0.3s ease;
    }

    /* Simple CSS spinner */
    .product-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #ccc;
        border-top: 4px solid #333;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }