.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tf-product-card {
    transition: all 0.3s ease;
}

.tf-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Banner responsive styles */
.tf-slideshow .wrap-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .tf-slideshow .wrap-slider img {
        min-height: 400px;
        max-height: 600px;
    }
}

@media (max-width: 767px) {
    .tf-slideshow .wrap-slider img {
        min-height: 60vh;
        max-height: 80vh;
        object-fit: cover;
    }
    
    .tf-slideshow .box-content h1 {
        font-size: 1.8rem;
    }
    
    .tf-slideshow .box-content p {
        font-size: 0.9rem;
    }
    
    .tf-slideshow {
        height: auto;
    }
    
    .tf-slideshow .wrap-slider {
        height: auto;
        min-height: 60vh;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .slider-effect .box-content h1 {
        font-size: 2rem;
    }
    
    .slider-effect .box-content .desc {
        font-size: 0.9rem;
    }
    
    /* Full height banner on mobile */
    .tf-slideshow .wrap-slider img {
        min-height: 60vh;
        max-height: 80vh;
    }
}

/* Price styling */
.card-product-info .price .compare-at-price {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #94a3b8;
    color: #94a3b8;
    margin-right: 8px;
    font-size: 14px;
    position: relative;
}

/* Modern floating action buttons on product cards */
.card-product .list-product-btn .box-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.card-product .list-product-btn .box-icon:hover {
    transform: translateY(-2px);
    background: #0f766e;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.28);
}

.card-product .list-product-btn .box-icon .icon {
    font-size: 16px;
}

/* Consistent product card heights */
.tf-product-item,
.tf-product-item .swiper-slide,
.card-product {
    height: 100%;
}

.card-product {
    display: flex;
    flex-direction: column;
}

.card-product-wrapper {
    flex: 1 1 auto;
}

.card-product-info {
    margin-top: auto;
    min-height: 72px;
}

.card-product-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.card-product-info .price .compare-at-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #94a3b8;
    transform: translateY(-50%);
}

