/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

.tvtabcategory-product-sub-title-block .tvtabcategory-product-li.hide {
    display: none;
}
.tvtabcategory-product-sub-title-block .tvtabcategory-show.show-hide {
    display: block;
}
.tvtabcategory-product-sub-title-block .show-hide.hide {
    display: none;
}
.tvcmstabcategory-product-slider {
    margin-bottom: 25px;
}
.tvtabcategory-tab-product {
    margin: 0 -15px;
    overflow: hidden;
    /*display: flex;
    flex-wrap: wrap;*/
}
.tvtabcategory-all-tab {
    width: 100%;
    /*padding: 0 7.5px;*/
}
.tvcmstabcategory-product-slider-main-title-wrapper {
    position: relative;
}
.tvtabcategory-all-product {
    width: 100%;
    padding: 0;
}
.tvtabcategory-product-li,
.tvtabcategory-show,
.tvtabcategory-hide {
    padding: 12px 12px;
    cursor: pointer;
    width: 18.69%;
    display: flex;
    flex-direction: column; /* ✅ Added for vertical layout */
    justify-content: flex-start; /* ✅ Align top */
    align-items: center; /* ✅ Center content */
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    margin: 0 7.5px;
    vertical-align: middle;
    margin-bottom: 20px;
    position: relative;
    border-radius: 5px;
    height: auto; /* ✅ Allow box to grow with text */
}
/* .tvtabcategory-product-li.active,
.tvtabcategory-show.active,
.tvtabcategory-hide.active,
.tvtabcategory-product-li:hover,
.tvtabcategory-show:hover,
.tvtabcategory-hide:hover {
    opacity: 1;
} */
.tvtabcategory-product-li.active,
.tvtabcategory-product-li:hover,
.tvtabcategory-show:hover,
.tvtabcategory-hide:hover,
.tvtabcategory-product-li.active img,
.tvtabcategory-product-li:hover img {
    background-color: #e73e24;
    border-color: #e73e24;
}
.tvtabcategory-product-li.active img,
.tvtabcategory-product-li:hover img {
    filter: invert(1);
    background-color: transparent;
}
.tvtabcategory-product-inner {
    background-color: #0000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -7.5px;
}
.tvtabcategory-product-li a:not([href]):not([tabindex]),
.tvtabcategory-show a:not([href]):not([tabindex]),
.tvtabcategory-hide a:not([href]):not([tabindex]) {
    color: #222222;
    font-size: 16px;
    text-align: left;
    font-weight: 500;
}
.tvtabcategory-product-sub-title-block i {
    font-size: 16px;
    color: #ffffff;
    float: right;
    cursor: pointer;
}

/* ✅ FIX: Text overflow in category title */
.tvtabcategory-tab-sub-title {
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.2em;
    padding: 4px 0 0 0;
    text-align: center;
    max-width: 100%;
}

@media(max-width: 1280px) {
    .tvtabcategory-product-li,
    .tvtabcategory-show,
    .tvtabcategory-hide {
        /*padding: 15px 16px 15px 10px;*/
    }
}
@media(max-width: 1024px) {
    .tvtabcategory-all-tab {
        /*width: 25%;*/
    }
    .tvtabcategory-all-product {
        /*width: 75%;*/
    }
}
@media(max-width: 991px) {
    /* .tvtabcategory-all-tab {
        width: 30%;
    }
    .tvtabcategory-all-product {
        width: 70%;
    } */
    .tvcmstabcategory-product-slider {
        margin-bottom: 30px;
    }
}
@media(max-width: 767px) {
    .tvtabcategory-all-tab {
        width: 100%;
        margin-bottom: 15px;
    }
    .tvtabcategory-all-product {
        width: 100%;
    }
}
.lang-rtl .tvtabcategory-product-li,
.lang-rtl .tvtabcategory-show,
.lang-rtl .tvtabcategory-hide {
    text-align: right;
}
.lang-rtl .tvtabcategory-product-li:after,
.lang-rtl .tvtabcategory-show:after,
.lang-rtl .tvtabcategory-hide:after {
    right: 0;
    left: auto;
}
.tvtabcategory-product-li:after,
.tvtabcategory-show:after,
.tvtabcategory-hide:after {
    position: absolute;
    content: '';
    top: auto;
    left: 0;
    right: 0;
    bottom: -12px;
    width: 1px;
    height: 0;
    opacity: 0;
    margin: auto;
    border-top: 8px solid #e73e24;
    border-bottom: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}
.tvtabcategory-product-slider .tvtabcategory-product-li a {
    color: #222222;
    font-size: 16px;
    text-align: left;
    font-weight: 500;
}
.tvtabcategory-product-li.active a,
.tvtabcategory-product-li:hover a,
.tvtabcategory-show:hover a,
.tvtabcategory-hide:hover a {
    color: #fff;
}
