/*
Theme Name: Rehub Theme Child
Author: Seerox
Description: Rehub Theme Child
Version: 1.5
Template: rehub-theme

This is the child theme for Rehub theme theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* Single Product Cleaner Template Css */
.cleaner-wrapper {
    padding: 0px 14px;
    font-family: Roboto, "Helvetica Neue", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, sans-serif;
    margin-bottom: 60px;
    color: #333;
}
.cleaner-wrapper-sec {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    
    max-width: 1200px;
    margin: 50px auto;
}
.cleaner-img {
    width: 55%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: left;
    gap: 20px;
}
.cleaner-img img {
    height: 100%;
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
}
.cleaner-details {
    width: 40%;
    padding: 0px 14px;
}
.cleaner-title {
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 20px;
    color: #222;
}
.cleaner-price {
    font-size: 31px;
    margin: 10px 0 5px;
    font-weight: 700;
}
.cleaner-sku {
    font-size: 16px;
/*    color: #232323;*/
    margin-bottom: 15px;
}
.cleaner-meta {
    margin-bottom: 10px;
}
.cleaner-meta h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}
.cleaner-meta-item {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.cleaner-meta-item:last-child {
    border-bottom: none;
}
.cleaner-meta-icon {
    font-size: 20px;
    color: #6c6c6c;
}
.cleaner-meta-text {
    font-size: 16px;
}
.cleaner-meta-text strong {
    font-weight: 600;
}
.buy-button {
    margin: 12px 0;
    display: inline-block;
    background: #010101;
    color: white;
    padding: 14px 36px 14px 36px;
    width: auto;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid #010101;
}
a.buy-button:hover {
    color: #fff !important;
}
.cleaner-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.cleaner-rating .star {
    color: #f5b301;
    font-size: 20px;
    font-weight: 700;
}
.cleaner-category {
    font-size: 16px;
    margin-top: 5px;
}
.slider-container {
    width: 20%;
    position: relative;
    display: block;
    margin: 38px 0px;
}
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.slider-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.slider-content img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid #fff;
}
.slider-content img.active {
    border-color: #010101;
}
.slider-arrow {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}
.slider-arrow.top {
    top: -52px;
}
.slider-arrow.bottom {
    bottom: -52px;
}
.slider-arrow button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 10px;
}
.slider-arrow button svg {
    width: 50px;
    height: 50px;
    color: #6c6c6c;
}
.main-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Description Section */
.cleaner-description, .cleaner-specification, .cleaner-video {
    max-width: 1200px;
    margin: 25px auto;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .12);
}
.description-tab, .specification-tab, .video-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(206, 206, 206, .3);
}
.description-tab h3, .specification-tab h3, .video-tab h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.description-tab h3 svg, .specification-tab h3 svg, .video-tab h3 svg {
    color: #6c6c6c;
}
.toggle-icon {
    transition: transform 0.3s ease;
}
.description-content, .specification-content, .video-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}
.description-content.active, .specification-content.active, .video-content.active {
    max-height: 1000px; /* Adjust as needed for content height */
    padding: 15px;
    opacity: 1;
}
.description-content p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 30px;
}
/* Video Section */
.video-content {
    text-align: center;
}
.video-content iframe {
    width: 80%;
    height: 450px;
    border: none;
    display: inline-block;
}
/*.video-content .video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.video-content .video-thumbnails iframe {
    width: 300px;
    height: 200px;
}*/
/* Specification Section */