.card-product-info .price .price-on-sale {
    color: #0f766e;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* Tabbed Product Section Styles */
.flat-animate-tab .widget-tab-3 {
    border: none;
    margin-bottom: 40px;
}

.flat-animate-tab .widget-tab-3 .nav-tab-item {
    margin: 0 15px;
}

.flat-animate-tab .widget-tab-3 .nav-tab-item a {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.flat-animate-tab .widget-tab-3 .nav-tab-item a:hover,
.flat-animate-tab .widget-tab-3 .nav-tab-item a.active {
    color: #fff;
    background: #000;
    border-color: #000;
}

.flat-animate-tab .tab-content .tab-pane {
    display: none;
}

.flat-animate-tab .tab-content .tab-pane.active.show {
    display: block;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-layout[data-grid="grid-4"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .grid-layout[data-grid="grid-4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-layout[data-grid="grid-4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 575px) {
    .flat-animate-tab .widget-tab-3 .nav-tab-item {
        margin: 0 8px;
    }
    
    .flat-animate-tab .widget-tab-3 .nav-tab-item a {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Load More Button Styles */
.tf-pagination-wrap {
    margin-top: 50px;
}

.btn-loadmore,
.btn-loadmore2,
.btn-loadmore3 {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-loadmore:hover,
.btn-loadmore2:hover,
.btn-loadmore3:hover {
    background: #fff;
    color: #000;
}

/* Quick View Modal Fix */
.modal#quick_view {
    z-index: 9999 !important;
}

.modal#quick_view .modal-dialog {
    max-width: 90vw;
    width: 100%;
    margin: 20px auto;
}

.modal#quick_view .modal-content {
    border: none;
    border-radius: 10px;
    min-height: 500px;
}

.modal#quick_view .header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.modal#quick_view .icon-close-popup {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

.modal#quick_view .icon-close-popup:hover {
    background: rgba(255,255,255,1);
}

/* Quick View Modal - Responsive Design Fixes */
.popup-quickview .tf-product-info-wrap {
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Desktop Layout (Large screens) */
@media (min-width: 992px) {
    .popup-quickview .wrap {
        flex-direction: row !important;
    }
    
    .popup-quickview .tf-product-media-wrap {
        width: 50%;
        padding: 20px;
    }
    
    .popup-quickview .tf-product-info-list {
        width: 50%;
        padding: 30px 25px 30px 0;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .popup-quickview .tf-product-media-wrap {
        width: 45%;
        padding: 15px;
    }
    
    .popup-quickview .tf-product-info-list {
        width: 55%;
        padding: 25px 20px 25px 0;
        max-height: 75vh;
        overflow-y: auto;
    }
}

/* Mobile Layout */
@media (max-width: 767.98px) {
    .popup-quickview .tf-product-media-wrap {
        width: 100%;
        padding: 15px 15px 10px;
    }
    
    .popup-quickview .tf-product-info-list {
        width: 100%;
        padding: 15px;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .popup-quickview .tf-product-info-title h5 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .popup-quickview .tf-product-info-price {
        margin-bottom: 20px;
    }
    
    .popup-quickview .tf-product-description {
        margin-bottom: 20px;
    }
    
    .popup-quickview .tf-product-info-buy-button {
        margin-bottom: 20px;
    }
}

/* Common Styles for All Screens */
.popup-quickview .tf-product-info-title h5 a {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.popup-quickview .tf-product-info-title h5 a:hover {
    color: #0f766e;
}

.popup-quickview .tf-product-info-price .price,
.popup-quickview .tf-product-info-price .price-on-sale {
    font-weight: 700;
    color: #0f766e;
}

/* Desktop Price Sizes */
@media (min-width: 768px) {
    .popup-quickview .tf-product-info-price .price,
    .popup-quickview .tf-product-info-price .price-on-sale {
        font-size: 1.3rem;
    }
}

/* Mobile Price Sizes */
@media (max-width: 767.98px) {
    .popup-quickview .tf-product-info-price .price,
    .popup-quickview .tf-product-info-price .price-on-sale {
        font-size: 1.1rem;
    }
}

/* Quantity Selector - Responsive */
.popup-quickview .wg-quantity {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.popup-quickview .btn-quantity {
    background: #f8fafc;
    border: none;
    cursor: pointer;
    user-select: none;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-quickview .btn-quantity:hover {
    background: #e2e8f0;
}

/* Mobile touch targets */
@media (max-width: 767.98px) {
    .popup-quickview .btn-quantity {
        min-width: 48px;
        min-height: 48px;
        font-size: 1.2rem;
    }
    
    .popup-quickview #qv-quantity {
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Add to Cart Button */
.popup-quickview .btn-add-to-cart {
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.popup-quickview .btn-add-to-cart:hover:not(:disabled) {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.popup-quickview .btn-add-to-cart:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Mobile button sizing */
@media (max-width: 767.98px) {
    .popup-quickview .btn-add-to-cart {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* View Details Button */
.popup-quickview .btn-line {
    border: 2px solid #0f766e;
    color: #0f766e;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.popup-quickview .btn-line:hover {
    background: #0f766e;
    color: white;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .popup-quickview .btn-line {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Image Gallery */
.popup-quickview .tf-single-slide {
    height: 100%;
    min-height: 300px;
}

.popup-quickview .tf-single-slide .item {
    height: 100%;
    min-height: 300px;
}

.popup-quickview .tf-single-slide img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Mobile image adjustments */
@media (max-width: 767.98px) {
    .popup-quickview .tf-single-slide {
        min-height: 250px;
    }
    
    .popup-quickview .tf-single-slide .item {
        min-height: 250px;
    }
    
    .popup-quickview .tf-single-slide img {
        max-height: 50vh;
    }
}

/* Swiper Navigation Buttons */
.popup-quickview .single-slide-next,
.popup-quickview .single-slide-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup-quickview .single-slide-next:after,
.popup-quickview .single-slide-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.popup-quickview .single-slide-next:hover,
.popup-quickview .single-slide-prev:hover {
    background: rgba(255, 255, 255, 1);
}

/* Modal Dialog Sizing */
@media (min-width: 992px) {
    .popup-quickview .modal-dialog {
        max-width: 90vw;
        margin: 1.75rem auto;
    }
}

@media (min-width: 1200px) {
    .popup-quickview .modal-dialog {
        max-width: 85vw;
    }
}

@media (max-width: 991.98px) {
    .popup-quickview .modal-dialog {
        max-width: 95vw;
        margin: 10px auto;
    }
}

@media (max-width: 767.98px) {
    .popup-quickview .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100%;
        max-height: 100vh;
    }
    
    .popup-quickview .modal-content {
        height: 100vh;
        border-radius: 0;
    }
}

/* Scrollbar styling */
.popup-quickview .tf-product-info-list::-webkit-scrollbar {
    width: 6px;
}

.popup-quickview .tf-product-info-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popup-quickview .tf-product-info-list::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 3px;
}

.popup-quickview .tf-product-info-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Legacy responsive styles - now handled by the comprehensive responsive CSS above */

/* Flash Sale Styles - Updated for Swiper */
.flash-sale-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.flash-sale-card .card-body {
    padding: 15px;
    text-align: center;
}

.flash-sale-card .product-title {
    display: block;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #333;
    text-decoration: none;
}

.flash-sale-card .sale-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.flash-sale-card .real-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 0;
}

.flash-sale-card a {
    text-decoration: none;
    color: inherit;
}

/* Dynamic Countdown Timer Styles */
.countdown__item {
    transition: all 0.3s ease;
}

.countdown__value {
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 2em;
    text-align: center;
}

.countdown-expired {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dynamic-countdown .countdown__item:hover {
    transform: scale(1.05);
}

.dynamic-countdown .countdown__value {
    font-weight: bold;
    font-size: 1.2em;
}

/* Brand Section Styles */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100px;
}

.brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .brand-item {
        padding: 10px;
        height: 80px;
    }
    
    .brand-item img {
        max-height: 50px;
    }
}