.qa-featured-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04)
}

.qa-featured-title {
    font-weight: 700;
    color: #111
}

.qa-featured-badge {
    background: #ff9800;
    color: #fff;
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600
}

.qa-featured-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden
}

.qa-featured-img {
    position: relative;
    display: block;
    padding-top: 66%;
    background: #f8f9fa
}

.qa-featured-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9800, #FF6F00);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 2
}

.qa-featured-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.qa-featured-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15
}

.qa-featured-wishlist .box-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
    position: relative
}

.qa-featured-wishlist .box-icon:hover {
    transform: scale(1.1)
}

.qa-featured-wishlist .icon {
    font-size: 14px;
    transition: all .3s ease
}

.qa-featured-wishlist .wishlist-icon-fill {
    color: #ff4757 !important
}

.qa-featured-name {
    color: #111;
    font-weight: 700;
    min-height: 38px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none
}

.qa-name-star {
    color: #FF9800;
    margin-right: 6px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12))
}

.qa-featured-price {
    color: #333;
    font-weight: 700
}

.qa-featured-card .box-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.qa-featured-card .box-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.qa-featured-card .box-icon .icon {
    font-size: 14px;
    color: #333
}

.cart-disabled .wishlist-btn,
.cart-disabled .btn-quick-add,
.cart-disabled .btn-quick-add-products {
    display: none !important
}

.product-img-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    border: 2px solid #f0f0f0
}

.product-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .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, .5);
    color: #fff;
    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 .3s ease;
    z-index: 11
}

.product-img-container:hover .nav-btn {
    opacity: 1
}

.nav-btn:hover {
    background: rgba(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 .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: 700;
    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 .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 .3s ease
}

.featured-product-item:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(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: 700
}

.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 .3s ease;
    cursor: pointer;
    position: relative;
    z-index: 15
}

.wishlist-btn:hover {
    transform: scale(1.1)
}

.wishlist-icon,
.wishlist-icon-fill {
    transition: all .3s ease
}

.wishlist-icon-fill {
    color: #ff4757 !important
}

.tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .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 .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, .1);
    transition: box-shadow .3s ease
}

.card-product:hover .card-product-wrapper {
    box-shadow: 0 4px 16px rgba(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 .3s ease
}

.card-product-info .title:hover {
    color: #333
}

.card-product-info .price {
    color: #333;
    font-weight: 700;
    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, .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
}

.qa-title-badge {
    display: inline-block;
    margin-left: 8px;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    vertical-align: middle;
    font-weight: 700
}

.qa-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #eee
}

.qa-title {
    font-weight: 700
}

.qa-body {
    padding: 20px
}

.qa-gallery img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.qa-info {
    padding: 8px 0
}

.qa-price .discounted-price {
    font-size: 1.4rem
}

.qa-qty .input-group {
    max-width: 160px
}

.qa-add-btn {
    height: 44px;
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.qa-add-btn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important
}

.qa-add-btn:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.qa-qty-group .btn-outline-secondary {
    color: #000 !important;
    border-color: #000 !important
}

.qa-qty-group .btn-outline-secondary:hover {
    background-color: #000 !important;
    color: #fff !important
}

.qa-qty-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.box-icon.quick-add {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.box-icon.quick-add:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important
}

.box-icon.quick-add:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.wishlist-btn {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.wishlist-btn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important
}

.wishlist-btn:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.wishlist-icon-fill {
    color: #ff4757 !important
}

.card-product .box-icon {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.card-product .box-icon:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important
}

.card-product .box-icon:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.qa-featured-card .box-icon {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.qa-featured-card .box-icon:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important
}

.qa-featured-card .box-icon:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.qa-featured-wishlist .box-icon {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.qa-featured-wishlist .box-icon:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important
}

.qa-featured-wishlist .box-icon:focus {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, .25) !important
}

.nav-btn {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important
}

.nav-btn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important
}

.cate-item a:hover,
.cate-item a.active {
    color: #000 !important;
    background-color: #f8f9fa !important;
    font-weight: 600 !important
}

.tf-btn-loading.loading {
    background-color: #666 !important;
    border-color: #666 !important;
    color: #fff !important
}

@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;
    }
}

.qa-featured-title-sm {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.qa-featured-badge-sm {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}