.tub-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.tub-sorting-bar {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tub-sort-select {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
}
.product-pricing-compare .price-current {
    font-size: 16px;
    font-weight: 700;
    color: #fd5622;
}

.price-current bdi{
    color: #000000;
}

.product-pricing-compare .price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent black */
    z-index: 9999;
    display: none;
}
#page-overlay.showloader {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Template style */
.tax-product-type .page_content_wrap{
    padding: 0px!important;
}
.tax-product-type .content_wrap{
    padding: 0px!important;
}
.tax-product-type .content_wrap{
    width: 100%;
}
.page-template-alltubes .page_content_wrap{
    padding: 0px;
}
.page-template-alltubes .content_wrap{
    width: 100%;
}
.do_sortby{
    max-width: 1400px;
    margin: auto;
    padding: 0px 20px;
    display: flex;
    justify-content: end;
}

/* FILTER STYLE */

.all-tub-filter {
    background-color: #EEEEEE;
}

.all-tub-filter-container {
    max-width: 1400px;
    margin: auto;
    padding: 40px 0px;
}

.main-tub-filter {
    background-color: #ffffff;
    margin: 50px 0px;
    display: flex;
    padding: 0px 20px;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding-right: 0px;
    position: relative;
}

.cars_search_button {
    background: #fd5622;
    color: white;
    position: relative;
    top: 0;
    height: 60px;
    width: 60px;
}

.main-tub-filter .cars_search_button {
    background: #fd5622;
    color: white;
    position: relative;
    top: 0;
    height: 60px;
    width: 60px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.main-tub-filter select {
    padding: 0px 10px;
}

.all-tub-filter input {
    border-color: transparent!important;
}

.all-tub-filter select {
    border-color: transparent!important;
}

/* Hamburger Icon Button */
.tub-show-advanced {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.tub-show-advanced:hover {
    color: #fd5622;
}

.tub-show-advanced:before {
    content: "\ea20";
    font-size: 17px;
    font-weight: 400;
    font-family: "fontello";
    color: #fd5622;
}

/* Advanced Filters Section */
.tub-advanced-filters {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px 30px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tub-advanced-filters.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tub-advanced-filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.tub-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tub-checkbox-item {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.tub-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #fd5622;
}

.tub-checkbox-item label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.tub-checkbox-item input[type="checkbox"]:checked + label {
    color: #fd5622;
    font-weight: 500;
}

/* Tablets and smaller screens */
@media (max-width: 1200px) {
    .main-tub-filter {
        background-color: transparent;
    }

    .all-tub-filter-container {
        padding: 30px 20px;
    }

    .main-tub-filter {
        flex-wrap: wrap;
        height: auto;
        padding: 20px;
        gap: 14px !important;
        margin: 30px 0px;
    }

    .main-tub-filter select {
        font-size: 12px!important;
    }

    .main-tub-filter input {
        font-size: 12px!important;
    }

    .tub-field {
        width: 47%;
        background-color: white;
        border-radius: 8px;
    }

    .tub-field-input {
        width: 100%;
        height: 50px;
        border-radius: 8px !important;
        font-size: 15px;
        padding: 0 15px !important;
        border: 1px solid #e5e7eb !important;
        background-color: #f9fafb;
        transition: all 0.3s ease;
    }

    .tub-field-input:focus {
        background-color: #ffffff;
        border-color: #fd5622 !important;
        outline: none;
        box-shadow: 0 0 0 3px rgba(253, 86, 34, 0.1);
    }

    .tub-search-field .tub-field-input {
        background-color: #ffffff;
    }

    .tub-submit-btn {
        width: 100%;
        width: 47%;
        background: transparent;
    }

    .select_container:after {
        right: 10px!important;
    }

    .main-tub-filter .cars_search_button {
        width: 100%;
        height: 54px;
        border-radius: 8px !important;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
    }

    .main-tub-filter .cars_search_button:hover {
        background: #e64a1a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(253, 86, 34, 0.3);
    }

    .main-tub-filter .cars_search_button:active {
        transform: translateY(0);
    }

    .tub-checkbox-group {
        gap: 15px;
    }

    .tub-checkbox-item {
        min-width: 45%;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .all-tub-filter-container {
        padding: 20px 16px;
    }

    .main-tub-filter {
        padding: 16px;
        gap: 10px;
        margin: 20px 0px;
        border-radius: 12px;
    }

    .tub-field-input {
        height: 48px;
        font-size: 14px;
        padding: 0 12px !important;
    }

    .main-tub-filter .cars_search_button {
        height: 50px;
        font-size: 15px;
    }

    .tub-advanced-filters {
        padding: 20px;
    }

    .tub-checkbox-group {
        gap: 12px;
    }

    .tub-checkbox-item {
        min-width: 100%;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .all-tub-filter-container {
        padding: 16px 12px;
    }

    .main-tub-filter {
        padding: 14px;
        gap: 8px;
        border-radius: 10px;
    }

    .tub-field-input {
        height: 46px;
        font-size: 13px;
    }

    .main-tub-filter .cars_search_button {
        height: 48px;
        font-size: 14px;
    }

    .tub-advanced-filters {
        padding: 16px;
    }

    .tub-checkbox-item label {
        font-size: 13px;
    }
}

/* Enhanced select dropdown styling */
@media (max-width: 1200px) {
    .tub-field select.tub-field-input {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
        padding-right: 40px !important;
        cursor: pointer;
    }

    .tub-field select.tub-field-input:hover {
        border-color: #cbd5e1 !important;
    }
}

/* Smooth transitions for all interactive elements */
.tub-field-input,
.main-tub-filter .cars_search_button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state styling */
.tub-field-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility improvements */
.tub-field-input:focus-visible {
    outline: 2px solid #fd5622;
    outline-offset: 2px;
}

.main-tub-filter .cars_search_button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}


/* Grid style */
.pricediv .price-period{
    font-size: 14px;
}
.grid-item-top{
    aspect-ratio: 1/1; /* square */
    overflow: hidden;
    position: relative;
}

.grid-item-top img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.85); /* Make image smaller by default (85% = ~15px padding effect) */
    border-radius: 12px; /* Optional: rounded corners for the padded state */
    transition: transform 0.4s ease, border-radius 0.4s ease;
}

.all-tub-grid {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.all-tub-grid-container {
    max-width: 1400px;
    margin: auto;
    padding: 60px 20px;
}

.main-tub-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px;
}

/* Card Styling */
.tub-grid-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: calc( (100% / 4) - 22.5px ); 
    flex-grow: 0; 
    flex-shrink: 1;
}

.tub-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.grid-item-top {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hover effect: zoom to full size and beyond */
.tub-grid-item:hover .grid-item-top img {
    transform: scale(0.92); /* Zoom to full size + a bit more */
    border-radius: 0; /* Remove border radius on hover */
}

/* Price Tags */
.item-grid-regular-price,
.item-grid-sale-price {
   
    font-weight: 600!important;
    font-size: 14px!important;
    letter-spacing: 0.3px;
}

.item-grid-regular-price {
   
    color: #ff0000ff!important;
   

}
.item-grid-regular-price .woocommerce-Price-currencySymbol{
    display: none;
}
.tub-grid-item .woocommerce-Price-amount{
font-family: var(--theme-font-h3_font-family)!important;
letter-spacing: normal;
}
.item-grid-regular-price .woocommerce-Price-amount{
    text-decoration: line-through;
}

.item-grid-sale-price {
    color: #000000ff!important;
    font-size: 20px!important;
}

/* Content Section */
.grid-item-content {
    padding: 24px;
    padding-top: 0px;
}

.grid-item-content-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.grid-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 28px;
    margin-bottom: 10px;
}
.pricediv {
   margin-bottom: 8px;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
}

/* Add to Compare */
.grid-add-compare {

    
}

.copmarediv{
 background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 3px 4px;
    border-radius: 6px;
    transition: all 0.3s 
ease;
    text-align: right;
    max-width: fit-content;
    margin-left: auto;
}

.grid-add-compare img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}