.specification-content table {
    width: 100%;
    border-collapse: collapse;
}
.specification-content th, .specification-content td {
    border: 1px solid #eee;
    padding: 12px 20px;
    text-align: left;
}
.specification-content th {
    background-color: #f9f9f9;
    font-weight: bold;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .cleaner-img {
        display: flex;
        flex-direction: column;
    }
    .slider-container {
        display: block;
        width: 100% !important;
        margin: 0px !important;
    }
    .slider-wrapper {
        height: auto !important;
        white-space: nowrap;
        scroll-behavior: smooth;
    }
    .slider-content {
        max-width: 100%;
        flex-direction: row;
        height: auto;
        transform: none;
        transition: none;
    }
    .slider-content img {
        height: 80px;
        width: 80px;
        margin-right: 10px;
        margin-bottom: 0;
        display: inline-block;
    }
    .slider-arrow.top, .slider-arrow.bottom {
        display: none;
    }
}
@media (max-width: 980px) {
    .video-content iframe {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .cleaner-wrapper-sec {
        display: flex;
        flex-direction: column;
    }
    .cleaner-img, .cleaner-details {
        width: 100%;
    }
    .cleaner-img {
        order: 1;
        display: flex;
        flex-direction: column;
    }
    .slider-container {
        order: 2;
        display: block;
        width: 100% !important;
        margin: 0px !important;
    }
    .slider-wrapper {
        height: auto !important;
        white-space: nowrap;
        scroll-behavior: smooth;
    }
    .slider-content {
        flex-direction: row;
        height: auto;
        max-width: 100%;
        transform: none;
        transition: none;
    }
    .slider-content img {
        height: 60px;
        width: 60px;
        margin-right: 10px;
        margin-bottom: 0;
        display: inline-block;
    }
    .slider-arrow.top, .slider-arrow.bottom {
        display: none;
    }
    .cleaner-details {
        order: 3;
    }
    .video-content iframe {
        width: 100%;
        height: 360px;
    }
    div .specification-content {
        overflow-x: scroll;
    }
}

/* Pool Cleaner Archive Template */
.archive-cleaner-wrapper {
    max-width: 1200px;
    margin: 50px auto 30px;
}
.archive-container {
    display: flex;
    gap: 30px;
}
.cleaner-sidebar {
    width: 27%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
}
.cleaner-sidebar h3 {
    margin: 0 0 22px;
    font-weight: 600;
    font-size: 22px;
}
.cleaner-categories , .cleaner-brands, .price-ranges {
    list-style: none;
    padding: 0;
}
.cleaner-categories li, ul#cleaner-brands-list label, .price-ranges li {
    margin-bottom: 10px;
}
.cleaner-categories label, .cleaner-brands label, .price-ranges label {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}
.cleaner-categories label:hover, .cleaner-brands label:hover, .price-ranges label:hover {
    color: #0099cc;
}
.cleaner-categories input[type="checkbox"], .cleaner-brands input[type="checkbox"], .price-ranges input[type="checkbox"]  {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 1px solid #D7D7D7;
    border-radius: 4px;
    margin-right: 10px;
    text-align: center;
    line-height: 23px;
    font-size: 17px;
    vertical-align: middle;
    cursor: pointer;
    margin-top: 5px;
}
/* Active category styles */
/*.cleaner-categories li.active-category label, .cleaner-brands li.active-category label, .price-ranges li.active-category label {
    color: #0099cc;
}
.cleaner-categories li.active-category input[type="checkbox"]:checked, .cleaner-brands li.active-category input[type="checkbox"]:checked, .price-ranges li.active-category input[type="checkbox"]:checked {
    accent-color: #0099cc;
}*/
.cleaner-products {
    width: 73%;
}
.active-filters {
    margin-bottom: 26px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
}
.active-filters span {
    font-size: 1em;
    color: #333;
}
.filter-tag {
    border-radius: 6px;
    display: flex;
    font-size: 13px !important;
    font-weight: 400;
    align-items: center;
    border: 1px solid #1797d4;
    line-height: 1.5;
    padding: 4px 10px;
}
.filter-tag a.remove-filter {
    margin-left: 5px;
    color: #1797d4;
    text-decoration: none;
    font-weight: bold;
}
.filter-tag a.remove-filter:hover {
    color: #cc0000;
}
.reset-filters {
    background: #1797d4;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}
.reset-filters:hover {
    background: #296bef;
    color: #fff;
}
.cleaner-products h2 {
    margin: 0 0 30px;
    font-size: 34px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 370px; 
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.product-image {
    width: auto;
    height: 200px;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.product-details {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    flex-grow: 1; /* Allow details to take available space */
}
.product-title {
    font-size: 1.2em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding: 0px 10px;
    height: 60px;
    font-weight: normal;
}
.product-info {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px;
    align-items: center;
}
.product-price {
    color: #000;
    font-size: 26px;
    font-weight: 700;
    width: 50%;
    text-align: left;
}
.rating-stars {
    font-size: 20px;
    font-weight: 600;
    color: #f1c40f;
}
/*.product-rating .star {
    color: #f1c40f;
    font-size: 1em;
}*/
.product-rating {
    width: 50%;
    text-align: right;
}
.rating-text {
    font-size: 10px;
    text-align: right;
    font-weight: 400;
    color: #333;
}
/*span.rating-text {
    display: none;
}*/
.button-container {
    margin-top: auto; 
/*    padding: 10px;*/
}
.view-details-button {
    display: block;
    font-size: 17px;
    line-height: 20px;
    padding: 10px 20px 12px;
    background: #0099cc !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    outline: 0;
    box-shadow: -1px 6px 19px rgba(41, 107, 239, 0.2) !important;
    margin-top: 6px;
    font-weight: 500;
}
.view-details-button:hover {
    background: #0695c5 !important;
}
.pagination-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    padding: 15px 0;
}
.pagination-container a, .pagination-container span {
    text-decoration: none;
    color: #0099cc;
    font-size: 1.1em;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.pagination-container a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}
.pagination-container .current {
    background-color: #0099cc;
    color: #fff;
    font-weight: bold;
}
@media (max-width: 1230px){
.archive-cleaner-wrapper {
    padding: 0px 15px;
}
}
@media (max-width: 768px) {
    .archive-container {
        flex-direction: column;
    }
    .cleaner-sidebar, .cleaner-products {
        width: 100%;
    }
}
/* Category template */
/* Style for active category checkbox and text */
/*.cleaner-categories li label.active input[type="checkbox"],
ul#cleaner-brands-list label.active, .price-ranges li label.active input[type="checkbox"]{
    color: #0099cc !important;
}*/

/* Style for category link */
.cleaner-categories li label a.category-link, .cleaner-price-ranges li label a.price-link, .cleaner-brands li label a.brand-link {
    color: inherit;
}
.star.partial {
    position: relative;
    color: #ccc;
}
.star.partial::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fill);
    overflow: hidden;
    color: #f5c518;
}
/* Out of Stock styling */
.product-price.out-of-stock, .cleaner-price.out-of-stock {
    background-color: #ff0000;
    color: #ffffff;
    padding: 4px 15px 6px;
    border-radius: 20px;
/*    display: inline-block;*/
    font-weight: bold;
    font-size: 13px;
    width: 107px;
}
a.act-rehub-login-popup.wpsm-button.white.medium.rh-flex-right-align {
    display: none !important;
}
/**/

