.cart-disabled .wishlist-btn,
.cart-disabled .btn-quick-add,
.cart-disabled .btn-quick-add-products {
    display: none !important;
}

.box-icon.quick-add {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

.box-icon.quick-add:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

.box-icon.quick-add:focus {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, .25) !important;
}

.product-img-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: white;
    border: 2px solid #f0f0f0;
}

.product-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 11;
}

.product-img-container:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.featured-product-item .card-product-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
}

.featured-product-item .card-product-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    border: 1px solid #e9ecef;
}

.featured-product-item .card-product-wrapper img:first-child {
    opacity: 1;
    z-index: 2;
}

.featured-product-item .card-product-wrapper img:nth-child(2) {
    opacity: 0;
    z-index: 1;
}

.featured-product-item .card-product-wrapper:hover img:first-child {
    opacity: 0;
}

.featured-product-item .card-product-wrapper:hover img:nth-child(2) {
    opacity: 1;
}

.featured-product-item .card-product-wrapper img:only-child {
    position: relative;
    opacity: 1 !important;
    z-index: auto !important;
}

.tf-shop-sidebar {
    width: 300px;
    margin-right: 30px;
    flex-shrink: 0;
}

.facet-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.list-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.cate-item {
    margin-bottom: 8px;
}

.cate-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
}

.cate-item a:hover,
.cate-item a.active {
    color: #333;
    background-color: #f8f9fa;
}

.widget-featured-products {
    max-height: 400px;
    overflow-y: auto;
}

.featured-product-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-product-item:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-product-item .card-product-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #f8f9fa;
}

.featured-product-item .card-product-info {
    text-align: left;
    flex: 1;
}

.featured-product-item .title {
    font-size: 14px;
    margin-bottom: 2px;
    color: #333;
    text-decoration: none;
    display: block;
}

.featured-product-item .price {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.tf-shop-content {
    flex: 1;
}

.tf-row-flex {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .tf-row-flex {
        flex-direction: column;
    }

    .tf-shop-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        order: 2;
    }

    .tf-shop-content {
        order: 1;
    }

    .list-categories {
        max-height: 200px;
    }

    .widget-featured-products {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .featured-product-item {
        padding: 8px;
    }

    .featured-product-item img {
        width: 40px;
        height: 40px;
    }

    .featured-product-item .title {
        font-size: 13px;
    }

    .featured-product-item .price {
        font-size: 11px;
    }
}

.wishlist-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 15;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-icon,
.wishlist-icon-fill {
    transition: all 0.3s ease;
}

.wishlist-icon-fill {
    color: #ff4757 !important;
}

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

.wishlist-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.card-product {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.card-product:hover {
    transform: translateY(-5px);
}

.card-product-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card-product:hover .card-product-wrapper {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-product-info {
    padding: 15px;
    text-align: center;
}

.card-product-info .title {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-product-info .title:hover {
    color: #333;
}

.card-product-info .price {
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

.tf-btn-loading {
    position: relative;
}

.tf-btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    display: none;
}

.tf-btn-loading.loading::before {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.price-section .original-price {
    font-size: 1.1rem;
}

.price-section .discounted-price {
    font-size: 1.3rem;
}

.quantity-section .input-group {
    max-width: 120px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
        max-height: 85vh;
        display: flex;
        align-items: flex-start;
        margin-top: 2rem;
    }

    .modal-content {
        border-radius: 8px;
        max-height: 85vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 0.75rem;
        flex-shrink: 0;
    }

    .modal-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .modal-body {
        padding: 0.75rem;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .qa-body .row {
        flex: 1;
        min-height: 0;
    }

    .qa-gallery img,
    .qa-gallery .carousel-item img {
        height: 160px !important;
        object-fit: cover;
    }

    .qa-info {
        margin-top: 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .qa-price {
        font-size: 1.2rem;
    }

    .qa-description {
        font-size: 0.9rem;
        line-height: 1.4;
        flex: 1;
        overflow-y: auto;
        margin-bottom: 0.5rem;
    }

    .qa-variants .form-select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .qa-qty-group {
        max-width: 150px;
        margin: 0 auto;
    }

    .qa-qty-group .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .qa-qty-group .form-control {
        padding: 0.375rem;
        font-size: 0.9rem;
    }

    .qa-add-btn {
        padding: 0.75rem;
        font-size: 1rem;
        font-weight: 600;
        margin-top: auto;
    }

    .qa-meta {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .qa-meta span {
        display: block;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.125rem;
        max-width: calc(100% - 0.25rem);
        max-height: 80vh;
        margin-top: 1rem;
    }

    .modal-content {
        max-height: 80vh;
    }

    .modal-header {
        padding: 0.5rem;
    }

    .modal-body {
        padding: 0.5rem;
    }

    .qa-gallery img,
    .qa-gallery .carousel-item img {
        height: 140px !important;
    }

    .qa-title {
        font-size: 1rem;
    }

    .qa-price {
        font-size: 1.1rem;
    }

    .qa-description {
        font-size: 0.85rem;
        max-height: 60px;
        overflow-y: auto;
        margin-bottom: 0.5rem;
    }

    .qa-add-btn {
        padding: 0.5rem;
        font-size: 0.95rem;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
    }

    .qa-qty-group {
        max-width: 120px;
    }

    .qa-qty-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .qa-qty-group .form-control {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 0.0625rem;
        max-width: calc(100% - 0.125rem);
        max-height: 75vh;
        margin-top: 0.5rem;
    }

    .modal-content {
        max-height: 75vh;
    }

    .modal-header {
        padding: 0.375rem;
    }

    .modal-body {
        padding: 0.375rem;
    }

    .qa-gallery img,
    .qa-gallery .carousel-item img {
        height: 120px !important;
    }

    .qa-description {
        max-height: 50px;
        margin-bottom: 0.375rem;
    }

    .qa-add-btn {
        padding: 0.375rem;
        font-size: 0.85rem;
        margin-top: 0.375rem;
    }

    .qa-meta {
        margin-bottom: 0.375rem;
    }
}