/* Type Badge */
.grid-item-type {
    display: inline-block;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

/* Feature Icons */
.grid-feature-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.grid-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.grid-icon:hover {
    background: #f8fafc;
}

.grid-icon img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grid-icon:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.grid-icon div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2px;
}

.feature-icon-number {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.feature-icon-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: capitalize;
}

.page-numbers {
    color: black;
    background: #f8f5f3;
    font-size: 18px;
    padding: 0px;
    height: 32px;
    width: 32px;
    text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
}
.page-numbers.current {
    color: white;
    background: #fd5622;
}

.grid-item-size{
    margin: 8px 0;
    line-height: 1.4;
    margin-top: 14px;
    display: inline-block;
    color: #475569;
  

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.grid-item-size span{
    font-weight: 500;
    opacity: .75;
    margin-left: 4px;
}
.ajax-pagination{
    margin-top:50px;

}
.head-title-product h1{
    color: white;
}
/* Responsive Design */
@media (min-width: 600px) and (max-width: 1300px) {
  .tub-grid-item {
  
    width: calc( (100% / 2) - 22.5px ); 
    flex-grow: 0; 
    flex-shrink: 1;
}

}

@media (max-width: 768px) {
    .all-tub-grid {
        padding: 40px 16px;
    }

    .main-tub-grid {
       flex-direction: column;
        gap: 20px;
    }
    .tub-grid-item{
        width: 100%;
    }

    .grid-item-top {

    }

    .grid-item-title {
        font-size: 20px;
    }

    .grid-feature-icons {
        gap: 12px;
    }
    .grid-item-type {
       
        font-size: 12px;
    }
    .grid-icon img {
        width: 25px;
        height: 25px;
    }
    .feature-icon-number {
        font-size: 16px;
    }
    .grid-item-size{
        font-size: 12px;
    }
    .grid-feature-icons{
        padding-top:5px;
    }
   
    .grid-add-compare img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .grid-item-content {
        padding: 20px;
    }

    .item-grid-regular-price,
    .item-grid-sale-price {
        font-size: 13px;
       
    }


}











/* 
Compare */
/* Compare Table Wrapper */
.compare-table-wrapper {
    max-width: 1440px;
    width: 100%;
    margin: 30px auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

/* Table Base Styles */
.compare-table-new {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
}

/* All Table Rows */
.compare-table-new tbody th {
    background: #f9fafb;
    color: #1b1b1b;
    padding: 5px 15px;
    text-align: left;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    font-size: 16px;
    vertical-align: middle;
}
.compare-table-new a{
color:black;
font-weight: 700;
}
.compare-table-new tbody td {
    padding: 5px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    vertical-align: middle;
    background: #fff;
    font-size: 14px;
}
.product-pricing-compare span.woocommerce-Price-amount.amount {
    font-family: var(--theme-font-h3_font-family) !important;
    letter-spacing: normal;
}

/* Product Header Row (First Row with Images) */
.compare-table-new tbody tr.product-header-row th {
    background: #f9fafb;
    vertical-align: middle;
}

.compare-table-new tbody tr.product-header-row td {
    padding: 30px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* Product Header Container */
.compare-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Product Image */
.compare-img {
    width: 100%;
    max-width: 320px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;

}

.compare-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.compare-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}



/* Product Title */
.compare-title {
    text-align: center;
    width: 100%;
}

.compare-title a {
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
    font-weight: 400;
}

.compare-title a:hover {
    color: #fd5622;
}

/* Alternating Row Colors */
.compare-table-new tbody tr:nth-child(even) th {
    background: #f3f4f6;
}

.compare-table-new tbody tr:nth-child(even) td {
    background: #fafbfc;
}

/* Keep first row (product header) white */
.compare-table-new tbody tr.product-header-row th {
    background: transparent;
    border: unset;
}

.compare-table-new tbody tr.product-header-row td {
    background: #fff;
}

/* Price Row Styling */
.compare-table-new tbody tr:nth-child(2) td {
    font-size: 15px;
    color: #fd5622;
    font-weight: 500;
}

/* Checkmark Icon */
.compare-table-wrapper .dashicons-yes-alt {
    color: #10b981;
    font-size: 22px;
    display: inline-block;
}

.compare-table-wrapper .dashicons {
    width: 22px;
    height: 22px;
}

/* Add to Compare Button Styles */
.view_compare {
    display: none;
}

.added .view_compare {
    display: inline-block;
}

span.add_to_compare {
    font-size: 14px;
}
span.view_compare {
    font-size: 14px;
}

.added .add_to_compare {
    display: none;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .compare-table-wrapper {
        margin: 20px;
    }

    .compare-header {
        gap: 12px;
    }

    .compare-img {
        max-width: 240px;

    }

    .compare-table-new tbody tr.product-header-row td {
        padding: 25px 15px;
    }
}

@media screen and (max-width: 768px) {
    .compare-table-wrapper {
        margin: 15px;
        border-radius: 0;
    }

    .compare-table-new {
        min-width: 700px;
    }

    .compare-header {
        gap: 10px;
    }

    .compare-img {
        max-width: 200px;

    }

    .compare-title a {
        font-size: 14px;
    }

    .compare-table-new tbody th {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        padding: 14px 12px;
        font-size: 17px;
    }

    .compare-table-new tbody td {
        padding: 14px 15px;
        font-size: 17px;
    }

    .compare-table-new tbody tr.product-header-row td {
        padding: 20px 12px;
    }

    /* Show scroll hint on mobile */
    .compare-table-wrapper::after {
        content: "← Scroll to view more →";
        display: block;
        text-align: center;
        padding: 12px;
        background: #f9fafb;
        color: #9ca3af;
        font-size: 12px;
        border-top: 1px solid #e5e7eb;
    }
}

@media screen and (max-width: 480px) {
    .compare-table-new {
        min-width: 600px;
    }

    .compare-img {
        max-width: 160px;
        height: 120px;
    }

    .compare-title a {
        font-size: 13px;
    }

    .compare-table-new tbody th {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        padding: 12px 10px;
        font-size: 12px;
    }

    .compare-table-new tbody td {
        padding: 12px;
        font-size: 12px;
    }

    .compare-table-new tbody tr.product-header-row td {
        padding: 15px 10px;
    }
}

/* Print Styles */
@media print {
    .compare-table-wrapper {
        overflow: visible;
    }

    .compare-table-new {
        min-width: 100%;
    }

    .compare-table-wrapper::after {
        display: none;
    }
}