@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
    [data-template='pages-brand'] #main-content .container {
       padding: 0;
       max-width: 100%;
   }
   [data-template='pages-brand'] .res_wdt_prd {
        margin: 0;
        padding: 0px;
    }
   .APAcontainer{
       height: inherit !important;
   }
   .APAcontainer, .res_wdt_prd  {
    margin-top:10;
    margin-bottom: 10;
   }
   .apa-page-heading{
        position: relative;
        background-image: url('../img/static-banner.png');
        background-size: cover;
        padding: 50px 0px;
    }
    .apa-page-heading:before{
        content: '';
        background-color: #444444;
        opacity: 0.7;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .apa-page-heading h1.apa-page-title{
        font-size: 52px;
        font-family: "Roboto";
        font-weight: 500;
        position: relative;
        color: #fff;
        margin: 0;
        text-align: center;
    }
   img {
   max-width: 100%;
   display: block;
   margin: 0 auto;
   }
   .apapoc-section-heading{
        font-size: 30px;
        font-family: "Roboto";
        font-weight: 600;
        position: relative;
        color: #222222;
        margin: 0 0 20px; 
        text-align: center;
        text-transform: uppercase;
    }
   .child-brand-content{
       background-image: url('../img/child-banner-bg.png');
       background-repeat: no-repeat;
       background-size: cover;
       padding: 20px 0px 300px 0px;
   }
   .child-brand-content.padd{
        padding: 20px 0px 50px 0px;
   }
   .apa-brandlogo {
       width: 280px;
       margin: 0 auto;
       padding-bottom: 30px;
   }
   .apa-brand-details {
       display: flex;
       justify-content: center;
       flex-wrap: wrap;
       gap: 30px;
   }
   .brand-detail-box {
       width: 360px;
       background-color: #fff;
       padding: 0px 15px 15px 15px;
       text-align: center;
       border-radius: 4px;
       margin-top: 20px;
   }

   .brand-detail-box h3 {
       font-size: 20px;
       font-weight: 600;
       background-color: #E7503D;
       font-family: "Roboto";
       font-weight: 500;
       display: block;
       margin: 0 auto;
       margin-top: -18px;
       max-width: 300px;
       padding: 12px;
       border-radius: 30px;
       color: #fff;
       position: relative;
       top: -5px;
   }

   .brand-detail-box p {
   padding-top: 10px;
   line-height: 24px;
   font-size: 15px;
   color: #0F172A;
   }
   .child-brand-middle-content {
    max-width: 1020px;
    margin: 0 auto;
    margin-top: -180px;
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    border-top: 5px solid #E7503D;
    display: flex;
    gap: 30px;
    box-shadow: 0px 1px 4px #00000030;
}
   .brand-middle-img, .brand-middle-content {
       flex: 1;
   }

   .brand-middle-img {
   width: 430px;
   max-width: 430px;
}
   .apa-brandlogo img {
       width: 100%;
       display: block;
       margin: 0 auto;
   }

   .brand-middle-content p {
       font-size: 15px;
       line-height: 25px;
       color: #0F172A;
   }

   .brand-middle-content h3 {
       font-size: 28px;
       font-weight: 700;
       margin: 0px 0px 10px;
   }
   .apa-primary{
       color: #E7503D;
   }

   @media (max-width:991px){
       .child-brand-middle-content {
           flex-direction: column;
           text-align: center;
           margin: -200px 30px 0px;
       }

       .brand-middle-img {
           margin: 0 auto;
           width: unset;
       }
   }

   /* Initially hide the content */
   .content-container {
        display: none; /* Hidden until data is ready */
    }

    /* Loading spinner or message styling */
    .loading-message {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-size: 1.5em;
        color: #555;
    }

    .view_all{
        display: none;
    }

    .product_list {
        display: none;
    }
     
    .product_list:nth-child(-n+8) {
         display: block;
    }

    /* Center-align and style the "View All" button */
    .view-all-button {
            display: block;
            margin: 20px auto;
            width: 180px;
            padding: 10px 20px;
            font-size: 16px;
            /* background-color: #007bff; */
            color: #333;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
            clear: both;
            height: 50px;
            /* background-color: var(--Secondary-Yellow, #ffba00); */
            border: 1px solid #333;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1;
    }

    .view-all-button:hover {
        background-color: var(--Secondary-Yellow, #ffba00);
    }

    .view-all-button:focus {
        outline: none;
    }

    .pagination {
        display: flex;
        justify-content: center;
        margin: 20px auto;
    }
    .pagination .pagination-list{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pagination-list .pagination-item a{
            padding: 10px 15px;
        border-radius: 2px;
        border: 1px solid #D4D4D4;
        line-height: 20px;
    }
    .pagination-item.pagination-item--previous > a, .pagination-item.pagination-item--next > a{
        border: 1px solid #D4D4D4;
    }
    .pagination-item.pagination-item--current{
        background: #ddd;
            margin: 0 0 0 0.35714rem;
    }

    .pro-product-name{
        height: 130px;
    }
    .brand-product-container{
        padding-top: 30px;
            margin-top: 25px;
    }


    .brand-product-container .form-field {
        margin: 0px;
        border: none !important;
    }

    .brand-product-container select#sort {
        padding: 2px 36px 2px 6px;
        width: 120px;
        border: 1px solid;
        width: 200px;
        border-radius: 2px;
    }

.apa-product-grid .add-to-cart, .apa-product-grid .see-details { 
    position: relative;
}

.pro-product-name {
    height: unset;
}
 
.po-customcontainer .apa-product-grid, .poc-categories-page .apa-product-grid {
    height: 100%;
}

@media (max-width: 767px) {
    .APAcontainer.brand-product-container {
        padding: 15px !important;
    }
}
 
.brand-product-container  #product-listing-container {
    padding: 0 15px;
    margin:  0 auto;
}
.card-image {
 position: relative !important;
}