.cleaner-brands li {
    opacity: 1;
    max-height: 40px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.cleaner-brands li.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}
.more-brands {
    margin: 10px 0px;
    padding: 0;
    background-color: unset;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: underline;
    color: #0099cc;
    font-size: 16px;
    font-weight: 600;
}
.more-brands:hover {
    color: #0787c0;
}
/* Shop By Brand: eighteen brands, six per column. */
@media (min-width:1024px) {
 .top_menu .rpc-brand-menu > ul.sub-menu { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(6,auto) auto; grid-auto-flow:column; width:610px!important; padding:20px!important; gap:3px 14px; margin-left:-210px; box-sizing:border-box; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li { width:auto!important; float:none!important; margin:0!important; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li > a { display:flex!important; align-items:center; gap:10px; padding:11px 10px!important; white-space:normal; border:0!important; border-radius:4px; font-size:15px; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li:not(.rpc-brand-view-all) > a:before { content:'›'; color:#159bd0; font-size:22px; line-height:1; font-weight:700; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li:not(.rpc-brand-view-all) > a:hover { background:#eff8fc!important; color:#087eae!important; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li.rpc-brand-view-all { grid-column:1 / -1; grid-row:7; border-top:1px solid #e8e8e8; padding-top:16px; margin-top:10px!important; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li.rpc-brand-view-all > a { justify-content:center; background:#159bd0!important; color:#fff!important; text-align:center; font-weight:700; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li.rpc-brand-view-all > a:after { content:' →'; }
 .top_menu .rpc-brand-menu > ul.sub-menu > li.rpc-brand-view-all > a:hover, .top_menu .rpc-brand-menu > ul.sub-menu > li.rpc-brand-view-all > a:focus { background:#087eae!important; color:#fff!important; }
 .top_menu .rpc-brand-menu:focus-within > ul.sub-menu { left:0; visibility:visible; opacity:1; }
}
@media (min-width:1024px) and (max-width:1199px) {
 .top_menu .rpc-brand-menu > ul.sub-menu { width:540px!important; margin-left:-180px; gap:3px 8px; }
}
